/* The client area, in the same language as the main page: Prata titles, Albert Sans for everything small, soft grey
   tiles with large corners, dark pill buttons, sentence-case labels, a pill switch for the tabs, and the wave as the
   project's progress line. */
:root { --a-ink: #1D1D1F; --a-soft: #6E6E73; --a-alt: #F5F5F7; --a-line: rgba(29,29,31,.08); }
body.panel { background: #fff; color: var(--a-ink); font-size: 16px; }
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

/* buttons: the main page's pills */
.panel .btn { border: 0; border-radius: 999px; min-height: 44px; padding: 0 20px; font-weight: 500; font-size: 15.5px; background: var(--a-ink); color: #fff; transition: background .2s, transform .15s var(--ease); }
.panel .btn:hover { background: #000; }
.panel .btn:active { transform: scale(.97); transition-duration: 80ms; }
.panel .btn--blue { background: var(--a-ink); }
.panel .btn--line { background: rgba(29,29,31,.07); color: var(--a-ink); }
.panel .btn--line:hover { background: rgba(29,29,31,.12); }
.panel .btn--sm { min-height: 36px; padding: 0 16px; font-size: 14.5px; }
.panel .btn svg { flex: none; }

/* the sidebar */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 22px 14px; background: var(--a-alt); overflow-y: auto; }
.side .brand { padding: 4px 10px 22px; }
.side .brand small { color: var(--a-soft); }
.side h6 { margin: 18px 12px 6px; font-size: 14px; font-weight: 600; color: var(--a-soft); }
.side a.item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 14px; color: var(--a-ink); font-size: 15.5px; transition: background .2s; }
.side a.item:hover { background: rgba(29,29,31,.05); }
.side a.item.on { background: #fff; font-weight: 500; box-shadow: 0 1px 2px rgba(29,29,31,.06), 0 6px 18px rgba(29,29,31,.06); }
.side a.item svg { width: 18px; height: 18px; flex: none; color: var(--a-soft); }
.side a.item .count { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--blue); border-radius: 999px; padding: 0 7px; }
.side .proj-wave { margin-left: auto; width: 28px; height: 10px; }
.side .proj-wave path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.side .grow { flex: 1; }
.side .start { margin: 14px 4px 12px; }
.me { display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid var(--a-line); font-size: 15px; }
.me i { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 13px; color: var(--a-ink); box-shadow: 0 1px 3px rgba(29,29,31,.1); }
.me small { display: block; color: var(--a-soft); font-size: 13.5px; }

/* the top bar: glass, like the page's nav */
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; padding: 0 44px; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.top .acts { display: flex; align-items: center; gap: 10px; }

.page { padding: 22px 44px 90px; max-width: 1240px; }
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.phead h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4vw, 56px); line-height: 1.06; letter-spacing: -.018em; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.phead h1 .chip { font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
.meta { margin-top: 12px; display: flex; gap: 26px; flex-wrap: wrap; font-size: 17px; color: var(--a-soft); }
.meta b { color: var(--a-ink); font-weight: 500; }

/* tabs: the page's segmented switch */
.ptabs { display: inline-flex; gap: 2px; margin: 32px 0 26px; padding: 4px; border-radius: 999px; background: rgba(29,29,31,.07); overflow-x: auto; max-width: 100%; }
.ptabs a { padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--a-soft); white-space: nowrap; transition: background .25s, color .25s; }
.ptabs a:hover { color: var(--a-ink); }
.ptabs a.on { background: #fff; color: var(--a-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* cards are the page's tiles */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.card { background: var(--a-alt); border-radius: 28px; padding: 30px; }
.card + .card { margin-top: 20px; }
.card h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.card .h { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.card .h h3 { font-size: 17px; font-weight: 600; color: var(--a-soft); letter-spacing: 0; text-transform: none; }
.card .h a { font-size: 15px; color: var(--blue-ink); font-weight: 500; }

/* chips: the page's soft status pills */
.panel .chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--a-ink); font-size: 13.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(29,29,31,.06); }
.panel .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.panel .chip.green::before { background: #34C759; }
.panel .chip.amber::before { background: #FF9F0A; }
.panel .chip.grey::before { background: #AEAEB2; }

/* where it stands */
.journey.big svg { height: auto; }
.journey.big .stages { font-size: 14px; margin-top: 10px; }
.journey.big .stages b { font-size: 15px; }
.turn { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 24px; padding: 20px 22px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(29,29,31,.05), 0 10px 30px rgba(29,29,31,.06); }
.turn .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue-ink); }
.turn .ico svg { width: 20px; height: 20px; }
.turn b { display: block; font-size: 17px; font-weight: 600; }
.turn p { margin-top: 2px; color: #45454A; font-size: 15.5px; }

/* updates from Mo */
.feed { display: grid; }
.note { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; }
.note + .note { border-top: 1px solid var(--a-line); }
.note:first-child { padding-top: 0; }
.note .av { width: 40px; height: 40px; border-radius: 50%; background: var(--a-ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.note .who { font-size: 15px; }
.note .who span { color: var(--a-soft); margin-left: 8px; font-size: 14px; }
.note p { margin-top: 6px; color: #45454A; font-size: 16.5px; line-height: 1.55; max-width: 62ch; }

/* what is still needed */
.check li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; font-size: 16px; }
.check .box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C7C7CC; }

/* files and invoices */
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th { text-align: left; font-size: 14px; font-weight: 600; color: var(--a-soft); letter-spacing: 0; text-transform: none; padding: 0 12px 12px 0; border-bottom: 1px solid var(--a-line); }
.tbl td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; padding-right: 28px; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl .fname { display: flex; align-items: center; gap: 14px; }
.tbl .fname .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--blue-ink); font-size: 11px; font-weight: 700; letter-spacing: .03em; flex: none; box-shadow: 0 1px 2px rgba(29,29,31,.06); }
.tbl small { display: block; color: var(--a-soft); font-size: 14px; }
.drop { border: 2px dashed rgba(29,29,31,.16); border-radius: 22px; padding: 30px; text-align: center; color: var(--a-soft); background: #fff; }
.drop b { color: var(--a-ink); }
.bank { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; font-size: 16px; }
.bank span { display: block; color: var(--a-soft); font-size: 14px; margin-bottom: 2px; }

/* hosting and domain */
.hostpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hp { position: relative; border-radius: 22px; padding: 22px; background: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(29,29,31,.05); transition: box-shadow .2s; }
.hp:hover { box-shadow: 0 1px 2px rgba(29,29,31,.05), 0 10px 26px rgba(29,29,31,.08); }
.hp.on { box-shadow: 0 0 0 2px var(--blue), 0 10px 26px rgba(40,60,110,.12); }
.hp h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.hp p { color: var(--a-soft); font-size: 15px; margin-top: 4px; }
.hp .pr { margin-top: 16px; font-weight: 600; color: var(--a-ink); }
.hp .pr.soft { color: var(--a-soft); font-weight: 500; }
.dom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; font-size: 16px; }
.dom span { display: block; color: var(--a-soft); font-size: 14px; margin-bottom: 6px; }
.toggle { display: inline-block; width: 46px; height: 28px; border-radius: 999px; background: #34C759; position: relative; vertical-align: middle; }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.panel .search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(29,29,31,.06) !important; }
.panel .search input { flex: 1; border: 0; outline: 0; font: 400 17px var(--sans); background: none; color: var(--a-ink); min-width: 0; }

.tab { display: none; }
.tab.on { display: block; }
@media (prefers-reduced-motion: no-preference) { .tab.on { animation: fadein .35s var(--ease); } }

@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr; } .hostpick { grid-template-columns: 1fr; } .dom { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top, .page { padding-left: 16px; padding-right: 16px; }
  .card { padding: 22px; border-radius: 24px; }
  .turn { grid-template-columns: auto 1fr; }
  .turn .btn { grid-column: 1 / -1; justify-self: start; }
}
.phead .chip { background: var(--a-alt); box-shadow: none; }
