:root {
    --ink: #14201f;
    --muted: #6b7b78;
    --paper: #f7faf7;
    --card: #ffffff;
    --line: #e1ebe7;
    --green: #087f5b;
    --green-dark: #075c44;
    --mint: #dbf5e7;
    --orange: #e47836;
    --red: #c85151;
    --shadow: 0 16px 40px rgba(29, 70, 55, .08);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { min-height: 100vh; display: flex; }
.sidebar { width: 250px; background: #113c32; color: #effbf3; padding: 28px 20px; display: flex; flex-direction: column; }
.brand { display: flex; gap: 11px; align-items: center; font-size: 24px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 48px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; background: #8ee4b6; color: #113c32; border-radius: 12px; font-size: 18px; }
.eyebrow { color: #9ac5b3; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.nav { display: grid; gap: 5px; margin-top: 15px; }
.nav a { border-radius: 11px; padding: 12px 13px; color: #c4dfd4; font-size: 14px; }
.nav a:hover, .nav a.active { background: #1d5547; color: #fff; }
.nav-label { color: #81ad9d; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 18px 13px 4px; }
.side-note { margin-top: auto; padding: 15px; border: 1px solid #326153; border-radius: 14px; background: #16483c; color: #c4dfd4; font-size: 12px; line-height: 1.5; }
.main { flex: 1; min-width: 0; }
.topbar { height: 82px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.8); display: flex; justify-content: space-between; align-items: center; padding: 0 42px; }
.topbar h1 { font-size: 21px; letter-spacing: -.03em; margin: 0; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.userbar { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.avatar { display: grid; place-items: center; background: var(--mint); color: var(--green-dark); width: 35px; height: 35px; border-radius: 50%; font-weight: 800; }
.logout { border: 0; background: transparent; color: var(--green); font-weight: 700; font-size: 12px; }
.alert-link { border: 0; background: transparent; color: var(--green-dark); font-weight: 800; font-size: 14px; padding: 6px; }
.alert-link span { display: inline-grid; min-width: 18px; height: 18px; place-items: center; border-radius: 99px; background: var(--mint); font-size: 10px; }
.content { padding: 38px 42px 56px; max-width: 1500px; }
.flash { padding: 13px 16px; border: 1px solid #b7e5cc; background: #effcf4; border-radius: 11px; color: #176341; margin-bottom: 22px; font-size: 14px; }
.errors { padding: 13px 16px; border: 1px solid #f0baba; background: #fff2f2; border-radius: 11px; color: #8d3030; margin-bottom: 22px; font-size: 14px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.05em; margin: 0; }
.page-heading p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 15px; background: var(--green); color: white; font-weight: 750; font-size: 13px; }
.button:hover { background: var(--green-dark); }
.button.secondary { background: #edf5f1; color: var(--green-dark); }
.button.danger { background: #fff0ee; color: #b4453c; }
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.stat span { color: var(--muted); font-size: 12px; font-weight: 650; }
.stat strong { display: block; margin-top: 8px; font-size: 28px; letter-spacing: -.04em; }
.stat.green strong { color: var(--green); }
.stat.orange strong { color: var(--orange); }
.stat.red strong { color: var(--red); }
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.card-head h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.card-head a { color: var(--green); font-size: 12px; font-weight: 750; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; color: #87938f; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; background: #fbfdfb; padding: 12px 20px; white-space: nowrap; }
td { padding: 15px 20px; border-top: 1px solid #edf2ef; vertical-align: top; }
tr:hover td { background: #fbfefc; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.request-title { font-weight: 750; color: var(--green-dark); }
.request-meta { margin-top: 4px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 5px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.badge.new, .badge.triage { background: #fff4dc; color: #9c6417; }
.badge.scheduled, .badge.qa { background: #e6f0ff; color: #3f65a3; }
.badge.waiting_dependency { background: #f2e9ff; color: #7651a1; }
.badge.in_progress { background: #e8e9ff; color: #5559a3; }
.badge.completed { background: #dff6e9; color: #1b7c4d; }
.badge.blocked, .badge.cancelled { background: #ffe7e5; color: #ae443e; }
.badge.p0 { background: #ffe7e5; color: #ae443e; }
.badge.p1 { background: #fff0d5; color: #a4681a; }
.badge.p2 { background: #e7f1ed; color: #3c6d5d; }
.badge.p3 { background: #edf0ef; color: #6b7774; }
.system-list { padding: 5px 20px 15px; }
.system-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2ef; }
.system-item:last-child { border-bottom: 0; }
.system-name { font-weight: 720; font-size: 13px; }
.system-path { color: var(--muted); font-size: 11px; margin-top: 3px; }
.dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #e5a33b; margin-right: 5px; }
.dot.down { background: #d6544b; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.filters input, .filters select, .field input, .field select, .field textarea { width: 100%; border: 1px solid #d8e5df; border-radius: 9px; background: #fff; color: var(--ink); padding: 10px 11px; outline: none; }
.filters input { max-width: 250px; }
.filters select { width: auto; min-width: 150px; }
.filters .button { padding: 10px 13px; }
.pagination { padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.pagination nav { display: flex; gap: 4px; }
.pagination a, .pagination span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; }
.pagination .active { background: var(--green); color: white; border-color: var(--green); }
.form-card { max-width: 980px; }
.compact-form { align-self: start; }
.form-grid { padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: #5d6f69; font-weight: 750; }
.field textarea { min-height: 120px; resize: vertical; }
.field small { color: var(--muted); font-size: 11px; }
.form-actions { padding: 17px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.form-actions .right { display: flex; gap: 9px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top right, #d9f4e6, transparent 40%), #f7faf7; padding: 20px; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 34px; }
.login-card h1 { margin: 24px 0 7px; font-size: 31px; letter-spacing: -.05em; }
.login-card p { margin: 0 0 25px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.login-card .field { margin-bottom: 16px; }
.login-card .button { width: 100%; margin-top: 7px; }
.structure-tip { padding: 22px 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.number-chip { display: inline-block; background: #edf5f1; color: var(--green-dark); border-radius: 99px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; margin: 2px; padding: 5px 7px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.schedule-day { min-height: 150px; }
.text-button { display: block; margin: 6px 0 0 auto; border: 0; color: var(--red); background: transparent; font-size: 10px; font-weight: 800; }
.notification-toasts { position: fixed; z-index: 50; right: 20px; bottom: 20px; width: min(390px, calc(100vw - 40px)); display: grid; gap: 10px; }
.notification-toast { background: #fff; border: 1px solid #b9ddd0; border-left: 4px solid var(--green); box-shadow: var(--shadow); border-radius: 12px; padding: 15px; }
.notification-toast strong { color: var(--green-dark); font-size: 14px; }
.notification-toast p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 7px 0 13px; }
.toast-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast-actions .button { padding: 8px 11px; font-size: 11px; }
@media (max-width: 1050px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 750px) { .sidebar { width: 70px; padding: 20px 10px; } .brand { font-size: 0; justify-content: center; } .brand-mark { width: 38px; height: 38px; } .nav a { text-align: center; font-size: 0; } .nav a::first-letter { font-size: 18px; } .nav-label { display: none; } .side-note, .sidebar .eyebrow { display: none; } .topbar { padding: 0 18px; } .topbar p, .userbar > span { display: none; } .content { padding: 24px 18px 40px; } .page-heading { align-items: flex-start; flex-direction: column; } .stat-grid { grid-template-columns: repeat(2, 1fr); } .form-grid { grid-template-columns: 1fr; padding: 18px; } .field.full { grid-column: auto; } .schedule-grid { grid-template-columns: 1fr; } }
