/* Yell admin. Layout and type follow the Brainwave app: pure black, hairlines, light two-tone headings,
   white pill buttons. Yell yellow is kept for small accents only (badges, active marker, highlights). */
:root {
  --bg: #000;
  --panel: #000;
  --card: #0b0b0b;
  --card-2: #111;
  --raise: #1a1a1a;
  --line: rgb(255 255 255 / 0.1);
  --line-2: rgb(255 255 255 / 0.2);
  --fg: #fff;
  --fg-2: rgb(255 255 255 / 0.62);
  --fg-3: rgb(255 255 255 / 0.4);
  --yellow: #ffd100;
  --green: #34d27b;
  --red: #ff5a5a;
  --r: 16px;
  --display: Geist, Inter, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }
::selection { background: var(--yellow); color: #000; }
h1 { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 4.4vw, 64px); letter-spacing: -0.05em; line-height: 1.02; margin: 0; }
h2 { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -0.03em; margin: 0 0 16px; }
h3 { margin: 0 0 12px; }
.dim { color: rgb(255 255 255 / 0.45); }
.cap { text-transform: capitalize; font-size: 15px; }
.muted { color: var(--fg-2); }
.sm { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.ico { flex: none; display: block; }
.eyebrow { color: var(--fg-2); font-size: 14px; margin-bottom: 10px; }

/* form controls */
input, textarea, select {
  width: 100%; background: var(--card); border: 1px solid var(--line-2); color: var(--fg);
  border-radius: 12px; padding: 10px 14px; font: inherit; font-size: 14.5px; outline: none; transition: border-color 0.2s, background 0.2s;
}
input::placeholder, textarea::placeholder { color: var(--fg-3); }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: rgb(255 255 255 / 0.55); background-color: var(--card-2); }
select {
  width: auto; min-width: 150px; cursor: pointer; border-radius: 999px; padding: 9px 44px 9px 16px;
  appearance: none; -webkit-appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
}
select:focus { background-color: var(--card-2); }
select option { background: #111; }
.row input, .row select { width: auto; }
.row.wrap input { flex: 1; min-width: 180px; }
textarea.raw { min-height: 60vh; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; margin-bottom: 12px; }

/* buttons: white pill primary, outline pill secondary (Brainwave "New chat" / "Invite team") */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #fff;
  background: #fff; color: #000; border-radius: 999px; height: 44px; padding: 0 22px; font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease), opacity 0.2s; white-space: nowrap;
}
.btn:hover { background: #e9e9e9; color: #000; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.sm { height: 34px; padding: 0 15px; font-size: 13.5px; }
.btn.big { height: 50px; padding: 0 28px; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { border-color: rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.04); }
.btn.primary { background: #fff; color: #000; border-color: #fff; }
.btn.yellow { background: var(--yellow); color: #000; border-color: var(--yellow); }
.btn.yellow:hover { background: #ffe24d; border-color: #ffe24d; }
.btn.danger:hover { border-color: var(--red); color: var(--red); background: transparent; }
.topbar .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.btn .count { background: var(--yellow); color: #000; border-radius: 999px; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; margin-left: 2px; }
.icon { display: inline-grid; place-items: center; background: none; border: 1px solid transparent; color: var(--fg-2); border-radius: 9px; width: 32px; height: 32px; cursor: pointer; font-size: 14px; flex: none; }
.icon:hover:not(:disabled) { color: var(--fg); background: rgb(255 255 255 / 0.06); }
.icon:disabled { opacity: 0.25; cursor: default; }
.icon.danger:hover { color: var(--red); }

.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; color: var(--fg-2); margin-left: 6px; white-space: nowrap; }
.pill:first-child { margin-left: 0; }
.pill.yellow, .pill.s-new { color: var(--yellow); border-color: rgb(255 209 0 / 0.4); }
.pill.green, .pill.s-replied, .pill.s-shortlisted { color: var(--green); border-color: rgb(52 210 123 / 0.35); }
.pill.red, .pill.s-rejected { color: var(--red); border-color: rgb(255 90 90 / 0.35); }
.badge { background: var(--raise); color: var(--fg); border-radius: 999px; font-size: 11px; font-weight: 600; padding: 0 7px; line-height: 18px; }
.badge.yellow { background: var(--yellow); color: #000; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-left: 8px; vertical-align: middle; }

.alert { border: 1px solid rgb(255 209 0 / 0.3); background: rgb(255 209 0 / 0.05); border-radius: 14px; padding: 14px 18px; margin: 20px 0; color: rgb(255 255 255 / 0.85); }
.alert.err { border-color: rgb(255 90 90 / 0.4); background: rgb(255 90 90 / 0.06); color: #ffb3b3; }
.alert.ok { border-color: rgb(52 210 123 / 0.35); background: rgb(52 210 123 / 0.05); }
.alert a { text-decoration: underline; }
.hint { color: var(--fg-3); font-size: 13px; margin: 2px 0 8px; }
.empty { color: var(--fg-3); padding: 32px 8px; text-align: center; }
.spinner { width: 26px; height: 26px; border: 2px solid var(--line-2); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-code { font-family: ui-monospace, Menlo, monospace; font-size: 17px; background: #000; border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 10px; user-select: all; }

/* shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); }
.side-top { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 16px 0 18px; border-bottom: 1px solid var(--line); flex: none; }
.menu-btn { display: none; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 26px; width: auto; display: block; }
.logo-sub { color: var(--fg-2); font-size: 13.5px; border-left: 1px solid var(--line-2); padding-left: 12px; line-height: 18px; }
.side nav { flex: 1; overflow-y: auto; padding: 10px 10px; scrollbar-width: thin; }
.side nav a, .foot-link { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; color: rgb(255 255 255 / 0.86); font-size: 13.5px; }
.side nav a .ico, .foot-link .ico { width: 16px; height: 16px; }
.side nav a .ico, .foot-link .ico { color: rgb(255 255 255 / 0.8); }
.side nav a:hover, a.foot-link:hover { background: rgb(255 255 255 / 0.05); }
.side nav a.on, .foot-link.on { background: var(--raise); color: var(--fg); }
.side nav a.on .ico { color: var(--yellow); }
.nav-group { border-top: 1px solid var(--line); margin: 8px 0 0; padding-top: 8px; }
.nav-h { color: var(--fg-3); font-size: 12px; padding: 4px 10px 4px; }
.side-foot { border-top: 1px solid var(--line); padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 1px; flex: none; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(52 210 123 / 0.15); margin: 0 4px; flex: none; }
.foot-link.me { height: 44px; padding-right: 2px; margin-top: 2px; }
.me-text { display: flex; flex-direction: column; line-height: 1.25; }
.me-role { color: var(--fg-3); font-size: 11.5px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--raise); border: 1px solid var(--line-2); color: var(--fg); display: grid; place-items: center; font-weight: 500; font-size: 12px; flex: none; }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 3.2vw, 46px); background: rgb(0 0 0 / 0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.qs { position: relative; flex: 0 1 560px; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px 0 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); background: #000; transition: border-color 0.2s; }
.qs:focus-within { border-color: rgb(255 255 255 / 0.5); }
.qs input { border: 0; background: none; padding: 0; height: 100%; font-size: 15px; }
.qs input:focus { background: none; }
.qs kbd { font: 500 12px Inter, sans-serif; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 7px; }
.qs-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #0d0d0d; border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.6); }
.qs-menu button { width: 100%; display: grid; grid-template-columns: 18px auto 1fr; gap: 12px; align-items: center; text-align: left; background: none; border: 0; color: var(--fg); font: inherit; font-size: 14.5px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.qs-menu button.on { background: var(--raise); }
main { flex: 1; }
.page { max-width: 1240px; padding: clamp(40px, 6vw, 88px) clamp(16px, 3.2vw, 46px) 140px; }
.page.wide { max-width: 1520px; }

/* page header (Brainwave: icon + crumb, two-tone heading) */
.phead { margin-bottom: 40px; }
.crumb { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: 15px; margin-bottom: 18px; }
.crumb a:hover { color: var(--fg); }
.crumb .sep { color: var(--fg-3); }
.phead-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.phead-text { max-width: 900px; }
.lead { color: var(--fg-2); font-size: 16.5px; line-height: 1.55; margin: 18px 0 0; max-width: 640px; }
.date { color: var(--fg-2); font-size: 16px; margin-bottom: 22px; }
.hello { font-size: clamp(44px, 5.6vw, 84px); margin-bottom: 56px; }

/* stats strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 72px; }
.strip-cell { display: block; padding: 28px 28px 30px; border-left: 1px solid var(--line); transition: background 0.2s; }
.strip-cell:first-child { border-left: 0; padding-left: 0; }
a.strip-cell:hover { background: rgb(255 255 255 / 0.02); }
.strip-label { color: var(--fg-2); font-size: 14.5px; }
.strip-value { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 2.8vw, 42px); letter-spacing: -0.04em; line-height: 1.15; margin: 10px 0 6px; }
.strip-value.hot { color: var(--yellow); }
.strip-sub { color: var(--fg-2); font-size: 14.5px; }
.bar { height: 3px; background: var(--line-2); border-radius: 3px; margin: 8px 0 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: #fff; }

/* section head + capability cards */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.big-h2 { font-weight: 300; font-size: clamp(32px, 3.4vw, 50px); letter-spacing: -0.045em; line-height: 1.05; margin: 0; }
.sec-aside { max-width: 400px; margin: 0; font-size: 15.5px; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-bottom: 72px; }
.cap-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.caps .cap-card:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.cap-icon { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; transition: border-color 0.2s, color 0.2s; }
.cap-card:hover .cap-icon { border-color: var(--yellow); color: var(--yellow); }
.cap-title { font-family: var(--display); font-size: 21px; letter-spacing: -0.03em; }
.cap-desc { color: var(--fg-2); font-size: 14.5px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 18px; }
.card.narrow { max-width: 460px; }
.card.narrow .field { margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.feed li:last-child { border-bottom: 0; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--fg-2); font-weight: 400; font-size: 14px; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.off td { opacity: 0.45; }
.tbl select { min-width: 0; padding: 6px 38px 6px 12px; background-position: right 13px center; }

/* underline tabs (Brainwave Drive) */
.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin: -8px 0 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; color: var(--fg-2); font: inherit; font-size: 16px; padding: 0 0 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--fg); }
.tabs button.on { color: var(--fg); border-bottom-color: #fff; }

/* editor */
.field { display: block; margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field-label { font-size: 14px; margin-bottom: 8px; color: var(--fg-2); }
.field-label.mono { color: var(--fg-2); }
.req { color: var(--yellow); }
.field.block > .field-label { font-family: var(--display); font-size: 20px; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 14px; }
.obj.nested { border-left: 1px solid var(--line-2); padding-left: 18px; margin-top: 6px; }
.l10n { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l10n-col { position: relative; display: block; }
.l10n-col .lang { position: absolute; top: 11px; right: 12px; font-size: 11px; font-weight: 500; color: var(--fg-3); letter-spacing: 0.04em; pointer-events: none; }
.l10n-col input, .l10n-col textarea { padding-right: 46px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; padding: 0; border: 0; cursor: pointer; transition: background 0.2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s var(--ease); }
.switch input:checked { background: var(--yellow); }
.switch input:checked::after { transform: translateX(16px); background: #000; }
.switch span { color: var(--fg-2); font-size: 14px; }

.img-field { display: flex; gap: 16px; align-items: flex-start; }
.img-preview { width: 184px; aspect-ratio: 16/10; border-radius: 12px; background: #000 repeating-conic-gradient(#141414 0 25%, #0b0b0b 0 50%) 0 0/16px 16px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; flex: none; color: var(--fg-3); font-size: 12.5px; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-field.brand .img-preview img { object-fit: contain; padding: 12px; }
.img-actions { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.img-actions input { font-size: 13px; font-family: ui-monospace, Menlo, monospace; }

.list, .scalars { display: flex; flex-direction: column; gap: 8px; }
.list > .btn, .scalars > .btn, .scalars > select { align-self: flex-start; }
.item { border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.item.open { border-color: var(--line-2); }
.item-head { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; cursor: pointer; }
.item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-sub { color: var(--fg-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-body { padding: 20px 18px 20px; border-top: 1px solid var(--line); }
.tools { display: flex; gap: 2px; flex: none; }
.chev { color: var(--fg-3); width: 18px; text-align: center; flex: none; }
.thumb { width: 56px; height: 38px; border-radius: 8px; background: #000; overflow: hidden; flex: none; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.contain img { object-fit: contain; padding: 4px; }
.scalar { display: flex; gap: 8px; align-items: flex-start; }
.scalar-body { flex: 1; min-width: 0; }
.scalar.slug { align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 14px; background: var(--card-2); }
.num { color: var(--fg-2); font-family: var(--display); width: 22px; }

.table-list .search { max-width: 380px; border-radius: 999px; padding-left: 18px; }
.rows { margin-top: 16px; border-top: 1px solid var(--line); }
.trow { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: rgb(255 255 255 / 0.025); }
.trow:hover .chev { color: var(--fg); }

.savebar { position: sticky; bottom: 0; margin: 28px calc(-1 * clamp(16px, 3.2vw, 46px)) -140px; padding: 16px clamp(16px, 3.2vw, 46px); background: rgb(0 0 0 / 0.88); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; z-index: 5; }
.labels { display: grid; gap: 18px; }
.publish-form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.publish-form .field { width: 100%; max-width: 560px; }

/* inbox */
.inbox { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 18px; align-items: start; }
.inbox-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 220px); overflow-y: auto; }
.msg { text-align: left; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.msg:hover { border-color: var(--line-2); }
.msg.sel { border-color: rgb(255 255 255 / 0.6); background: var(--card-2); }
.msg strong { font-weight: 500; }
.msg.unread strong::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-right: 8px; vertical-align: middle; }
.msg .pill { align-self: flex-start; margin: 6px 0 0; }
.inbox-detail { position: sticky; top: 96px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 18px; margin: 18px 0 24px; }
.kv dt { color: var(--fg-2); text-transform: capitalize; font-size: 14px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.pre { white-space: pre-wrap; }
.kv a { text-decoration: underline; text-underline-offset: 3px; }

/* users & roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.role-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); }
.role-card p { margin: 10px 0 0; }
.role-pill { display: inline-block; font-size: 12.5px; border-radius: 999px; padding: 3px 11px; border: 1px solid var(--line-2); color: var(--fg); white-space: nowrap; }
.role-pill.r-super_admin { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 500; }
.role-pill.r-admin { border-color: rgb(255 255 255 / 0.5); }
.role-pill.r-editor { color: var(--fg-2); }
.card.flush { padding: 8px 24px; }
.tbl td.right { text-align: right; }
.row.end { justify-content: flex-end; }
.add-user { display: grid; grid-template-columns: 1fr 1.2fr auto auto; gap: 10px; }
.add-user select { border-radius: 12px; }
@media (max-width: 820px) { .roles, .add-user { grid-template-columns: 1fr; } }

/* row ⋯ menu */
.rowmenu { position: relative; display: inline-block; }
.rowmenu .icon { font-size: 18px; letter-spacing: 1px; border-color: var(--line); }
.rowmenu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; background: #0f0f0f; border: 1px solid var(--line-2); border-radius: 12px; padding: 5px; box-shadow: 0 18px 44px rgb(0 0 0 / 0.6); text-align: left; }
.rowmenu-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--fg); font: inherit; font-size: 14px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.rowmenu-pop button:hover { background: var(--raise); }
.rowmenu-pop button.danger { color: var(--red); }
.rowmenu-pop button.danger:hover { background: rgb(255 90 90 / 0.1); }
.flag { color: var(--yellow); }
.tbl td.right { width: 56px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 480px; padding: 44px 40px 36px; background: #000; border-color: var(--line-2); }
.login .logo { margin-bottom: 40px; }
.login .logo img { height: 40px; }
.login h1 { font-size: 40px; margin-bottom: 32px; }
.login .btn { width: 100%; margin-top: 8px; }

.toasts { position: fixed; right: 24px; bottom: 92px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: #fff; color: #000; padding: 12px 18px; border-radius: 14px; font-weight: 500; box-shadow: 0 16px 40px rgb(0 0 0 / 0.5); animation: up 0.25s var(--ease); }
.toast.err { background: var(--red); color: #fff; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1180px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip-cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .caps .cap-card:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .caps .cap-card:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .grid2, .inbox { grid-template-columns: 1fr; }
  .inbox-list { max-height: 46vh; }
  .inbox-detail { position: static; }
  .shell { grid-template-columns: 228px 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: sticky; height: auto; z-index: 20; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-top { height: 64px; border-bottom: 0; }
  .menu-btn { display: inline-grid; }
  .side nav, .side-foot { display: none; }
  .menu-open .side { height: 100vh; }
  .menu-open .side nav { display: block; }
  .menu-open .side-foot { display: flex; }
  .topbar { display: none; }
  .strip, .caps { grid-template-columns: 1fr; }
  .strip-cell, .caps .cap-card, .caps .cap-card:nth-child(2n) { border-left: 0 !important; padding-left: 0 !important; }
  .strip-cell + .strip-cell { border-top: 1px solid var(--line); }
  .l10n { grid-template-columns: 1fr; gap: 12px; }
  .img-field { flex-direction: column; }
  .img-preview { width: 100%; max-width: 340px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .tbl { display: block; overflow-x: auto; }
  .page { padding-top: 32px; }
}
