
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

:root {
  --font-base: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --color-white: #fff;
  --color-grey-100: #f7f7f7;
  --color-grey-200: #e9ecef;
  --color-grey-300: #d2d2d2;
  --color-grey-400: #adb5bd;
  --color-grey-600: #6c757d;
  --color-ink-900: #111;

  --text-primary: #212529;
  --text-heading: #111;
  --text-muted: #6c757d;

  --border-subtle: #e9ecef;
  --border-default: #d2d2d2;

  --accent-primary: #fead56;
  --accent-hover: #e89a3c;
  --accent-ink: #b07614;
  --accent-soft: #fdf6e8;

  --color-red-500: #ff0000;
  --color-red-600: #d40000;
  --color-green-500: #33a753;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05);
  --shadow-md: 0 4px 14px rgba(17, 17, 17, .08);
  --shadow-lg: 0 12px 32px rgba(17, 17, 17, .16);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  background: var(--color-grey-100);
  color: var(--text-primary);
  min-height: 100vh;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { color: var(--color-ink-900); }
input::placeholder { color: var(--color-grey-400); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
input[type=range] { accent-color: var(--accent-primary); cursor: pointer; }
.hidden { display: none !important; }

.spin { animation: spin .8s linear infinite; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

.brand { display: flex; align-items: center; gap: 8px; }
.brand svg.wordmark { height: 26px; width: auto; color: var(--color-ink-900); display: block; }
.brand-agent { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--accent-ink); }
.login-brand .brand { align-items: flex-end; gap: 8px; }
.logo-agent--login { font-size: 12px; }
.brand.sm { gap: 7px; }
.brand.sm svg.wordmark { height: 20px; }
.brand.sm .brand-agent { font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-base); font-size: 14px; font-weight: 600; line-height: 1;
  padding: 13px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { font-size: 13px; padding: 10px 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent-primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-outline { background: var(--color-white); border-color: var(--border-default); color: var(--text-primary); }
.btn-outline:hover:not(:disabled) { background: var(--color-grey-100); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--color-grey-100); color: var(--text-primary); }
.btn-sale { background: var(--color-red-600); color: #fff; }
.btn-sale:hover:not(:disabled) { background: #b30000; }
.btn-link {
  font-family: var(--font-base); font-weight: 600; font-size: 12.5px;
  background: transparent; border: none; color: var(--accent-ink); cursor: pointer; padding: 4px;
}
.btn .spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; }

.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  background: var(--color-white); color: var(--text-muted); cursor: pointer;
  transition: background .12s, color .12s;
}
.iconbtn:hover { background: var(--color-grey-100); color: var(--text-primary); }

.input-w label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.input-w input {
  width: 100%; padding: 12px 14px; font-family: var(--font-base); font-size: 14px;
  color: var(--text-primary); background: var(--color-white);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
}
.input-w input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(254, 173, 86, .18); }
.input-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

.searchbar { position: relative; }
.searchbar svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.searchbar input {
  width: 100%; height: 44px; padding: 0 16px 0 42px; font-family: var(--font-base); font-size: 14px;
  color: var(--text-primary); background: var(--color-white);
  border: 1px solid var(--border-default); border-radius: var(--radius-pill);
}
.searchbar input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(254, 173, 86, .18); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-default); background: var(--color-white);
  font-family: var(--font-base); font-size: 13px; font-weight: 500; color: var(--text-primary);
  cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--color-grey-400); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-primary); color: var(--accent-ink); font-weight: 600; }
.chip .mono { font-family: var(--mono); font-size: 12.5px; }

.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 600; line-height: 1.3; border: 1px solid transparent;
}
.tag-soft { background: var(--color-grey-200); color: var(--text-primary); }
.tag-warn { background: #fdf0d5; color: #7a4b00; }
.tag-solid { background: var(--color-ink-900); color: #fff; }
.tag-outline { background: transparent; border-color: var(--border-default); color: var(--text-muted); }
.tag .mono { font-family: var(--mono); font-size: 11px; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}

.metric { text-align: right; }
.metric-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text-heading); line-height: 1.1; }
.metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-top: 3px; }

.card {
  background: var(--color-white); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 22px;
}
.card.nopad { padding: 0; overflow: hidden; }
.card h2 { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--text-heading); }
.card .card-sub { color: var(--text-muted); font-size: 12.5px; margin: 0 0 18px; line-height: 1.5; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border-subtle);
}
.card-head h2 { margin: 0; }
.card-count { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 13px; color: var(--color-red-600); }

.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.boot .spin { width: 26px; height: 26px; border: 2.5px solid var(--border-subtle); border-top-color: var(--accent-primary); }
.boot-txt { color: var(--text-muted); font-size: 13px; }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--color-white); }
.login-box { width: 100%; max-width: 400px; animation: pop .3s var(--ease-out); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-sub { color: var(--text-muted); font-size: 13px; }
.login-card {
  background: var(--color-white); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-md);
}
.alert {
  display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px;
  border-radius: var(--radius-sm); background: rgba(255, 0, 0, .06);
  border: 1px solid var(--color-red-500); color: var(--color-red-600); font-size: 13px;
}
.alert svg { flex: none; margin-top: 1px; }

