@font-face { font-family: "GT Standard"; src: url(fonts/GTStandard-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GT Standard"; src: url(fonts/GTStandard-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "GT Standard"; src: url(fonts/GTStandard-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* platform.konji.co's (Ads Manager) look: a white page, a #f9f9f9 sidebar, grey fills instead of outlines, pill buttons */
:root {
  --bg: #fff; --card: rgb(0 0 0 / .03); --paper: #fff; --ink: #111; --muted: #6b6b70; --line: rgb(0 0 0 / .07);
  --input: rgb(0 0 0 / .12); --hover: rgb(13 13 13 / .04); --brand: #0e5b3f; --danger: #c4321b;
  --yellow: #fdf3d3; --yellow-ink: #7a5b00; --blue: #e6eefc; --blue-ink: #1d4fa8;
  --green: #e1f1e7; --green-ink: #0e5b3f; --gray: #f4f4f5; --gray-ink: #4a4a4f; --red: #fce7e3; --red-ink: #a52a14;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font: 400 14px/1.45 "GT Standard", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
/* platform.konji.co's frame (app/(app)/layout.tsx, app-sidebar.tsx): a full-height 260px sidebar (a 52px rail closed),
   the page's title in a 56px bar over the content */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease-in-out; }
.shell.rail { grid-template-columns: 52px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  border-right: 1px solid rgb(13 13 13 / .1); background: #f9f9f9; color: #0d0d0d; }
.brand { display: flex; align-items: center; height: 56px; padding: 0 8px 0 16px; flex: none; }
.brand .mark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.brand .word { font-size: 22px; line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.brand .sub { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 10px; background: none;
  color: var(--muted); cursor: pointer; }
.icon:hover { background: var(--hover); }
#rail { margin-left: auto; }
.brand .open { display: none; width: 36px; height: 36px; color: var(--ink); }
.brand .open .k { font-size: 22px; line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.brand .open svg { display: none; color: var(--muted); }
.brand .open:hover .k { display: none; }
.brand .open:hover svg { display: block; }
.links { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 8px 0; }
.nav { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 8px; border: 0; border-radius: 10px;
  background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; text-decoration: none; white-space: nowrap;
  overflow: hidden; cursor: pointer; outline: none; }
.nav:hover, .nav[aria-current="page"], .nav[aria-expanded="true"].who { background: var(--hover); }
.nav:focus-visible { box-shadow: 0 0 0 2px rgb(17 17 17 / .4); }
.nav > svg { flex: none; }
.nav .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav.sub { padding-left: 36px; }
.nav .count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.nav .chev { color: var(--muted); transition: transform .2s; }
.group.open .chev { transform: rotate(180deg); }
.nav .dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #ef4444; }
.drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease-out; }
.group.open .drawer { grid-template-rows: 1fr; }
.drawer > div { min-height: 0; overflow: hidden; display: grid; gap: 4px; }
.group.open .drawer > div { padding: 4px 0; }
.foot { position: relative; padding: 8px; flex: none; }
.who { height: 40px; padding: 0 6px; font-weight: 600; }
.who .initial { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid rgb(17 17 17 / .1);
  background: #fff; font-size: 12px; font-weight: 400; }
.menu { position: absolute; left: 8px; bottom: 52px; z-index: 40; width: 240px; padding: 4px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 12px 32px rgb(0 0 0 / .12); animation: menu-in .3s cubic-bezier(.19, 1, .22, 1);
  transform-origin: bottom left; }
@keyframes menu-in { from { opacity: 0; transform: scale(.95); } }
.menu-who { padding: 8px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu button { display: block; width: 100%; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.menu button:hover { background: var(--hover); }
/* closed: a rail of icons; the mark turns into the open button on hover */
.rail .brand { padding: 0 8px; }
.rail .brand .mark, .rail #rail, .rail .nav .label, .rail .nav .chev, .rail .drawer, .rail .nav .count { display: none; }
.rail .brand .open { display: grid; }
.rail .nav { position: relative; width: 36px; justify-content: center; padding: 0; }
.rail .nav .dot { position: absolute; top: 7px; right: 7px; box-shadow: 0 0 0 2px #f9f9f9; }
.rail .group .dot[hidden] { display: none; }
.rail .group .dot { display: block; }
.rail .nav .count:not([hidden]) { display: block; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; overflow: hidden;
  font-size: 0; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #f9f9f9; }
@media (prefers-reduced-motion: reduce) { .shell, .drawer, .nav .chev { transition: none; } .menu { animation: none; } }

main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 clamp(16px, 2.5vw, 24px);
  border-bottom: 1px solid var(--line); background: #fff; }
.menu-btn { display: none; }
#bar { flex: 1; min-width: 0; height: 100%; }
.page { max-width: 1440px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 32px) 64px; }
.head { display: flex; align-items: center; gap: 12px; height: 100%; min-width: 0; }
.head h1 { font-size: 16px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head .back { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -6px; border-radius: 10px; text-decoration: none; color: var(--muted); }
.head .back:hover { background: var(--hover); color: var(--ink); }
.head .btn { height: 32px; padding: 0 14px; }
.head .spacer, .actions .spacer { flex: 1; }
.card { background: var(--card); border-radius: 12px; }
.card + .card, .stack > * + * { margin-top: 16px; }
.pad { padding: 16px 20px 20px; }
.card h2 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.card .title { display: flex; align-items: center; gap: 8px; padding: 18px 20px 4px; }
.card .title + .pad { padding-top: 10px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.map { height: 460px; border-radius: 0 0 12px 12px; z-index: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow: hidden; border-radius: 12px; }
.stat { padding: 16px 20px; border: solid var(--line); border-width: 0 1px 1px 0; margin: 0 -1px -1px 0; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { overflow-wrap: anywhere; }
.bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab { height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: none; cursor: pointer; font-weight: 500; color: var(--muted); }
.tab:hover { background: var(--hover); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab[aria-selected="true"] .n { color: rgb(255 255 255 / .7); }
.tab .n { margin-left: 4px; color: var(--muted); font-weight: 400; }
.search { flex: 1; min-width: 180px; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--input); border-radius: 12px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20' stroke-linecap='round'/%3E%3C/svg%3E") 11px center / 16px no-repeat; }
.search:focus, .field input:focus, .field select:focus, .field textarea:focus, .composer textarea:focus { outline: none; border-color: var(--ink); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 400; font-size: 13px; color: var(--muted); height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 20px; } th:last-child, td:last-child { padding-right: 20px; }
tr:last-child td { border-bottom: 0; }
tbody tr[data-href] { cursor: pointer; }
tbody tr[data-href]:hover td { background: rgb(17 17 17 / .02); }
.nw { white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.thumb { width: 36px; height: 36px; border-radius: 8px; background: #f2f2f7 center / 80% no-repeat; flex: none; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500;
  white-space: nowrap; background: var(--gray); color: var(--gray-ink); }
.badge.yellow { background: var(--yellow); color: var(--yellow-ink); }
.badge.blue { background: var(--blue); color: var(--blue-ink); }
.badge.green { background: var(--green); color: var(--green-ink); }
.badge.red { background: var(--red); color: var(--red-ink); }
.plus { color: var(--green-ink); }
.minus { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--input); background: var(--paper); cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, transform .1s; }
.btn:hover { background: var(--gray); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: transparent; color: #fff; }
.btn.primary:hover { background: rgb(17 17 17 / .8); }
.btn.danger { background: var(--danger); border-color: transparent; color: #fff; }
.btn.quiet { border-color: transparent; background: none; color: var(--muted); }
.btn.quiet:hover { background: var(--hover); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-photo { width: 44px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
/* Brands › Catalog's gallery: each brand's page photo as the app crops it (about 9:10), its logo and name under it */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 12px; }
.brand-tile { display: grid; gap: 10px; align-content: start; }
.brand-hero { aspect-ratio: 9 / 10; border-radius: 14px; overflow: hidden; background: var(--gray); display: grid; place-items: center; }
.brand-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-hero span { color: var(--muted); font-size: 13px; }
.brand-hero { position: relative; }
.brand-hero img.wordmark { position: absolute; inset: 0; margin: auto; width: auto; height: 12%; max-width: 70%; object-fit: contain; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.brand-hero img.wordmark.off { opacity: .45; }
/* a brand's card as the app shows it: its photo dimmed, its wordmark white in the middle, a fifth of its height (Cosmos's) */
.wordmark-card { position: relative; aspect-ratio: 363 / 154; border-radius: 14px; overflow: hidden; background: var(--gray); display: grid; place-items: center; }
.wordmark-card .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wordmark-card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.wordmark-card .mark { position: absolute; inset: 0; margin: auto; height: 20%; max-width: 60%; object-fit: contain; z-index: 1; }
.wordmark-card span { position: relative; z-index: 1; color: #fff; font-size: 22px; font-weight: 600; }
.brand-meta { display: flex; gap: 10px; align-items: center; min-width: 0; }
.brand-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--gray); flex: none; }
.field { display: grid; gap: 4px; }
.field + .field { margin-top: 12px; }
.field span { font-weight: 500; font-size: 13px; }
.field input, .field select, .field textarea { height: 36px; padding: 0 12px; border: 1px solid var(--input); border-radius: 12px; background: var(--paper); }
.field textarea { height: auto; padding: 8px 12px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row .field + .field { margin-top: 0; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 140px; padding-top: 8px; }
.chart i { flex: 1; min-width: 2px; background: var(--brand); border-radius: 3px 3px 0 0; opacity: .9; }
.chart i:hover { opacity: 1; }
.chart i.zero { background: var(--line); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none; }
.todo:first-of-type { border-top: 0; }
.todo:hover { background: var(--hover); }
.todo b { font-weight: 600; }
.todo .go { margin-left: auto; color: var(--muted); }
.ticket { padding: 16px; border-top: 1px solid var(--line); }
.ticket:first-child { border-top: 0; }
.ticket p { white-space: pre-wrap; margin: 6px 0 10px; }
.scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.35); }
.modal { width: min(440px, 100%); background: var(--paper); border-radius: 16px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.modal .text { color: var(--muted); margin-bottom: 14px; }
.modal .actions { justify-content: flex-end; margin-top: 18px; }
.error { color: var(--danger); font-size: 13px; margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: 10px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.gate .card { width: min(380px, 100%); padding: 32px 28px; text-align: center; }
.gate h1 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin: 16px 0 20px; }
.gate .brand { justify-content: center; padding: 0; }
.gate .btn { width: 100%; height: 40px; }
.gate .brand { height: auto; }

@media (max-width: 900px) {
  .shell, .shell.rail { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 260px; transform: translateX(-100%); transition: transform .2s ease-in-out; }
  .drawer-open .side { transform: none; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .3); }
  .rail .side .brand .mark, .rail .side .nav .label, .rail .side .drawer { display: revert; }
  #rail, .brand .open { display: none !important; }
  .menu-btn { display: grid; }
  .topbar { height: auto; min-height: 56px; padding-block: 10px; align-items: flex-start; }
  .head { flex-wrap: wrap; height: auto; min-height: 36px; }
  .head h1 { flex: 1 0 auto; }
  .two { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}

/* support threads: the customer on the left, the team on the right, internal notes in yellow */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 12px; border-radius: 12px; background: var(--gray); }
.msg.agent { align-self: flex-end; background: var(--blue); }
.msg.note { align-self: flex-end; background: var(--yellow); border: 1px dashed #e0c76a; }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.assistant { align-self: flex-end; background: var(--card); }
.msg .photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.msg .photos img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--line); cursor: zoom-in; }
.composer textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--input); border-radius: 12px; background: var(--paper); resize: vertical; }
.composer .actions { margin-top: 10px; }
.clip { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .title .avatar { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* a shopper's page (Shopify's customer page): the numbers, tabs, then two columns of what there is */
.card .title .spacer { flex: 1; }
.tabbar { margin: 16px 0; }
.lines { display: grid; gap: 12px; }
.lines .line { line-height: 1.4; }
.card .title .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }
/* what an unfinished sign-up looked at: its products' photos, small */
.thumbs { display: flex; gap: 6px; align-items: center; }
.thumbs img { display: block; border-radius: 6px; background: #f2f2f7; object-fit: cover; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }  /* a discount code, read character by character */

a.brand-hero { color: inherit; }
.brand-hero-big { aspect-ratio: auto; height: 360px; }  /* the whole photo, to judge it, not a crop */
.brand-hero-big img { object-fit: contain; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f2f2f7; border-radius: 12px; }
th .sort { border: 0; padding: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
th .sort:hover, th .sort.on { color: var(--ink); }
.actions.nw { flex-wrap: nowrap; }  /* a row's buttons side by side, the row kept short */
