/* Visual polish, loaded after app.css and suite.css. Layout and behaviour are unchanged: this file only refines
   spacing, type, focus states and surfaces. Remove the <link> in index.html to go back to the plain look. */
:root {
  --bg: #0a111d; --bg-2: #0e1828; --panel: #121e31; --panel-2: #17253b; --line: #20304a; --line-2: #2b3f5e;
  --text: #e2e9f3; --muted: #8fa0b8; --faint: #62748f;
  --accent: #2fbf9f; --accent-2: #1f9a80; --accent-soft: rgba(47, 191, 159, .13);
  --radius: 10px; --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .18);
  --ring: 0 0 0 3px rgba(47, 191, 159, .28);
}
body { font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h2 { font-size: 15.5px; letter-spacing: -.005em; }
::selection { background: rgba(47, 191, 159, .35); }
* { scrollbar-width: thin; scrollbar-color: #2b3f5e transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #26374f; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #35507a; background-clip: padding-box; border: 2px solid transparent; }

/* sidebar */
#sidebar { width: 232px; background: linear-gradient(180deg, #0f1a2c, #0c1524); }
.brand { display: block; padding: 16px 14px 14px; }
.brand-logo { display: block; background: #fff; border-radius: 10px; padding: 9px 12px; box-shadow: var(--shadow); }
.brand-logo img { display: block; width: 100%; height: auto; }
.brand-name { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
#nav { padding: 10px 10px 8px; }
#nav a { padding: 8px 12px; border-radius: 8px; font-size: 14px; position: relative; transition: background .12s, color .12s; }
#nav a.active { background: var(--accent-soft); color: #58d8bb; }
#nav a.active::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--accent); }
#nav a.sub { padding: 6px 12px 6px 22px; font-size: 13.5px; }
#nav .nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 5px; }
#nav .nav-label:first-child { padding-top: 4px; }
.mode-pill { margin: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .02); transition: border-color .12s; }
.mode-pill:hover { border-color: var(--line-2); }

/* top bar and page */
#topbar { padding: 14px 28px; background: rgba(10, 17, 29, .88); backdrop-filter: blur(8px); }
#topbar h1 { font-size: 19px; letter-spacing: -.01em; }
#view { padding: 22px 28px 70px; max-width: 1380px; width: 100%; }
#back-btn { background: transparent; border-color: var(--line); color: var(--muted); border-radius: 8px; }
#back-btn:hover { color: var(--text); border-color: var(--line-2); }

/* surfaces */
.panel { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.panel > h2 { margin-bottom: 12px; }
.stat { border-radius: var(--radius); padding: 13px 15px; box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
.stat:hover { transform: translateY(-1px); }
.stat .n { font-size: 24px; } .stat .l { font-size: 12.5px; margin-top: 2px; }
.notice { border-radius: 8px; padding: 11px 14px; font-size: 13.5px; }
.banner-live, .banner-dry { border-radius: 8px; padding: 11px 14px; }

/* buttons */
button, .btn { border-radius: 8px; padding: 7px 14px; font-weight: 500; transition: background .12s, border-color .12s, color .12s, box-shadow .12s; }
button:hover:not(:disabled), .btn:hover { background: #1c2d47; border-color: #3a567f; }
button:focus-visible, a:focus-visible, .chip:focus-visible { outline: none; box-shadow: var(--ring); }
button.primary { background: linear-gradient(180deg, #37c9a9, #27ab8d); border-color: #27ab8d; color: #04231d; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 4px 14px rgba(47, 191, 159, .22); }
button.primary:hover:not(:disabled) { background: linear-gradient(180deg, #45d6b6, #2cb898); border-color: #2cb898; }
button.danger { background: rgba(226, 99, 92, .08); border-color: rgba(226, 99, 92, .45); color: #f3aaa5; }
button.danger:hover:not(:disabled) { background: rgba(226, 99, 92, .16); border-color: var(--bad); }
button.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .04); }
button.sm { padding: 4px 10px; border-radius: 7px; }
.seg { border-radius: 8px; } .chip { padding: 4px 12px; border-radius: 16px; transition: background .12s, border-color .12s, color .12s; }
.chip:hover { border-color: #3a567f; color: var(--text); }

/* form fields */
input, select, textarea { border-radius: 8px; padding: 8px 11px; background: #0c1626; transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: #3a567f; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #55677f; }
input[type=checkbox], input[type=radio] { box-shadow: none; }
label.f > span, .suite-field { font-size: 12.5px; color: var(--muted); font-weight: 500; }
label.f > span { margin-bottom: 5px; }
label.f > small { font-size: 12px; margin-top: 4px; }

/* tables */
table { font-size: 13.5px; }
th { padding: 10px 12px; font-size: 11px; letter-spacing: .07em; color: var(--faint); border-bottom-color: var(--line-2); }
td { padding: 10px 12px; }
tbody tr { transition: background .1s; } tbody tr:hover { background: rgba(47, 191, 159, .05); }
.badge { padding: 2px 9px; border-radius: 11px; font-weight: 500; }
.tabs button { padding: 9px 14px; font-weight: 500; } .tabs button:hover:not(:disabled) { background: transparent; color: var(--text); }
.item { padding: 11px 14px; } .kcol, .kcard { border-radius: 10px; }

/* dialogs and messages */
.overlay { background: rgba(4, 9, 17, .68); backdrop-filter: blur(3px); }
.modal { border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.modal header { padding: 16px 20px; } .modal .body { padding: 18px 20px; } .modal footer { padding: 13px 20px; }
.toast { border-radius: 10px; padding: 11px 14px; font-size: 13.5px; }

/* business suite pages */
.suite-hero { border-radius: 16px; border-color: #1f5a52; background: radial-gradient(1200px 300px at 0% 0%, rgba(47, 191, 159, .22), transparent 60%), linear-gradient(120deg, #123a37, #101d31 80%); box-shadow: var(--shadow); }
.suite-hero h2 { font-size: clamp(26px, 3.4vw, 40px); }
.suite-tiles a, .suite-boards a { border-radius: 12px; box-shadow: var(--shadow); transition: border-color .12s, transform .12s; }
.suite-tiles a:hover, .suite-boards a:hover { transform: translateY(-2px); }
.suite-tiles span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.suite-tiles strong { font-size: 27px; letter-spacing: -.01em; }
.suite-boards b { color: var(--accent); }
.suite-form { gap: 14px; } .suite-form h2 { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.suite-form h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.suite-line { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .015); }
.suite-actions { gap: 8px; margin-bottom: 16px; }
.suite-actions button.danger { margin-left: auto; }
.suite-pdf { border-radius: 12px; box-shadow: var(--shadow); }
.suite-table { margin: 6px 0 0; }
.suite-lang { border-radius: 9px; background: rgba(0, 0, 0, .18); }

@media (max-width: 980px) { #view { padding: 16px 14px 60px; } #topbar { padding: 10px 14px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- look taken from the design concept: menu icons, filled active item, icon cards, document type badges ---- */
:root {
  --i-grid: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7' rx='1.5'/><rect x='14' y='3' width='7' height='7' rx='1.5'/><rect x='3' y='14' width='7' height='7' rx='1.5'/><rect x='14' y='14' width='7' height='7' rx='1.5'/></svg>");
  --i-users: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='8' r='3.5'/><path d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><path d='M16 4.6a3.5 3.5 0 0 1 0 6.8'/><path d='M18 14.3c2.2.7 3.5 2.6 3.5 5.7'/></svg>");
  --i-file: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/><path d='M14 3v5h5'/><path d='M9 13h6M9 17h6'/></svg>");
  --i-invoice: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/><path d='M14 3v5h5'/><circle cx='12' cy='15' r='2.5'/></svg>");
  --i-receipt: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/><path d='M9 8h6M9 12h6'/></svg>");
  --i-megaphone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10v4l11 5V5z'/><path d='M17.5 8.5a5 5 0 0 1 0 7'/><path d='M6 15.5V19h3v-2.2'/></svg>");
  --i-sliders: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12'/><circle cx='16' cy='6' r='2'/><circle cx='10' cy='12' r='2'/><circle cx='18' cy='18' r='2'/></svg>");
  --i-help: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.4-1 1-1 1.7'/><path d='M12 17h.01'/></svg>");
  --i-list: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01'/></svg>");
  --i-clock: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
  --i-calendar: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M3 10h18M8 3v4M16 3v4M9 15l2 2 4-4'/></svg>");
  --i-mail: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>");
}
#nav a { justify-content: flex-start; gap: 11px; }
#nav a[data-r]::before { content: ""; position: static; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 0; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; opacity: .9; }
#nav a.sub::before { display: none; }
#nav a.active { background: linear-gradient(180deg, #2fae6a, #24955a); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(36, 149, 90, .28); }
#nav a.active:hover { background: linear-gradient(180deg, #35b872, #279d5f); color: #fff; }
#nav a.sub.active { background: var(--accent-soft); color: #58d8bb; box-shadow: none; }
#nav a[data-r="dashboard"] { --icon: var(--i-grid); } #nav a[data-r="customers"] { --icon: var(--i-users); }
#nav a[data-r="quotations"] { --icon: var(--i-file); } #nav a[data-r="invoices"] { --icon: var(--i-invoice); }
#nav a[data-r="receipts"] { --icon: var(--i-receipt); } #nav a[data-r="sales"] { --icon: var(--i-megaphone); }
#nav a[data-r="settings"] { --icon: var(--i-sliders); } #nav a[data-r="guide"] { --icon: var(--i-help); } #nav a[data-r="logs"] { --icon: var(--i-list); }

.suite-tiles { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.suite-tiles a { position: relative; gap: 4px; padding: 16px 16px 16px 76px; min-height: 78px; align-content: center; border-left: 3px solid var(--tone, var(--accent)); overflow: hidden; }
.suite-tiles a::before { content: ""; position: absolute; left: 16px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 12px; background: var(--tone, var(--accent)); opacity: .16; }
.suite-tiles a::after { content: ""; position: absolute; left: 27px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: var(--tone, var(--accent));
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.suite-tiles a:nth-child(1) { --icon: var(--i-users); --tone: #3fcf8e; } .suite-tiles a:nth-child(2) { --icon: var(--i-invoice); --tone: #37c4d6; }
.suite-tiles a:nth-child(3) { --icon: var(--i-clock); --tone: #5aa7f2; } .suite-tiles a:nth-child(4) { --icon: var(--i-calendar); --tone: #3fcf8e; }
.suite-tiles span { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }
.suite-tiles strong { font-size: 26px; line-height: 1.15; }

.suite-boards { gap: 14px; }
.suite-boards a { padding: 62px 40px 20px 20px; overflow: hidden; background: linear-gradient(160deg, var(--panel), var(--panel) 55%, color-mix(in srgb, var(--tone, var(--accent)) 26%, var(--panel))); }
.suite-boards a::before { content: ""; position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; background: var(--tone, var(--accent));
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.suite-boards a:nth-child(1) { --icon: var(--i-megaphone); --tone: #3fcf8e; } .suite-boards a:nth-child(2) { --icon: var(--i-users); --tone: #5aa7f2; }
.suite-boards a:nth-child(3) { --icon: var(--i-file); --tone: #3fcf8e; } .suite-boards a:nth-child(4) { --icon: var(--i-mail); --tone: #5aa7f2; }
.suite-boards b { top: 50%; right: 16px; margin-top: -9px; color: var(--text); opacity: .7; font-weight: 400; }

.doc-type { display: inline-block; padding: 2px 11px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.doc-type.quotation { background: rgba(63, 207, 142, .16); color: #5fe0a4; } .doc-type.invoice { background: rgba(90, 167, 242, .18); color: #8cc3fa; }
.doc-type.receipt { background: rgba(55, 196, 214, .16); color: #6fdbe9; }
.suite-table td:first-child a { font-weight: 600; }

/* ---- the concept look on every screen ---- */
:root { --accent: #3ccf8e; --accent-2: #27a06a; --accent-soft: rgba(60, 207, 142, .13); --ring: 0 0 0 3px rgba(60, 207, 142, .28); }
a { color: #4fd79b; }
#topbar h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
#topbar { padding-top: 16px; padding-bottom: 16px; }
#topbar-actions { align-items: center; gap: 10px; }
#topbar-actions .suite-lang { background: transparent; border-color: var(--line-2); }
#topbar-actions .suite-lang button.on { background: var(--accent-soft); color: var(--accent); }

button.primary { background: linear-gradient(180deg, #33b871, #259a5c); border-color: #259a5c; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 4px 14px rgba(37, 154, 92, .28); }
button.primary:hover:not(:disabled) { background: linear-gradient(180deg, #3cc47c, #29a564); border-color: #29a564; }
button.primary.plus::before { content: "+"; display: inline-block; margin-right: 7px; font-weight: 700; font-size: 1.1em; line-height: 1; }
button.warn { box-shadow: 0 4px 14px rgba(224, 168, 58, .22); }
.chip.on, .seg button.on { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent); }

/* welcome row on Overview */
.suite-welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 2px 2px 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.suite-welcome h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.suite-welcome p { margin: 4px 0 0; color: var(--muted); }
.suite-welcome img { height: 46px; width: auto; background: #fff; border-radius: 10px; padding: 7px 12px; }

/* panels: titled cards with a small green marker, like "Recent documents" in the concept */
.panel { background: linear-gradient(180deg, #13203a, #111c30); border-color: #1f3050; border-radius: 14px; }
.panel > h2, .panel > .spread > h2, .suite-form > h2 { font-size: 17px; font-weight: 700; }
.panel > h2::before, .panel > .spread > h2::before { content: ""; display: inline-block; width: 4px; height: 16px; border-radius: 3px; background: var(--accent); margin-right: 10px; vertical-align: -2px; }
.panel > h2 { justify-content: flex-start; }
.panel.flush > h2 { padding: 16px 20px 4px; }

/* tables: a soft header band and calm rows */
th { background: #182742; color: #c5d1e2; font-size: 12px; letter-spacing: .02em; text-transform: none; font-weight: 600; padding: 11px 14px; border-bottom: 0; }
thead th:first-child { border-radius: 9px 0 0 9px; } thead th:last-child { border-radius: 0 9px 9px 0; }
.panel.flush thead th:first-child, .panel.flush thead th:last-child { border-radius: 0; }
td { padding: 12px 14px; border-bottom-color: #1c2b46; }
tbody tr:hover { background: rgba(60, 207, 142, .06); }
td a { font-weight: 600; }

/* badges as filled pills */
.badge { border: 0; background: rgba(143, 160, 184, .16); color: #b7c4d8; padding: 3px 11px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge.ok { background: rgba(63, 207, 142, .16); color: #5fe0a4; } .badge.warn { background: rgba(224, 168, 58, .17); color: #f0c269; }
.badge.bad { background: rgba(226, 99, 92, .17); color: #f3a09a; } .badge.info { background: rgba(90, 167, 242, .18); color: #8cc3fa; }
.badge.accent { background: rgba(60, 207, 142, .16); color: #5fe0a4; } .badge.violet { background: rgba(155, 138, 230, .2); color: #bdb1f3; }

/* number cards on NCS Leads and the other dashboards */
.stats { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.stat { border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 16px; background: linear-gradient(180deg, #13203a, #111c30); }
.stat:nth-child(3n+2) { border-left-color: #37c4d6; } .stat:nth-child(3n) { border-left-color: #5aa7f2; }
.stat.attn { border-left-color: var(--warn); } .stat.bad { border-left-color: var(--bad); } .stat.good { border-left-color: var(--ok); }
.stat .n { font-size: 26px; font-weight: 700; } .stat .l { font-size: 13px; }

/* tabs as pills */
.tabs { border-bottom: 0; gap: 6px; margin-bottom: 16px; }
.tabs button { border: 1px solid var(--line); border-radius: 9px; padding: 8px 15px; background: transparent; }
.tabs button:hover:not(:disabled) { border-color: var(--line-2); }
.tabs button.on { background: linear-gradient(180deg, #2fae6a, #24955a); border-color: #24955a; color: #fff; font-weight: 600; }

/* lists, notices, boards */
.item.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.notice { background: #101b2e; border-color: #1f3050; border-left-width: 3px; border-radius: 10px; }
.banner-dry { background: rgba(90, 167, 242, .1); border-color: rgba(90, 167, 242, .4); border-radius: 10px; }
.banner-live { border-radius: 10px; }
.kcol { background: #0f1a2c; border-color: #1f3050; border-radius: 12px; } .kcol h4 { text-transform: none; letter-spacing: 0; font-size: 13px; color: #c5d1e2; padding: 11px 12px; }
.kcard { background: #15233c; border-color: #22365a; }
.kv dt { font-weight: 500; }
.progress > span, .bar > span { background: linear-gradient(90deg, #2fae6a, #3ccf8e); }
.suite-line { background: #101b2e; border-color: #1f3050; border-radius: 12px; }
.modal { background: linear-gradient(180deg, #14213b, #111c30); border-color: #26395c; }
.modal header h2 { font-size: 17px; font-weight: 700; }

/* ---- sign-in (server mode) ---- */
.signin { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 50% 0%, rgba(60, 207, 142, .16), transparent 60%), #0a111d; }
.signin-card { width: min(380px, 100%); display: grid; gap: 14px; padding: 28px 24px; border: 1px solid #1f3050; border-radius: 18px; background: linear-gradient(180deg, #14213b, #111c30); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); text-align: center; }
.signin-card img { width: 190px; max-width: 80%; margin: 0 auto 4px; background: #fff; border-radius: 12px; padding: 10px 14px; }
.signin-card h2 { font-size: 20px; } .signin-card p { margin: -8px 0 4px; }
.signin-card input, .signin-card button { padding: 12px 14px; font-size: 16px; }
.signin-msg { min-height: 20px; color: #f3a09a; font-size: 13.5px; }
.signout { margin: 0 12px 12px; text-align: left; }

/* ---- phones and small tablets ---- */
@media (max-width: 980px) {
  body { font-size: 15px; }
  #sidebar { width: min(290px, 86vw); padding-top: env(safe-area-inset-top); }
  #topbar { position: sticky; top: 0; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
  #topbar h1 { font-size: 19px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #topbar-actions { flex: 1 1 100%; }
  #menu-btn { font-size: 22px; padding: 4px 8px; }
  #view { padding: 14px 12px calc(70px + env(safe-area-inset-bottom)); }
  input, select, textarea { font-size: 16px; padding: 10px 12px; }         /* 16px stops phones zooming in on focus */
  button, .btn { padding: 10px 14px; min-height: 42px; } button.sm { min-height: 34px; padding: 6px 10px; } button.ghost { min-height: 0; }
  .panel { padding: 14px; border-radius: 12px; } .panel.flush { padding: 0; }
  .suite-table, .table-wrap, .panel.flush { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 560px; } .modal table, .kv table { min-width: 0; }
  .suite-welcome img { display: none; } .suite-welcome h2 { font-size: 19px; }
  .suite-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .suite-tiles a { padding: 12px 10px 12px 60px; min-height: 70px; } .suite-tiles a::before { left: 10px; width: 40px; height: 40px; margin-top: -20px; }
  .suite-tiles a::after { left: 19px; } .suite-tiles strong { font-size: 20px; overflow-wrap: anywhere; }
  .suite-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .suite-boards a { padding: 54px 30px 14px 14px; } .suite-boards a::before { left: 14px; top: 14px; }
  .suite-boards span { display: none; }
  .suite-line { grid-template-columns: 1fr 1fr; } .suite-line > :first-child, .suite-line > :nth-child(2) { grid-column: 1 / -1; }
  .suite-actions button { flex: 1 1 46%; } .suite-actions button.danger { margin-left: 0; }
  .suite-pdf { height: 72vh; min-height: 420px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .tabs button { flex: 0 0 auto; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .overlay { padding: 12px; place-items: end center; } .modal { border-radius: 16px 16px 12px 12px; } .modal .body { max-height: 66vh; }
  .modal footer button { flex: 1 1 auto; }
  #toasts { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
  .kcol { flex-basis: 78vw; }
}
@media (max-width: 420px) { .suite-boards { grid-template-columns: minmax(0, 1fr); } .suite-boards span { display: block; } .suite-lang button { padding: 6px 9px; } }
.suite-count { font-size: 15px; color: var(--muted); } .suite-count strong { font-size: 26px; font-weight: 700; color: var(--text); margin-right: 2px; }