.shell { display: flex; min-height: 100vh; }
.side {
  position: sticky; top: 0; align-self: flex-start; height: 100vh; width: 238px; flex: none;
  background: var(--color-white); border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; padding: 22px 14px;
}
.side-brand { padding: 4px 8px 0; }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.navitem {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px;
  border: none; background: transparent; border-radius: var(--radius-sm);
  font-family: var(--font-base); font-size: 14px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; text-align: left; transition: background .12s, color .12s;
}
.navitem:hover { background: var(--color-grey-100); color: var(--text-primary); }
.navitem[aria-current="page"] { background: var(--color-grey-100); color: var(--color-ink-900); font-weight: 700; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.side-user-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.side-user-txt .u-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-txt .u-role { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-main { flex: 1; min-width: 0; }

.main { max-width: 1080px; margin: 0 auto; padding: 34px 24px 72px; display: flex; flex-direction: column; gap: 24px; }
.main-wide { max-width: 1120px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 7px; }
.page-head h1, .page-head-solo h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--text-heading); }
.page-sub { color: var(--text-muted); font-size: 14px; margin: 8px 0 0; max-width: 560px; line-height: 1.5; }
.tenant-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 15px;
  border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--color-white);
}
.tenant-chip svg { color: var(--text-muted); }
.tenant-chip .t-col { display: flex; flex-direction: column; line-height: 1.2; }
.tenant-chip .t-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.tenant-chip .t-val { font-family: var(--mono); font-size: 15px; font-weight: 600; }

.tab-section { display: flex; flex-direction: column; gap: 24px; }

.secret-panel {
  border: 1.5px solid var(--accent-primary); background: var(--accent-soft);
  border-radius: var(--radius-md); padding: 20px 22px; animation: pop .3s var(--ease-out);
}
.secret-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--accent-ink); }
.secret-warn { color: var(--text-primary); font-size: 13px; margin: 9px 0 14px; line-height: 1.5; }
.secret-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.secret-row code {
  flex: 1; min-width: 260px; font-family: var(--mono); font-size: 14px;
  background: var(--color-white); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); padding: 14px 16px; word-break: break-all;
}
.secret-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 13px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap;
}
.secret-foot code { font-family: var(--mono); color: var(--text-primary); }

.tbl { display: flex; flex-direction: column; }
.thead, .trow { display: grid; gap: 16px; align-items: center; padding: 14px 22px; }
.thead { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); }
.trow { border-top: 1px solid var(--border-subtle); font-size: 14px; }
.trow:first-of-type { border-top: none; }
.trow:hover { background: var(--color-grey-100); }



.keys-grid { grid-template-columns: minmax(0,2.2fr) minmax(0,1.9fr) minmax(0,1.2fr) minmax(0,1.1fr) 148px; }
.users-grid { grid-template-columns: minmax(0,1.5fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,.9fr) minmax(0,1fr) 112px; }
.tenants-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1.2fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,.9fr) 52px; }

.mono-cell, .trow .row-faint { overflow-wrap: anywhere; }
.cell-lbl { display: none; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 3px; }
.cell-end { justify-self: end; display: flex; gap: 6px; align-items: center; }
.row-title { font-weight: 600; }
.row-mono { font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.row-faint { font-size: 11.5px; color: var(--color-grey-400); margin-top: 3px; }
.row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.status-cell { display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-green { background: var(--color-green-500); }
.dot-grey { background: var(--color-grey-400); }
.never-hint { font-size: 11px; color: var(--accent-ink); margin-top: 2px; }
.tbl-msg { padding: 36px 22px; text-align: center; font-size: 13px; color: var(--text-muted); }
.tbl-msg.err { color: var(--color-red-600); }
.tbl-empty { padding: 52px 22px; text-align: center; }
.tbl-empty .e-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.tbl-empty .e-sub { font-size: 13px; color: var(--text-muted); margin-top: 5px; }
.tbl-loading { padding: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); font-size: 13px; }
.tbl-loading .spin, .center-msg .spin { width: 20px; height: 20px; border: 2.4px solid var(--border-subtle); border-top-color: var(--accent-primary); }

.form-col { display: flex; flex-direction: column; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-key { display: grid; grid-template-columns: 1.5fr .7fr; gap: 16px; }
.field-lbl { font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row-tight { display: flex; flex-wrap: wrap; gap: 9px; }
@media (max-width: 640px) { .grid-2, .grid-key { grid-template-columns: 1fr; } }

.catalog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.catalog-head .c-txt { max-width: 540px; }
.catalog-head code { font-family: var(--mono); font-size: 11.5px; background: var(--color-grey-100); padding: 1px 5px; border-radius: 4px; }
.dropzone {
  margin-top: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 26px; border: 1.5px dashed var(--border-default); border-radius: var(--radius-md);
  background: var(--color-grey-100); cursor: pointer; text-align: center; transition: border-color .12s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent-primary); }
.dropzone svg { color: var(--text-muted); }
.dz-title { font-size: 13.5px; font-weight: 600; }
.dz-sub { font-size: 12px; color: var(--text-muted); }
.catalog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ingest-error { font-size: 13px; color: var(--color-red-600); margin-top: 12px; }
.ingest-summary { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; }
.import-status { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 8px; font-size: 13px; }
.import-status .is-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.import-status .is-meta { color: var(--text-muted); margin-top: 4px; font-size: 12.5px; }
.import-status .is-err { color: var(--color-red-600); margin-top: 6px; font-size: 12.5px; }
.import-status .is-warn { color: var(--accent-ink); margin-top: 6px; font-size: 12.5px; }
.preview { margin-top: 14px; border-top: 1px solid var(--border-subtle); padding-top: 12px; }
.preview-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 6px; }
.preview-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; border-top: 1px solid var(--border-subtle); }
.preview-row .p-name { font-weight: 600; }
.preview-row .p-meta { color: var(--text-muted); }

