/* Nazar website: the extension's look (ext/ui/style.css), laid out for a full page and phones. */
body { min-height: 100vh; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot .brand-mark { width: 48px; height: 48px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.shell { max-width: 1240px; margin: 0 auto; padding: 24px 24px 64px; }
header.site { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
header.site .team { font-size: 13px; color: #cfd7ff; margin-top: 7px; }
header.site .who { font-size: 13px; color: #dfe5ff; }
nav.tabs { display: flex; gap: 4px; padding: 4px; background: var(--tint); border-radius: 12px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
nav.tabs a { height: 36px; display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 550; font-size: 14px; padding: 0 16px; border-radius: 9px; text-decoration: none; white-space: nowrap; }
nav.tabs a:hover { background: rgba(255,255,255,.7); color: var(--accent-hover); }
nav.tabs a.active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(31,61,184,.3); }
nav.tabs .count { margin-left: 6px; font-size: 11px; font-weight: 700; background: var(--red); color: #fff; border-radius: 999px; padding: 1px 7px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar > #find, .toolbar > #pfind { flex: 1; min-width: 220px; }
.toolbar .search { padding: 0; background: none; border: none; }
.toolbar .search .field { max-width: none; }
.toolbar select { height: 38px; font-weight: 550; max-width: 260px; }
.statusbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; }
.statusbar b { color: var(--ink); }
.statusbar .offline b { color: var(--red); }

/* Prices table: wide tables scroll sideways inside their card, never the page. */
.table-scroll { overflow-x: auto; }
.prices table { min-width: 100%; }
.prices col.c-product { width: 260px; }
.prices td.product { min-width: 220px; }
.prices td.product .name { font-weight: 600; line-height: 1.35; }
.prices td.product .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.prices td.product .bench { display: inline-flex; gap: 4px; margin-top: 5px; padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--accent-hover); background: var(--accent-soft); }
.prices td.cell { min-width: 140px; vertical-align: top; }
.prices td.cell.oos { background: #fff8f7; }
.prices th { white-space: nowrap; }
.prices .meta { flex-wrap: wrap; }

/* Sign-in pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .box { width: 100%; max-width: 420px; }
.auth .masthead { margin-bottom: 18px; }
.auth form { display: grid; gap: 14px; }
.auth label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.auth .alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.err-msg { color: var(--red); font-size: 13px; font-weight: 550; min-height: 18px; }
.ok-msg { color: var(--good); font-size: 13px; font-weight: 550; }

/* Changes */
.day-head { font-family: var(--display); font-weight: 700; font-size: 15px; margin: 18px 0 8px; color: var(--ink-2); }
.ev { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: none; }
.ev .when { font-size: 12px; color: var(--muted); width: 64px; flex: none; }
.ev .pf { width: 110px; flex: none; }
.ev .what { flex: 1; min-width: 0; }
.ev .what a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ev .what a:hover { text-decoration: underline; }
.ev .detail { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Products */
.prod-row { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.prod-row:last-child { border-bottom: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.chip a { color: var(--ink); text-decoration: none; }
.chip a:hover { text-decoration: underline; }
.chip .val { font-weight: 650; }
.chip .val.err { color: var(--red); font-weight: 600; }
.chip .val.none { color: var(--muted); font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.form-grid label, .field-label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.paste { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); border: 1px dashed #b6c3f2; border-radius: var(--radius-sm); padding: 6px 6px 6px 14px; }
.paste input { border: none; background: transparent; box-shadow: none !important; height: 36px; padding: 0; flex: 1; }
.paste span { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.listing-rows { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.listing-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 12px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.listing-row:last-child { border-bottom: none; }
.listing-row.filled { background: #fbfcff; }
.listing-row .extras { display: flex; gap: 8px; }
.listing-row .extras input { width: 130px; }
.listing-row a { font-size: 12px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Team */
.member { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: none; }
.member .who { flex: 1; }
.member .who b { display: block; font-weight: 600; }
.member .who span { font-size: 13px; color: var(--muted); }
.invite-link { display: flex; gap: 8px; align-items: center; }
.invite-link input { flex: 1; font: 13px ui-monospace, 'SF Mono', Menlo, monospace; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.settings-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check-row label { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; }
.check-row input { width: auto; height: auto; }

#history-root .hx-chart { min-height: 280px; }

@media (max-width: 720px) {
  .shell { padding: 12px 12px 48px; }
  header.site { gap: 10px; }
  header.site .brand-sub { display: none; }
  .prod-row { grid-template-columns: 1fr; gap: 10px; }
  .actions { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .listing-row { grid-template-columns: 1fr; gap: 6px; }
  /* The product name stays put while you swipe through the apps. */
  .prices col.c-product { width: 140px; }
  .prices td.product, .prices th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  .prices td.product { min-width: 140px; max-width: 140px; padding-left: 12px !important; }
  .prices td.product .thumb { display: none; }
  .prices td.product .name { font-size: 13px; }
  .prices td.cell { min-width: 118px; }
  .statusbar { font-size: 12px; }
}
