:root {
  --primary: #0020FF;
  --primary-dark: #001ACC;
  --accent: #D1F24D;
  --accent-dark: #A8C93A;
  --ink: #1A183A;
  --ink-2: #3A3860;
  --body: #222222;
  --muted: #7A7A7A;
  --muted-2: #A3A3B8;
  --bg: #F8F8FA;
  --bg-2: #F2F2F6;
  --surface: #FFFFFF;
  --border: #E7E9F4;
  --border-strong: #D5D8EC;
  --success: #1F9D55;
  --success-bg: #E6F7EC;
  --warning: #B45309;
  --warning-bg: #FFF8E6;
  --danger: #D43C3C;
  --danger-bg: #FDECEC;
  --info-bg: #ECEFFF;

  --radius: 0px;
  --pad-card: 28px;
  --pad-y: 14px;
  --pad-x: 18px;
  --row-y: 14px;
  --gap: 16px;

  --shadow-sm: 0 1px 2px rgba(26,24,58,.04), 0 2px 6px rgba(26,24,58,.04);
  --shadow-md: 0 4px 12px rgba(26,24,58,.06), 0 12px 32px rgba(26,24,58,.06);
  --shadow-brand: 0 8px 24px rgba(0,32,255,.12);

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
[data-theme="dark"] {
  --ink: #F2F2F8;
  --ink-2: #D5D8EC;
  --body: #E7E9F4;
  --muted: #8A8CA8;
  --muted-2: #6A6C88;
  --bg: #0D0B24;
  --bg-2: #141233;
  --surface: #1A183A;
  --border: #2A284A;
  --border-strong: #3A3860;
  --primary: #5470FF;
  --primary-dark: #6F86FF;
  --success-bg: rgba(31,157,85,.15);
  --danger-bg: rgba(212,60,60,.18);
  --warning-bg: rgba(180,83,9,.2);
  --info-bg: rgba(84,112,255,.18);
}
[data-palette="calm"] {
  --primary: #3B4CCA;
  --primary-dark: #2B3AA8;
  --accent: #CFE0D8;
  --ink: #1A1D2E;
}
[data-density="compact"] {
  --pad-card: 18px;
  --pad-y: 10px;
  --pad-x: 14px;
  --row-y: 10px;
  --gap: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--font); color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--ink); margin: 0; letter-spacing: -0.01em; }

/* ============ layout shell ============ */
.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }

/* topbar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-size: 17px; }
.brand .logo { width: 28px; height: 28px; background: var(--primary); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; position: relative; }
.brand .logo::after { content:''; position: absolute; top:0; right:-5px; width: 5px; height: 5px; background: var(--accent); }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; margin-left: 8px; border-left: 1px solid var(--border); padding-left: 10px; }
.topnav { display: flex; gap: 2px; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--border); }
.topnav button { background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; position: relative; transition: color .12s; }
.topnav button:hover { color: var(--ink); }
.topnav button.active { color: var(--primary); }
.topnav button.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -14px; height: 2px; background: var(--primary); }
@media (max-width: 820px) { .topnav { display: none; } }
.top-right { display: flex; align-items: center; gap: 12px; }
.bell { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--ink); position: relative; }
.bell:hover { border-color: var(--primary); color: var(--primary); }
.bell .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--danger); border: 2px solid var(--surface); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--border); background: var(--surface); }
.user-chip:hover { border-color: var(--primary); }
.avatar { width: 28px; height: 28px; background: linear-gradient(135deg, var(--ink), var(--primary)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.avatar.xl { width: 56px; height: 56px; font-size: 18px; }
.user-chip .name { font-weight: 600; font-size: 13px; color: var(--ink); }

/* user dropdown menu */
.user-menu { position: relative; }
.user-chip.open { border-color: var(--primary); }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 260px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); z-index: 50; padding: 6px; animation: fadeIn .12s ease; }
.user-dropdown .ud-head { display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px; }
.user-dropdown .ud-id { min-width: 0; }
.user-dropdown .ud-name { font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown .ud-mail { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown .ud-sep { height: 1px; background: var(--border); margin: 6px 0; }
.user-dropdown .ud-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; background: transparent; border: none; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; transition: background .1s; }
.user-dropdown .ud-item svg { color: var(--muted); flex-shrink: 0; }
.user-dropdown .ud-item:hover { background: var(--bg-2); }
.user-dropdown .ud-item:hover svg { color: var(--primary); }
.user-dropdown .ud-item.danger { color: var(--danger); }
.user-dropdown .ud-item.danger svg { color: var(--danger); }
.user-dropdown .ud-item.danger:hover { background: var(--danger-bg); }

/* main content */
.main { flex: 1; padding: 24px 24px 80px; max-width: 1320px; width: 100%; margin: 0 auto; }

/* announcement bar */
.announce-bar { background: var(--ink); color: #fff; padding: 11px 24px; display: flex; align-items: center; gap: 14px; position: relative; z-index: 25; }
.announce-ic { width: 30px; height: 30px; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.announce-txt { flex: 1; font-size: 13px; line-height: 1.45; }
.announce-txt strong { color: var(--accent); font-weight: 700; }
.announce-cta { color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); transition: background .12s; }
.announce-cta:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.announce-x { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: none; color: rgba(255,255,255,.7); cursor: pointer; flex-shrink: 0; }
.announce-x:hover { color: #fff; }
@media (max-width: 680px) {
  .announce-bar { flex-wrap: wrap; gap: 10px; }
  .announce-txt { flex-basis: 100%; }
}

/* team card */
.team { background: var(--surface); border: 1px solid var(--border); padding: 24px; display: flex; align-items: flex-start; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.team-icon { width: 56px; height: 56px; background: var(--primary); color: #fff; display: grid; place-items: center; flex-shrink: 0; position: relative; }
.team-icon::after { content:''; position: absolute; top: 0; right: -6px; width: 6px; height: 6px; background: var(--accent); }
.team-info { flex: 1; min-width: 240px; }
.team-name { font-weight: 700; color: var(--ink); font-size: 20px; line-height: 1.2; margin-bottom: 4px; }
.team-url { color: var(--primary); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.team-status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: var(--success-bg); color: var(--success); font-size: 12px; font-weight: 600; }
.team-status .pulse { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,85,.5); } 70% { box-shadow: 0 0 0 8px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }
.team-members { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); width: 100%; flex-wrap: wrap; }
.team-members-label { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; }
.member { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: var(--bg); font-size: 12px; font-weight: 500; color: var(--ink); }
.member .avatar { width: 22px; height: 22px; font-size: 10px; }

.team-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: var(--pad-y) var(--pad-x); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; border: 1px solid transparent; background: var(--surface); color: var(--ink); cursor: pointer; transition: all .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.accent { background: var(--accent); color: var(--ink); }
.btn.accent:hover { background: var(--accent-dark); }
.btn.ghost { border-color: var(--border); background: var(--surface); color: var(--ink); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { background: #B73030; }
.btn.danger-ghost { border-color: var(--danger); color: var(--danger); background: var(--surface); }
.btn.danger-ghost:hover { background: var(--danger-bg); }
.btn.sm { padding: 8px 12px; font-size: 12px; }
.btn.lg { padding: 16px 24px; font-size: 14px; }
.btn.block { width: 100%; justify-content: center; }

/* toolbar */
.toolbar { background: var(--surface); border: 1px solid var(--border); padding: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 0; border-bottom: none; }
.search { position: relative; flex: 1; min-width: 200px; }
.search input { width: 100%; padding: 10px 14px 10px 36px; border: 1px solid var(--border); background: var(--bg); color: var(--body); font-family: inherit; font-size: 13px; }
.search input:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--muted); }
.select { padding: 10px 14px; border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 13px; color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.select:hover { border-color: var(--primary); }
.select svg { width: 14px; height: 14px; color: var(--muted); }

/* table */
.tickets { background: var(--surface); border: 1px solid var(--border); }
.tr { display: grid; grid-template-columns: minmax(0,2.2fr) 170px 140px 110px 110px 40px; gap: 14px; padding: var(--row-y) 18px; align-items: center; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .12s; }
.tr:last-child { border-bottom: none; }
.tr.head { cursor: default; background: var(--bg-2); border-bottom: 1px solid var(--border-strong); padding-top: 12px; padding-bottom: 12px; }
.tr.head > div { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.tr:not(.head):hover { background: var(--bg-2); }
.tr.active { background: var(--info-bg); }
.tr .subj { font-weight: 600; color: var(--ink); font-size: 14px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tr .subj .tid { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--bg); padding: 2px 6px; flex-shrink: 0; }
.tr .subj .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .author { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.tr .when { font-size: 12px; color: var(--muted); }
.tr .arrow { color: var(--muted); justify-self: end; }
.tr:hover .arrow { color: var(--primary); }

.pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.pagination-btns { display: flex; gap: 6px; }

/* ticket cards — wariant B (karty z paskiem priorytetu) */
.ticket-cards { display: grid; gap: 10px; }
.ticket-card { display: grid; grid-template-columns: 4px 1fr auto; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .08s; overflow: hidden; }
.ticket-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.ticket-card:active { transform: translateY(1px); }
.ticket-card .prio-bar { background: var(--muted-2); }
.ticket-card.prio-urgent .prio-bar { background: var(--danger); }
.ticket-card.prio-high .prio-bar { background: var(--warning); }
.ticket-card.prio-medium .prio-bar { background: var(--primary); }
.ticket-card.prio-low .prio-bar { background: var(--muted-2); }
.ticket-card .tc-main { padding: 14px 16px; min-width: 0; }
.ticket-card .tc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.ticket-card .tc-id { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.ticket-card .tc-prio { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.ticket-card.prio-urgent .tc-prio { color: var(--danger); }
.ticket-card.prio-high .tc-prio { color: var(--warning); }
.ticket-card.prio-medium .tc-prio { color: var(--primary); }
.ticket-card.prio-low .tc-prio { color: var(--muted); }
.ticket-card .tc-subj { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; }
.ticket-card .tc-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ticket-card .tc-meta .av { width: 20px; height: 20px; background: linear-gradient(135deg, var(--ink), var(--primary)); color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.ticket-card .tc-meta .sep { color: var(--border-strong); }
.ticket-card .tc-side { padding: 14px 16px; display: grid; gap: 6px; align-content: center; justify-items: end; border-left: 1px solid var(--border); min-width: 150px; }
.ticket-card .tc-side .badge { justify-content: center; min-width: 104px; }
@media (max-width: 680px) {
  .ticket-card { grid-template-columns: 4px 1fr; }
  .ticket-card .tc-side { border-left: none; border-top: 1px solid var(--border); justify-items: start; grid-column: 2; padding-top: 0; grid-auto-flow: column; gap: 8px; }
}

/* status badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge .d { width: 6px; height: 6px; border-radius: 50%; }
.badge.open { background: var(--info-bg); color: var(--primary); }
.badge.open .d { background: var(--primary); }
.badge.pending { background: var(--warning-bg); color: var(--warning); }
.badge.pending .d { background: var(--warning); }
.badge.resolved { background: var(--success-bg); color: var(--success); }
.badge.resolved .d { background: var(--success); }
.badge.closed { background: var(--bg-2); color: var(--muted); }
.badge.closed .d { background: var(--muted); }
.badge.new { background: #ECEFFF; color: var(--primary); text-transform: none; letter-spacing: 0; font-weight: 600; }
.badge.answered { background: var(--bg-2); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.badge.prio-low { background: var(--bg-2); color: var(--muted); }
.badge.prio-medium { background: var(--info-bg); color: var(--primary); }
.badge.prio-high { background: var(--warning-bg); color: var(--warning); }
.badge.prio-urgent { background: var(--danger-bg); color: var(--danger); }

/* section heading row */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.page-title { display: flex; align-items: center; gap: 14px; }
.page-title h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.page-title .plus { width: 32px; height: 32px; background: var(--accent); color: var(--ink); display: grid; place-items: center; }

/* breadcrumbs */
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs svg { width: 12px; height: 12px; }

/* form */
.form-card { background: var(--surface); border: 1px solid var(--border); }
.form-head { background: linear-gradient(120deg, var(--ink) 0%, var(--primary) 100%); color: #fff; padding: 20px 24px; display: flex; gap: 14px; align-items: center; }
.form-head .icon { width: 36px; height: 36px; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.form-head h2 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.form-head p { margin: 0; font-size: 13px; opacity: .85; }
.form-body { padding: 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.field label svg { width: 14px; height: 14px; color: var(--primary); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"], .field textarea, .field select {
  padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); color: var(--body); font-family: inherit; font-size: 14px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,32,255,.1); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--danger); display: flex; align-items: center; gap: 6px; }
.field .err svg { width: 12px; height: 12px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); background: var(--danger-bg); }

/* editor mock */
.editor { border: 1px solid var(--border); background: var(--surface); }
.editor.focused { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,32,255,.1); }
.editor-tools { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: var(--bg-2); flex-wrap: wrap; }
.etool { width: 28px; height: 28px; display: grid; place-items: center; background: transparent; border: none; color: var(--ink); }
.etool:hover { background: var(--surface); color: var(--primary); }
.etool.divider { width: 1px; background: var(--border); margin: 4px 3px; }
.editor-area { padding: 14px; min-height: 160px; font-size: 14px; line-height: 1.6; color: var(--body); outline: none; }
.editor-area:empty::before { content: attr(data-placeholder); color: var(--muted-2); }
.editor-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-top: 1px solid var(--border); background: var(--bg-2); font-size: 11px; color: var(--muted); }

/* dropzone */
.dropzone { border: 2px dashed var(--border-strong); background: var(--bg); padding: 28px; text-align: center; transition: all .2s; position: relative; }
.dropzone.active { border-color: var(--primary); background: var(--info-bg); border-style: solid; }
.dropzone.invalid { border-color: var(--danger); background: var(--danger-bg); }
.dropzone .icon { width: 48px; height: 48px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; margin: 0 auto 12px; color: var(--primary); }
.dropzone h4 { font-size: 15px; margin-bottom: 4px; }
.dropzone p { margin: 0; font-size: 12px; color: var(--muted); }

.attachments-list { display: grid; gap: 8px; margin-top: 14px; }
.att-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); }
.att-item.uploading { background: var(--info-bg); }
.att-item.error { background: var(--danger-bg); border-color: var(--danger); }
.att-preview { width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase; overflow: hidden; }
.att-preview img { width: 100%; height: 100%; object-fit: cover; }
.att-info { min-width: 0; }
.att-name { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-meta { font-size: 11px; color: var(--muted); }
.att-bar { height: 3px; background: var(--border); margin-top: 4px; overflow: hidden; }
.att-bar > span { display: block; height: 100%; background: var(--primary); transition: width .2s; }
.att-item.error .att-bar > span { background: var(--danger); }
.att-actions { display: flex; gap: 4px; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; background: transparent; border: none; color: var(--muted); }
.icon-btn:hover { color: var(--primary); background: var(--bg-2); }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-bg); }

/* toggles */
.switch-row { display: flex; gap: 16px; align-items: center; padding: 14px 18px; background: var(--bg-2); border: 1px solid var(--border); }
.segmented { display: inline-flex; border: 1px solid var(--border); background: var(--surface); padding: 3px; gap: 2px; }
.segmented button { padding: 8px 14px; border: none; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.segmented button.active { background: var(--ink); color: #fff; }

/* ticket thread */
.ticket-head { background: var(--surface); border: 1px solid var(--border); padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.ticket-head .meta-col { flex: 1; min-width: 280px; }
.ticket-head h2 { font-size: 22px; margin-bottom: 8px; }
.ticket-meta-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.ticket-meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.ticket-meta-row svg { width: 12px; height: 12px; }
.ticket-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.thread { background: var(--surface); border: 1px solid var(--border); }
.msg { padding: 22px 24px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.msg:last-child { border-bottom: none; }
.msg.agent { background: var(--bg-2); }
.msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.msg-author { font-weight: 700; font-size: 14px; color: var(--ink); }
.msg-role { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-left: 8px; }
.msg-role.agent { color: var(--accent-dark); }
.msg-time { font-size: 12px; color: var(--muted); }
.msg-body { font-size: 14px; line-height: 1.65; color: var(--body); }
.msg-body p { margin: 0 0 10px; }
.msg-body p:last-child { margin-bottom: 0; }
.msg-attachments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.msg-att { width: 92px; padding: 8px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.msg.agent .msg-att { background: var(--bg); }
.msg-att .thumb { aspect-ratio: 1; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 600; margin-bottom: 6px; overflow: hidden; position: relative; cursor: zoom-in; }
.msg-att .thumb img { width: 100%; height: 100%; object-fit: cover; }
.msg-att .n { font-size: 10px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.reply-box { padding: 18px 24px; border-top: 2px solid var(--border); background: var(--bg-2); }

/* monitoring */
.mon-intro { background: var(--info-bg); border: 1px solid var(--border); border-left: 3px solid var(--primary); padding: 14px 18px; margin-bottom: 16px; font-size: 13px; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.mon-intro svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.site-card { background: var(--surface); border: 1px solid var(--border); margin-bottom: 16px; }
.site-head { background: var(--ink); color: #fff; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-head.up { background: linear-gradient(100deg, var(--ink) 0%, var(--primary) 100%); }
.site-head.down { background: linear-gradient(100deg, #2A0B0B 0%, var(--danger) 100%); }
.site-head .title { display: flex; align-items: center; gap: 12px; }
.site-head .title .i { width: 36px; height: 36px; background: rgba(255,255,255,.15); display: grid; place-items: center; }
.site-head h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.site-head a { color: #fff; opacity: .8; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.site-head a:hover { opacity: 1; }
.site-status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-status-chip.online { background: var(--accent); color: var(--ink); }
.site-status-chip.offline { background: #fff; color: var(--danger); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px; gap: 14px; }
.stat-tile { background: var(--bg); border: 1px solid var(--border); padding: 16px; position: relative; }
.stat-tile .k { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.stat-tile .v { font-size: 28px; font-weight: 700; color: var(--ink); margin: 6px 0 0; letter-spacing: -0.02em; line-height: 1; }
.stat-tile .v .unit { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat-tile .sub { font-size: 11px; color: var(--muted); margin-top: 6px; }
.stat-tile.ok .k svg { color: var(--success); }
.stat-tile.warn .k svg { color: var(--warning); }
.stat-tile.info .k svg { color: var(--primary); }
.stat-tile.danger .k svg { color: var(--danger); }
.stat-tile .accent-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.stat-tile.warn .accent-bar { background: var(--warning); }
.stat-tile.ok .accent-bar { background: var(--success); }

/* uptime bars */
.uptime-section { padding: 18px 18px 22px; border-top: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-head h4 { font-size: 13px; font-weight: 700; color: var(--ink); }
.section-head .leg { font-size: 11px; color: var(--muted); display: flex; gap: 12px; }
.section-head .leg span { display: inline-flex; align-items: center; gap: 4px; }
.section-head .leg i { width: 10px; height: 10px; display: inline-block; }
.bar-track { display: flex; gap: 2px; height: 36px; }
.bar-track > span { flex: 1; border-radius: 1px; background: var(--success); cursor: pointer; transition: transform .08s; position: relative; }
.bar-track > span:hover { transform: scaleY(1.12); }
.bar-track > span.inc { background: var(--warning); }
.bar-track > span.dwn { background: var(--danger); }
.bar-track > span.na { background: var(--border); }
.bar-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 6px; font-family: var(--mono); }

/* response chart */
.chart-wrap { height: 120px; position: relative; padding: 8px 0; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }

/* incidents */
.incidents { padding: 18px; border-top: 1px solid var(--border); }
.inc-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 13px; align-items: flex-start; }
.inc-item:last-child { border-bottom: none; }
.inc-time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.inc-label { font-weight: 600; color: var(--ink); }
.inc-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.inc-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.inc-badge.down { background: var(--danger-bg); color: var(--danger); }
.inc-badge.slow { background: var(--warning-bg); color: var(--warning); }
.inc-badge.ssl { background: var(--info-bg); color: var(--primary); }

/* login */
.login-bg { min-height: 100vh; background: radial-gradient(ellipse at top right, rgba(0,32,255,.2), transparent 60%), radial-gradient(ellipse at bottom left, rgba(209,242,77,.08), transparent 60%), #0B0A1F; display: grid; place-items: center; padding: 40px 20px; position: relative; overflow: hidden; font-family: var(--font); }
.login-bg::before { content:''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.5px); background-size: 28px 28px; opacity: .6; pointer-events: none; }
.login-bg .codebg { position: absolute; bottom: 20px; left: 30px; font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.14); line-height: 1.7; user-select: none; pointer-events: none; max-width: 500px; white-space: pre; }
.login-card { background: #fff; padding: 38px; width: 100%; max-width: 440px; box-shadow: 0 30px 80px rgba(0,0,0,.4); position: relative; z-index: 2; }
.login-card .brand-row { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 4px; }
.login-card .brand-row .logo { width: 46px; height: 46px; font-size: 22px; }
.login-card .brand-row .name { font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-size: 22px; }
.login-card .sub { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 24px; }
.divider-label { display: flex; align-items: center; gap: 10px; margin: 24px 0 18px; font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.divider-label::before, .divider-label::after { content:''; flex: 1; height: 1px; background: var(--border); }
.login-card .form-body { padding: 0; }
.login-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.login-cta-landing { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--border); text-align: center; display: flex; flex-direction: column; gap: 8px; }
.login-cta-landing span { font-size: 12px; color: var(--muted); }
.login-cta-landing a { font-size: 13px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.login-cta-landing a:hover { gap: 10px; text-decoration: none; }

/* tweaks panel */
.tweaks-panel { position: fixed; bottom: 20px; right: 20px; width: 320px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); z-index: 90; display: none; flex-direction: column; max-height: 80vh; font-family: var(--font); }
.tweaks-panel.visible { display: flex; }
.tweaks-head { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.tweaks-head h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-weight: 700; }
.tweaks-body { padding: 16px 18px; overflow-y: auto; display: grid; gap: 18px; }
.tweak-group label.title { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.tweak-opts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; border: 1px solid var(--border); }
.tweak-opts button { padding: 8px; border: none; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.tweak-opts button.active { background: var(--ink); color: #fff; }

/* toast */
.toast-stack { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; display: flex; gap: 12px; align-items: center; min-width: 320px; box-shadow: var(--shadow-md); animation: slideUp .3s ease; }
.toast svg { width: 18px; height: 18px; color: var(--accent); }
.toast.success svg { color: var(--accent); }
.toast.error { background: var(--danger); }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(26,24,58,.55); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); width: 100%; max-width: 480px; box-shadow: 0 24px 80px rgba(0,0,0,.35); animation: modalIn .25s cubic-bezier(.2,.9,.3,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { padding: 22px 24px 14px; display: flex; align-items: flex-start; gap: 14px; }
.modal-icon { width: 44px; height: 44px; background: var(--info-bg); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.modal-icon.warn { background: var(--warning-bg); color: var(--warning); }
.modal-icon.danger { background: var(--danger-bg); color: var(--danger); }
.modal-head h3 { font-size: 17px; margin-bottom: 4px; }
.modal-head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.modal-body { padding: 0 24px 18px; font-size: 14px; color: var(--body); }
.modal-foot { padding: 14px 24px; background: var(--bg-2); display: flex; justify-content: flex-end; gap: 8px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,8,30,.92); backdrop-filter: blur(8px); z-index: 150; display: grid; place-items: center; padding: 40px; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; background: rgba(255,255,255,.12); color: #fff; border: none; display: grid; place-items: center; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0,0,0,.45); padding: 8px 16px; }

/* down banner */
.down-banner { background: linear-gradient(100deg, #2A0B0B 0%, var(--danger) 100%); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.down-banner .i { width: 36px; height: 36px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0; }
.down-banner .t { flex: 1; }
.down-banner h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.down-banner p { margin: 0; font-size: 12px; opacity: .85; }

/* empty state */
.empty { background: var(--surface); border: 1px solid var(--border); padding: 60px 30px; text-align: center; }
.empty .ico { width: 64px; height: 64px; background: var(--bg-2); color: var(--muted); display: grid; place-items: center; margin: 0 auto 18px; }
.empty h3 { font-size: 18px; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto 18px; line-height: 1.5; }

/* session expired overlay */
.session-overlay { position: fixed; inset: 0; background: rgba(26,24,58,.7); backdrop-filter: blur(8px); z-index: 180; display: grid; place-items: center; }
.session-card { background: var(--surface); width: 100%; max-width: 420px; padding: 32px; text-align: center; }
.session-card .ico { width: 56px; height: 56px; background: var(--warning-bg); color: var(--warning); display: grid; place-items: center; margin: 0 auto 18px; }

/* error 404 */
.err-page { min-height: 60vh; display: grid; place-items: center; padding: 40px; text-align: center; }
.err-code { font-size: 120px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; font-family: var(--mono); }
.err-code .h { color: var(--primary); }

/* loading */
.loader { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg) 50%, var(--bg-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* variant canvas styling */
.variants-strip { border-top: 1px solid var(--border); background: var(--bg); padding: 40px 24px; }

/* ===== ACCOUNT SETTINGS ===== */
.cfg-grid { display: grid; gap: 18px; max-width: 720px; }
.cfg-card { background: var(--surface); border: 1px solid var(--border); }
.cfg-card-head { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cfg-card-head h3 { font-size: 16px; font-weight: 700; }
.cfg-card-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.cfg-card-body { padding: 24px; display: grid; gap: 18px; }
.cfg-card-foot { padding: 16px 24px; background: var(--bg-2); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

.cfg-profile { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }

.cfg-field { display: grid; gap: 7px; }
.cfg-field label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.cfg-field input { padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); color: var(--body); font-family: inherit; font-size: 14px; width: 100%; }
.cfg-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,32,255,.1); }
.cfg-field input:disabled { background: var(--bg-2); color: var(--muted); cursor: not-allowed; }
.cfg-field input.invalid { border-color: var(--danger); background: var(--danger-bg); }
.cfg-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.cfg-err { font-size: 12px; color: var(--danger); display: flex; align-items: center; gap: 6px; }

/* rows with toggles */
.cfg-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.cfg-row:last-child { border-bottom: none; }
.cfg-row.sub { padding: 14px 24px 14px 32px; background: var(--surface); }
.cfg-row-txt { min-width: 0; }
.cfg-row-t { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.cfg-row-t svg { color: var(--muted); }
.cfg-row-d { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* alert block (awarie) */
.cfg-alert-block { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cfg-alert-head { display: flex; gap: 12px; padding: 18px 24px; align-items: flex-start; }
.cfg-alert-ic { width: 36px; height: 36px; background: var(--warning-bg); color: var(--warning); display: grid; place-items: center; flex-shrink: 0; }
.cfg-alert-t { font-size: 14px; font-weight: 700; color: var(--ink); }
.cfg-alert-d { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; max-width: 460px; }
.cfg-alert-block .cfg-row { border-bottom: 1px solid var(--border); }
.cfg-alert-block .cfg-row:last-of-type { border-bottom: none; }
.cfg-phone-field { padding: 16px 24px 20px 32px; background: var(--surface); border-top: 1px dashed var(--border); }

/* toggle switch */
.cfg-switch { width: 44px; height: 26px; border-radius: 13px; background: var(--border-strong); border: none; padding: 3px; cursor: pointer; flex-shrink: 0; transition: background .18s; position: relative; }
.cfg-switch .knob { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s; }
.cfg-switch.on { background: var(--primary); }
.cfg-switch.on .knob { transform: translateX(18px); }
.cfg-switch.disabled { opacity: .5; cursor: not-allowed; }

/* consent checkbox in modal */
.cfg-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.cfg-consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--primary); cursor: pointer; }

/* team members */
.cfg-member { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.cfg-member:last-of-type { border-bottom: none; }
.cfg-member .avatar { width: 38px; height: 38px; font-size: 13px; flex-shrink: 0; }
.cfg-member-id { flex: 1; min-width: 0; }
.cfg-member-name { font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cfg-member-mail { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; white-space: nowrap; }
.cfg-tag.you { background: var(--info-bg); color: var(--primary); }
.cfg-tag.pending { background: var(--warning-bg); color: var(--warning); }
.cfg-role-static { font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 12px; background: var(--bg-2); white-space: nowrap; }
.cfg-role-select { padding: 9px 30px 9px 12px; border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 13px; color: var(--ink); font-weight: 500; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
.cfg-role-select:hover { border-color: var(--primary); }
.cfg-member-remove { width: 34px; height: 34px; display: grid; place-items: center; background: transparent; border: none; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.cfg-member-remove:hover { background: var(--danger-bg); color: var(--danger); }
.cfg-invite { padding: 18px 24px; background: var(--bg-2); border-top: 1px solid var(--border); }
.cfg-invite-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.cfg-invite-row .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .cfg-invite-row { flex-direction: column; }
  .cfg-invite-row .cfg-role-select, .cfg-invite-row .btn { width: 100%; }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing { background: #fff; min-height: 100vh; color: var(--body); }
.landing h1, .landing h2, .landing h3, .landing h4 { color: var(--ink); letter-spacing: -0.025em; }

/* top bar */
.l-topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 16px 40px; }
.l-brand { display: flex; align-items: center; gap: 12px; }
.l-brand-text { display: flex; flex-direction: column; line-height: 1; }
.l-brand-name { font-weight: 800; color: var(--ink); font-size: 18px; letter-spacing: -0.02em; }
.l-brand-sub { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }
.l-topnav { display: flex; gap: 28px; }
.l-topnav a { color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .15s; }
.l-topnav a:hover { color: var(--primary); }
.l-top-cta { display: flex; gap: 10px; }
@media (max-width: 820px) { .l-topnav { display: none; } .l-topbar { padding: 14px 20px; } }

/* hero */
.l-hero { padding: 80px 40px 120px; position: relative; overflow: hidden; background: linear-gradient(180deg, #F8F8FA 0%, #fff 100%); }
.l-hero::before { content:''; position: absolute; top: -100px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(0,32,255,.08), transparent 70%); pointer-events: none; }
.l-hero-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.l-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--info-bg); color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 14px; }
.l-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
.l-hero-copy h1 { font-size: 60px; line-height: 1.02; font-weight: 800; margin: 20px 0 22px; letter-spacing: -0.035em; }
.l-lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0 0 32px; max-width: 520px; }
.l-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.l-hero-trust { display: flex; gap: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.l-trust-num { font-size: 30px; font-weight: 800; color: var(--ink); font-family: var(--mono); letter-spacing: -0.03em; line-height: 1; }
.l-trust-lbl { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* hero mock window */
.l-hero-visual { position: relative; }
.l-mock-window { background: #fff; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(26,24,58,.12), 0 8px 24px rgba(26,24,58,.06); transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.l-mock-bar { background: var(--bg-2); padding: 10px 14px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); }
.l-mock-dots { display: flex; gap: 5px; }
.l-mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.l-mock-dots span:nth-child(1) { background: #FF5F57; }
.l-mock-dots span:nth-child(2) { background: #FEBC2E; }
.l-mock-dots span:nth-child(3) { background: #28C840; }
.l-mock-url { font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; background: #fff; padding: 4px 10px; flex: 1; }
.l-mock-body { padding: 16px; display: grid; gap: 12px; }
.l-mock-alert { background: var(--danger-bg); border-left: 3px solid var(--danger); padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.l-mock-alert-ic { width: 28px; height: 28px; background: var(--danger); color: #fff; display: grid; place-items: center; }
.l-mock-alert-t { font-size: 13px; font-weight: 700; color: var(--ink); }
.l-mock-alert-s { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.l-mock-alert-tag { margin-left: auto; font-family: var(--mono); font-size: 10px; background: var(--danger); color: #fff; padding: 3px 8px; font-weight: 700; }
.l-mock-ticket { background: var(--surface); border: 1px solid var(--border); padding: 14px; }
.l-mock-t-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.l-mock-tid { font-family: var(--mono); font-size: 11px; background: var(--bg-2); padding: 2px 6px; color: var(--muted); font-weight: 700; }
.l-mock-tbadge { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; }
.l-mock-tbadge.open { background: var(--info-bg); color: var(--primary); }
.l-mock-tbadge.prio { background: var(--danger-bg); color: var(--danger); }
.l-mock-t-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.l-mock-t-row { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--border); }
.l-mock-t-row.agent { background: var(--bg-2); margin: 0 -14px -14px; padding: 10px 14px; border-top: 1px solid var(--border); }
.l-mock-av { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }
.l-mock-mhead { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.l-mock-mtext { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.l-mock-est { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.l-mock-est-l { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.l-mock-est-v { font-family: var(--mono); font-size: 20px; font-weight: 800; color: #fff; flex: 1; margin-left: 2px; }
.l-mock-est-btn { background: var(--accent); color: var(--ink); border: none; padding: 10px 16px; font-family: inherit; font-weight: 700; font-size: 12px; cursor: pointer; }

/* floating pills on hero */
.l-float { position: absolute; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 36px rgba(26,24,58,.14); padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.l-float-a { top: -30px; left: -40px; }
.l-float-b { bottom: -30px; right: -20px; }
.l-float-t { font-size: 12px; font-weight: 700; color: var(--ink); }
.l-float-s { font-size: 10px; color: var(--muted); margin-top: 2px; }
.l-float .pulse-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
.l-float-ic { width: 28px; height: 28px; display: grid; place-items: center; }

/* monitoring + sms showcase */
.l-mon-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: center; }
.l-mon-col { display: flex; flex-direction: column; }
.l-mon-col-phone { align-items: center; justify-content: center; }
.l-mon-kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.l-mon-kicker span { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--primary); background: var(--info-bg); padding: 3px 7px; }
.l-mon-connector { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 14px 4px; }
.l-mon-connector svg { color: var(--border-strong); }
.l-mon-fix { background: #fff; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(26,24,58,.08); padding: 18px 20px; }
.l-mon-fix-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.l-mon-tid { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.l-mon-fix-badge { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--success-bg); color: var(--success); padding: 3px 8px; }
.l-mon-fix-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.l-mon-fix-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.l-mon-av { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.l-mon-fix-agent { font-size: 12px; font-weight: 700; color: var(--ink); }
.l-mon-fix-status { font-size: 11px; color: var(--success); margin-top: 2px; }
.l-mon-fix-prog { height: 6px; background: var(--bg-2); overflow: hidden; }
.l-mon-fix-fill { height: 100%; width: 55%; background: var(--primary); }
.l-mon-sla { margin-top: 32px; display: flex; align-items: center; gap: 12px; background: var(--info-bg); border: 1px solid var(--border); padding: 16px 20px; font-size: 13px; color: var(--ink-2); }
.l-mon-sla svg { color: var(--primary); flex-shrink: 0; }
.l-mon-sla strong { color: var(--ink); }
.l-mon-dash { background: #fff; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(26,24,58,.08); }
.l-mon-dash-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.l-mon-dash-head .i { width: 32px; height: 32px; background: var(--danger-bg); color: var(--danger); display: grid; place-items: center; flex-shrink: 0; }
.l-mon-dash-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.l-mon-dash-url { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.l-mon-chip { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 4px 10px; }
.l-mon-chip.down { background: var(--danger); color: #fff; }
.l-mon-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.l-mon-stat { padding: 16px 20px; border-right: 1px solid var(--border); }
.l-mon-stat:last-child { border-right: none; }
.l-mon-stat .k { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.l-mon-stat .v { font-size: 20px; font-weight: 800; font-family: var(--mono); color: var(--ink); margin-top: 4px; }
.l-mon-stat .v small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.l-mon-dash-foot { padding: 12px 20px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; background: var(--bg-2); }
.l-phone { width: 250px; margin: 0 auto; background: linear-gradient(165deg, #3a3860, #100f24); border-radius: 46px; padding: 14px; box-shadow: 0 40px 90px rgba(26,24,58,.3), 0 0 0 1px rgba(255,255,255,.08) inset; position: relative; }
.l-phone::before, .l-phone::after { content: ''; position: absolute; left: -3px; width: 4px; border-radius: 2px; background: #0a0918; }
.l-phone::before { top: 108px; height: 40px; }
.l-phone::after { top: 156px; height: 60px; }
.l-phone-island { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; background: #0a0918; border-radius: 16px; z-index: 2; }
.l-phone-statusbar { display: flex; justify-content: space-between; align-items: center; height: 26px; margin-top: 18px; padding: 0 20px; font-size: 11px; font-weight: 700; color: #fff; font-family: var(--mono); position: relative; z-index: 1; }
.l-phone-status-ic { display: flex; gap: 6px; align-items: center; opacity: 0.85; }
.l-phone-screen { background: #F4F5F9; border-radius: 34px; overflow: hidden; min-height: 340px; display: flex; flex-direction: column; margin-top: 10px; }
.l-phone-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.l-phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.l-phone-contact { font-size: 13px; font-weight: 700; color: var(--ink); }
.l-phone-sub { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px; }
.l-phone-chat { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.l-sms-day { text-align: center; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.l-sms-row { display: flex; }
.l-sms-bubble { position: relative; background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 12.5px; line-height: 1.55; color: var(--ink); box-shadow: 0 6px 16px rgba(26,24,58,.1); max-width: 88%; }
.l-sms-bubble::after { content: ''; position: absolute; left: -5px; bottom: 8px; width: 12px; height: 12px; background: #fff; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.l-sms-time { font-size: 10px; color: var(--muted); font-family: var(--mono); margin-top: 2px; padding-left: 4px; }

@media (max-width: 920px) {
  .l-mon-layout { grid-template-columns: 1fr; gap: 8px; }
  .l-hero { padding: 48px 20px 80px; }
  .l-hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .l-hero-copy h1 { font-size: 40px; }
  .l-mock-window { transform: none; }
  .l-float { display: none; }
}

/* sections */
.l-section { max-width: 1280px; margin: 0 auto; padding: 100px 40px; }
.l-section-alt { background: var(--bg); max-width: none; padding-left: 0; padding-right: 0; }
.l-section-alt > * { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }
.l-section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.l-section-head h2 { font-size: 42px; font-weight: 800; line-height: 1.1; margin: 18px 0 14px; }
.l-section-sub { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* features */
.l-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.l-feat { background: #fff; border: 1px solid var(--border); padding: 30px 28px; transition: all .2s; }
.l-feat:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,32,255,.08); }
.l-feat-ic { width: 44px; height: 44px; background: var(--info-bg); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.l-feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.l-feat p { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.l-scope { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.l-scope-col h4 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.l-scope-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.l-scope-col li { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.l-scope-col li svg { color: var(--primary); flex-shrink: 0; }
.l-scope-col:last-child li::before { content: ''; width: 6px; height: 6px; background: var(--primary); flex-shrink: 0; }
@media (max-width: 920px) {
  .l-scope { grid-template-columns: 1fr; gap: 28px; }
}

/* steps */
.l-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.l-step { background: #fff; border: 1px solid var(--border); padding: 28px; position: relative; }
.l-step-n { font-family: var(--mono); font-size: 42px; font-weight: 800; color: var(--primary); letter-spacing: -0.04em; line-height: 1; margin-bottom: 18px; }
.l-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.l-step p { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* pricing */
.l-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.l-price { background: #fff; border: 1px solid var(--border); padding: 36px 30px; display: flex; flex-direction: column; position: relative; }
.l-price.featured { border: 2px solid var(--primary); transform: scale(1.04); box-shadow: 0 20px 60px rgba(0,32,255,.12); }
.l-price-pill { position: absolute; top: -14px; left: 30px; background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 800; padding: 5px 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.l-price-name { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.l-price-hours { font-size: 52px; font-weight: 800; color: var(--ink); font-family: var(--mono); line-height: 1; letter-spacing: -0.03em; margin: 10px 0 4px; }
.l-price-hours small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.l-price-cost { font-size: 22px; font-weight: 700; color: var(--primary); font-family: var(--mono); margin-bottom: 18px; }
.l-price-cost small { font-size: 13px; color: var(--muted); font-weight: 500; }
.l-price-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; padding-bottom: 18px; border-bottom: 1px dashed var(--border); margin: 0 0 18px; }
.l-price-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.l-price-list li { font-size: 13px; color: var(--body); display: flex; align-items: center; gap: 10px; }
.l-price-list li svg { color: var(--success); flex-shrink: 0; }
.l-price button { margin-top: auto; }
.l-price-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 32px; }

/* social proof */
.l-section-dark { background: var(--ink); color: #fff; padding: 100px 40px; }
.l-quote { max-width: 860px; margin: 0 auto; text-align: center; position: relative; }
.l-quote-mark { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 120px; color: var(--primary); line-height: 0.5; margin-bottom: 30px; font-weight: 800; }
.l-quote p { font-size: 26px; line-height: 1.5; color: #fff; font-weight: 500; margin: 0 0 40px; letter-spacing: -0.015em; }
.l-quote p strong { color: var(--accent); font-weight: 700; }
.l-quote-author { display: inline-flex; align-items: center; gap: 14px; }
.l-quote-author .avatar { background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--ink); }
.l-quote-name { font-size: 15px; font-weight: 700; color: #fff; text-align: left; }
.l-quote-role { font-size: 12px; color: var(--muted-2); text-align: left; margin-top: 3px; }

/* FAQ */
.l-faq { max-width: 820px; margin: 0 auto; }
.l-faq-item { border-bottom: 1px solid var(--border); }
.l-faq-item:first-child { border-top: 1px solid var(--border); }
.l-faq-q { width: 100%; background: transparent; border: none; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.l-faq-q:hover { color: var(--primary); }
.l-faq-item.open .l-faq-q { color: var(--primary); }
.l-faq-a { padding: 0 0 24px; font-size: 14px; line-height: 1.7; color: var(--ink-2); max-width: 700px; }

/* contact */
.l-contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; background: #fff; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(26,24,58,.1); }
.l-contact-info { background: linear-gradient(160deg, #1A183A, #0B0A1F); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.l-contact-info::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.5px); background-size: 26px 26px; opacity: .6; pointer-events: none; }
.l-contact-kicker { position: relative; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.l-contact-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; transition: gap .15s; }
.l-contact-item:hover { gap: 18px; }
.l-contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.l-contact-item:first-child { padding-top: 0; }
.l-contact-item .ic { width: 40px; height: 40px; background: rgba(255,255,255,.08); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.l-contact-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.l-contact-val { font-size: 16px; font-weight: 700; color: #fff; margin-top: 2px; }
.l-contact-form { background: #fff; padding: 44px 40px; display: grid; gap: 18px; align-content: center; }
.l-contact-form-head h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.l-contact-form-head p { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.l-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.l-contact-form label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.l-contact-form input, .l-contact-form textarea { font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); border: 1px solid var(--border-strong); padding: 13px 14px; background: #fff; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.l-contact-form input:focus, .l-contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,32,255,.1); }
.l-contact-consent { display: flex !important; flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 400; color: var(--muted); }
.l-contact-consent input[type="checkbox"] { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--primary); }
.l-contact-consent a { color: var(--primary); font-weight: 600; }
.l-contact-sent { display: flex; align-items: center; gap: 14px; color: var(--success); font-size: 15px; font-weight: 600; padding: 20px 4px; }
@media (max-width: 920px) {
  .l-contact-grid { grid-template-columns: 1fr; }
  .l-contact-row { grid-template-columns: 1fr; }
}

/* CTA */
.l-cta { background: linear-gradient(135deg, #0B0A1F 0%, #1A183A 50%, var(--primary) 160%); color: #fff; padding: 100px 40px; position: relative; overflow: hidden; }
.l-cta::before { content:''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.5px); background-size: 28px 28px; opacity: .5; pointer-events: none; }
.l-cta-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.l-cta-inner h2 { font-size: 44px; color: #fff; line-height: 1.1; letter-spacing: -0.03em; margin: 10px 0 0; }
.l-cta-inner p { font-size: 17px; color: var(--muted-2); margin: 0; }
.l-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }

/* footer */
.l-footer { background: #0B0A1F; color: var(--muted-2); padding: 50px 40px 30px; }
.l-footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.l-footer-brand { display: flex; align-items: center; gap: 14px; }
.l-footer-name { font-size: 14px; font-weight: 700; color: #fff; }
.l-footer-addr { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.l-footer-links { display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; }
.l-footer-links a { color: var(--muted-2); font-size: 13px; text-decoration: none; }
.l-footer-links a:hover { color: var(--accent); }
.l-footer-copy { grid-column: 1 / -1; font-size: 11px; color: #4A4860; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 16px; text-align: center; }

@media (max-width: 920px) {
  .l-section { padding: 70px 20px; }
  .l-section-alt > * { padding-left: 20px; padding-right: 20px; }
  .l-section-head h2 { font-size: 32px; }
  .l-feat-grid, .l-steps, .l-price-grid { grid-template-columns: 1fr; }
  .l-price.featured { transform: none; }
  .l-footer-inner { grid-template-columns: 1fr; text-align: center; }
  .l-footer-links { justify-content: center; }
  .l-cta-inner h2 { font-size: 32px; }
  .l-section-dark, .l-cta { padding: 70px 20px; }
  .l-quote p { font-size: 20px; }
}
.variants-strip .inner { max-width: 1320px; margin: 0 auto; }
.variants-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.variants-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.variants-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); max-width: 620px; }

/* responsive */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tr { grid-template-columns: 1fr auto; grid-template-areas: "s a" "m w" "a r"; }
}
@media (max-width: 680px) {
  .tr.head { display: none; }
  .tr { grid-template-columns: 1fr; grid-template-areas: unset; padding: 14px; }
  .main { padding: 16px; }
  .topbar { padding: 10px 14px; }
  .brand-sub { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Rozszerzenia v2: Estymacja · Rozliczenie czasu · Billing · Pricing · Opiekunowie
   ============================================================ */

/* Ticket tabs (Wątek / Rozliczenie) */
.ticket-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin: 20px 0 0; }
.ticket-tabs button { background: transparent; border: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px 18px; cursor: pointer; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 8px; }
.ticket-tabs button:hover { color: var(--primary); }
.ticket-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.ticket-tabs .count { font-size: 11px; background: var(--bg-2); color: var(--muted); padding: 1px 7px; min-width: 18px; text-align: center; font-weight: 700; }
.ticket-tabs button.active .count { background: var(--primary-50, #ECEFFF); color: var(--primary); }

/* Summary bar on top of ticket */
.ticket-summary { background: var(--surface); border: 1px solid var(--border); border-top: none; padding: 14px 22px; display: flex; gap: 32px; flex-wrap: wrap; align-items: center; row-gap: 14px; }
.ticket-summary .s-item { display: flex; flex-direction: column; gap: 4px; min-width: 130px; padding-right: 20px; border-right: 1px solid var(--border); }
.ticket-summary .s-item:nth-child(3) { border-right: none; }
.ticket-summary .s-item .l { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticket-summary .s-item .v { font-size: 18px; font-weight: 700; color: var(--ink); font-family: var(--mono); line-height: 1.2; white-space: nowrap; }
.ticket-summary .s-item .v.pos { color: var(--success); }
.ticket-summary .s-item .v.neg { color: var(--danger); }
.ticket-summary .spacer { flex: 1; }
.ticket-summary .hint { font-size: 12px; color: var(--muted); }

/* Estimation card (message thread) */
.msg.estimation > div:last-child, .msg.time-log > div:last-child { width: 100%; }
.est-card { border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; }
.est-card.accepted { border-color: var(--success); }
.est-card.rejected { border-color: var(--danger); }
.est-card.pending { border-color: var(--warning); }
.est-head { padding: 14px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.est-head .ec-ic { width: 34px; height: 34px; display: grid; place-items: center; background: var(--info-bg); color: var(--primary); flex-shrink: 0; }
.est-card.accepted .est-head .ec-ic { background: var(--success-bg); color: var(--success); }
.est-card.pending .est-head .ec-ic { background: var(--warning-bg); color: var(--warning); }
.est-card.rejected .est-head .ec-ic { background: var(--danger-bg); color: var(--danger); }
.est-head .ec-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.est-head .ec-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.est-head .ec-state { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 10px; }
.est-state.accepted { background: var(--success-bg); color: var(--success); }
.est-state.pending { background: var(--warning-bg); color: var(--warning); }
.est-state.rejected { background: var(--danger-bg); color: var(--danger); }
.est-body { padding: 14px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.est-body .k { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.est-body .v { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 4px; font-family: var(--mono); }
.est-body .v.accent { color: var(--primary); }
.est-breakdown { padding: 14px 18px; background: var(--bg-2); border-top: 1px solid var(--border); }
.est-breakdown .h4 { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.est-breakdown table { width: 100%; border-collapse: collapse; font-size: 13px; }
.est-breakdown td { padding: 5px 0; }
.est-breakdown td:last-child { text-align: right; font-family: var(--mono); color: var(--ink); font-weight: 600; }
.est-breakdown tfoot td { border-top: 1px solid var(--border-strong); padding-top: 8px; font-weight: 700; }
.est-note { padding: 12px 18px; font-size: 13px; color: var(--ink-2); background: var(--bg-2); border-top: 1px solid var(--border); line-height: 1.5; font-style: italic; }
.est-actions { padding: 12px 18px; background: var(--bg-2); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; align-items: center; flex-wrap: wrap; }
.est-actions .meta { margin-right: auto; font-size: 11px; color: var(--muted); }

/* Time-log card */
.tl-card { border: 1px solid var(--border); background: var(--surface); }
.tl-head { padding: 14px 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.tl-head .tl-ic { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--accent); }
.tl-head .tl-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tl-head .tl-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.tl-head .tl-total { margin-left: auto; font-family: var(--mono); font-size: 20px; font-weight: 800; color: var(--ink); }
.tl-body { padding: 16px 18px; }
.tl-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tl-body td { padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--body); }
.tl-body td:last-child { text-align: right; font-family: var(--mono); color: var(--ink); font-weight: 600; }
.tl-body tr:last-child td { border-bottom: none; }
.tl-remaining { padding: 10px 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 13px; background: var(--bg-2); }
.tl-remaining.neg { color: var(--danger); }
.tl-remaining.neg .v { font-weight: 800; }
.tl-remaining .v { font-family: var(--mono); font-weight: 700; color: var(--ink); }

/* Billing view */
.billing-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 18px; }
.billing-main { background: linear-gradient(135deg, var(--ink) 0%, #24214A 100%); color: #fff; padding: 30px; position: relative; overflow: hidden; }
.billing-main::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: var(--primary); opacity: 0.18; border-radius: 50%; }
.billing-main::before { content: ''; position: absolute; right: 20px; bottom: -40px; width: 120px; height: 120px; background: var(--accent); opacity: 0.14; border-radius: 50%; }
.billing-main .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.billing-main h2 { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 18px; }
.billing-main .usage { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; position: relative; z-index: 1; }
.billing-main .usage .big { font-size: 56px; font-weight: 800; font-family: var(--mono); line-height: 1; letter-spacing: -0.03em; }
.billing-main .usage .sm { font-size: 20px; opacity: 0.7; font-weight: 500; }
.billing-main .prog { margin-top: 18px; position: relative; z-index: 1; }
.billing-main .prog .track { height: 8px; background: rgba(255,255,255,.16); overflow: hidden; }
.billing-main .prog .fill { height: 100%; background: var(--accent); transition: width .4s; }
.billing-main .prog .fill.over { background: var(--danger); }
.billing-main .prog .lbl { margin-top: 8px; display: flex; justify-content: space-between; font-size: 12px; opacity: 0.8; }
.billing-main .meta-row { display: flex; gap: 24px; margin-top: 24px; position: relative; z-index: 1; }
.billing-main .meta-row .i .k { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.billing-main .meta-row .i .v { font-size: 15px; font-weight: 700; margin-top: 4px; font-family: var(--mono); }

.billing-side { background: var(--surface); border: 1px solid var(--border); padding: 24px; }
.billing-side h3 { font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.balance-card { background: var(--bg-2); padding: 18px; margin-bottom: 10px; }
.balance-card .l { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.balance-card .v { font-size: 28px; font-weight: 800; font-family: var(--mono); margin-top: 4px; }
.balance-card .v.neg { color: var(--danger); }
.balance-card .v.pos { color: var(--success); }
.balance-card .s { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Billing chart (mini bar chart) */
.bill-chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 100px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--border); }
.bill-chart .bar { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bill-chart .bar .b { width: 100%; background: var(--primary); transition: background .2s; position: relative; }
.bill-chart .bar.current .b { background: var(--accent); }
.bill-chart .bar.over .b::after { content: ''; position: absolute; left: 0; right: 0; height: 12%; bottom: 0; background: var(--danger); }
.bill-chart .bar .m { font-size: 10px; color: var(--muted); font-weight: 600; }
.bill-chart .bar .h { font-size: 10px; color: var(--ink); font-weight: 700; font-family: var(--mono); }

/* Billing tables */
.inv-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.9fr auto; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); align-items: center; background: var(--surface); }
.inv-row:last-child { border-bottom: none; }
.inv-row.head { background: var(--bg-2); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 10px 18px; }
.inv-row .no { font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 700; }
.inv-row .p { font-size: 13px; color: var(--body); }
.inv-row .amt { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; }

.task-row { display: grid; grid-template-columns: 90px 1fr 90px 100px auto; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); align-items: center; background: var(--surface); }
.task-row:last-child { border-bottom: none; }
.task-row.head { background: var(--bg-2); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 10px 18px; }
.task-row .id { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 700; }
.task-row .tt { font-size: 13px; color: var(--body); }
.task-row .h { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); text-align: right; }
.task-row a.tt:hover { color: var(--primary); }

.section-block { background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; }
.section-block .sb-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.section-block .sb-head h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.section-block .sb-head .actions { display: flex; gap: 8px; }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pricing-grid.four { grid-template-columns: repeat(4, 1fr); }
.price-card { background: var(--surface); border: 1px solid var(--border); padding: 24px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.price-card.highlight { border: 2px solid var(--primary); }
.price-card.current { border: 2px solid var(--accent-dark); background: linear-gradient(180deg, var(--surface) 0%, #FCFEF2 100%); }
.price-card .pill { position: absolute; top: 0; right: 16px; transform: translateY(-50%); background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; padding: 4px 10px; text-transform: uppercase; }
.price-card.current .pill { background: var(--accent-dark); color: var(--ink); }
.price-card .v { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.price-card .h-big { font-size: 54px; font-weight: 800; color: var(--ink); font-family: var(--mono); line-height: 1; letter-spacing: -0.02em; }
.price-card .h-big small { font-size: 18px; font-weight: 500; color: var(--muted); }
.price-card .p-total { font-size: 24px; font-weight: 800; color: var(--ink); font-family: var(--mono); }
.price-card .p-rate { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.price-card .desc { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 10px 0; border-top: 1px dashed var(--border); }
.price-card .cta { margin-top: auto; }

/* Opiekunowie block */
.contacts-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.contacts-block .title { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: stretch; }
.contact-card { background: var(--bg-2); padding: 18px 22px; border-left: 3px solid var(--primary); display: flex; align-items: center; gap: 16px; }
.contact-card .avatar-l { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--ink), var(--primary)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.contact-card .info { flex: 1; min-width: 0; }
.contact-card .n { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.contact-card .lk { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-card .lk a { color: var(--primary); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.contact-card .lk a:hover { text-decoration: underline; }
.contact-cta { background: var(--primary); color: #fff; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 14px; cursor: pointer; border: none; font-family: inherit; text-transform: none; transition: background .15s; min-width: 220px; }
.contact-cta:hover { background: var(--primary-dark); }

@media (max-width: 900px) {
  .billing-hero { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid.four { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .est-body { grid-template-columns: repeat(2, 1fr); }
}