@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

:root {
    --ink: #0e1621;
    --muted: #5a6778;
    --line: rgba(14, 22, 33, 0.08);
    --panel: rgba(255, 255, 255, 0.92);
    --panel-solid: #ffffff;
    --sidebar: #0b1220;
    --sidebar-2: #121b2e;
    --accent: #0e8f7a;
    --accent-deep: #0a6b5c;
    --accent-soft: rgba(14, 143, 122, 0.12);
    --brand-orange: #EA580C;
    --brand-orange-deep: #C2410C;
    --brand-orange-soft: #FFEDD5;
    --warn: #c9851a;
    --danger: #c0392b;
    --ok: #0e8f7a;
    --shadow: 0 20px 60px rgba(11, 18, 32, 0.12);
    --radius: 16px;
    --font-display: "Syne", "Segoe UI", sans-serif;
    --font-body: "DM Sans", "Segoe UI", sans-serif;
    --topbar-h: 72px;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(14, 143, 122, 0.16), transparent 55%),
        radial-gradient(700px 380px at 90% 0%, rgba(18, 40, 80, 0.10), transparent 50%),
        linear-gradient(180deg, #eef2f6 0%, #e4e9f0 100%);
}
button, input, textarea, select { font: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

/* Shell */
.app-shell.authed { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.app-shell.guest { min-height: 100vh; }
.sidebar {
    background: linear-gradient(175deg, var(--sidebar) 0%, var(--sidebar-2) 55%, #0a1528 100%);
    color: #eef3f8;
    padding: 1.25rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255,255,255,.06);
}
.brand {
    display: flex; gap: .85rem; align-items: center;
    padding: .35rem .4rem .75rem;
    cursor: pointer;
    border-radius: 14px;
    transition: background .2s;
}
.brand:hover { background: rgba(255,255,255,.05); }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.02em; }
.brand small { color: rgba(238,243,248,.55); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: .78rem;
    letter-spacing: -0.04em;
    color: #fff;
    background: linear-gradient(145deg, #F97316, #EA580C 55%, #C2410C);
    box-shadow: 0 8px 24px rgba(234, 88, 12, .38);
    border: 1.5px solid rgba(255,255,255,.35);
}
.brand-mark.large { width: 64px; height: 64px; margin: 0 auto 1rem; font-size: 1.05rem; }

.nav-section { display: flex; flex-direction: column; gap: .45rem; }
.nav-label {
    font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(238,243,248,.38); padding: 0 .65rem;
}
.sidebar nav { display: flex; flex-direction: column; gap: .3rem; }
.nav-btn {
    position: relative;
    display: flex; align-items: center; gap: .7rem;
    width: 100%; text-align: left;
    border: 0; background: transparent; color: rgba(238,243,248,.78);
    padding: .78rem .85rem; border-radius: 12px; cursor: pointer;
    transition: background .18s, color .18s, transform .12s;
}
.nav-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-btn:active { transform: scale(.985); }
.nav-btn.active {
    background: linear-gradient(90deg, rgba(14,143,122,.28), rgba(14,143,122,.08));
    color: #fff; font-weight: 600;
}
.nav-btn.accent:not(.active) {
    background: rgba(14,143,122,.14);
    color: #7dffe8;
}
.nav-btn.accent:not(.active):hover { background: rgba(14,143,122,.24); }
.nav-ico {
    width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.06); font-size: .75rem;
}
.nav-btn.active .nav-ico { background: rgba(14,143,122,.35); }
.nav-active-bar {
    position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px;
    border-radius: 0 3px 3px 0; background: #2dd4bf;
}
.sidebar-foot {
    margin-top: auto;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.license-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    width: 100%;
    text-align: left;
    padding: .95rem 1rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(155deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
    color: #eef3f8;
    cursor: pointer;
    transition: transform .15s, border-color .15s, box-shadow .15s, background .15s;
}
.license-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.license-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.license-kicker {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(238,243,248,.55);
}
.license-badge {
    display: inline-grid;
    place-items: center;
    min-height: 1.45rem;
    padding: 0 .55rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: #0B1220;
    background: #E8EEF5;
}
.license-title {
    font-family: var(--font-display);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.25;
}
.license-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    padding: .45rem .55rem;
    border-radius: 10px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.06);
}
.license-meta span {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(238,243,248,.5);
}
.license-meta time {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.license-cta {
    margin-top: .15rem;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(238,243,248,.62);
}
.license-card:hover .license-cta { color: #fff; }

/* Trial — amber / gold */
.license-card.trial {
    border-color: rgba(245, 158, 11, .45);
    background:
        linear-gradient(155deg, rgba(245, 158, 11, .22), rgba(245, 158, 11, .05) 48%, rgba(255,255,255,.04)),
        rgba(15, 23, 42, .35);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .12), inset 0 1px 0 rgba(255,255,255,.08);
}
.license-card.trial .license-badge {
    background: linear-gradient(145deg, #FBBF24, #F59E0B);
    color: #1C1917;
}
.license-card.trial .license-kicker { color: rgba(253, 230, 138, .85); }

/* Active — teal */
.license-card.active {
    border-color: rgba(45, 212, 191, .4);
    background:
        linear-gradient(155deg, rgba(14, 143, 122, .28), rgba(14, 143, 122, .06) 48%, rgba(255,255,255,.04)),
        rgba(15, 23, 42, .35);
}
.license-card.active .license-badge {
    background: linear-gradient(145deg, #2DD4BF, #0E8F7A);
    color: #042F2E;
}

/* Expired — rose */
.license-card.expired {
    border-color: rgba(244, 63, 94, .45);
    background:
        linear-gradient(155deg, rgba(225, 29, 72, .22), rgba(225, 29, 72, .05) 48%, rgba(255,255,255,.04)),
        rgba(15, 23, 42, .35);
}
.license-card.expired .license-badge {
    background: linear-gradient(145deg, #FB7185, #E11D48);
    color: #fff;
}

.license-card.neutral .license-badge {
    background: rgba(255,255,255,.16);
    color: #fff;
}

/* legacy alias */
.sub-chip { display: none; }

.main-col { display: flex; flex-direction: column; min-width: 0; }
.topbar {
    height: var(--topbar-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.75rem;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: .85rem; }
.crumb { display: flex; align-items: center; gap: .45rem; font-size: .95rem; }
.crumb-brand { font-family: var(--font-display); font-weight: 800; color: var(--brand-orange); letter-spacing: -0.04em; }
.crumb-sep { color: var(--muted); opacity: .5; }
.top-action {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 0; border-radius: 999px; padding: .65rem 1.1rem;
    background: var(--accent); color: white; font-weight: 600; cursor: pointer;
    box-shadow: 0 8px 22px rgba(14,143,122,.28);
    transition: transform .12s, filter .12s, box-shadow .2s;
}
.top-action:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.top-action:active:not(:disabled) { transform: scale(.98); }
.top-action:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #9ff5e4;
    box-shadow: 0 0 0 0 rgba(159,245,228,.7);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(159,245,228,.55); }
    70% { box-shadow: 0 0 0 8px rgba(159,245,228,0); }
    100% { box-shadow: 0 0 0 0 rgba(159,245,228,0); }
}
.profile-menu { position: relative; }
.profile-trigger {
    display: flex; align-items: center; gap: .7rem;
    border: 1px solid var(--line); background: var(--panel-solid);
    border-radius: 999px; padding: .35rem .7rem .35rem .35rem; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.profile-trigger:hover, .profile-menu.open .profile-trigger {
    border-color: rgba(14,143,122,.35);
    box-shadow: 0 6px 20px rgba(11,18,32,.08);
}
.avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #123047, #0e8f7a);
    color: white; font-weight: 700; font-size: .8rem;
}
.profile-meta { text-align: left; line-height: 1.2; }
.profile-meta strong { display: block; font-size: .88rem; }
.profile-meta small { color: var(--muted); font-size: .72rem; }
.chev { color: var(--muted); font-size: .75rem; }
.profile-dropdown {
    position: absolute; right: 0; top: calc(100% + .45rem);
    min-width: 220px;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: .4rem;
    animation: drop .16s ease;
    z-index: 50;
}
@keyframes drop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
.profile-dropdown button {
    display: block; width: 100%; text-align: left;
    border: 0; background: transparent; padding: .7rem .85rem;
    border-radius: 10px; cursor: pointer; color: var(--ink);
}
.profile-dropdown button:hover { background: #f2f5f8; }
.profile-dropdown button.danger { color: var(--danger); }
.profile-dropdown hr { border: 0; border-top: 1px solid var(--line); margin: .25rem .4rem; }

.content { padding: 1.75rem 2rem 3rem; }
.page-loading {
    min-height: 40vh; display: grid; place-items: center; gap: .75rem; color: var(--muted);
}
.spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid rgba(14,143,122,.2); border-top-color: var(--accent);
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-hero {
    display: flex; justify-content: space-between; gap: 1.5rem; align-items: end;
    margin-bottom: 1.5rem;
}
.page-hero.compact { align-items: center; }
.eyebrow {
    text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
    color: var(--accent-deep); font-weight: 700; margin-bottom: .35rem;
}
.lede { color: var(--muted); max-width: 46rem; }
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.35rem 1.4rem;
    backdrop-filter: blur(8px);
}
.stat-grid, .tile-grid, .action-row, .sign-grid, .meta-grid { display: grid; gap: 1rem; }
.stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); margin-bottom: 1.25rem; }
.stat-card, .action-tile, .tile {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 10px 30px rgba(11,18,32,.05);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.stat-card span, .meta-grid label, .field label { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .35rem; }
.stat-card strong { font-family: var(--font-display); font-size: 1.8rem; }
.action-row { grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 1rem; }
.action-tile, .tile { text-align: left; cursor: pointer; }
.action-tile:hover, .tile:hover { transform: translateY(-2px); border-color: rgba(14,143,122,.35); }
.tile.selected, .chip.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn-primary, .btn-secondary, .link-btn {
    border: 0; border-radius: 999px; padding: .8rem 1.25rem; font-weight: 600; cursor: pointer;
    transition: transform .12s, filter .12s, opacity .12s, box-shadow .15s;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-primary { background: var(--accent); color: white; box-shadow: 0 8px 20px rgba(14,143,122,.25); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: scale(.98); }
.btn-secondary { background: #e8eef4; color: var(--ink); }
.btn-secondary:hover:not(:disabled) { background: #dce5ef; }
.btn-primary:disabled, .btn-secondary:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary.full { width: 100%; }
.btn-primary.is-busy, .btn-secondary.is-busy { pointer-events: none; }
.link-btn { background: transparent; color: #d9c29a; padding: .4rem 0; }

.btn-spinner {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
    animation: spin .65s linear infinite;
}
.btn-secondary .btn-spinner { border-color: rgba(14,22,33,.2); border-top-color: var(--ink); }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.auth-card {
    width: min(440px, 100%);
    background: var(--panel-solid);
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 2rem;
}
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-footer-link {
    margin: 1.1rem 0 0;
    text-align: center;
    font-size: .9rem;
    color: var(--muted);
}
.auth-footer-link a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }

.demo-cred {
    margin-top: 1.25rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(14, 143, 122, 0.18);
    background:
        linear-gradient(145deg, rgba(14, 143, 122, 0.07), rgba(255, 255, 255, 0.92) 55%),
        #f7fbfa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.demo-cred-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
}
.demo-cred-badge {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    min-width: 3.1rem;
    height: 1.7rem;
    padding: 0 .55rem;
    border-radius: 8px;
    background: linear-gradient(145deg, #0e8f7a, #0a6b5c);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.demo-cred-head strong {
    display: block;
    font-size: .92rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.demo-cred-head small {
    display: block;
    margin-top: .12rem;
    font-size: .75rem;
    color: var(--muted);
    letter-spacing: .02em;
}
.demo-cred-grid {
    display: grid;
    gap: .45rem;
}
.demo-cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(13, 22, 33, 0.06);
}
.demo-cred-row span {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.demo-cred-row code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: .84rem;
    font-weight: 600;
    color: var(--accent-deep);
    background: transparent;
}

.field { margin-bottom: 1rem; }
.field input, .field textarea, .field .pwd {
    width: 100%; border: 1px solid var(--line); border-radius: 12px;
    padding: .8rem .95rem; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field .pwd:focus {
    outline: none; border-color: rgba(14,143,122,.45); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select { margin: 0; }

/* Premium select — global */
select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .75rem 2.65rem .75rem .95rem;
    color: var(--ink);
    background-color: #fff;
    background-image:
        linear-gradient(135deg, rgba(14, 143, 122, 0.08), transparent 42%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 9.5L12 15l5.5-5.5' stroke='%230a6b5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: left top, right .9rem center;
    background-size: 100% 100%, 16px 16px;
    box-shadow: 0 1px 0 rgba(14, 22, 33, 0.03);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, background-color .15s, transform .12s;
}
select:hover:not(:disabled) {
    border-color: rgba(14, 143, 122, 0.35);
    background-color: #fbfdfe;
}
select:focus {
    outline: none;
    border-color: rgba(14, 143, 122, 0.5);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
select:disabled {
    opacity: .55;
    cursor: not-allowed;
    background-color: #f3f5f8;
}
select option {
    color: var(--ink);
    background: #fff;
    padding: .5rem;
}
.hint, .muted { color: var(--muted); font-size: .92rem; }
.alert { background: #eef8f5; border: 1px solid #c6e8df; padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.alert.error { background: #fdf2f0; border-color: #f0c4bf; color: var(--danger); }
.alert.success { background: #eef8f5; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 1rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li {
    padding: .9rem 1rem; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
}
.list li:hover, .list li.active { background: #f0f4f8; border-color: var(--line); }
.list small { display: block; color: var(--muted); margin-top: .2rem; }
.form-header-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: linear-gradient(90deg, #123047, #1a4f8c); color: white;
    padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem;
}
.badge { background: #e11d48; color: white; padding: .35rem .7rem; border-radius: 8px; font-weight: 700; font-size: .85rem; }
.checklist-section { margin: 1.25rem 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.section-title {
    display: grid; grid-template-columns: 48px 1fr auto; gap: .75rem; align-items: center;
    background: #f3f6f9; padding: .7rem .9rem; border-bottom: 1px solid var(--line);
}
.section-title.with-shortcuts { grid-template-columns: 48px minmax(0,1fr) auto; }
.section-title .code {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: var(--accent); color: white; font-weight: 700;
}
.section-title h3 { margin: 0; font-size: 1rem; }
.section-title .cols { color: var(--muted); font-size: .8rem; }
.section-shortcuts { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.shortcut {
    border: 1px solid var(--line); background: #fff; border-radius: 999px;
    padding: .28rem .65rem; font-size: .72rem; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.shortcut:hover { transform: translateY(-1px); }
.shortcut.ok { color: var(--ok); border-color: #9fd0c3; background: #f0faf6; }
.shortcut.bad { color: var(--danger); border-color: #f0b4ae; background: #fff5f4; }
.section-title.edit-cat { grid-template-columns: 64px 1fr auto; }
.section-title .cat-code { max-width: 64px; text-align: center; font-weight: 700; }
.section-title .cat-title { font-weight: 700; text-transform: uppercase; }
.checklist-row {
    display: grid; grid-template-columns: 58px 1fr auto; gap: .75rem; align-items: center;
    padding: .7rem .9rem; border-bottom: 1px solid #eef2f6;
}
.checklist-row:last-child { border-bottom: 0; }
.item-code { font-weight: 700; color: var(--accent); }
.item-text { font-size: .94rem; line-height: 1.35; }
.answer-btns { display: flex; gap: .4rem; }
.ans {
    border: 1px solid var(--line); background: white; border-radius: 999px;
    padding: .4rem .75rem; font-size: .8rem; cursor: pointer; transition: all .12s;
}
.ans:hover { transform: scale(1.03); }
.ans.ok.on { background: #d9f2ea; border-color: var(--ok); color: var(--ok); font-weight: 700; }
.ans.bad.on { background: #fde8e6; border-color: var(--danger); color: var(--danger); font-weight: 700; }
.wizard-steps { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; justify-content: center; }
.wizard-steps .step {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: #d5dde7; color: var(--muted); font-weight: 700; transition: all .2s;
}
.wizard-steps .step.active { background: var(--accent); color: white; transform: scale(1.08); }
.wizard-steps .step.done { background: #9fd0c3; color: #0b463c; }
.done-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.75rem 1.35rem 1.5rem;
    box-shadow: 0 10px 30px rgba(14, 22, 33, 0.06);
}
.done-hero { text-align: center; margin-bottom: 1.25rem; }
.done-hero h2 { margin: .35rem 0 .25rem; font-size: 1.45rem; }
.done-check {
    width: 56px; height: 56px; margin: 0 auto;
    border-radius: 18px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #0E8F7A, #0a6b5c);
    color: #fff; font-size: 1.6rem; font-weight: 800;
    box-shadow: 0 8px 20px rgba(14, 143, 122, 0.28);
}
.share-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.share-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    text-align: center;
    padding: 1.05rem .7rem .95rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f7faf9);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.share-card:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(14, 22, 33, 0.08);
    border-color: rgba(14, 143, 122, 0.35);
}
.share-card:disabled { opacity: .55; cursor: not-allowed; }
.share-card strong { font-size: .92rem; }
.share-card small { color: var(--muted); font-size: .75rem; line-height: 1.25; }
.share-ico {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    font-size: .78rem; font-weight: 800; letter-spacing: .04em;
    margin-bottom: .15rem;
}
.share-card.pdf .share-ico { background: #FEE2E2; color: #B91C1C; }
.share-card.wa .share-ico { background: #DCFCE7; color: #15803D; }
.share-card.link .share-ico { background: #E0F2FE; color: #0369A1; }
@media (max-width: 640px) {
    .share-actions { grid-template-columns: 1fr; }
}
.wizard-panel { position: relative; }
.wizard-panel.wizard-form-mode {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.wizard-busy {
    position: absolute; inset: 0; border-radius: inherit;
    background: rgba(255,255,255,.72); backdrop-filter: blur(2px);
    display: grid; place-items: center; z-index: 5; gap: .5rem;
}
.meta-grid { grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 1rem; }
.model-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1px solid var(--line); border-radius: 999px; padding: .4rem .75rem; background: white; cursor: pointer;
}
.chip input { accent-color: var(--accent); }

/* Modern checkboxes (system-wide) */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    flex-shrink: 0;
    border: 1.5px solid #b8c4d2;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .12s ease;
}
input[type="checkbox"]:hover:not(:disabled) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="checkbox"]:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
input[type="checkbox"]:checked {
    background: linear-gradient(145deg, #2dd4bf, var(--accent));
    border-color: var(--accent-deep);
}
input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%; top: 45%;
    width: .28rem; height: .52rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -55%) rotate(45deg);
}
input[type="checkbox"]:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.mcheck {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-weight: 500;
    color: var(--ink);
}
.mcheck > input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    inset: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}
.mcheck > input[type="checkbox"]:checked { background: transparent; border-color: transparent; }
.mcheck > input[type="checkbox"]:checked::after { content: none; }
.mcheck > input[type="checkbox"]:hover:not(:disabled) { box-shadow: none; }
.mcheck-ui {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 7px;
    border: 1.5px solid #b8c4d2;
    background: #fff;
    display: grid;
    place-items: center;
    color: transparent;
    flex-shrink: 0;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease, transform .12s ease;
}
.mcheck-ui svg { opacity: 0; transform: scale(.7); transition: opacity .12s ease, transform .12s ease; }
.mcheck:hover:not(.is-disabled) .mcheck-ui {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.mcheck.is-on .mcheck-ui {
    background: linear-gradient(145deg, #2dd4bf, var(--accent));
    border-color: var(--accent-deep);
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 143, 122, .28);
}
.mcheck.is-on .mcheck-ui svg { opacity: 1; transform: scale(1); }
.mcheck:active:not(.is-disabled) .mcheck-ui { transform: scale(.94); }
.mcheck.is-disabled { opacity: .5; cursor: not-allowed; }
.mcheck-label { line-height: 1.25; font-size: .95rem; }
.mcheck:focus-within .mcheck-ui {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Chip + modern check */
.mcheck.mcheck-chip {
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: .45rem .85rem .45rem .55rem;
    background: linear-gradient(180deg, #fff, #f7f9fb);
    gap: .45rem;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mcheck.mcheck-chip:hover:not(.is-disabled) {
    border-color: rgba(14, 143, 122, .4);
    transform: translateY(-1px);
}
.mcheck.mcheck-chip.is-on {
    border-color: var(--accent);
    background: linear-gradient(145deg, rgba(14,143,122,.14), #fff);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.mcheck.mcheck-chip .mcheck-label { font-weight: 650; font-size: .9rem; }

/* Modern elevator model picker */
.model-picker { margin: 0 0 1.25rem; }
.model-picker-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem;
    margin-bottom: .65rem;
}
.model-picker-label {
    display: block; font-family: var(--font-display); font-weight: 700;
    font-size: 1rem; letter-spacing: -0.02em; margin: 0;
}
.model-picker-hint { margin: .15rem 0 0; font-size: .82rem; color: var(--muted); }
.model-picker-count {
    font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--accent-deep); background: var(--accent-soft);
    border-radius: 999px; padding: .28rem .65rem; white-space: nowrap;
}
.model-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: .55rem;
}
.model-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .65rem;
    text-align: left;
    padding: .75rem .8rem;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background:
        linear-gradient(180deg, #fff 0%, #f7f9fb 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
    cursor: pointer;
    color: var(--ink);
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.model-card:hover:not(:disabled) {
    border-color: rgba(14, 143, 122, .35);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(11, 18, 32, .08);
}
.model-card:disabled { opacity: .55; cursor: not-allowed; }
.model-card.is-on {
    border-color: var(--accent);
    background:
        linear-gradient(145deg, rgba(14,143,122,.14) 0%, rgba(14,143,122,.06) 45%, #fff 100%);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 22px rgba(14,143,122,.12);
}
.model-card-icon {
    width: 36px; height: 36px; border-radius: 11px;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: .72rem; font-weight: 800; letter-spacing: .04em;
    background: #eef2f6; color: #1a3348;
    transition: background .18s, color .18s;
}
.model-card.is-on .model-card-icon {
    background: linear-gradient(135deg, #2dd4bf, #0e8f7a);
    color: #062820;
}
.model-card-body { min-width: 0; display: grid; gap: .1rem; }
.model-card-body strong {
    font-family: var(--font-display); font-size: .92rem; font-weight: 700;
    letter-spacing: -0.02em; line-height: 1.15;
}
.model-card-body small {
    color: var(--muted); font-size: .72rem; line-height: 1.25;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.model-card-check {
    width: 22px; height: 22px; border-radius: 999px;
    display: grid; place-items: center;
    border: 1.5px solid #c9d3de; color: transparent;
    background: #fff; flex-shrink: 0;
    transition: all .18s ease;
}
.model-card.is-on .model-card-check {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.model-picker.compact .model-picker-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.model-picker.compact .model-card { padding: .6rem .65rem; gap: .5rem; }
.model-picker.compact .model-card-icon { width: 30px; height: 30px; font-size: .9rem; border-radius: 9px; }
.model-picker.compact .model-card-body small { display: none; }

@media (max-width: 640px) {
    .model-picker-grid { grid-template-columns: 1fr 1fr; }
    .model-card-body small { display: none; }
}
.tech-assign { margin: 1rem 0; display: grid; gap: .55rem; }
.tech-assign > label:first-child { font-weight: 650; font-size: .9rem; }
.tech-checks { display: flex; flex-wrap: wrap; gap: .4rem; }
.sign-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.signature-pad { display: grid; gap: .35rem; }
.signature-pad label { font-weight: 650; font-size: .9rem; }
.signature-canvas {
    width: 100%; height: 140px; border: 1px dashed var(--line); border-radius: 12px;
    background: #fff; touch-action: none; cursor: crosshair;
}
.sig-preview { max-height: 72px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .25rem; }
.chart-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.chart-grid > :last-child { grid-column: 1 / -1; }
.chart-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1.1rem 1.15rem;
}
.chart-card h3 {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}
.chart-wrap { position: relative; height: var(--chart-h, 260px); width: 100%; }
.btn-secondary.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-danger {
    background: #e11d48; color: #fff; border: none; border-radius: 999px;
    padding: .7rem 1.1rem; font-weight: 700; cursor: pointer;
}
.btn-danger:disabled { opacity: .55; cursor: not-allowed; }
.confirm-overlay {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px);
    display: grid; place-items: center; padding: 1rem;
}
.confirm-dialog {
    width: min(440px, 100%); background: #fff; border-radius: 18px;
    border: 1px solid var(--line); padding: 1.25rem 1.35rem;
    box-shadow: 0 18px 50px rgba(15,23,42,.18);
}
.confirm-dialog h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.confirm-msg { margin: 0 0 .35rem; line-height: 1.4; }
.confirm-detail { margin: 0 0 .85rem; font-size: .9rem; }
.confirm-code-box {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    background: #fff5f5; border: 1px dashed #f0b4ae; border-radius: 12px;
    padding: .65rem .85rem; margin-bottom: .85rem;
}
.confirm-code {
    font-family: ui-monospace, Consolas, monospace; letter-spacing: .12em;
    font-size: 1.15rem; color: #be123c;
}
.confirm-input {
    width: 100%; text-transform: uppercase; letter-spacing: .1em;
    font-family: ui-monospace, Consolas, monospace; font-weight: 700;
}

/* Modern message box */
.msgbox-overlay {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(11, 18, 32, .52);
    backdrop-filter: blur(4px);
    display: grid; place-items: center;
    padding: 1rem;
    animation: msgbox-fade .16s ease-out;
}
.msgbox-dialog {
    width: min(400px, 100%);
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 1.45rem 1.4rem 1.25rem;
    box-shadow: 0 22px 55px rgba(11, 18, 32, .22);
    text-align: center;
    animation: msgbox-pop .18s ease-out;
}
.msgbox-icon {
    width: 52px; height: 52px; margin: 0 auto .85rem;
    border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.45rem; font-weight: 800;
}
.msgbox-dialog.is-error .msgbox-icon {
    background: #FEE2E2; color: #B91C1C;
}
.msgbox-dialog.is-info .msgbox-icon {
    background: #E0F2FE; color: #0369A1;
}
.msgbox-dialog.is-success .msgbox-icon {
    background: #DCFCE7; color: #15803D;
}
.msgbox-dialog h3 {
    margin: 0 0 .45rem;
    font-size: 1.2rem;
    color: var(--ink);
}
.msgbox-msg {
    margin: 0 0 .35rem;
    color: #334155;
    line-height: 1.45;
    font-size: .98rem;
}
.msgbox-detail {
    margin: 0 0 .85rem;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.4;
}
.msgbox-ok {
    width: 100%;
    margin-top: 1rem;
    min-height: 2.75rem;
}
@keyframes msgbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes msgbox-pop {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.deleted-panel { margin-top: 1.5rem; border-style: dashed; background: #fafafa; }
.deleted-panel h2 { color: #be123c; }
.deleted-panel .list li {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    cursor: default; border: 1px solid var(--line); margin-bottom: .5rem;
}
.deleted-panel .list li:hover { background: #fff; }
@media (max-width: 900px) {
    .sign-pads { grid-template-columns: 1fr; }
    .chart-grid { grid-template-columns: 1fr; }
    .chart-grid > :first-child { max-width: none; }
}
.sign-grid { grid-template-columns: 1fr 1fr; }
.tile-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.auth-card.wide { width: min(720px, 100%); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.field-grid .full { grid-column: 1 / -1; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.filter-panel { margin-bottom: 1rem; }
.history-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pager-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .75rem; color: var(--muted); font-size: .88rem;
}
.pager-bar {
    display: flex; align-items: center; justify-content: center; gap: .85rem;
    margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
    .history-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .history-filters { grid-template-columns: 1fr; }
}
.row-actions { display: flex; gap: .75rem; }
.row-actions a, .row-actions button { color: var(--accent); font-weight: 600; background: none; border: 0; cursor: pointer; }
.twofa-box { display: flex; gap: 1.25rem; align-items: start; flex-wrap: wrap; margin-top: 1rem; }
.btn-secondary.selected { outline: 2px solid var(--accent); }
.sub-timeline {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem;
}
.sub-card {
    padding: 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: #f7fafc;
}
.sub-card strong { font-family: var(--font-display); font-size: 1.35rem; display: block; margin-top: .25rem; }
.mobile-only { display: none; }
.icon-btn { border: 1px solid var(--line); background: white; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

/* Checklist editor */
.checklist-admin .section-actions { display: flex; gap: .65rem; align-items: center; }
.linkish {
    border: 0; background: transparent; color: var(--accent-deep);
    font-weight: 600; font-size: .82rem; cursor: pointer; padding: .2rem .1rem;
}
.linkish:hover { text-decoration: underline; }
.linkish.danger { color: var(--danger); }
.checklist-row.edit-row {
    background: #f4fbf9; gap: .55rem;
    grid-template-columns: 88px 1fr auto;
}
.code-input, .text-input {
    border: 1px solid var(--line); border-radius: 10px; padding: .55rem .65rem; background: #fff;
}
.code-input { font-weight: 700; color: var(--accent); width: 100%; }
.text-input { width: 100%; }
.row-actions-inline { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.btn-primary.sm, .btn-secondary.sm { padding: .45rem .85rem; font-size: .82rem; border-radius: 999px; }
.add-row-btn {
    width: 100%; border: 1px dashed rgba(14,143,122,.35); background: rgba(14,143,122,.04);
    color: var(--accent-deep); font-weight: 600; padding: .75rem; cursor: pointer;
    border-radius: 0 0 14px 14px;
}
.add-row-btn:hover { background: rgba(14,143,122,.1); }
.editor-toolbar { margin: .5rem 0 1rem; }
.template-toolbar {
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
}
.btn-secondary.danger-outline {
    color: #be123c; border-color: #f0b4ae; background: #fff5f5;
}
.btn-secondary.danger-outline:hover:not(:disabled) {
    background: #ffe4e6; border-color: #e11d48;
}
.form-header-bar small { display: block; margin-top: .2rem; font-size: .78rem; font-weight: 600; }

/* Checklist create actions */
.checklist-hero { gap: 1.25rem; }
.checklist-create-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 260px));
    gap: .65rem;
    margin: 0;
}
.create-action {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    text-align: left;
    padding: .85rem 1rem;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: linear-gradient(180deg, #fff, #f7f9fb);
    cursor: pointer;
    color: var(--ink);
    transition: border-color .18s, transform .18s, box-shadow .18s, background .18s;
    box-shadow: 0 8px 22px rgba(11, 18, 32, .06);
}
.create-action:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(14, 143, 122, .4);
    box-shadow: 0 14px 28px rgba(11, 18, 32, .1);
}
.create-action:disabled { opacity: .6; cursor: wait; }
.create-action.primary {
    background: linear-gradient(145deg, #0f3d4c, #165a6b);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 61, 76, .28);
}
.create-action.primary:hover:not(:disabled) {
    filter: brightness(1.05);
    border-color: transparent;
}
.create-action.secondary {
    background: #fff;
}
.create-action-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
}
.create-action.secondary .create-action-icon {
    background: var(--accent-soft);
    color: var(--accent-deep);
}
.create-action-text { min-width: 0; display: grid; gap: .15rem; }
.create-action-text strong {
    font-family: var(--font-display);
    font-size: .95rem; font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.15;
}
.create-action-text small {
    font-size: .72rem; line-height: 1.3; opacity: .78;
    white-space: normal;
}
.create-action.primary .create-action-text small { color: rgba(255,255,255,.78); opacity: 1; }
.create-action.secondary .create-action-text small { color: var(--muted); opacity: 1; }
@media (max-width: 900px) {
    .checklist-create-actions { grid-template-columns: 1fr; width: 100%; }
}
.panel-soft {
    background: #f7fafc; border: 1px solid var(--line); border-radius: 14px;
    padding: 1rem; margin-bottom: 1rem;
}
.checklist-section.editable .section-title { grid-template-columns: 48px 1fr auto; }

/* ── Kasa durumu ── */
.kasa-kpi {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1.15rem;
}
.kasa-kpi-card {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 28px rgba(11, 18, 32, .06);
}
.kasa-kpi-card span {
    display: block; font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
    margin-bottom: .35rem;
}
.kasa-kpi-card strong {
    font-family: var(--font-display); font-size: 1.35rem;
    letter-spacing: -0.03em; color: var(--ink);
}
.kasa-kpi-card strong.in { color: var(--ok); }
.kasa-kpi-card strong.out { color: var(--danger); }
.kasa-kpi-card.accent {
    background: linear-gradient(145deg, #0f3d4c, #165a6b);
    border-color: transparent; color: #fff;
}
.kasa-kpi-card.accent span { color: rgba(255,255,255,.7); }
.kasa-kpi-card.accent strong { color: #fff; }
.kasa-charts { margin-bottom: 1.15rem; }
.kasa-form-panel { margin-bottom: 1rem; }
.kasa-modal {
    width: min(560px, 100%);
    max-height: min(92vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 1.25rem 1.35rem 1.35rem;
    box-shadow: 0 22px 55px rgba(11, 18, 32, .22);
    animation: msgbox-pop .18s ease-out;
}
.kasa-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--line);
}
.kasa-modal-head h2 {
    margin: .15rem 0 0;
    font-size: 1.25rem;
}
.kasa-modal .field-grid {
    grid-template-columns: 1fr 1fr;
}
.kasa-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}
.kasa-pill {
    display: inline-flex; align-items: center;
    border-radius: 999px; padding: .2rem .55rem;
    font-size: .75rem; font-weight: 700;
}
.kasa-pill.in { background: #e8f7f2; color: var(--ok); }
.kasa-pill.out { background: #fdecea; color: var(--danger); }
.amt-in { color: var(--ok); }
.amt-out { color: var(--danger); }
.kasa-table .note-cell {
    max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 1100px) {
    .kasa-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kasa-filters { grid-template-columns: 1fr; }
}

/* ── Premium ASANSÖR BAKIM FORMU sheet ── */
.bakim-sheet {
    --bakim-ink: #152033;
    --bakim-teal: #0f3d4c;
    --bakim-teal-2: #165a6b;
    --bakim-line: #d5dde6;
    --bakim-paper: #fffdf9;
    --bakim-soft: #f3f6f8;
    background:
        linear-gradient(180deg, #ffffff 0%, var(--bakim-paper) 100%);
    border: 1px solid rgba(15, 61, 76, .12);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255,255,255,.8) inset,
        0 24px 60px rgba(15, 32, 51, .12);
    padding: 1.35rem 1.45rem 1.6rem;
    color: var(--bakim-ink);
    margin-bottom: 1rem;
    overflow: hidden;
}
.bakim-sheet-head {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) minmax(180px, 1.4fr) auto;
    gap: 1rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bakim-teal);
    margin-bottom: 1rem;
}
.bakim-brand { display: flex; gap: .75rem; align-items: center; }
.bakim-mark {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(145deg, #F97316, #EA580C 55%, #C2410C);
    display: grid; place-items: center;
    box-shadow: 0 8px 20px rgba(234, 88, 12, .28);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: -0.04em;
    border: 1.5px solid rgba(255,255,255,.35);
}
.bakim-mark span { display: none; }
.bakim-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.bakim-brand small { color: var(--muted); font-size: .78rem; }
.bakim-company-meta {
    display: grid; gap: .2rem;
    font-size: .78rem; color: #4a5a6a; line-height: 1.35;
}
.bakim-serial {
    color: #c81e3a; font-weight: 800; font-size: .95rem;
    letter-spacing: .04em; margin-top: .15rem;
}
.bakim-title-badge {
    background: linear-gradient(145deg, var(--bakim-teal), var(--bakim-teal-2));
    color: #fff;
    border-radius: 10px;
    padding: .85rem 1.1rem;
    min-width: 168px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(15, 61, 76, .28);
}
.bakim-title-badge span {
    display: block; font-size: .72rem; letter-spacing: .16em;
    opacity: .85; font-weight: 700;
}
.bakim-title-badge strong {
    display: block; font-family: var(--font-display);
    font-size: 1.05rem; letter-spacing: .02em; margin-top: .15rem;
}

.bakim-meta { margin-bottom: 1rem; }
.bakim-meta-row {
    display: grid;
    grid-template-columns: 1.4fr .7fr;
    gap: .65rem 1rem;
    margin-bottom: .55rem;
}
.bakim-meta-row:nth-child(2) {
    grid-template-columns: .7fr 1.4fr .7fr;
}
.bakim-field label {
    display: block;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: #6a7a8a; margin-bottom: .2rem;
}
.bakim-value {
    min-height: 2rem;
    border-bottom: 1.5px solid var(--bakim-line);
    padding: .25rem 0 .35rem;
    font-weight: 650; font-size: .95rem;
}
.bakim-value.accent { color: var(--bakim-teal); font-weight: 800; }

.bakim-models {
    display: flex; flex-wrap: wrap; align-items: center; gap: .65rem .85rem;
    margin-top: .85rem; padding: .75rem .85rem;
    background: var(--bakim-soft);
    border: 1px solid var(--bakim-line);
    border-radius: 12px;
}
.bakim-models > label {
    font-size: .78rem; font-weight: 800; letter-spacing: .05em;
    text-transform: uppercase; color: var(--bakim-teal); margin: 0;
}
.bakim-model-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.bakim-model-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    border: 1px solid transparent; background: transparent;
    border-radius: 999px; padding: .28rem .55rem .28rem .3rem;
    font-size: .84rem; font-weight: 650; color: var(--bakim-ink);
    cursor: pointer; transition: background .15s, border-color .15s;
}
button.bakim-model-pill:hover:not(:disabled) { background: #fff; border-color: var(--bakim-line); }
.bakim-model-pill.is-on { background: #fff; border-color: rgba(15,143,122,.35); }
.bakim-box {
    width: 1.1rem; height: 1.1rem; border-radius: 5px;
    border: 1.5px solid #9aabba; background: #fff;
    display: grid; place-items: center; color: transparent;
    transition: all .15s ease; flex-shrink: 0;
}
.bakim-box.is-on {
    background: linear-gradient(145deg, #2dd4bf, #0e8f7a);
    border-color: #0a6b5c; color: #fff;
    box-shadow: 0 3px 8px rgba(14,143,122,.28);
}
.bakim-box.is-on.bad {
    background: linear-gradient(145deg, #fb7185, #e11d48);
    border-color: #be123c;
    box-shadow: 0 3px 8px rgba(225,29,72,.25);
}

.bakim-table-head {
    display: grid;
    grid-template-columns: 1fr 72px 72px;
    gap: .5rem;
    align-items: center;
    background: linear-gradient(90deg, var(--bakim-teal), #1a6a7c);
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: .55rem .85rem;
    font-size: .78rem; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase;
    position: sticky; top: 0; z-index: 2;
}
.bakim-table-head .col-ans { text-align: center; }

.bakim-cat {
    display: grid;
    grid-template-columns: 88px 1fr;
    border: 1px solid var(--bakim-line);
    border-top: 0;
    background: #fff;
}
.bakim-cat:last-of-type { border-radius: 0 0 12px 12px; overflow: hidden; }
.bakim-cat-rail {
    background: linear-gradient(180deg, #123847, #0f3d4c);
    color: #eef7f8;
    padding: .85rem .5rem;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: .45rem; text-align: center;
}
.bakim-cat-rail strong {
    font-family: var(--font-display);
    font-size: 1.35rem; line-height: 1;
}
.bakim-cat-rail > span {
    font-size: .62rem; font-weight: 800; letter-spacing: .08em;
    writing-mode: vertical-rl; transform: rotate(180deg);
    opacity: .9;
}
.bakim-cat-tools { display: grid; gap: .25rem; width: 100%; margin-top: auto; }
.bakim-mini {
    border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08);
    color: #fff; border-radius: 6px; padding: .2rem .15rem;
    font-size: .62rem; font-weight: 700; cursor: pointer;
}
.bakim-mini.ok:hover { background: rgba(45,212,191,.35); }
.bakim-mini.bad:hover { background: rgba(251,113,133,.35); }

.bakim-cat-rows { display: flex; flex-direction: column; }
.bakim-row {
    display: grid;
    grid-template-columns: 1fr 72px 72px;
    gap: .5rem;
    align-items: center;
    padding: .55rem .75rem;
    border-bottom: 1px solid #eef2f6;
    transition: background .12s;
}
.bakim-row:nth-child(even) { background: #fafbfc; }
.bakim-row:last-child { border-bottom: 0; }
.bakim-row:hover { background: #f3faf8; }
.bakim-row-text {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: .55rem;
    align-items: start;
    font-size: .9rem; line-height: 1.35;
}
.bakim-row-text code {
    font-family: var(--font-display);
    font-weight: 800; font-size: .82rem;
    color: var(--bakim-teal);
}
.bakim-ans {
    justify-self: center;
    width: 40px; height: 40px;
    border: none; background: transparent;
    display: grid; place-items: center;
    cursor: pointer; border-radius: 10px;
    transition: background .12s;
}
.bakim-ans:hover:not(:disabled) { background: rgba(14,143,122,.08); }
.bakim-ans.bad:hover:not(:disabled) { background: rgba(225,29,72,.08); }
.bakim-ans:disabled { cursor: default; opacity: .95; }

.bakim-notes {
    margin-top: 1.15rem;
    border: 1px solid var(--bakim-line);
    border-radius: 12px;
    padding: .9rem 1rem 1rem;
    background:
        repeating-linear-gradient(
            transparent, transparent 27px,
            rgba(15,61,76,.06) 27px, rgba(15,61,76,.06) 28px
        ),
        #fff;
}
.bakim-notes h3 {
    font-family: var(--font-display);
    font-size: .82rem; letter-spacing: .04em;
    color: var(--bakim-teal); margin: 0 0 .65rem;
}
.bakim-notes-input {
    width: 100%; min-height: 110px;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    resize: vertical; font-size: .95rem; line-height: 1.75;
    padding: 0 !important;
}
.bakim-notes-lines {
    min-height: 96px; white-space: pre-wrap;
    font-size: .95rem; line-height: 1.75; color: var(--bakim-ink);
}

.bakim-signs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.15rem;
}
.bakim-sign-box {
    border: 1.5px solid var(--bakim-line);
    border-radius: 12px;
    padding: .85rem 1rem 1rem;
    background: #fff;
    min-height: 140px;
    display: flex; flex-direction: column; gap: .35rem;
}
.bakim-sign-box label {
    font-size: .78rem; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--bakim-teal); margin: 0;
}
.bakim-sign-line {
    flex: 1; border-bottom: 1.5px solid var(--bakim-line);
    display: flex; align-items: flex-end; padding-bottom: .35rem;
    font-weight: 650;
}
.bakim-sig-img {
    max-height: 88px; width: auto; object-fit: contain;
    background: #fff; border-radius: 8px;
}
.bakim-sign-box small { color: var(--muted); font-size: .8rem; }

.bakim-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: .25rem;
}

@media (max-width: 1100px) {
    .stat-grid, .action-row, .tile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .app-shell.authed { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .mobile-only { display: inline-grid; place-items: center; }
    .profile-meta { display: none; }
    .content { padding: 1.1rem; }
    .field-grid, .sign-grid, .meta-grid, .sub-timeline { grid-template-columns: 1fr; }
    .section-title.with-shortcuts { grid-template-columns: 48px 1fr; }
    .section-shortcuts { grid-column: 1 / -1; justify-content: flex-start; }
    .bakim-sheet { padding: 1rem; border-radius: 14px; }
    .bakim-sheet-head { grid-template-columns: 1fr; }
    .bakim-title-badge { width: 100%; }
    .bakim-meta-row,
    .bakim-meta-row:nth-child(2) { grid-template-columns: 1fr; }
    .bakim-cat { grid-template-columns: 64px 1fr; }
    .bakim-cat-rail > span { writing-mode: horizontal-tb; transform: none; font-size: .58rem; }
    .bakim-table-head,
    .bakim-row { grid-template-columns: 1fr 56px 56px; }
    .bakim-signs { grid-template-columns: 1fr; }
}

/* Blazor yeniden bağlanma — Türkçe modal */
#components-reconnect-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}
#components-reconnect-modal.components-reconnect-hide {
    display: none;
}
.reconnect-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.48);
    backdrop-filter: blur(3px);
}
.reconnect-card {
    position: relative;
    z-index: 1;
    width: min(22rem, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1.75rem 1.5rem 1.35rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    animation: reconnect-pop .45s cubic-bezier(.05, .89, .25, 1.02);
}
@keyframes reconnect-pop {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: none; }
}
.reconnect-title {
    margin: 0;
    font-size: 1.15rem;
    font-family: var(--font-display);
}
.reconnect-msg {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.45;
    display: none;
}
.components-reconnect-show .reconnect-msg-show,
.components-reconnect-failed .reconnect-msg-failed,
.components-reconnect-rejected .reconnect-msg-rejected {
    display: block;
}
.reconnect-meta, .reconnect-wait {
    margin: 0;
    font-size: .85rem;
    color: var(--ink);
}
.reconnect-meta strong { color: var(--accent-deep); }
.reconnect-wait { color: var(--warn); font-weight: 600; }
.reconnect-actions {
    display: none;
    gap: .5rem;
    margin-top: .35rem;
    width: 100%;
}
.components-reconnect-failed .reconnect-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.components-reconnect-failed .reconnect-spinner,
.components-reconnect-rejected .reconnect-spinner {
    display: none;
}
.reconnect-btn {
    border: 1px solid var(--line);
    background: #f3f5f8;
    color: var(--ink);
    border-radius: 999px;
    padding: .65rem .9rem;
    font-weight: 700;
    cursor: pointer;
}
.reconnect-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.reconnect-btn:hover { filter: brightness(1.03); }
.reconnect-spinner {
    position: relative;
    width: 72px;
    height: 72px;
    margin-bottom: .15rem;
}
.reconnect-spinner span {
    position: absolute;
    inset: 0;
    border: 3px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: reconnect-ripple 1.5s cubic-bezier(0, .2, .8, 1) infinite;
}
.reconnect-spinner span:nth-child(2) { animation-delay: -.5s; }
@keyframes reconnect-ripple {
    0% { inset: 36px; opacity: 0; }
    5% { inset: 36px; opacity: 1; }
    100% { inset: 0; opacity: 0; }
}
