@font-face {
  font-family: 'Steppe';
  src: url('/static/fonts/Steppe.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Steppe';
  src: url('/static/fonts/Steppe.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #2D2E2D;
  --navy-2: #232423;
  --navy-3: #3A3B39;
  --amber: #A7CF38;
  --amber-2: #C6E36F;
  --paper: #F2F2EF;
  --card: #FFFFFF;
  --soft: #F7F7F4;
  --ink: #2D2E2D;
  --muted: #6F716E;
  --line: #DEDEDA;
  --line-2: #ECECE8;
  --blue: #2D2E2D;
  --green: #5E7A12;
  --red: #B3261E;
  --violet: #5E7A12;
  --shadow: 0 10px 30px rgba(45, 46, 45, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Steppe, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
button, input, select, textarea { font-family: inherit; }
input[type="file"]::file-selector-button {
  font: inherit; font-weight: 600; margin-right: 10px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--navy); cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button {
  font: inherit; font-weight: 600; margin-right: 10px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--navy); cursor: pointer;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.2; }
h1 { font-family: Steppe, Arial, sans-serif; font-weight: 400; font-size: 38px; color: var(--navy); }
h2 { font-family: Steppe, Arial, sans-serif; font-weight: 400; font-size: 24px; color: var(--navy); }
h3 { font-size: 17px; color: var(--navy); }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 20px; }
.muted { color: var(--muted); font-size: 13.5px; }
.mono { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12.5px; color: var(--muted); }
.text-danger { color: var(--red) !important; }
.req { color: var(--red); }
.inline { display: inline; }
.grow { flex: 1; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 18px;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: .18s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-3); }
.btn--accent { background: var(--amber); color: var(--navy); }
.btn--accent:hover { background: #96bb2e; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn--ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.btn--danger { color: var(--red); border-color: #E9C6C6; }
.btn--small { padding: 8px 14px; font-size: 13px; }
.btn--full { width: 100%; }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0; }
.link-btn:hover { color: var(--red); }

/* public header */
.public-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__logo { display: block; height: 30px; width: auto; max-width: 220px; }
@media (max-width: 700px) { .brand__logo { height: 23px; max-width: 170px; } }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--amber);
  color: var(--navy); display: grid; place-items: center; font-family: Steppe, Arial, sans-serif; font-size: 20px;
}
.brand__text { font-size: 13px; letter-spacing: 1.6px; font-weight: 700; color: var(--navy); }
.brand__text span { color: var(--amber); }
.brand__text em { font-style: normal; display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.brand--dark .brand__text { color: var(--navy); }
.public-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.public-nav a { color: var(--ink); font-weight: 600; }
.public-nav a.btn { color: #fff; }

/* hero */
.hero {
  background:
    radial-gradient(1000px 600px at 85% 10%, rgba(167,207,56,.18), transparent 60%),
    linear-gradient(145deg, var(--navy-2), var(--navy) 60%, #3A3B39);
  color: #fff;
}
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 72px 24px 64px; }
.hero h1 { color: #fff; font-size: 52px; letter-spacing: -.5px; margin-bottom: 18px; }
.hero h1 em { color: var(--amber-2); font-style: normal; }
.hero__lead { color: #B9C7D9; font-size: 17px; max-width: 560px; margin-bottom: 26px; }
.hero__actions { display: flex; gap: 12px; margin-bottom: 38px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: Steppe, Arial, sans-serif; font-size: 22px; color: var(--amber-2); font-weight: 400; }
.hero__stats span { font-size: 12px; color: #93A6BD; }
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--amber-2); font-weight: 700; margin-bottom: 10px; }
.eyebrow--dark { color: #5E7A12; }

.login-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.login-card h2 { font-size: 22px; margin-bottom: 4px; }
.login-card .muted { margin-bottom: 18px; }
.hero__note { color: #8FA2BA; font-size: 11.5px; text-align: center; margin-top: 12px; }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 64px 24px; }
.section--tint { background: #EDEAE1; max-width: none; }
.section--tint > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 30px; }
.section__head h2 { font-size: 34px; max-width: 720px; }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--form { grid-template-columns: 1.6fr .8fr; align-items: start; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.service-card__num { font-family: Steppe, Arial, sans-serif; font-size: 30px; color: var(--amber); }
.service-card h3 { font-size: 21px; margin: 8px 0 8px; }
.service-card ul { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; margin-bottom: 12px; }
.step h3 { font-size: 16px; }
.step p { color: var(--muted); font-size: 13px; margin: 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin: 0 auto 64px; background: var(--navy); color: #fff; border-radius: 20px; padding: 34px 38px; }
.cta h2 { color: #fff; font-size: 28px; }
.cta p { color: #B9C7D9; margin: 0; }

/* auth */
.auth { min-height: 70vh; display: grid; place-items: center; padding: 50px 20px; }
.auth__card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.auth__card h1 { font-size: 32px; margin-bottom: 8px; }
.auth__card .muted { margin-bottom: 20px; }
.back-link { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }
.alert--ok { background: #F1F8E0; border: 1px solid #D9E6B0; color: #3F5210; }
.alert--error { background: #FBEAEA; border: 1px solid #E9C6C6; color: #8E1B1B; }

/* app shell */
.topbar {
  min-width: 0;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid var(--line); padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.topbar__right { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.topbar__platform { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #5E7A12; font-weight: 700; margin-right: 6px; }
.topbar__role { color: var(--muted); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.topbar__name { font-weight: 700; color: var(--navy); }
.preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #F4F9E4; border-bottom: 1px solid #D9E6B0; padding: 8px 24px; font-size: 12px; color: #4A5F12; }
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); max-width: 1480px; margin: 0 auto; min-height: calc(100vh - 64px); }
.sidebar { min-width: 0; background: var(--soft); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--ink); font-size: 13.5px; font-weight: 600; border-left: 3px solid transparent; }
.nav__item span { width: 16px; text-align: center; color: var(--amber); }
.nav__item:hover { background: #fff; text-decoration: none; }
.nav__item.is-active { background: #fff; border-left-color: var(--amber); box-shadow: 0 2px 8px rgba(45,46,45,.06); }
.sidebar__note { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); }
.sidebar__note strong { color: var(--navy); font-size: 12.5px; }
.main { padding: 30px 34px 50px; min-width: 0; }

/* page */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { font-size: 34px; }
.page-head--compact h1 { font-size: 28px; }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-row h1 { margin: 0; }
.sla-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 170px; }
.sla-chip span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.sla-chip strong { font-size: 13.5px; color: var(--navy); }
.sla-chip--danger { border-color: #E9C6C6; background: #FBEAEA; }
.sla-chip--danger strong { color: var(--red); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; font-family: Steppe, Arial, sans-serif; font-weight: 400; font-size: 30px; color: var(--navy); line-height: 1.2; margin: 4px 0 2px; }
.stat em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.stat--danger strong { color: var(--red); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card--soft { background: var(--soft); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.card__head h2 { font-size: 20px; margin-bottom: 2px; }
.card__head .muted { margin: 0; }
.pill { display: inline-block; background: #ECECE8; color: var(--navy); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; }

.next-step { display: flex; align-items: center; gap: 14px; background: linear-gradient(90deg, #F4F9E4, #FCFDF8); border: 1px solid #D9E6B0; border-radius: 12px; padding: 13px 16px; margin-bottom: 18px; }
.next-step__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.4px; color: #5E7A12; font-weight: 700; white-space: nowrap; }
.next-step strong { color: var(--navy); font-size: 14px; }

/* request list */
.request-list { display: flex; flex-direction: column; }
.request-row { display: grid; grid-template-columns: 1fr 140px; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-2); color: inherit; }
.request-row:first-child { border-top: 0; }
.request-row:hover { text-decoration: none; background: #FCFDF8; }
.request-row__top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.request-row h3 { font-size: 17px; margin: 0 0 4px; color: var(--navy); }
.request-row__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.request-row__side { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; }

.progress { width: 120px; height: 7px; background: #E9E5DB; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--amber); border-radius: 999px; }
.progress--lg { width: 100%; height: 9px; margin-bottom: 18px; }

/* badges */
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge--blue { background: #EEF6D8; color: #4A5F12; }
.badge--amber { background: #F1F8E0; color: #4A5F12; }
.badge--violet { background: #E7F0CC; color: #3F5210; }
.badge--green { background: #E7F0CC; color: #3F5210; }
.badge--gray { background: #EEEEEC; color: #5B5D58; }
.badge--red { background: #FBEAEA; color: #9E1B16; }

/* detail */
.detail-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 20px; align-items: start; }
.detail-main, .detail-side { min-width: 0; }
.detail-side .card { padding: 18px; }
.detail-side h2 { font-size: 17px; }
.person { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; }
.person div { display: flex; flex-direction: column; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.avatar--sm { width: 28px; height: 28px; font-size: 10px; }
.avatar--xs { width: 24px; height: 24px; font-size: 9px; }
.details { display: grid; grid-template-columns: 92px 1fr; gap: 7px 10px; margin: 0; font-size: 12.5px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; color: var(--ink); }
.details a { word-break: break-word; }

/* timeline */
.timeline { border-left: 2px solid #E9E4D9; margin-left: 6px; padding-left: 18px; }
.timeline__item { position: relative; padding-bottom: 16px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--amber); }
.timeline__dot--status { border-color: var(--navy); background: var(--navy); }
.timeline__dot--file { border-color: var(--blue); }
.timeline__dot--message { border-color: #9AA6B6; }
.timeline__head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.timeline__head strong { font-weight: 600; }
.timeline__head span { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.timeline__meta { font-size: 11.5px; color: var(--muted); }

/* chat */
.live-dot { font-size: 11px; color: var(--green); }
.live-dot:before { content: '●'; margin-right: 4px; }
.chat { max-height: 360px; overflow-y: auto; padding: 4px 2px 10px; display: flex; flex-direction: column; gap: 12px; }
.chat__empty { color: var(--muted); font-size: 13px; padding: 18px 0; }
.chat__msg { display: flex; gap: 8px; align-items: flex-start; }
.chat__msg--mine { flex-direction: row-reverse; }
.chat__bubble { background: var(--soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; max-width: 78%; }
.chat__msg--mine .chat__bubble { background: #F7FBEC; border-color: #D9E6B0; }
.chat__meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.chat__meta strong { color: var(--navy); font-size: 11.5px; }
.chat__text { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.chat__form { display: flex; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.chat__form input { flex: 1; }

/* files */
.file-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; font-size: 13px; }
.file-list li .muted { margin-left: auto; font-size: 11px; }
.file-icon { background: #F1F8E0; color: #4A5F12; font-size: 9px; font-weight: 700; border-radius: 5px; padding: 3px 5px; }
.upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* checks */
.checks { display: flex; flex-direction: column; gap: 6px; }
.check-form { margin: 0; }
.check { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 7px 0; font: inherit; color: var(--ink); cursor: pointer; }
.check__box { width: 20px; height: 20px; border: 1.5px solid #CFC8B8; border-radius: 5px; display: grid; place-items: center; font-size: 12px; color: #fff; flex: 0 0 auto; }
.check.is-done .check__box { background: var(--green); border-color: var(--green); }
.check.is-done span:last-child { color: var(--muted); text-decoration: line-through; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; color: var(--muted); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:hover td { background: #FCFDF8; }
.table__title { color: var(--navy); font-weight: 600; }
.row--danger td { background: #FFF7F7; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.form label input, .form label select, .form label textarea { margin-top: 5px; }
.form input, .form select, .form textarea, .chat__form input, .status-form input, .status-form select, .inline-form input, .upload input, .stack input {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #D9E6B0; border-color: var(--amber); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__actions { display: flex; gap: 10px; margin-top: 4px; }
.checkbox { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 9px !important; font-weight: 400 !important; color: var(--muted) !important; font-size: 12.5px !important; }
.checkbox input { width: auto; margin-top: 2px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.status-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; align-items: end; }
.status-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.side-note { display: flex; flex-direction: column; gap: 0; }
.side-note h3 { font-size: 16px; }
.numbered { color: var(--muted); font-size: 13px; }
.plain { list-style: none; padding: 0; color: var(--muted); font-size: 13px; }
.plain li { padding: 3px 0; }
.plain li:before { content: '·'; color: var(--amber); font-weight: 700; margin-right: 6px; }

/* misc */
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty h3 { color: var(--navy); }
.empty--small { padding: 14px; font-size: 13px; }
.toolbar { margin-bottom: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.chip:hover { text-decoration: none; border-color: var(--amber); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.people { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.people li { display: flex; align-items: center; gap: 10px; }
.people li div { display: flex; flex-direction: column; flex: 1; }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 30px; gap: 10px; align-items: center; font-size: 12px; }
.bar { height: 8px; background: #E9E5DB; border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.footer { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; border: 1px solid rgba(0,0,0,.1); }
.table__actions { text-align: right; }
.payment-list { display: flex; flex-direction: column; }
.payment-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.payment-row:first-child { border-top: 0; }
.payment-row__main { min-width: 0; }
.payment-row__top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.payment-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; white-space: nowrap; }
.payment-amount { font-family: Steppe, Arial, sans-serif; font-size: 19px; color: var(--navy); font-weight: 400; }
.pay-page { min-height: 100vh; background: var(--paper); display: grid; place-items: center; padding: 30px 16px; }
.pay-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.pay-card--center { text-align: center; }
.pay-card__head { margin: 26px 0 18px; }
.pay-card__head h1 { font-size: 30px; margin: 0 0 4px; }
.pay-amount { font-family: Steppe, Arial, sans-serif; font-size: 40px; color: var(--navy); line-height: 1.1; }
.pay-purpose { color: var(--muted); margin: 6px 0 18px; }
.pay-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 10px 0; margin-bottom: 18px; font-size: 12px; color: var(--muted); }
.pay-file { display: block; text-align: center; margin-top: 14px; font-size: 12px; }
.pay-success-icon { width: 56px; height: 56px; border-radius: 50%; background: #E7F0CC; color: var(--green); display: grid; place-items: center; font-size: 28px; margin: 0 auto 16px; }
.error-page { max-width: 560px; margin: 80px auto; text-align: center; }
.error-page__code { font-family: Steppe, Arial, sans-serif; font-size: 72px; color: var(--amber); }
.error-page h1 { font-size: 30px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero h1 { font-size: 42px; }
  .grid--3, .steps { grid-template-columns: 1fr 1fr; }
  .grid--form, .detail-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; overflow-x: auto; }
  .sidebar__note { display: none; }
  .nav { flex-direction: row; }
  .nav__item { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; }
  .nav__item.is-active { border-left: 0; border-bottom-color: var(--amber); box-shadow: none; }
  .main { padding: 22px 18px 40px; }
}

@media (max-width: 700px) {
  .public-nav a:not(.btn) { display: none; }
  .hero { padding: 36px 18px 44px; }
  .hero h1 { font-size: 34px; }
  .hero__stats { gap: 18px; flex-wrap: wrap; }
  .section { padding: 42px 18px; }
  .section__head h2 { font-size: 27px; }
  .grid--3, .steps, .grid--2 { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .page-head h1 { font-size: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-row { grid-template-columns: 1fr; }
  .request-row__side { align-items: flex-start; }
  .status-form { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .topbar__role, .topbar__name { display: none; }
  .cta { flex-direction: column; align-items: flex-start; margin: 0 14px 42px; padding: 26px; }
  .footer { flex-direction: column; }
  .detail-side .card { padding: 16px; }
}

/* admin: role preview + team invite */
.head-action { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.head-action label { font-size: 11px; color: var(--muted); }
.head-action select { font: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #fff; color: var(--ink); max-width: 260px; }
.form--inline { display: grid; grid-template-columns: 1.2fr 1.5fr 1fr auto; gap: 10px; align-items: end; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.form--inline label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 400; }
.form--inline input, .form--inline select { padding: 8px 10px; }
@media (max-width: 820px) {
  .form--inline { grid-template-columns: 1fr 1fr; }
  .head-action { width: 100%; }
}
@media (max-width: 700px) {
  .form--inline { grid-template-columns: 1fr; }
}

.assign-form select { flex: 1; min-width: 220px; font: inherit; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: #fff; color: var(--ink); }
