:root {
  --ink: #17212d;
  --muted: #607082;
  --line: #dce4ea;
  --paper: #ffffff;
  --canvas: #f4f7f8;
  --navy: #12304a;
  --blue: #1677b9;
  --teal: #087f78;
  --teal-soft: #dff5f1;
  --amber: #c97b1f;
  --red: #bf3e45;
  --shadow: 0 18px 48px rgba(18, 48, 74, .12);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
.site-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 12px max(24px, calc((100vw - 1180px) / 2)); color: #fff; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-size: 1.06rem; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--navy); background: #f0c15b; font-weight: 900; }
.brand small { display: block; margin-top: -2px; color: #adbecd; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
nav { display: flex; gap: 22px; align-items: center; font-weight: 650; font-size: .93rem; }
nav a { color: #d7e4ec; text-decoration: none; }
nav a:hover { color: #fff; }
nav .nav-cta { padding: 9px 14px; border-radius: 9px; color: var(--navy); background: #fff; }
.page-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 60px; }
.site-footer { padding: 25px 24px 32px; color: #738191; text-align: center; font-size: .82rem; }
.user-line { margin: -22px 0 24px; color: var(--muted); font-size: .9rem; }
.hero { padding: 38px clamp(24px, 6vw, 76px) 44px; overflow: hidden; border-radius: 24px; color: #fff; background: linear-gradient(118deg, #12304a 0%, #15536d 64%, #087f78 150%); box-shadow: var(--shadow); }
.hero h1, .auth-copy h1, .dashboard-heading h1, .status-card h1 { max-width: 780px; margin: 8px 0 16px; font-size: clamp(2.2rem, 5vw, 4.45rem); line-height: 1.04; letter-spacing: -.055em; }
.lead { max-width: 640px; margin: 0; color: inherit; font-size: 1.08rem; line-height: 1.65; opacity: .9; }
.eyebrow { margin: 0; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero .eyebrow { color: #f1ca74; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 11px 17px; border: 0; border-radius: 10px; color: #fff; background: var(--teal); box-shadow: none; cursor: pointer; font: inherit; font-size: .92rem; font-weight: 780; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); background: #066b65; }
.button-quiet { color: var(--ink); background: #fff; }
.button-quiet:hover { background: #e8f0f3; }
.button-wide { width: 100%; margin-top: 8px; }
.button-small { min-height: 36px; padding: 7px 11px; font-size: .82rem; }
.button-danger { color: var(--red); background: #fff1f2; }
.button-danger:hover { background: #ffe2e4; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.feature-grid article, .stats-row > div { min-height: 174px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.feature-grid span { color: var(--teal); font-size: .8rem; font-weight: 900; letter-spacing: .08em; }
.feature-grid h2 { margin: 14px 0 7px; font-size: 1.12rem; letter-spacing: -.02em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.auth-layout, .install-layout { display: grid; grid-template-columns: 1fr minmax(320px, 465px); gap: clamp(32px, 7vw, 108px); align-items: center; min-height: calc(100vh - 220px); }
.auth-copy { max-width: 540px; }
.auth-copy h1 { color: var(--navy); }
.auth-copy .lead { color: var(--muted); }
.text-link { display: inline-block; margin-top: 21px; color: var(--teal); font-weight: 750; text-decoration: none; }
.form-card { padding: 30px; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); box-shadow: var(--shadow); }
.form-card h2 { margin: 0 0 21px; font-size: 1.38rem; letter-spacing: -.03em; }
label { display: block; margin-top: 15px; color: #405266; font-size: .84rem; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 45px; margin-top: 6px; padding: 10px 12px; border: 1px solid #cdd8df; border-radius: 9px; outline: none; color: var(--ink); background: #fff; font: inherit; font-weight: 500; }
select { cursor: pointer; }
textarea { min-height: 106px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 127, 120, .14); }
.form-error, .flash { margin: 0 0 13px; padding: 11px 13px; border-radius: 9px; font-size: .9rem; font-weight: 620; }
.form-error, .flash-error { color: #902c34; background: #fff0f1; }
.flash { margin-bottom: 22px; }
.flash-success { color: #066d67; background: #def5f0; }
.dashboard-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 23px; }
.dashboard-heading h1 { margin-bottom: 7px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.35rem); }
.dashboard-heading .lead { color: var(--muted); }
.metric { flex: 0 0 190px; padding: 21px; border-radius: 16px; color: #fff; background: var(--teal); }
.metric strong { display: block; font-size: 2.45rem; line-height: 1; letter-spacing: -.06em; }
.metric span { font-size: .82rem; font-weight: 650; opacity: .9; }
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px; }
.stats-row-four { grid-template-columns: repeat(4, 1fr); }
.stats-row > div { min-height: auto; padding: 17px 20px; }
.stats-row span { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; }
.stats-row strong { display: block; margin-top: 3px; color: var(--navy); font-size: 1.1rem; }
.panel { padding: 26px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-title h2 { margin: 2px 0 0; font-size: 1.32rem; letter-spacing: -.03em; }
.empty-state { padding: 27px; border-radius: 12px; color: var(--muted); background: #f4f7f8; }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 4px 0 0; }
.request-list { display: grid; gap: 10px; }
.request-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.request-row strong, .request-row span { display: block; }
.request-row span { margin-top: 2px; color: var(--muted); font-size: .86rem; }
.inline-actions { display: flex; gap: 8px; }
.status-card { max-width: 800px; padding: clamp(28px, 7vw, 65px); margin: 54px auto; border-radius: 22px; color: var(--navy); background: #fff; box-shadow: var(--shadow); text-align: center; }
.status-card .eyebrow { margin-top: 18px; }
.status-card h1 { margin-right: auto; margin-left: auto; font-size: clamp(1.9rem, 4vw, 3.4rem); }
.status-card .lead { margin: 0 auto; color: var(--muted); }
.status-orb { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; }
.status-orb.pending { background: #f6c663; box-shadow: 0 0 0 10px #fff3d9; }
.status-orb.approved { background: #28a48d; box-shadow: 0 0 0 10px #dcf5ef; }
.status-orb.rejected { background: #ca5760; box-shadow: 0 0 0 10px #ffe5e7; }
.form-card-wide { max-width: 620px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.note { margin: 18px 0 0; padding: 13px 15px; border-left: 3px solid var(--teal); color: #405266; background: var(--teal-soft); font-size: .89rem; }
.page-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 25px; }
.page-heading h1 { margin: 5px 0 7px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.05em; line-height: 1.08; }
.page-heading .lead { color: var(--muted); }
.page-heading-compact { align-items: center; }
.form-panel { margin-bottom: 20px; }
.form-grid-three { grid-template-columns: repeat(3, 1fr); }
.form-grid-four { grid-template-columns: repeat(4, 1fr); }
.form-grid-three .form-actions, .form-grid-four .form-actions { display: flex; align-items: end; }
.form-actions { min-width: max-content; }
.wide-field { grid-column: span 2; }
small { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; font-weight: 550; }
.filter-bar { display: flex; gap: 10px; align-items: end; margin-bottom: 18px; }
.filter-bar input { max-width: 480px; margin-top: 0; }
.filter-bar select { width: auto; min-width: 135px; margin-top: 0; }
.filter-bar-wide { flex-wrap: wrap; }
.filter-bar-wide select { flex: 1 1 160px; }
.result-count { display: grid; min-width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--teal); background: var(--teal-soft); }
.table-wrap { overflow-x: auto; margin: 0 -2px; }
table { width: 100%; min-width: 800px; border-collapse: collapse; text-align: left; }
th { padding: 0 12px 10px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 12px; border-top: 1px solid var(--line); color: #304357; font-size: .9rem; vertical-align: middle; }
td strong { color: var(--ink); }
td small { white-space: nowrap; }
code { padding: 3px 5px; border-radius: 5px; color: #31546e; background: #edf3f6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .77rem; font-weight: 700; }
.row-link { color: var(--teal); font-size: .84rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.row-link:hover, .text-link:hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-style: normal; font-weight: 760; white-space: nowrap; }
.badge-good { color: #066a4e; background: #def5e9; }
.badge-warning { color: #855e00; background: #fff2cf; }
.badge-muted { color: #5d6c78; background: #edf1f3; }
.badge-pause { color: #65519a; background: #ede8fb; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.quick-links a { display: block; padding: 19px 21px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); background: #fff; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.quick-links a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 48, 74, .1); }
.quick-links span, .quick-links strong { display: block; }
.quick-links span { margin-bottom: 3px; color: var(--teal); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.quick-links strong { font-size: .94rem; }
.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.group-list { display: grid; gap: 10px; }
.group-list div, .detail-list div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.group-list span, .detail-list span { color: var(--muted); font-size: .9rem; }
.group-list strong { color: var(--teal); font-size: 1.3rem; }
.compact-link { margin-top: 0; font-size: .84rem; }
.compact-list { display: grid; }
.compact-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.compact-list a:hover strong { color: var(--teal); }
.compact-list span, .compact-list strong { display: block; }
.compact-list small { max-width: 245px; }
.update-card { max-width: 760px; }
.update-card h2 { margin: 4px 0 8px; }
.update-card p:not(.eyebrow) { max-width: 620px; color: var(--muted); }
.catalog-list { display: grid; gap: 10px; }
.catalog-row { display: grid; grid-template-columns: 72px minmax(190px, 1.6fr) minmax(115px, .8fr) 140px 100px 110px 92px; gap: 8px; align-items: end; padding: 13px 0; border-top: 1px solid var(--line); }
.catalog-row code { align-self: center; width: max-content; }
.catalog-row label { margin-top: 0; font-size: .7rem; }
.catalog-row input, .catalog-row select { min-height: 38px; margin-top: 3px; padding: 8px; font-size: .84rem; }
.check-label { display: flex; min-height: 38px; align-items: center; gap: 7px; white-space: nowrap; }
.check-label input { width: auto; min-height: 0; margin: 0; }
.edit-layout { align-items: start; }
.detail-list { display: grid; }
.quick-action-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.centered-actions { justify-content: center; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.service-cards article { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.service-cards h2 { margin: 5px 0 3px; color: var(--navy); font-size: 1.18rem; }
.service-cards p:not(.eyebrow) { min-height: 25px; margin: 0 0 17px; color: var(--muted); }
.service-cards article > div { display: grid; gap: 5px; margin-bottom: 15px; color: #506171; font-size: .82rem; }

@media (max-width: 760px) {
  .site-header { padding: 12px 20px; }
  .site-header nav { gap: 12px; font-size: .83rem; }
  .page-shell { width: min(100% - 32px, 1180px); padding-top: 32px; }
  .feature-grid, .auth-layout, .install-layout, .stats-row, .stats-row-four, .quick-links, .two-column, .service-cards { grid-template-columns: 1fr; }
  .auth-layout, .install-layout { min-height: auto; }
  .dashboard-heading, .request-row { display: block; }
  .metric { display: inline-block; margin-top: 20px; }
  .inline-actions { margin-top: 13px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-three, .form-grid-four { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .filter-bar { display: grid; grid-template-columns: 1fr; }
  .filter-bar input, .filter-bar select { width: 100%; max-width: none; }
  .catalog-row { grid-template-columns: 1fr 1fr; padding: 16px 0; }
  .catalog-row code { grid-column: span 2; }
  .catalog-row > :nth-last-child(2), .catalog-row button { grid-column: span 1; }
  .page-heading { display: block; }
  .page-heading .text-link { margin-top: 8px; }
  .hero h1, .auth-copy h1, .dashboard-heading h1, .status-card h1 { letter-spacing: -.045em; }
}
