:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-soft: #f8fafd;
    --line: #dfe6f0;
    --line-strong: #c8d4e4;
    --ink: #101828;
    --muted: #667085;
    --brand: #1677f2;
    --brand-dark: #075bd3;
    --brand-soft: #e9f3ff;
    --logo-navy: #071b4d;
    --logo-blue: #1677f2;
    --logo-blue-deep: #0b61db;
    --logo-cyan: #12b8a6;
    --good: #14945f;
    --warn: #b76a05;
    --bad: #c93434;
    --shadow: 0 20px 60px rgba(30, 55, 90, .11);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--logo-navy); font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-weight: 800; letter-spacing: 0; }
.brand-name,
.logo-name { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-weight: 800; color: var(--logo-navy); letter-spacing: 0; }
.brand-name span,
.logo-name span { color: var(--logo-blue); }
.brand-mark,
.logo-mark {
    width: 46px;
    height: 46px;
    display: block;
    flex: 0 0 46px;
    background: url('/assets/img/smena-icon-192.png?v=20260706-smena-icon') center / contain no-repeat;
}
.brand-mark::before,
.brand-mark::after,
.logo-mark::before,
.logo-mark::after { content: none; }
.brand-mark i,
.logo-mark span { display: none; }

.btn {
    min-height: 40px; border-radius: 10px; border: 1px solid transparent;
    padding: 9px 15px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; gap: 8px; transition: .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -16px var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: #23324a; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { color: var(--bad); border-color: #f0c8c8; background: #fff; }
.btn-lg { min-height: 50px; padding: 12px 20px; border-radius: 12px; }
.btn-wide { width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.fineprint { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.topbar {
    position: sticky; top: 0; z-index: 20; height: 68px; padding: 0 32px;
    display: flex; align-items: center; gap: 26px; background: rgba(255,255,255,.88);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.site-nav { display: flex; gap: 24px; margin-left: auto; color: #344054; font-weight: 600; font-size: 14px; }
.hero { max-width: 1180px; margin: 0 auto; padding: 70px 28px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.eyebrow { display: inline-flex; color: var(--brand); font-weight: 800; background: var(--brand-soft); padding: 6px 10px; border-radius: 999px; font-size: 13px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; margin: 18px 0; letter-spacing: 0; max-width: 780px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 620px; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; color: #344054; font-size: 13px; }
.hero-facts span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; }
.hero-panel, .auth-card, .panel, .price-card, .feature-grid article {
    background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.hero-panel { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); margin-bottom: 16px; }
.panel-head b { color: var(--ink); font-size: 18px; }
.mini-generator { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 7px; font-weight: 700; color: #344054; font-size: 14px; }
label.required { position: relative; }
label.required::after,
.modal-field-title.required::after {
    content: "*";
    color: var(--bad);
    font-weight: 900;
}
label.required::after { position: absolute; top: 0; left: -10px; }
.modal-field-title.required::after { margin-left: 4px; }
input, select {
    width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px;
    padding: 9px 11px; color: var(--ink); background: #fff;
}
input:focus, select:focus { outline: 2px solid rgba(17,120,189,.18); border-color: var(--brand); }
.mini-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mini-result div { background: var(--panel-soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.mini-result span { display: block; color: var(--muted); font-size: 13px; }
.mini-result b { display: block; font-size: 24px; margin-top: 4px; }
.calendar-strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-top: 18px; }
.calendar-strip i { height: 28px; border-radius: 6px; background: var(--brand-soft); border: 1px solid #cbe4f6; }
.calendar-strip i.off { background: #f1f3f6; border-color: #e2e6ec; }
.band, .pricing { max-width: 1180px; margin: 0 auto; padding: 54px 28px; }
.section-title { margin-bottom: 24px; }
.section-title span { color: var(--brand); font-weight: 800; }
.section-title h2 { font-size: clamp(28px, 3.5vw, 42px); margin: 6px 0 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: transparent; border: 0; box-shadow: none; }
.feature-grid article { padding: 22px; box-shadow: none; }
.feature-grid b { font-size: 18px; }
.feature-grid p, .price-card p { color: var(--muted); margin-bottom: 0; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; }
.price-card { padding: 24px; display: grid; gap: 12px; align-content: start; }
.price-card strong { font-size: 36px; }
.price-card.featured { border-color: var(--brand); background: linear-gradient(180deg, #eef8ff, #fff); }
.footer { border-top: 1px solid var(--line); padding: 28px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); max-width: 1180px; margin: 30px auto 0; }
.footer nav { display: flex; gap: 18px; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow-x: hidden; }
.auth-shell { width: 100%; max-width: 920px; min-width: 0; }
.auth-brand { margin-bottom: 18px; }
.auth-card { min-width: 0; overflow: hidden; }
.auth-blue { background: var(--brand); color: #fff; padding: 32px 42px; }
.auth-blue span { font-size: 18px; opacity: .9; }
.auth-blue h1 { margin: 8px 0 0; font-size: clamp(30px, 5vw, 40px); overflow-wrap: anywhere; }
.auth-body { padding: 36px 42px; }
.auth-body form { display: grid; gap: 16px; }
.auth-tabs {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px;
    border-radius: 12px; background: var(--brand-soft); margin-bottom: 18px;
}
.auth-tabs button {
    border: 0; border-radius: 9px; min-height: 40px; background: transparent;
    color: var(--muted); font-weight: 800;
}
.auth-tabs button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 2px rgba(20,40,90,.1); }
.form-message { min-height: 22px; margin-top: 16px; font-weight: 700; }
.form-message.ok { color: var(--good); }
.form-message.bad { color: var(--bad); }
.link-button { color: var(--brand); background: none; border: 0; padding: 0; font-weight: 700; justify-self: center; }

.legal-status-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.legal-status-fieldset legend { color: #344054; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.legal-status-fieldset legend.required::after { content: "*"; color: var(--bad); margin-left: 4px; }
.legal-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.legal-status-option { position: relative; display: block; min-width: 0; }
.legal-status-option input { position: absolute; opacity: 0; pointer-events: none; }
.legal-status-option span {
    min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; background: #fff; color: #344054;
    font-weight: 800; text-align: center; cursor: pointer;
}
.legal-status-option input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.legal-status-option input:focus-visible + span { outline: 2px solid rgba(22,119,242,.28); outline-offset: 2px; }
.dadata-field { position: relative; min-width: 0; }
.dadata-suggestions {
    position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px;
    overflow-y: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px;
    background: #fff; box-shadow: 0 16px 38px rgba(22, 42, 76, .16);
}
.dadata-suggestion {
    width: 100%; min-height: 42px; border: 0; border-radius: 6px; background: #fff; padding: 9px 11px;
    color: var(--ink); font: inherit; text-align: left; overflow-wrap: anywhere;
}
.dadata-suggestion:hover, .dadata-suggestion:focus-visible { background: var(--brand-soft); outline: 0; }
.dadata-suggestion.party { display: grid; gap: 2px; }
.dadata-suggestion.party span { color: var(--muted); font-size: 12px; font-weight: 500; }
.legal-party-section { display: grid; gap: 12px; padding-top: 2px; }
.legal-party-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.legal-party-actions .muted { font-size: 13px; }
.btn-small { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.legal-details { display: grid; gap: 12px; padding-top: 4px; }

@media (max-width: 680px) {
    .auth-page { display: block; padding: 18px 12px; }
    .auth-shell { margin: 0 auto; }
    .auth-blue h1 { font-size: 30px; line-height: 1.15; }
    .legal-status-grid { grid-template-columns: 1fr; }
    .legal-party-actions { align-items: stretch; flex-direction: column; }
}

.dashboard-page { overflow: hidden; }
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.sidebar .brand { padding: 6px 8px 18px; }
.side-item {
    border: 0; background: transparent; color: #344054; min-height: 42px; border-radius: 9px;
    display: flex; align-items: center; padding: 0 12px; font-weight: 700; text-align: left;
}
.side-item:hover, .side-item.active { background: var(--brand-soft); color: var(--brand); }
.side-link { margin-top: auto; }
.app-main { min-width: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.app-header { height: 76px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; align-items: center; gap: 18px; }
.app-header h1 { margin: 0; font-size: 26px; }
.app-header p { margin: 2px 0 0; color: var(--muted); }
.app-header .btn { margin-left: auto; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.app-content { padding: 24px 28px 70px; overflow: auto; }
.loader { color: var(--muted); padding: 40px; text-align: center; }
.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel { padding: 20px; box-shadow: none; }
.stat b { display: block; font-size: 30px; margin-top: 8px; }
.stat span { color: var(--muted); font-weight: 700; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--panel-soft); }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.icon-label { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.notice { background: var(--brand-soft); border: 1px solid #cae5f6; color: #124c73; border-radius: 8px; padding: 14px; }
.pill { display: inline-flex; min-height: 26px; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--panel-soft); border: 1px solid var(--line); font-weight: 700; font-size: 12px; }
.pill.good { color: var(--good); background: #ebf8f2; border-color: #bfe8d6; }
.pill.warn { color: var(--warn); background: #fff4df; border-color: #f3d49d; }
.schedule-tools { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.schedule-tools .wide { grid-column: span 2; }
.schedule-grid { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.schedule-grid table { min-width: 980px; }
.day-cell { text-align: center; min-width: 44px; }
.shift { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #fff; font-weight: 800; font-size: 12px; }
.shift.day { background: var(--brand); }
.shift.night { background: #5b3db7; }
.shift.evening { background: #b85d1a; }
.shift.off { background: #dc2626; color: #fff; }
.empty-state { padding: 28px; text-align: center; color: var(--muted); }
.doc-page { min-height: 100vh; padding: 32px; }
.doc { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px; }
.doc h1 { margin-top: 28px; font-size: 34px; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding-top: 42px; }
    .feature-grid, .grid.stats, .price-grid, .two-col { grid-template-columns: 1fr; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); z-index: 50; transition: transform .18s ease; box-shadow: var(--shadow); }
    .sidebar.open { transform: translateX(0); }
    .menu-btn { display: inline-grid; place-items: center; }
    .schedule-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .schedule-tools .wide { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .topbar { padding: 0 16px; }
    .site-nav { display: none; }
    .hero, .band, .pricing { padding-left: 16px; padding-right: 16px; }
    .mini-generator, .mini-result, .form-grid { grid-template-columns: 1fr; }
    .footer { flex-direction: column; padding: 22px 16px; }
    .app-header { padding: 0 16px; }
    .app-content { padding: 18px 16px 60px; }
    .auth-body, .auth-blue { padding-left: 24px; padding-right: 24px; }
}

/* Claude Design landing restoration */
.claude-site {
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --bg-tint: #eef3fb;
    --line: #e4e9f2;
    --line-strong: #d3dbe8;
    --ink: #0e1729;
    --ink-2: #2a3550;
    --muted: #5b6781;
    --muted-2: #8693ad;
    --brand: #1677f2;
    --brand-2: #075bd3;
    --brand-soft: #e9f3ff;
    --brand-tint: #f4f9ff;
    --accent: #f2d66b;
    --accent-ink: #5b470c;
    --good: #28a26d;
    --bad: #c94c4c;
    background: var(--bg);
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
}
.claude-site h1,
.claude-site h2,
.claude-site h3,
.claude-site h4 {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    letter-spacing: 0;
    margin: 0;
    line-height: 1.1;
}
.claude-site p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--logo-navy); font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 18px; }
.logo-mark { width: 46px; height: 46px; flex-basis: 46px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.claude-site .btn { border-radius: 10px; font-weight: 600; font-size: 14.5px; box-shadow: none; }
.claude-site .btn-primary { background: var(--brand); color: white; box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 6px 18px -8px var(--brand); }
.claude-site .btn-primary:hover { background: var(--brand-2); }
.claude-site .btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.claude-site .btn-ghost:hover { background: var(--bg-soft); border-color: var(--brand); color: var(--brand); }
.claude-site .btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.claude-site .hero {
    position: relative;
    padding: 56px 0 80px;
    background:
        radial-gradient(1200px 500px at 80% -10%, var(--brand-soft), transparent 60%),
        radial-gradient(800px 400px at -10% 60%, var(--brand-tint), transparent 60%);
    overflow: hidden;
    max-width: none;
    margin: 0;
    display: block;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.15fr; gap: 56px; align-items: center; }
.claude-site .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: white; border: 1px solid var(--line);
    font-size: 13px; color: var(--ink-2); font-weight: 500;
    box-shadow: 0 1px 2px rgba(20,30,60,0.04);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(40,162,109,.16); }
.claude-site .hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 700; margin-top: 18px; letter-spacing: 0; }
.claude-site .hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.claude-site .hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: var(--accent); opacity: .45; border-radius: 2px; z-index: -1; }
.hero-sub { font-size: 18px; color: var(--muted); margin-top: 18px; max-width: 520px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 24px; margin-top: 26px; }
.hero-meta div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero-cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: 13px; color: var(--muted-2); }
.claude-illustration {
    aspect-ratio: 5 / 4;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--brand-tint), white);
    border: 1px solid var(--line);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(20,40,90,.18);
}
.illu-head { display: flex; justify-content: space-between; align-items: center; }
.illu-head b { font-family: 'Inter Tight', sans-serif; font-size: 22px; }
.illu-avatars { display: flex; }
.illu-avatars span { width: 32px; height: 32px; border-radius: 50%; color: white; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 2px solid white; margin-left: -9px; }
.illu-avatars span:nth-child(1) { background: #2474cc; margin-left: 0; }
.illu-avatars span:nth-child(2) { background: #28a26d; }
.illu-avatars span:nth-child(3) { background: #c07a2b; }
.illu-avatars span:nth-child(4) { background: #904fc7; }
.illu-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 1; }
.illu-calendar i { border-radius: 8px; background: var(--bg-tint); border: 1px solid var(--line); color: var(--muted-2); display: grid; place-items: center; font-style: normal; font-family: 'Inter Tight'; font-weight: 600; }
.illu-calendar i.on { background: var(--brand); border-color: var(--brand); color: white; }
.illu-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.illu-stats div { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; flex: 1; min-width: 170px; }
.illu-stats span { font-size: 11px; color: var(--muted); }
.illu-stats b { display: block; font-family: 'Inter Tight'; font-size: 18px; margin-top: 2px; }
.claude-site section { padding: 88px 0; }
.generator-band { background: var(--bg-soft); padding-top: 72px !important; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.sec-head h2 { font-size: clamp(30px, 3.5vw, 44px); font-weight: 700; margin-top: 12px; }
.sec-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.gen { background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(20,40,90,.18), 0 8px 24px -16px rgba(20,40,90,.1); overflow: hidden; max-width: 1080px; margin: 0 auto; }
.gen-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.gen-head-title { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.gen-head-title b { color: var(--ink-2); font-weight: 600; }
.gen-cal-nav { display: flex; gap: 4px; }
.gen-cal-nav button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: white; color: var(--ink-2); }
.gen-tabs { display: flex; gap: 4px; padding: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gen-tab { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: white; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.gen-tab.active { background: var(--brand); border-color: var(--brand); color: white; }
.emp-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; }
.emp-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px 5px 5px; font-size: 13px; }
.emp-chip .av { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 10px; font-weight: 600; }
.av.c1 { background: #2474cc; } .av.c2 { background: #28a26d; } .av.c3 { background: #c07a2b; } .av.c4 { background: #904fc7; } .av.c5 { background: #2390b7; } .av.c6 { background: #b25a5a; }
.emp-chip button { background: transparent; border: 0; color: var(--muted); font-size: 14px; padding: 0 4px; }
.emp-add { background: white; border: 1px dashed var(--line-strong); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.gen-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); }
.gen-row.gen-row-three { grid-template-columns: repeat(3, 1fr); }
.gen-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.gen-field input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: white; font-size: 14px; color: var(--ink); }
.gen-field input.is-invalid { border-color: #dc4545; box-shadow: 0 0 0 3px rgba(220,69,69,.1); }
.gen-validation { color: #b42318; background: #fff1f0; font-size: 12px; padding: 0 14px; }
.gen-validation:not(:empty) { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #ffd3d0; }
.gen-cal { padding: 14px; }
.gen-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 20px; flex-wrap: wrap; }
.gen-cal-month { font-family: 'Inter Tight'; font-weight: 600; font-size: 15px; }
.demo-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #aeb8ca transparent; }
.demo-matrix {
    --demo-days: 31;
    display: grid;
    grid-template-columns: 118px repeat(var(--demo-days), minmax(24px, 1fr));
    gap: 2px;
    min-width: calc(118px + (var(--demo-days) * 24px));
}
.demo-corner,
.demo-name {
    position: sticky;
    left: 0;
    z-index: 2;
    background: white;
    border-right: 1px solid var(--line);
}
.demo-corner { min-height: 38px; display: flex; align-items: center; color: var(--muted-2); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.demo-name { font-size: 12px; display: flex; align-items: center; gap: 7px; color: var(--ink-2); min-height: 34px; padding-right: 6px; white-space: nowrap; overflow: hidden; }
.demo-name > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.demo-day, .demo-head, .demo-coverage { min-height: 34px; border-radius: 4px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.demo-head { color: var(--muted-2); background: var(--bg-soft); min-height: 38px; line-height: 1; }
.demo-head b { color: var(--ink-2); font-size: 11px; }
.demo-head small { font-size: 8px; font-weight: 600; }
.demo-head.weekend { background: #edf3fc; }
.demo-day.on { color: white; background: var(--brand); }
.demo-day.off { color: #8ca0bd; background: white; border: 1px solid var(--line); }
.demo-summary-name { font-weight: 700; background: #fff8d9; }
.demo-summary-name.needed { background: white; }
.demo-coverage { color: #17855d; background: #e9f8f1; border: 1px solid #d4f0e3; }
.demo-coverage.shortage { color: #c83d3d; background: #fff0f0; border-color: #ffd8d8; }
.demo-scroll-hint { display: none; color: var(--muted-2); font-size: 11px; margin-top: 8px; }
.gen-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.gen-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gen-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.gen-foot { padding: 14px; background: var(--bg-soft); border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.stat.has-issues b { color: #c83d3d; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: white; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(20,40,90,.2); }
.cat-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cat-name b { font-family: 'Inter Tight'; font-weight: 700; font-size: 22px; }
.cat-popular { background: var(--accent); color: var(--accent-ink); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.cat-desc { font-size: 13.5px; color: var(--muted); }
.cat-mini { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; margin-top: auto; }
.cat-mini i { aspect-ratio: 1; border-radius: 2px; background: var(--bg-tint); display: block; }
.cat-mini i.on { background: var(--brand); }
.cat-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 24px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.step-num { font-family: 'JetBrains Mono'; font-size: 12px; color: var(--brand); font-weight: 500; }
.step h3 { font-size: 18px; font-weight: 600; margin: 8px 0 6px; }
.step p { font-size: 14px; color: var(--muted); }
.step-icon { width: 38px; height: 38px; border-radius: 10px; background: white; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); margin-bottom: 14px; font-weight: 800; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; display: flex; flex-direction: column; gap: 10px; box-shadow: none; }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.feat h3 { font-size: 17px; font-weight: 600; }
.feat p { font-size: 14px; color: var(--muted); }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ind { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; display: flex; align-items: center; gap: 12px; }
.ind-ico { width: 36px; height: 36px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.ind-name { font-weight: 600; font-size: 14.5px; }
.ind-desc { font-size: 12.5px; color: var(--muted); }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20,40,90,.18); }
.calc-form { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.calc-result { padding: 28px; background: linear-gradient(180deg, var(--brand-tint), var(--bg-soft)); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.calc-label { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.calc-label b { color: var(--ink); font-weight: 600; }
.calc-context { color: var(--muted); font-size: 13px; line-height: 1.45; }
.calc-kicker { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.calc input[type="range"] { width: 100%; accent-color: var(--brand); }
.calc-big { font-family: 'Inter Tight'; font-size: 44px; font-weight: 700; color: var(--brand); }
.calc-line { display: flex; justify-content: space-between; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.price { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; display: flex; flex-direction: column; gap: 14px; box-shadow: none; }
.price.featured { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-tint), white); position: relative; }
.price-badge { position: absolute; top: -12px; right: 20px; background: var(--brand); color: white; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.price-name { font-family: 'Inter Tight'; font-weight: 600; font-size: 20px; }
.price-amount { font-family: 'Inter Tight'; font-size: 40px; font-weight: 700; }
.price-amount small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price li { display: flex; gap: 10px; font-size: 14px; }
.price li.muted { color: var(--muted-2); }
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; padding: 22px 0; background: transparent; border: 0; font-size: 17px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq-q:hover { color: var(--brand); }
.faq-a { padding: 0 0 22px; font-size: 15px; color: var(--muted); max-width: 720px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--ink-2); transition: transform .15s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--brand); color: white; }
.final-cta { background: var(--ink); color: white; border-radius: 24px; padding: 64px 48px; text-align: center; background-image: radial-gradient(600px 300px at 80% 20%, rgba(36,116,204,.45), transparent 70%), radial-gradient(600px 300px at 20% 80%, rgba(36,116,204,.28), transparent 70%); overflow: hidden; }
.final-cta h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.final-cta p { color: rgba(255,255,255,.7); margin-top: 14px; font-size: 17px; }
.final-cta .btn-primary { background: white; color: var(--brand); }
.final-cta .btn-ghost { color: white; border-color: rgba(255,255,255,.25); }
.claude-site footer { padding: 48px 0 32px; border-top: 1px solid var(--line); margin-top: 48px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 14px; }
.foot a { display: block; font-size: 14px; color: var(--muted); padding: 4px 0; }
.foot a:hover { color: var(--brand); }
.foot-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 28px; margin-top: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); flex-wrap: wrap; }
.stat-row { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.stat b { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-size: 26px; font-weight: 700; display: block; color: var(--ink); }
.stat span { font-size: 13px; color: var(--muted); }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .catalog-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .calc { grid-template-columns: 1fr; }
    .calc-result { border-left: 0; border-top: 1px solid var(--line); }
    .gen-row.gen-row-three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .wrap { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-inner { gap: 12px; }
    .nav-cta { margin-left: auto; }
    .nav-cta .btn-primary { display: none; }
    .claude-illustration { display: none; }
    .catalog-grid, .features-grid, .steps, .ind-grid, .price-grid, .foot { grid-template-columns: 1fr; }
    .gen-row, .gen-row.gen-row-three { grid-template-columns: 1fr; }
    .demo-matrix { grid-template-columns: 96px repeat(var(--demo-days), 30px); min-width: calc(96px + (var(--demo-days) * 30px)); }
    .demo-scroll-hint { display: block; }
    .gen-cal-head .stat-row { gap: 14px 20px; }
    .gen-cal-head .stat b { font-size: 21px; }
    .final-cta { padding: 42px 24px; }
}

/* Claude Design dashboard restoration */
.claude-dashboard {
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --bg-tint: #eef3fb;
    --line: #e4e9f2;
    --line-strong: #d3dbe8;
    --ink: #0e1729;
    --ink-2: #2a3550;
    --muted: #5b6781;
    --muted-2: #8693ad;
    --brand: #1677f2;
    --brand-2: #075bd3;
    --brand-soft: #e9f3ff;
    --logo-navy: #071b4d;
    --logo-blue: #1677f2;
    --logo-blue-deep: #0b61db;
    --logo-cyan: #12b8a6;
    --good: #28a26d;
    --bad: #c94c4c;
    --sidebar-w: 248px;
    --sidebar-collapsed-w: 72px;
    background: var(--bg-soft);
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
.claude-dashboard .app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns .18s ease;
}
.claude-dashboard .sidebar {
    background: var(--bg);
    border-right: 1px solid var(--line);
    padding: 18px 14px;
    gap: 14px;
    height: 100vh;
    overflow-y: auto;
    z-index: 40;
    box-shadow: none;
}
.claude-dashboard .db-brand-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}
.claude-dashboard .db-logo-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    height: 56px;
    padding: 0 4px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    transition: background .12s, transform .12s;
}
.claude-dashboard .db-logo-toggle:hover {
    background: var(--brand-tint);
}
.claude-dashboard .db-logo-toggle:active { transform: scale(.98); }
.claude-dashboard .db-logo-state {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.claude-dashboard .db-logo-reveal,
.claude-dashboard .db-logo-mobile { display: none; }
.claude-dashboard .db-logo-word {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    color: var(--logo-navy);
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
    pointer-events: none;
}
.claude-dashboard .db-logo-word span { color: var(--logo-blue); }
.claude-dashboard .db-loc {
    display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink);
    font-size: 13.5px; font-weight: 500; width: 100%;
}
.db-loc-wrap { position: relative; }
.claude-dashboard .db-loc:hover,
.claude-dashboard .db-loc[aria-expanded="true"] { border-color: var(--brand); background: var(--brand-tint); }
.loc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.db-loc-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-loc-menu {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70;
    padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
    box-shadow: 0 18px 44px -26px rgba(20,40,90,.32);
}
.db-loc-menu.open { display: grid; gap: 3px; }
.db-loc-menu button {
    border: 0; background: transparent; border-radius: 9px; min-height: 40px; padding: 8px 9px;
    display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 9px; align-items: center;
    color: var(--ink-2); text-align: left;
}
.db-loc-menu button:hover,
.db-loc-menu button.active { background: var(--brand-soft); color: var(--brand); }
.db-loc-menu button > span { width: 8px; height: 8px; border-radius: 50%; grid-row: 1 / span 2; }
.db-loc-menu b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-loc-menu small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-loc-menu .db-loc-add {
    display: flex; align-items: center; justify-content: center; margin-top: 4px;
    border: 1px dashed var(--line-strong); color: var(--brand); font-weight: 600;
}
.claude-dashboard .db-nav { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.claude-dashboard .db-nav-group { display: flex; flex-direction: column; gap: 2px; }
.claude-dashboard .db-nav-title {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted-2); padding: 6px 12px 4px;
}
.claude-dashboard .side-item {
    display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
    border: 0; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500;
    width: 100%; text-align: left; transition: all .12s; min-height: auto;
}
.claude-dashboard .side-item svg { color: var(--muted); flex-shrink: 0; transition: color .12s; }
.claude-dashboard .side-item:hover { background: var(--bg-soft); }
.claude-dashboard .side-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.claude-dashboard .side-item.active svg { color: var(--brand); }
.claude-dashboard .side-item span { flex: 1; }
.claude-dashboard .side-link { margin-top: 0; }
.db-plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg-soft); }
.db-plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.db-plan-head b { color: var(--ink); }
.db-plan-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.db-plan-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
@media (min-width: 901px) {
    .claude-dashboard .app-shell.sidebar-collapsed {
        grid-template-columns: var(--sidebar-collapsed-w) minmax(0, 1fr);
    }
    .claude-dashboard .app-shell.sidebar-collapsed .sidebar {
        padding: 18px 8px;
        overflow: visible;
        align-items: center;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-brand-row,
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc-wrap,
    .claude-dashboard .app-shell.sidebar-collapsed .db-nav,
    .claude-dashboard .app-shell.sidebar-collapsed .db-nav-group {
        width: 100%;
        align-items: center;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-brand-row {
        justify-content: center;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-logo-toggle {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 12px;
        justify-content: center;
        gap: 0;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-logo-hide { display: none; }
    .claude-dashboard .app-shell.sidebar-collapsed .db-logo-reveal { display: block; }
    .claude-dashboard .app-shell.sidebar-collapsed .db-logo-word { display: none; }
    .claude-dashboard .app-shell.sidebar-collapsed .brand-name,
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc-name,
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc > svg,
    .claude-dashboard .app-shell.sidebar-collapsed .db-nav-title,
    .claude-dashboard .app-shell.sidebar-collapsed .side-item span,
    .claude-dashboard .app-shell.sidebar-collapsed .db-plan {
        display: none !important;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc,
    .claude-dashboard .app-shell.sidebar-collapsed .side-item {
        width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        justify-content: center;
        position: relative;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc {
        margin: 0 auto;
        border-color: transparent;
        background: transparent;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc:hover,
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc[aria-expanded="true"] {
        border-color: var(--line);
        background: var(--brand-tint);
    }
    .claude-dashboard .app-shell.sidebar-collapsed .loc-dot {
        width: 12px;
        height: 12px;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .side-item svg {
        width: 19px;
        height: 19px;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-nav {
        gap: 10px;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-nav-group {
        gap: 4px;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc-menu {
        left: calc(100% + 10px);
        right: auto;
        top: 0;
        width: 224px;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .side-item[data-tooltip]::after,
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc[data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 10px);
        top: 50%;
        transform: translate(-4px, -50%);
        min-width: max-content;
        max-width: 220px;
        padding: 7px 9px;
        border-radius: 8px;
        background: #081125;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.15;
        box-shadow: 0 14px 30px rgba(15,35,75,.18);
        opacity: 0;
        pointer-events: none;
        transition: opacity .12s, transform .12s;
        z-index: 90;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .side-item[data-tooltip]::before,
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc[data-tooltip]::before {
        content: "";
        position: absolute;
        left: calc(100% + 5px);
        top: 50%;
        transform: translate(-4px, -50%) rotate(45deg);
        width: 8px;
        height: 8px;
        background: #081125;
        opacity: 0;
        pointer-events: none;
        transition: opacity .12s, transform .12s;
        z-index: 89;
    }
    .claude-dashboard .app-shell.sidebar-collapsed .side-item[data-tooltip]:hover::after,
    .claude-dashboard .app-shell.sidebar-collapsed .side-item[data-tooltip]:hover::before,
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc[data-tooltip]:hover::after,
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc[data-tooltip]:hover::before {
        opacity: 1;
        transform: translate(0, -50%);
    }
    .claude-dashboard .app-shell.sidebar-collapsed .side-item[data-tooltip]:hover::before,
    .claude-dashboard .app-shell.sidebar-collapsed .db-loc[data-tooltip]:hover::before {
        transform: translate(0, -50%) rotate(45deg);
    }
}
.claude-dashboard .sidebar.open .db-logo-hide,
.claude-dashboard .sidebar.open .db-logo-reveal {
    display: none;
}
.claude-dashboard .sidebar.open .db-logo-mobile {
    display: block;
}
.claude-dashboard .sidebar.open .db-logo-word {
    display: none;
}
@media (max-width: 900px) {
    .claude-dashboard .db-brand-row { justify-content: flex-start; }
    .claude-dashboard .db-logo-toggle {
        width: 74px;
        height: 58px;
        padding: 0;
        border-radius: 12px;
        justify-content: center;
    }
    .claude-dashboard .db-logo-state {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }
    .claude-dashboard .db-logo-hide,
    .claude-dashboard .db-logo-reveal,
    .claude-dashboard .db-logo-word {
        display: none;
    }
    .claude-dashboard .db-logo-mobile {
        display: block;
    }
}
.claude-dashboard .app-main { height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-soft); }
.claude-dashboard .app-header {
    height: auto; min-height: 68px; padding: 14px 28px;
    background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 16px;
}
.claude-dashboard .app-header h1 { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-size: 21px; font-weight: 700; margin: 0; }
.claude-dashboard .app-header p { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.claude-dashboard .db-role { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--bg-tint); }
.claude-dashboard .db-role button { border: 0; background: transparent; padding: 6px 13px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.claude-dashboard .db-role button.active { background: var(--bg); color: var(--brand); box-shadow: 0 1px 2px rgba(20,40,90,.1); }
.claude-dashboard .db-role-wrap { position: relative; margin-left: auto; }
.claude-dashboard .db-role-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 260px; z-index: 60;
    padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
    box-shadow: 0 20px 50px rgba(15, 35, 75, .14);
}
.claude-dashboard .db-role-menu.open { display: grid; gap: 4px; }
.claude-dashboard .db-role-menu button {
    border: 0; border-radius: 9px; background: transparent; color: var(--ink); padding: 9px 10px;
    display: grid; gap: 2px; text-align: left;
}
.claude-dashboard .db-role-menu button:hover { background: var(--brand-soft); color: var(--brand); }
.claude-dashboard .db-role-menu b { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claude-dashboard .db-role-menu span,
.claude-dashboard .role-empty { font-size: 12.5px; color: var(--muted); }
.claude-dashboard .role-empty { padding: 10px; }
.claude-dashboard .db-icon-btn {
    width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line);
    background: var(--bg); color: var(--ink-2); display: grid; place-items: center; position: relative;
}
.claude-dashboard .db-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); border: 1.5px solid var(--bg); }
.db-avatar { width: 38px; height: 38px; border-radius: 50%; background: #081125; color: white; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.claude-dashboard .app-content { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 20px; max-width: none; width: 100%; align-self: stretch; overflow: auto; box-sizing: border-box; }
.claude-dashboard [hidden] { display: none !important; }
.claude-dashboard .panel {
    background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: none;
}
.claude-dashboard .panel h2 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.claude-dashboard .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.claude-dashboard .grid.stats { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.claude-dashboard .stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.claude-dashboard .stat b { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-size: 28px; font-weight: 700; letter-spacing: 0; }
.claude-dashboard .stat span { color: var(--ink-2); font-weight: 500; }
.claude-dashboard .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.claude-dashboard .panel-head b { font-size: 16px; font-weight: 600; color: var(--ink); }
.claude-dashboard .page-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px;
}
.claude-dashboard .page-toolbar h2 { margin: 0; }
.claude-dashboard .icon-add,
.claude-dashboard .icon-btn {
    width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line);
    background: var(--bg); color: var(--ink-2); display: inline-grid; place-items: center;
}
.claude-dashboard .icon-add { color: var(--good); background: #e9f8f1; border-color: #bfe8d6; }
.claude-dashboard .icon-add:hover { border-color: var(--good); color: #0f7a4d; background: #dcf5ea; }
.claude-dashboard .icon-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.claude-dashboard .icon-btn.danger:hover { border-color: #f2bbbb; color: var(--bad); background: #fff0f0; }
.claude-dashboard .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.claude-dashboard table { width: 100%; border-collapse: collapse; font-size: 14px; }
.claude-dashboard th {
    text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted-2); padding: 10px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.claude-dashboard td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.claude-dashboard tbody tr:hover { background: var(--bg-soft); }
.claude-dashboard .directory-tree-name {
    display: grid; gap: 2px; min-width: 0;
}
.claude-dashboard .directory-tree-name b { font-size: 14px; font-weight: 700; color: var(--ink); }
.claude-dashboard .directory-tree-name small { font-size: 12px; color: var(--muted); font-weight: 600; }
.claude-dashboard .notice { background: var(--brand-soft); border: 1px solid #c8ddfb; color: #174c7e; border-radius: 14px; padding: 14px; }
.claude-dashboard .employee-table table { min-width: 0; }
.claude-dashboard .employee-table th,
.claude-dashboard .employee-table td { padding-left: 12px; padding-right: 12px; }
.claude-dashboard .compact-table th,
.claude-dashboard .compact-table td { padding-top: 9px; padding-bottom: 9px; }
.claude-dashboard .employee-name-link {
    display: inline-block; max-width: 100%; color: var(--ink); font-weight: 700; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom;
}
.claude-dashboard .employee-name-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.claude-dashboard .pagination {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px;
}
.claude-dashboard .pagination span { color: var(--muted); font-size: 13px; font-weight: 700; }
.claude-dashboard .directory-tools {
    display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 10px; align-items: end; margin: 0 0 14px;
}
.claude-dashboard .directory-tools label { margin: 0; display: grid; gap: 5px; }
.claude-dashboard .directory-tools label span {
    color: var(--muted); font-size: 12px; font-weight: 700;
}
.claude-dashboard .directory-tools input,
.claude-dashboard .directory-tools select {
    min-height: 38px; padding: 7px 10px; border-radius: 9px;
}
.claude-dashboard .directory-tools.no-search {
    grid-template-columns: repeat(3, minmax(150px, 190px));
    justify-content: end;
}
.claude-dashboard .table-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 700; flex-wrap: wrap;
}
.claude-dashboard .table-footer .pagination { margin-top: 0; }
.claude-dashboard .scope-tabs {
    display: inline-flex; align-items: center; gap: 3px; padding: 3px;
    border-radius: 10px; background: var(--bg-tint); margin-bottom: 14px;
}
.claude-dashboard .scope-tabs button {
    border: 0; border-radius: 8px; background: transparent; color: var(--muted);
    min-height: 34px; padding: 6px 12px; font-size: 13px; font-weight: 800;
}
.claude-dashboard .scope-tabs button.active {
    background: var(--bg); color: var(--brand); box-shadow: 0 1px 2px rgba(20,40,90,.1);
}
.claude-dashboard .scope-tabs span {
    margin-left: 5px; color: inherit; opacity: .72;
}
.claude-dashboard .role-pill {
    display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 10px;
    border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-2);
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.claude-dashboard .role-pill.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.claude-dashboard .check-row {
    display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
    font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.claude-dashboard .check-row input { width: 18px; height: 18px; min-height: 18px; padding: 0; accent-color: var(--brand); }
.claude-dashboard .check-row span { display: grid; gap: 1px; }
.claude-dashboard .modal-field { display: grid; gap: 8px; }
.claude-dashboard .modal-field-title { color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.claude-dashboard .form-note {
    min-height: 42px; display: flex; align-items: center; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
    color: var(--muted); font-size: 13.5px; font-weight: 700;
}
.claude-dashboard .mini-history {
    display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line);
    border-radius: 10px; background: var(--bg-soft);
}
.claude-dashboard .mini-history div {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    font-size: 13px; color: var(--muted);
}
.claude-dashboard .mini-history b { color: var(--ink-2); }
.claude-dashboard .entity-check-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    max-height: 220px; overflow: auto; padding: 10px; border: 1px solid var(--line);
    border-radius: 12px; background: var(--bg-soft);
}
.claude-dashboard .pill.vacation { color: #236ba8; background: #e8f3fd; border-color: #bddcf7; }
.claude-dashboard .pill.sick { color: #6840b5; background: #f1ecfb; border-color: #d8c9f4; }
.claude-dashboard .shift-color {
    width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: 8px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.claude-dashboard .schedule-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.claude-dashboard .schedule-tools .wide { grid-column: 1 / -1; }
.claude-dashboard .schedule-filter-row {
    display: grid; grid-template-columns: repeat(2, minmax(180px, 240px)); gap: 12px;
    align-items: end; margin-bottom: 16px;
}
.claude-dashboard .schedule-history { display: grid; gap: 10px; }
.claude-dashboard .schedule-history-item {
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden;
}
.claude-dashboard .schedule-history-summary {
    min-height: 66px; display: flex; align-items: center; gap: 14px; padding: 13px 14px;
    cursor: pointer; list-style: none;
}
.claude-dashboard .schedule-history-item summary::-webkit-details-marker { display: none; }
.claude-dashboard .schedule-history-item[open] summary { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.claude-dashboard .history-main { display: grid; gap: 2px; min-width: 180px; flex: 1; }
.claude-dashboard .history-main b { font-size: 15px; font-weight: 700; color: var(--ink); }
.claude-dashboard .history-main small { font-size: 12.5px; color: var(--muted); }
.claude-dashboard .history-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.claude-dashboard .history-stats em {
    font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
    border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 8px;
}
.claude-dashboard .history-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.claude-dashboard .schedule-history-body { padding: 14px; background: var(--bg); }
.claude-dashboard .schedule-draft { display: grid; gap: 12px; margin-bottom: 16px; }
.claude-dashboard .schedule-create-page { display: grid; gap: 16px; }
.claude-dashboard .employee-picker { display: grid; gap: 10px; }
.claude-dashboard .employee-picker > label { margin: 0; }
.claude-dashboard .picker-title {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    color: var(--ink); font-size: 14px; font-weight: 700;
}
.claude-dashboard .picker-title span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.claude-dashboard .schedule-month-field input { cursor: pointer; }
.claude-dashboard .schedule-weekends { display: grid; gap: 10px; }
.claude-dashboard .schedule-weekend-list {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); padding: 10px;
}
.claude-dashboard .schedule-weekend-chip {
    min-width: 52px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink-2);
    font-size: 13px; font-weight: 800; cursor: pointer; margin: 0;
}
.claude-dashboard .schedule-weekend-chip input { position: absolute; opacity: 0; pointer-events: none; }
.claude-dashboard .schedule-weekend-chip.active {
    border-color: rgba(220,38,38,.38); background: #fff1f1; color: #b42323;
}
.claude-dashboard .employee-picker-list {
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
    display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px;
    max-height: 330px; overflow: auto;
}
.claude-dashboard .picker-pagination { justify-content: flex-end; margin-top: -2px; }
.claude-dashboard .shift-picker { display: grid; gap: 10px; }
.claude-dashboard .shift-picker-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); padding: 10px;
}
.claude-dashboard .shift-pick {
    min-height: 66px; display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 10px;
    padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin: 0;
}
.claude-dashboard .shift-pick.active { border-color: rgba(36,116,204,.38); background: #fbfdff; }
.claude-dashboard .shift-pick-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.claude-dashboard .shift-pick-main input { width: 18px; min-height: 18px; flex: 0 0 auto; }
.claude-dashboard .shift-pick-main i {
    width: 14px; height: 14px; border-radius: 5px; flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.claude-dashboard .shift-pick-main span { display: grid; gap: 2px; min-width: 0; }
.claude-dashboard .shift-pick-main b,
.claude-dashboard .shift-pick-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claude-dashboard .shift-pick-main b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.claude-dashboard .shift-pick-main small { font-size: 12px; color: var(--muted); }
.claude-dashboard .shift-pick-need { display: grid; gap: 3px; justify-items: center; text-align: center; }
.claude-dashboard .shift-pick-need small { color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.15; }
.claude-dashboard .shift-pick-need input { min-height: 32px; width: 100%; padding: 4px 6px; text-align: center; }
.claude-dashboard .schedule-fill { display: grid; gap: 10px; }
.claude-dashboard .schedule-fill-list {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); padding: 10px;
}
.claude-dashboard .schedule-fill-card {
    min-height: 70px; display: flex; align-items: flex-start; gap: 9px; padding: 10px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; margin: 0;
}
.claude-dashboard .schedule-fill-card:hover { border-color: rgba(36,116,204,.38); background: #fbfdff; }
.claude-dashboard .schedule-fill-card.active {
    border-color: rgba(36,116,204,.52); background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(36,116,204,.08);
}
.claude-dashboard .schedule-fill-card input {
    width: 17px; height: 17px; min-height: 17px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand);
}
.claude-dashboard .schedule-fill-card span { display: grid; gap: 3px; min-width: 0; }
.claude-dashboard .schedule-fill-card b {
    color: var(--ink); font-size: 13.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.claude-dashboard .schedule-fill-card small { color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.claude-dashboard .employee-pick {
    min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 7px 9px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin: 0; cursor: pointer;
}
.claude-dashboard .employee-pick:hover { border-color: var(--brand); background: var(--brand-tint); }
.claude-dashboard .employee-pick input { width: 18px; min-height: 18px; flex-shrink: 0; }
.claude-dashboard .employee-pick span { display: grid; gap: 2px; min-width: 0; }
.claude-dashboard .employee-pick b,
.claude-dashboard .employee-pick small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claude-dashboard .employee-pick b { font-size: 13.5px; font-weight: 700; }
.claude-dashboard .employee-pick small { font-size: 12px; color: var(--muted); }
.claude-dashboard .empty-state.compact { padding: 12px; grid-column: 1 / -1; }
.claude-dashboard .schedule-grid { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
.claude-dashboard .shift { width: 21px; height: 21px; border-radius: 5px; font-size: 10px; }
.claude-dashboard .shift.day { background: var(--brand); }
.claude-dashboard .shift.night { background: #4b367c; }
.claude-dashboard .shift.evening { background: #b86b24; }
.claude-dashboard .shift.off { background: #dc2626; color: #fff; border: 0; }
.claude-dashboard .shift.custom { color: #fff; }
.claude-dashboard .shift.free { background: transparent; color: var(--muted-2); border: 0; }
.claude-dashboard .shift.vacation { background: #4f9fe6; color: #fff; }
.claude-dashboard .shift.sick { background: #7c3aed; color: #fff; }
.claude-dashboard .schedule-editor { padding: 0; overflow: hidden; }
.claude-dashboard .schedule-editor > .panel-head { padding: 18px 20px 0; margin-bottom: 14px; }
.claude-dashboard .schedule-week-tabs {
    display: none; gap: 6px; padding: 0 20px 12px; overflow-x: auto;
}
.claude-dashboard .schedule-week-tabs button {
    min-height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg);
    color: var(--ink-2); padding: 5px 9px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.claude-dashboard .schedule-week-tabs button span { color: var(--muted); font-weight: 600; }
.claude-dashboard .schedule-week-tabs button.active { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.claude-dashboard .schedule-editor-bar {
    display: grid; gap: 14px;
    padding: 14px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}
.claude-dashboard .schedule-editor-actions { justify-content: flex-end; width: 100%; }
.claude-dashboard .schedule-tools-row { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }
.claude-dashboard .schedule-tool {
    display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px;
    border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
    font-size: 13.5px; font-weight: 600; transition: all .12s;
}
.claude-dashboard .schedule-tool span {
    min-width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-size: 11px;
}
.claude-dashboard .schedule-tool:hover,
.claude-dashboard .schedule-tool.active { border-color: var(--brand); background: var(--brand-tint); color: var(--brand); }
.claude-dashboard .btn-reset:hover { border-color: var(--warn); color: var(--warn); background: #fff6e8; }
.claude-dashboard .schedule-save-state { color: var(--muted); font-size: 13px; font-weight: 600; }
.claude-dashboard .schedule-editor-hint {
    color: var(--ink-2); font-size: 13.5px; font-weight: 600;
    border: 1px solid var(--line); background: var(--bg); border-radius: 9px; padding: 9px 11px;
}
.claude-dashboard .schedule-edit-grid { border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; overflow-x: hidden; }
.claude-dashboard .schedule-edit-grid table { min-width: 0; width: 100%; table-layout: fixed; }
.claude-dashboard .schedule-edit-grid th,
.claude-dashboard .schedule-edit-grid td { padding: 4px 3px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.claude-dashboard .schedule-edit-grid th:first-child,
.claude-dashboard .schedule-edit-grid td:first-child {
    width: 148px; position: sticky; left: 0; z-index: 2; background: var(--bg); border-right: 1px solid var(--line);
}
.claude-dashboard .schedule-edit-grid thead th:first-child { background: var(--bg-soft); z-index: 4; }
.claude-dashboard .schedule-edit-grid th:nth-last-child(2),
.claude-dashboard .schedule-edit-grid td:nth-last-child(2) { width: 58px; }
.claude-dashboard .schedule-edit-grid th:last-child,
.claude-dashboard .schedule-edit-grid td:last-child { width: 72px; border-right: 0; }
.claude-dashboard .schedule-display-tools {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 8px;
}
.claude-dashboard .schedule-hidden-summary {
    color: var(--muted); font-size: 12.5px; font-weight: 700;
}
.claude-dashboard .day-head { min-width: 0; padding: 0 !important; }
.claude-dashboard .day-head.is-weekend { background: #e9eefb; }
.claude-dashboard .day-head button {
    width: 100%; min-height: 34px; border: 0; background: transparent; color: var(--ink-2);
    display: grid; place-items: center; gap: 0; padding: 4px 2px;
}
.claude-dashboard .day-head button:hover { background: var(--brand-soft); color: var(--brand); }
.claude-dashboard .day-head.is-weekend button { color: #31518c; }
.claude-dashboard .day-head b { font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.claude-dashboard .day-head span { font-size: 9px; color: var(--muted-2); line-height: 1; }
.claude-dashboard .schedule-employee-cell { min-width: 0; }
.claude-dashboard .schedule-employee-cell-inner {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px;
}
.claude-dashboard .schedule-employee-cell button,
.claude-dashboard .schedule-employee-cell a {
    width: 100%; border: 0; background: transparent; color: var(--ink); display: grid;
    text-align: left; gap: 2px; padding: 3px; border-radius: 8px;
}
.claude-dashboard .schedule-employee-cell a { text-decoration: none; }
.claude-dashboard .schedule-employee-cell button:hover,
.claude-dashboard .schedule-employee-cell a:hover { background: var(--brand-soft); color: var(--brand); }
.claude-dashboard .schedule-employee-cell b { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claude-dashboard .schedule-employee-cell span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.claude-dashboard .schedule-row-actions { display: inline-flex; align-items: center; gap: 2px; }
.claude-dashboard .schedule-employee-cell .schedule-row-action {
    width: 20px; height: 20px; min-height: 20px; padding: 0; display: grid; place-items: center;
    color: var(--muted); border: 1px solid transparent; background: transparent; border-radius: 6px;
}
.claude-dashboard .schedule-employee-cell .schedule-row-action:hover {
    color: var(--brand); border-color: var(--line); background: var(--brand-soft);
}
.claude-dashboard .schedule-row-drag { cursor: grab; }
.claude-dashboard .schedule-row-drag:active { cursor: grabbing; }
.claude-dashboard tr.is-dragging-employee td { opacity: .55; }
.claude-dashboard tr.is-row-drag-over td:first-child { box-shadow: inset 0 2px 0 var(--brand); }
.claude-dashboard tr.is-hidden-employee { display: none; }
.claude-dashboard .sch-edit-cell {
    min-width: 0; height: 34px; text-align: center; cursor: pointer; transition: outline .1s, background .1s;
    box-shadow: inset 0 0 0 1px rgba(121, 138, 165, .28);
}
.claude-dashboard .sch-edit-cell:hover { outline: 1px solid rgba(36,116,204,.45); outline-offset: -1px; }
.claude-dashboard .sch-edit-cell.selected {
    outline: 0;
    box-shadow: inset 0 0 0 1px var(--brand);
}
.claude-dashboard .sch-edit-cell.selected + .sch-edit-cell.selected {
    box-shadow: inset 0 1px 0 var(--brand), inset 0 -1px 0 var(--brand), inset -1px 0 0 var(--brand);
}
.claude-dashboard .sch-edit-cell.is-day { background: var(--shift-cell-bg, var(--brand)); }
.claude-dashboard .sch-edit-cell.is-night { background: var(--shift-cell-bg, #4b367c); }
.claude-dashboard .sch-edit-cell.is-evening { background: var(--shift-cell-bg, #b86b24); }
.claude-dashboard .sch-edit-cell.is-off { background: var(--shift-cell-bg, #dc2626); }
.claude-dashboard .sch-edit-cell.is-vacation { background: var(--shift-cell-bg, #4f9fe6); }
.claude-dashboard .sch-edit-cell.is-sick { background: var(--shift-cell-bg, #7c3aed); }
.claude-dashboard .sch-edit-cell.is-free,
.claude-dashboard .sch-edit-cell.is-weekend.is-free { background: #fff; }
.claude-dashboard .schedule-edit-grid .sch-edit-cell .shift {
    width: 100%; height: 100%; min-height: 26px; border-radius: 0; background: transparent !important;
    color: #fff; font-size: 12px; font-weight: 800;
}
.claude-dashboard .schedule-edit-grid .sch-edit-cell.is-free .shift {
    color: var(--muted-2);
}
.claude-dashboard .coverage-row td {
    background: #fff6cf; color: #2a3550; font-size: 12.5px; font-weight: 600; text-align: center;
}
.claude-dashboard .coverage-row.coverage-group-start td { border-top: 2px solid #b7c7e6; }
.claude-dashboard .coverage-row.coverage-need td { background: #fbfdff; }
.claude-dashboard .coverage-row td:first-child { text-align: left; color: var(--ink-2); background: #fff6cf; }
.claude-dashboard .coverage-row.coverage-need td:first-child { background: #fbfdff; }
.claude-dashboard .coverage-shift-label {
    display: grid; grid-template-columns: 12px minmax(0, 1fr); align-items: center; gap: 7px;
}
.claude-dashboard .coverage-shift-label i {
    width: 10px; height: 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.claude-dashboard .coverage-shift-label span { min-width: 0; font-size: 11.5px; line-height: 1.15; }
.claude-dashboard .coverage-shift-full {
    background: #fff3bd !important; color: #31406a; font-size: 12px; font-weight: 700;
    vertical-align: middle; text-align: center;
}
.claude-dashboard .coverage-shift-full span {
    display: inline-grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-content: center; gap: 2px 7px;
}
.claude-dashboard .coverage-shift-full small {
    grid-column: 2; color: var(--muted); font-size: 10.5px; font-weight: 700; line-height: 1.1;
}
.claude-dashboard .coverage-shift-full i {
    width: 10px; height: 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.claude-dashboard .coverage-count.is-ok,
.claude-dashboard .need-cell.is-ok { background: #e9f8f1; color: var(--good); }
.claude-dashboard .coverage-count.is-under,
.claude-dashboard .need-cell.is-under { background: #fde8e8; color: var(--bad); }
.claude-dashboard .need-cell input {
    min-height: 26px; width: 100%; padding: 2px; border-radius: 6px; text-align: center;
    border-color: transparent; background: transparent; font-size: 11px; font-weight: 700;
}
.claude-dashboard .need-cell span { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px; }
.claude-dashboard .need-cell input:focus { background: var(--bg); border-color: var(--brand); }
.claude-dashboard input,
.claude-dashboard select {
    border-radius: 9px;
    border-color: var(--line-strong);
}
.claude-dashboard .entity-new-input { margin-top: 8px; }
.claude-dashboard .btn { border-radius: 9px; font-weight: 600; font-size: 14px; }
.claude-dashboard .btn-small { min-height: 30px; padding: 6px 10px; font-size: 12.5px; }
.claude-dashboard .btn-primary { background: var(--brand); }
.claude-dashboard .btn-primary:hover { background: var(--brand-2); }
.claude-dashboard .btn-ghost { background: var(--bg); color: var(--ink-2); border-color: var(--line-strong); }
.claude-dashboard .db-link {
    display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent;
    color: var(--brand); font-size: 13.5px; font-weight: 600; padding: 0;
}
.claude-dashboard .db-link:hover { text-decoration: underline; }
.claude-dashboard .db-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.claude-dashboard .db-stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.claude-dashboard .db-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.claude-dashboard .db-stat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.claude-dashboard .db-stat-trend { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; }
.claude-dashboard .db-stat-value {
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
    font-size: 28px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.claude-dashboard .db-stat-label { font-size: 13.5px; color: var(--ink-2); font-weight: 500; margin-top: 2px; }
.claude-dashboard .db-stat-sub { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }
.claude-dashboard .today-list,
.claude-dashboard .activity-list { display: flex; flex-direction: column; }
.claude-dashboard .today-row {
    display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line);
}
.claude-dashboard .today-row:last-child { border-bottom: 0; padding-bottom: 0; }
.claude-dashboard .today-row > div { flex: 1; min-width: 0; }
.claude-dashboard .today-row b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.claude-dashboard .today-row .employee-name-link { display: block; font-size: 14px; font-weight: 600; }
.claude-dashboard .today-row > div span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.claude-dashboard .today-row em {
    font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand);
    background: var(--brand-soft); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.claude-dashboard .today-avatar,
.claude-dashboard .db-avatar-sm {
    width: 36px; height: 36px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center;
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 800; line-height: 1; flex-shrink: 0;
    text-transform: uppercase; overflow: visible;
}
.claude-dashboard .c1 { background: var(--brand); }
.claude-dashboard .c2 { background: var(--good); }
.claude-dashboard .c3 { background: #c07a2b; }
.claude-dashboard .c4 { background: #904fc7; }
.claude-dashboard .c5 { background: #2390b7; }
.claude-dashboard .c6 { background: #b25a5a; }
.claude-dashboard .coverage-mini {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 140px;
}
.claude-dashboard .cov-col {
    display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end;
}
.claude-dashboard .cov-bar {
    flex: 1; width: 100%; min-height: 70px; display: flex; align-items: flex-end;
    background: var(--bg-tint); border: 1px dashed var(--line-strong); border-radius: 6px; overflow: hidden;
}
.claude-dashboard .cov-bar i {
    display: block; width: 100%; border-radius: 0 0 5px 5px;
    background: var(--good); transition: height .3s;
}
.claude-dashboard .cov-col:nth-child(6) .cov-bar i,
.claude-dashboard .cov-col:nth-child(7) .cov-bar i { background: var(--bad); }
.claude-dashboard .cov-col b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.claude-dashboard .cov-col span { font-size: 12px; color: var(--muted); }
.claude-dashboard .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.claude-dashboard .quick-btn {
    display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 11px;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
    text-align: left; transition: all .12s; min-height: 60px;
}
.claude-dashboard .quick-btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.claude-dashboard .quick-btn span {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    flex-shrink: 0; color: var(--brand); background: var(--brand-soft);
}
.claude-dashboard .quick-btn:nth-child(2) span { color: var(--good); background: #e9f8f1; }
.claude-dashboard .quick-btn:nth-child(3) span { color: #ad6b12; background: #fff4dc; }
.claude-dashboard .quick-btn:nth-child(4) span { color: #904fc7; background: #f5ecfb; }
.claude-dashboard .quick-btn b { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.claude-dashboard .activity-list > div {
    display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line);
    font-size: 13.5px; color: var(--muted);
}
.claude-dashboard .activity-list > div:last-child { border-bottom: 0; }
.claude-dashboard .activity-list i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--brand); }
.claude-dashboard .activity-list > div:nth-child(2) i { background: var(--good); }
.claude-dashboard .activity-list > div:nth-child(3) i { background: #c07a2b; }
.claude-dashboard .activity-list span { flex: 1; }
.claude-dashboard .db-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-soft); white-space: nowrap;
}
.claude-dashboard .dashboard-grid { display: grid; gap: 20px; margin-top: 16px; }
.claude-dashboard .dashboard-section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 2px 2px 0;
}
.claude-dashboard .dashboard-section-head b {
    display: block; font-size: 18px; font-weight: 700; color: var(--ink);
}
.claude-dashboard .dashboard-section-head span {
    display: block; margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 600;
}
.claude-dashboard .dashboard-schedule-preview .schedule-editor {
    box-shadow: none;
}
.claude-dashboard .dashboard-schedule-preview .schedule-edit-grid {
    border-top: 0;
}
.claude-dashboard .dashboard-schedule-preview .schedule-week-tabs {
    padding-top: 14px;
}
.claude-dashboard .dashboard-list,
.claude-dashboard .attention-list {
    display: grid; gap: 10px;
}
.claude-dashboard .dashboard-list-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
    min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg);
}
.claude-dashboard .dashboard-list-row > i {
    width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.claude-dashboard .dashboard-list-row.absence > i {
    width: 30px; height: 30px; border-radius: 9px;
}
.claude-dashboard .dashboard-list-row.absence > i.vacation { background: #4f9fe6; }
.claude-dashboard .dashboard-list-row.absence > i.sick { background: #7c3aed; }
.claude-dashboard .dashboard-list-row b,
.claude-dashboard .attention-row b {
    display: block; color: var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.claude-dashboard .dashboard-list-row span,
.claude-dashboard .attention-row span {
    display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.claude-dashboard .dashboard-list-row strong {
    color: var(--bad); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.claude-dashboard .dashboard-empty {
    min-height: 48px; display: grid; place-items: center; padding: 12px; border: 1px dashed var(--line-strong);
    border-radius: 11px; color: var(--muted); background: var(--bg-soft); font-size: 13px; font-weight: 600;
}
.claude-dashboard .dashboard-empty.good {
    color: #0f7a4d; background: #f1fbf6; border-color: #cdeedd;
}
.claude-dashboard .attention-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px;
    min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg);
}
.claude-dashboard .attention-row > i {
    width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
}
.claude-dashboard .attention-row.good > i { background: var(--good); }
.claude-dashboard .attention-row.warn > i { background: #d18a1d; }
.claude-dashboard .attention-row.bad > i { background: var(--bad); }
.claude-dashboard .employee-profile-page {
    display: grid; gap: 18px;
}
.claude-dashboard .profile-topbar {
    display: flex; justify-content: flex-start;
}
.claude-dashboard .profile-topbar .db-link svg {
    transform: rotate(180deg);
}
.claude-dashboard .employee-profile-head {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.claude-dashboard .employee-profile-head h2 {
    margin: 0; font-size: 24px; font-weight: 800; letter-spacing: 0;
}
.claude-dashboard .employee-profile-head p {
    margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 600;
}
.claude-dashboard .profile-tags {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.claude-dashboard .profile-stats .db-stat-value {
    font-size: 24px;
}
.claude-dashboard .profile-info-list {
    display: grid; gap: 10px;
}
.claude-dashboard .profile-info-list div {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--line);
}
.claude-dashboard .profile-info-list div:last-child { border-bottom: 0; }
.claude-dashboard .profile-info-list span {
    color: var(--muted); font-size: 13px; font-weight: 600;
}
.claude-dashboard .profile-info-list b {
    color: var(--ink); font-size: 13.5px; text-align: right;
}
.claude-dashboard .employee-profile-schedule .schedule-editor {
    box-shadow: none;
}
.claude-dashboard .employee-schedule-page {
    display: grid; gap: 16px;
}
.claude-dashboard .employee-schedule-toolbar {
    display: grid; grid-template-columns: 1fr; gap: 14px; align-items: end;
}
.claude-dashboard .employee-schedule-toolbar label {
    display: grid; gap: 7px; color: var(--ink-2); font-weight: 700; font-size: 13.5px;
}
.claude-dashboard .employee-location-chips {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.claude-dashboard .employee-location-chips button {
    min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2);
    font-size: 13px; font-weight: 700;
}
.claude-dashboard .employee-location-chips button.active {
    color: var(--brand); border-color: rgba(36,116,204,.36); background: var(--brand-soft);
}
.claude-dashboard .employee-location-chips i {
    width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.claude-dashboard .employee-schedule-stats .db-stat-value {
    font-size: 24px;
}
.claude-dashboard .employee-calendar-panel {
    display: grid; gap: 10px; padding: 14px;
}
.claude-dashboard .employee-calendar-controls {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.claude-dashboard .employee-calendar-controls b {
    display: inline-flex; align-items: center; min-height: 38px; padding: 7px 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
    color: var(--ink-2); font-size: 14px; font-weight: 800;
}
.claude-dashboard .employee-calendar-mode {
    display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line-strong);
    border-radius: 10px; background: var(--bg);
}
.claude-dashboard .employee-calendar-mode button {
    min-height: 36px; padding: 7px 13px; border: 0; border-right: 1px solid var(--line);
    background: transparent; color: var(--muted); font-size: 13px; font-weight: 800;
}
.claude-dashboard .employee-calendar-mode button:last-child { border-right: 0; }
.claude-dashboard .employee-calendar-mode button.active {
    background: var(--brand); color: #fff;
}
.claude-dashboard .employee-period-btn {
    min-height: 36px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-2);
    border-radius: 10px; font-weight: 800;
}
.claude-dashboard .employee-period-btn {
    width: 38px; padding: 0; font-size: 23px; line-height: 1;
}
.claude-dashboard .employee-calendar-weekdays {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
}
.claude-dashboard .employee-calendar-weekdays span {
    color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; text-transform: uppercase;
}
.claude-dashboard .employee-calendar-grid {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
}
.claude-dashboard .employee-calendar-panel.employee-calendar-day .employee-calendar-grid {
    grid-template-columns: 1fr;
}
.claude-dashboard .employee-calendar-panel.employee-calendar-week .employee-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.claude-dashboard .employee-calendar-blank,
.claude-dashboard .employee-calendar-day {
    min-height: 116px;
}
.claude-dashboard .employee-calendar-panel.employee-calendar-day .employee-calendar-day {
    min-height: 180px;
}
.claude-dashboard .employee-calendar-day {
    display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px;
    padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.claude-dashboard .employee-calendar-day.is-weekend {
    background: #f6f8fc;
}
.claude-dashboard .employee-calendar-day.is-today {
    border-color: rgba(36,116,204,.52); box-shadow: inset 0 0 0 1px rgba(36,116,204,.12);
}
.claude-dashboard .employee-calendar-day.has-conflict {
    border-color: rgba(220,38,38,.55); background: #fff8f8;
}
.claude-dashboard .employee-day-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.claude-dashboard .employee-day-head b {
    color: var(--ink); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.claude-dashboard .employee-day-head span {
    color: var(--muted); font-size: 12px; font-weight: 700;
}
.claude-dashboard .employee-day-body {
    display: grid; align-content: start; gap: 6px; min-width: 0;
}
.claude-dashboard .employee-day-empty {
    color: var(--muted-2); font-size: 12px; font-weight: 600;
}
.claude-dashboard .employee-shift-pill {
    --loc: var(--brand); --shift: var(--brand);
    width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px;
    min-height: 34px; padding: 5px 6px; border: 1px solid var(--line); border-left: 3px solid var(--loc);
    border-radius: 8px; background: #fbfdff; color: inherit; text-align: left; cursor: pointer;
}
.claude-dashboard .employee-shift-pill:hover {
    border-color: rgba(36,116,204,.34); box-shadow: 0 8px 20px -18px rgba(8,17,37,.35);
}
.claude-dashboard .employee-shift-pill.conflict {
    border-color: rgba(220,38,38,.45); border-left-color: var(--bad); background: #fff1f1;
}
.claude-dashboard .employee-shift-pill span {
    min-width: 0; display: grid; gap: 2px;
}
.claude-dashboard .employee-shift-pill b,
.claude-dashboard .employee-shift-pill small span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.claude-dashboard .employee-shift-pill b {
    color: var(--ink); font-size: 11.5px; font-weight: 800;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.claude-dashboard .employee-shift-pill small {
    display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 3px;
    color: var(--muted); font-size: 10.5px; font-weight: 700; min-width: 0;
}
.claude-dashboard .employee-shift-pill small strong {
    justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.12;
    padding: 1px 5px; border-radius: 5px; color: #fff; background: var(--shift); font-size: 10px; font-weight: 800;
}
.claude-dashboard .employee-shift-pill small span {
    display: block; width: 100%;
}
.claude-dashboard .employee-shift-pill time {
    color: var(--brand); font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap;
}
.claude-dashboard .shift-detail-modal {
    display: grid; gap: 10px;
}
.claude-dashboard .shift-detail-modal div {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px 0; border-bottom: 1px solid var(--line);
}
.claude-dashboard .shift-detail-modal div:last-of-type { border-bottom: 0; }
.claude-dashboard .shift-detail-modal span {
    color: var(--muted); font-size: 13px; font-weight: 700;
}
.claude-dashboard .shift-detail-modal b {
    color: var(--ink); font-size: 14px; font-weight: 800; text-align: right;
}
.claude-dashboard .shift-detail-modal p {
    margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; color: #9b2f2f; background: #fff1f1; font-weight: 700;
}
.claude-dashboard .point-schedules-panel {
    display: grid; gap: 16px;
}
.claude-dashboard .point-schedule-list {
    display: grid; gap: 14px;
}
.claude-dashboard .point-schedule-group {
    display: grid; gap: 10px;
}
.claude-dashboard .point-schedule-head {
    display: flex; align-items: center; gap: 9px; min-height: 34px;
    color: var(--ink); font-weight: 800;
}
.claude-dashboard .point-schedule-head i {
    width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
}
.claude-dashboard .point-schedule-head b {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.claude-dashboard .point-schedule-head span {
    margin-left: auto; min-width: 26px; height: 24px; display: inline-grid; place-items: center;
    border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 12px; font-weight: 800;
}
.claude-dashboard .modal-backdrop {
    position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
    background: rgba(8, 17, 37, .36);
}
.claude-dashboard .modal-card {
    width: min(720px, 100%); max-height: min(820px, calc(100vh - 40px)); overflow: auto;
    border: 1px solid var(--line); border-radius: 16px; background: var(--bg);
    box-shadow: 0 24px 80px rgba(8, 17, 37, .24);
}
.claude-dashboard .modal-head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.claude-dashboard .modal-head b { font-size: 17px; font-weight: 700; }
.claude-dashboard .modal-body { padding: 18px; }
.claude-dashboard .modal-form { gap: 12px; }
@media (max-width: 1100px) {
    .claude-dashboard .grid.stats { grid-template-columns: repeat(2, 1fr); }
    .claude-dashboard .db-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .claude-dashboard .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .claude-dashboard .app-shell { grid-template-columns: 1fr; }
    .claude-dashboard .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 60px rgba(0,0,0,.15); }
    .claude-dashboard .sidebar.open { transform: none; }
    .claude-dashboard .menu-btn { display: grid; place-items: center; }
    .claude-dashboard .schedule-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .claude-dashboard .schedule-tools .wide { grid-column: 1 / -1; }
    .claude-dashboard .employee-picker-list { grid-template-columns: 1fr; }
    .claude-dashboard .entity-check-list { grid-template-columns: 1fr; }
    .claude-dashboard .directory-tools,
    .claude-dashboard .directory-tools.no-search { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
    .claude-dashboard .shift-picker-list { grid-template-columns: 1fr; }
    .claude-dashboard .schedule-fill-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .claude-dashboard .schedule-filter-row { grid-template-columns: 1fr; }
    .claude-dashboard .employee-schedule-toolbar { grid-template-columns: 1fr; }
    .claude-dashboard .employee-calendar-weekdays,
    .claude-dashboard .employee-calendar-blank { display: none; }
    .claude-dashboard .employee-calendar-grid { grid-template-columns: 1fr; }
    .claude-dashboard .employee-calendar-day {
        min-height: 0; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: auto;
        align-items: start;
    }
    .claude-dashboard .employee-day-head {
        display: grid; justify-items: center; gap: 2px; padding-top: 3px;
    }
    .claude-dashboard .employee-day-head b { font-size: 18px; }
    .claude-dashboard .employee-day-body { gap: 7px; }
    .claude-dashboard .schedule-week-tabs { display: none !important; }
    .claude-dashboard .schedule-edit-grid {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .claude-dashboard .schedule-edit-grid table {
        width: max-content;
        min-width: 1350px;
        table-layout: fixed;
    }
    .claude-dashboard .schedule-edit-grid th:first-child,
    .claude-dashboard .schedule-edit-grid td:first-child {
        width: 158px;
        min-width: 158px;
        max-width: 158px;
        z-index: 5;
    }
    .claude-dashboard .schedule-edit-grid thead th:first-child { z-index: 7; }
    .claude-dashboard .schedule-edit-grid .day-cell {
        width: 34px;
        min-width: 34px;
        max-width: 34px;
    }
    .claude-dashboard .schedule-edit-grid th:nth-last-child(2),
    .claude-dashboard .schedule-edit-grid td:nth-last-child(2) {
        width: 58px;
        min-width: 58px;
        max-width: 58px;
    }
    .claude-dashboard .schedule-edit-grid th:last-child,
    .claude-dashboard .schedule-edit-grid td:last-child {
        width: 84px;
        min-width: 84px;
        max-width: 84px;
    }
    .claude-dashboard .schedule-editor.week-0 .week-col,
    .claude-dashboard .schedule-editor.week-1 .week-col,
    .claude-dashboard .schedule-editor.week-2 .week-col,
    .claude-dashboard .schedule-editor.week-3 .week-col,
    .claude-dashboard .schedule-editor.week-4 .week-col { display: table-cell; }
    .claude-dashboard .coverage-shift-label {
        grid-template-columns: 10px minmax(0, 1fr);
        gap: 5px;
    }
    .claude-dashboard .coverage-shift-label span {
        font-size: 0;
    }
    .claude-dashboard .coverage-fact .coverage-shift-label span::after,
    .claude-dashboard .coverage-need .coverage-shift-label span::after {
        font-size: 11px;
        line-height: 1.1;
    }
    .claude-dashboard .coverage-fact .coverage-shift-label span::after { content: "Получилось"; }
    .claude-dashboard .coverage-need .coverage-shift-label span::after { content: "Требуется"; }
    .claude-dashboard .day-head button { min-height: 38px; }
    .claude-dashboard .sch-edit-cell { height: 38px; }
    .claude-dashboard .shift { width: 23px; height: 23px; }
}
@media (max-width: 560px) {
    .claude-dashboard .grid.stats { grid-template-columns: 1fr; }
    .claude-dashboard .db-stats { grid-template-columns: 1fr; }
    .claude-dashboard .quick-grid { grid-template-columns: 1fr; }
    .claude-dashboard .coverage-mini { gap: 6px; }
    .claude-dashboard .app-content { padding: 16px; }
    .claude-dashboard .app-header { padding: 12px 16px; }
    .claude-dashboard .db-role-wrap { display: none; }
    .claude-dashboard .directory-tools,
    .claude-dashboard .directory-tools.no-search { grid-template-columns: 1fr; }
    .claude-dashboard .table-footer { align-items: flex-start; flex-direction: column; }
    .claude-dashboard .schedule-fill-list { grid-template-columns: 1fr; }
    .claude-dashboard .employee-profile-head { align-items: flex-start; flex-direction: column; }
    .claude-dashboard .profile-tags { justify-content: flex-start; }
    .claude-dashboard .employee-calendar-panel { padding: 10px; }
    .claude-dashboard .employee-calendar-day { grid-template-columns: 44px minmax(0, 1fr); padding: 8px; }
    .claude-dashboard .employee-calendar-controls b { width: 100%; justify-content: center; }
    .claude-dashboard .employee-shift-pill { grid-template-columns: minmax(0, 1fr); }
    .claude-dashboard .employee-shift-pill time { justify-self: start; }
}

/* Landing page: functional schedule-editor demo */
.landing-schedule-demo {
    width: 100%;
    margin: 0 auto;
    color: var(--ink);
    font-size: 14px;
}
.landing-schedule-demo .landing-demo-editor {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 30px 60px -30px rgba(20,40,90,.18), 0 8px 24px -16px rgba(20,40,90,.1);
}
.landing-schedule-demo .landing-demo-head {
    align-items: flex-start;
    padding: 18px 20px 0;
    margin-bottom: 16px;
}
.landing-schedule-demo .landing-demo-head > div:first-child {
    display: grid;
    gap: 4px;
}
.landing-schedule-demo .landing-demo-head > div:first-child b {
    font-size: 18px;
}
.landing-schedule-demo .landing-demo-head > div:first-child span {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}
.landing-schedule-demo .landing-demo-summary {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}
.landing-schedule-demo .landing-demo-summary > span {
    min-height: 30px;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--bg);
    font-size: 11.5px;
    font-weight: 700;
}
.landing-schedule-demo .landing-demo-summary b { color: var(--ink); font-size: 13px; }
.landing-schedule-demo .landing-demo-summary .is-complete { color: #137d55; border-color: #bfe8d6; background: #eefaf5; }
.landing-schedule-demo .landing-demo-summary .is-complete b { color: #137d55; }
.landing-schedule-demo .landing-demo-summary .has-issues { color: #b42318; border-color: #f8c7c3; background: #fff3f2; }
.landing-schedule-demo .landing-demo-summary .has-issues b { color: #b42318; }
.landing-schedule-demo .schedule-edit-grid {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.landing-schedule-demo .schedule-edit-grid table {
    width: 100%;
    min-width: 1160px;
    table-layout: fixed;
}
.landing-schedule-demo .schedule-edit-grid th:first-child,
.landing-schedule-demo .schedule-edit-grid td:first-child {
    width: 154px;
    min-width: 154px;
    max-width: 154px;
}
.landing-schedule-demo .schedule-edit-grid th:nth-last-child(3),
.landing-schedule-demo .schedule-edit-grid td:nth-last-child(3) { width: 56px; }
.landing-schedule-demo .schedule-edit-grid th:nth-last-child(2),
.landing-schedule-demo .schedule-edit-grid td:nth-last-child(2) { width: 64px; }
.landing-schedule-demo .schedule-edit-grid th:last-child,
.landing-schedule-demo .schedule-edit-grid td:last-child { width: 84px; }
.landing-schedule-demo .schedule-edit-grid th:nth-last-child(-n+3) {
    padding-inline: 5px;
    border-left: 1px solid var(--line);
    font-size: 9.5px;
    text-align: center;
}
.landing-schedule-demo .schedule-group-row td,
.landing-schedule-demo .schedule-group-row td:first-child {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 8px 12px;
    background: #f6f8fc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.landing-schedule-demo .schedule-group-row:hover { background: transparent; }
.landing-schedule-demo .emp-total-shifts,
.landing-schedule-demo .emp-total-hours,
.landing-schedule-demo .emp-total-salary {
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.landing-schedule-demo .landing-demo-footnote {
    padding: 11px 20px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    background: var(--bg-soft);
    font-size: 11.5px;
}
.landing-schedule-demo .landing-demo-settings-card { width: min(880px, 100%); }
.landing-schedule-demo .landing-demo-settings-intro {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13.5px;
}
.landing-schedule-demo .landing-demo-fill-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
}
.landing-schedule-demo .schedule-fill-card.is-disabled {
    cursor: not-allowed;
    opacity: .58;
}
.landing-schedule-demo .landing-demo-modal-actions {
    justify-content: flex-end;
    margin-top: 18px;
}
.landing-schedule-demo .landing-demo-modal .icon-btn {
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
}
@media (max-width: 900px) {
    .landing-schedule-demo .landing-demo-head { flex-direction: column; }
    .landing-schedule-demo .landing-demo-summary { justify-content: flex-start; }
    .landing-schedule-demo .landing-demo-fill-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-schedule-demo .schedule-edit-grid table { width: max-content; min-width: 1400px; }
}
@media (max-width: 620px) {
    .landing-schedule-demo .landing-demo-head { padding: 15px 14px 0; }
    .landing-schedule-demo .schedule-editor-bar { padding: 12px 14px; }
    .landing-schedule-demo .schedule-editor-actions { justify-content: flex-start; }
    .landing-schedule-demo .schedule-editor-actions .btn { flex: 1 1 calc(50% - 8px); text-align: center; justify-content: center; }
    .landing-schedule-demo .schedule-tools-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .landing-schedule-demo .schedule-tool { flex: 0 0 auto; }
    .landing-schedule-demo .landing-demo-fill-list { grid-template-columns: 1fr; }
    .landing-schedule-demo .modal-backdrop { padding: 10px; }
    .landing-schedule-demo .landing-demo-footnote { padding: 10px 14px; }
}