.search-form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-form-row .searchbar { flex: 1; min-width: 220px; }
.alpha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.alpha-row input[type=range] { flex: 1; min-width: 150px; }
.alpha-lbl { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.alpha-readout { font-size: 12px; color: var(--accent-ink); font-weight: 700; min-width: 190px; text-align: right; }
.center-msg { padding: 34px; text-align: center; color: var(--text-muted); font-size: 13px; }
.center-msg.loading { display: flex; align-items: center; justify-content: center; gap: 12px; }
.results-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.results { display: flex; flex-direction: column; gap: 10px; }
.result {
  display: flex; justify-content: space-between; gap: 16px;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px;
}
.result .r-thumb { width: 56px; height: 56px; flex: none; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-subtle); background: rgba(0,0,0,.04); }
.result .r-thumb-empty { border-style: dashed; }
.result .r-main { min-width: 0; flex: 1; }
.result .r-name { font-weight: 600; font-size: 14px; }
.result .r-meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.result .r-price-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.result .r-price { font-weight: 700; font-size: 14px; }
.result .r-scores { width: 180px; flex: none; }
.result .r-score { text-align: right; font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--text-heading); }
.result .r-score-lbl { text-align: right; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }
.result .r-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.result .r-bar-lbl { font-size: 10px; color: var(--text-muted); width: 58px; }
.result .r-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--border-subtle); overflow: hidden; }
.result .r-bar > span { display: block; height: 100%; }
.result .r-bar .lex { background: var(--color-ink-900); }
.result .r-bar .sem { background: var(--accent-primary); }
@media (max-width: 640px) { .result { flex-direction: column; } .result .r-scores { width: 100%; } }

.user-cell { display: flex; align-items: center; gap: 9px; }
.user-cell .u-name { font-weight: 600; display: flex; align-items: center; gap: 7px; }
.mono-cell { font-family: var(--mono); font-size: 13px; }
.dash { font-size: 12px; color: var(--color-grey-400); }

.scrim {
  position: fixed; inset: 0; z-index: 50; background: rgba(17, 17, 17, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px; animation: pop .2s ease;
}
.modal--wide { max-width: 560px; }
.modal {
  width: 100%; max-width: 400px; background: var(--color-white);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--text-heading); }
.modal p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 22px; line-height: 1.5; }
.modal p strong { color: var(--text-primary); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal form { display: flex; flex-direction: column; gap: 16px; }
.modal form p { margin-bottom: 2px; }

.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 60; animation: pop .25s ease; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-subtle);
  background: var(--color-white); color: var(--text-primary);
}

@media (max-width: 820px) {
  .shell { flex-direction: column; }
  .side {
    position: static; height: auto; width: auto; flex-direction: row; align-items: center;
    gap: 10px; border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 12px 16px;
  }
  .side-brand { padding: 0; }
  .side-nav { flex-direction: row; margin: 0 0 0 8px; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; gap: 10px; }
  .side-user { border: none; padding: 0; }
}
@media (max-width: 960px) {
  .keys-grid, .users-grid, .tenants-grid { grid-template-columns: 1fr !important; }
  .thead { display: none; }
  .trow { gap: 12px; padding: 18px 22px; }
  .cell-lbl { display: block; }
  .cell-end { justify-self: start; }
}


:root {
  --accent-primary: #111;
  --accent-hover: #000;
  --accent-ink: #111;
  --accent-soft: #f5f5f5;
}
.btn-primary {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  border-radius: 2px;
  color: #fff;
}
.chip[aria-pressed="true"] { background: #111; border-color: #111; color: #fff; }
.chip[aria-pressed="true"] .mono { color: #fff; }

.shell-top { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.app-main { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto;
            padding: 28px clamp(16px, 4vw, 40px) 64px; }
.main-flat { display: block; }
.shop-placeholder {
  height: 52vh; display: flex; align-items: center; justify-content: center;
  color: #adb5bd; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px dashed #e9ecef;
}
.shop-chrome__link--user { cursor: default; opacity: .7; }
.shop-chrome .shop-chrome__menu a[aria-current="page"]::after { width: 100%; }

.key-once {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  background: var(--color-grey-100); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 12px; margin: 0 0 18px;
  word-break: break-all; white-space: pre-wrap; user-select: all;
}
.chip-off { opacity: .4; cursor: not-allowed; }
