:root {
  --ink: #15333c;
  --muted: #61757c;
  --line: #dce6e9;
  --paper: #ffffff;
  --wash: #f4f8f9;
  --brand: #075c69;
  --brand-2: #087f7a;
  --accent: #e34855;
  --warning: #d98b21;
  --success: #198866;
  --shadow: 0 18px 45px rgba(25, 68, 78, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--wash); font: 16px/1.55 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, .button { cursor: pointer; }
:focus-visible { outline: 3px solid #f5b94c; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.public-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(220,230,233,.9); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-2)); font-size: 22px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.public-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 700; }
.public-nav a:hover { color: var(--brand-2); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 13px; font-weight: 800; color: #fff; background: var(--brand); box-shadow: 0 8px 20px rgba(7,92,105,.18); }
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button.secondary { color: var(--brand); background: #e6f3f3; box-shadow: none; }
.button.ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.button.danger { background: var(--accent); }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.hero { padding: 76px 0 56px; background: radial-gradient(circle at 82% 20%, rgba(38,181,166,.22), transparent 34%), linear-gradient(135deg, #f8fbfc 0%, #edf8f7 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 58px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--brand-2); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 6vw, 72px); }
h2 { margin: 0 0 12px; font-size: clamp(29px, 4vw, 44px); }
h3 { margin: 0 0 9px; font-size: 19px; }
.lead { max-width: 680px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.urgent-card { overflow: hidden; padding: 28px; border-radius: 30px; color: #fff; background: linear-gradient(150deg, #123e48, #075c69); box-shadow: var(--shadow); }
.urgent-badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.13); font-size: 12px; font-weight: 850; }
.urgent-number { margin: 22px 0 4px; font-size: 74px; font-weight: 900; letter-spacing: -.06em; }
.notice { padding: 14px 0; color: #fff; background: var(--notice-color, var(--brand)); }
.notice .container { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; }
.section { padding: 74px 0; }
.section.white { background: #fff; }
.section-heading { max-width: 700px; margin-bottom: 30px; }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 10px 28px rgba(27,65,76,.06); }
.card p { color: var(--muted); }
.stat strong { display: block; font-size: 30px; letter-spacing: -.04em; }
.icon-tile { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; color: var(--brand); background: #e9f5f4; font-weight: 900; }
.availability { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.availability:last-child { border: 0; }
.pill, .status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; color: #27535b; background: #e8f3f3; font-size: 12px; font-weight: 800; }
.status.confirmed, .status.active, .status.completed, .status.approved { color: #146349; background: #def4e9; }
.status.pending, .status.requested { color: #805710; background: #fff0cf; }
.status.cancelled, .status.rejected, .status.archived { color: #8b2932; background: #ffe2e5; }
.form-card { max-width: 720px; margin: 38px auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #cbdadd; border-radius: 12px; color: var(--ink); background: #fff; }
textarea { min-height: 120px; resize: vertical; }
.help { color: var(--muted); font-size: 12px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 88px; }
.password-toggle { position: absolute; right: 8px; top: 7px; min-height: 32px; border: 0; border-radius: 8px; color: var(--brand); background: #edf6f6; font-size: 12px; font-weight: 800; }
.alert { margin: 18px 0; padding: 14px 16px; border-radius: 13px; border: 1px solid #bfe3dc; color: #15594b; background: #e8f7f2; }
.alert.error { border-color: #efc1c5; color: #8b2932; background: #fff0f1; }
.alert.warning { border-color: #f2d49c; color: #754f11; background: #fff8e8; }
.demo-banner { position: relative; z-index: 60; padding: 8px 18px; color: #63420b; background: #fff0bf; border-bottom: 1px solid #efd286; text-align: center; font-size: 12px; font-weight: 800; }
.portal { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 18px; color: #d9eeee; background: #103d47; }
.sidebar .brand { color: #fff; margin: 0 8px 28px; }
.sidebar-section { margin: 20px 10px 8px; color: #83adb4; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.side-link, .accordion-button { width: 100%; display: flex; align-items: center; gap: 11px; margin: 3px 0; padding: 11px 12px; border: 0; border-radius: 11px; color: #cde4e8; background: transparent; font-size: 14px; font-weight: 700; text-align: left; }
.side-link:hover, .side-link.active, .accordion-button:hover, .accordion-button[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.10); }
.side-icon { width: 22px; text-align: center; }
.accordion-button::after { content: '›'; margin-left: auto; font-size: 18px; transition: transform .2s; }
.accordion-button[aria-expanded="true"]::after { transform: rotate(90deg); }
.submenu { margin: 3px 0 8px 33px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.15); }
.submenu .side-link { padding: 8px 10px; font-size: 12px; }
.portal-main { min-width: 0; }
.portal-topbar { position: sticky; top: 0; z-index: 40; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 30px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.portal-content { padding: 30px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f6f9fa; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.empty { padding: 42px 24px; text-align: center; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 800; }
.kpi strong { display: block; margin-top: 8px; font-size: 31px; letter-spacing: -.04em; }
.lock-card { padding: 34px; text-align: center; border: 1px dashed #c3d4d8; border-radius: 20px; background: #fafdfe; }
.lock-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: #e6f1f2; font-size: 28px; }
.footer { padding: 42px 0; color: #b8d3d8; background: #103d47; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer a { display: block; margin: 7px 0; }
.cookie-panel { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(440px, calc(100% - 40px)); padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.cookie-panel[hidden] { display: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 24px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.stack { display: grid; gap: 16px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.inline-form .field { min-width: 150px; }
.code { padding: 10px 12px; border-radius: 10px; background: #eef3f4; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid.four, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-nav a:not(.button) { display: none; }
  .portal { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; left: -300px; width: 280px; transition: left .2s ease; box-shadow: var(--shadow); }
  .sidebar-open .sidebar { left: 0; }
  .mobile-menu { display: inline-flex; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 66px; }
  .brand small, .public-nav .button.secondary { display: none; }
  .hero { padding: 54px 0 42px; }
  h1 { font-size: 42px; }
  .section { padding: 52px 0; }
  .grid.three, .grid.four, .kpi-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .portal-content { padding: 22px 14px; }
  .portal-topbar { padding: 10px 14px; }
  .page-head { display: grid; }
  .actions .button { width: 100%; }
}

