@import "tailwindcss";

:root {
  --ink: #0b2c3d;
  --ink-soft: #526875;
  --petrol: #07516a;
  --petrol-dark: #043c51;
  --green: #078743;
  --lime: #a8cf08;
  --lime-soft: #eef7c8;
  --paper: #f7f8f4;
  --white: #ffffff;
  --line: #dce5e4;
  --line-dark: #cbd8d7;
  --blue-soft: #edf5f8;
  --orange: #d98518;
  --shadow: 0 16px 50px rgba(8, 44, 61, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,.82), rgba(247,248,244,.96)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(7,81,106,.035) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(7,81,106,.035) 80px),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(168, 207, 8, .55); outline-offset: 3px; }

.site-shell { min-height: 100vh; }
.topbar {
  height: 96px;
  padding: 0 clamp(24px, 5vw, 74px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(8,44,61,.04);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; height: 70px; overflow: hidden; }
.brand img { width: 214px; height: 79px; object-fit: contain; display: block; }
.identity-button { border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 8px 0 8px 12px; cursor: pointer; text-align: left; }
.identity-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--petrol); }
.identity-button strong, .identity-button small { display: block; }
.identity-button strong { font-size: 15px; }
.identity-button small { margin-top: 2px; color: var(--ink-soft); font-size: 12px; }
.chevron { margin-left: 6px; color: var(--ink-soft); font-size: 20px; }

.page { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 46px; }
.breadcrumb { display: flex; gap: 11px; align-items: center; font-size: 14px; color: #75878f; margin-bottom: 28px; }
.breadcrumb a { color: var(--petrol); text-decoration: none; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--green); text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 800; }
.intro h1 { margin: 0; font-size: clamp(38px, 4.7vw, 60px); line-height: 1; letter-spacing: -.045em; font-weight: 720; }
.project-meta { margin-top: 18px; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; }
.project-meta span { display: flex; align-items: center; gap: 7px; }
.project-meta svg { width: 19px; height: 19px; color: var(--petrol); }
.project-meta i { width: 1px; height: 20px; background: var(--line-dark); }
.last-update { min-width: 248px; display: flex; gap: 12px; align-items: center; border: 1px solid #cfe4e6; background: rgba(240,249,249,.8); border-radius: 12px; padding: 14px 18px; color: var(--ink-soft); font-size: 13px; }
.last-update svg { color: var(--petrol); }
.last-update strong { color: var(--ink); font-weight: 650; }

.dossier-switcher { width: min(480px, 100%); position: relative; margin: 34px 0 18px; z-index: 12; }
.dossier-current { width: 100%; border: 1px solid var(--line-dark); background: rgba(255,255,255,.92); border-radius: 16px; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; text-align: left; cursor: pointer; box-shadow: 0 8px 28px rgba(8,44,61,.05); }
.dossier-current img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.dossier-current small, .dossier-current strong, .dossier-current em { display: block; font-style: normal; }
.dossier-current small { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.dossier-current strong { font-size: 17px; }
.dossier-current em { color: var(--ink-soft); font-size: 11px; margin-top: 3px; }
.dossier-current > b { color: var(--petrol); font-size: 12px; font-weight: 700; }
.dossier-current > b span { margin-left: 4px; font-size: 16px; }
.dossier-current.static { cursor: default; }
.dossier-current.static > b { padding: 7px 10px; border-radius: 999px; background: #e5f5ea; color: #08753d; font-size: 10px; }
.dossier-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: white; border: 1px solid var(--line-dark); border-radius: 16px; box-shadow: var(--shadow); padding: 7px; overflow: hidden; }
.dossier-menu button { width: 100%; border: 0; background: white; border-radius: 11px; padding: 9px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); cursor: pointer; }
.dossier-menu button:hover, .dossier-menu button.active { background: var(--blue-soft); }
.dossier-menu img { width: 48px; height: 48px; border-radius: 10px; }
.dossier-menu span { flex: 1; }
.dossier-menu strong, .dossier-menu small { display: block; }
.dossier-menu small { color: var(--ink-soft); margin-top: 3px; }
.dossier-menu b { color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.progress-panel { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 42px); display: flex; align-items: center; justify-content: space-between; gap: 36px; box-shadow: var(--shadow); }
.progress-copy { flex: 1; min-width: 0; display: flex; align-items: center; gap: 32px; }
.progress-number { display: flex; align-items: baseline; flex: 0 0 auto; }
.progress-number > strong { color: var(--petrol); font-size: clamp(58px, 6vw, 78px); letter-spacing: -.06em; line-height: .9; }
.progress-number > span { font-size: 27px; font-weight: 650; margin-left: 6px; }
.progress-number small { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 500; margin-top: 3px; }
.progress-main { flex: 1; max-width: 640px; }
.progress-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; font-size: 14px; }
.progress-heading span { color: var(--ink-soft); white-space: nowrap; }
.progress-track, .mini-track { height: 9px; background: #e8eceb; border-radius: 999px; overflow: hidden; }
.progress-track span, .mini-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--lime)); transition: width .35s ease; }
.progress-main p { margin: 13px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.primary-button { border: 0; min-height: 60px; padding: 0 25px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; background: linear-gradient(135deg, var(--petrol), var(--petrol-dark)); color: white; font-weight: 720; font-size: 15px; cursor: pointer; box-shadow: 0 12px 28px rgba(4,60,81,.22); transition: transform .18s ease, box-shadow .18s ease; white-space: nowrap; }
.primary-button svg { color: var(--lime); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(4,60,81,.28); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.primary-button.compact { min-height: 48px; box-shadow: none; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.category-card { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 32px rgba(8,44,61,.055); transition: transform .18s ease, border-color .18s ease; }
.category-card:hover { transform: translateY(-3px); border-color: #b6cfce; }
.category-top { padding: 24px 24px 14px; display: flex; align-items: center; gap: 14px; }
.category-top h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.category-icon { flex: 0 0 auto; width: 49px; height: 49px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-soft); color: var(--petrol); }
.category-count { padding: 0 24px 10px; display: flex; align-items: baseline; gap: 9px; }
.category-count strong { color: var(--petrol); font-size: 31px; letter-spacing: -.04em; }
.category-count span { color: var(--ink-soft); font-size: 12px; }
.category-card .mini-track { margin: 0 24px 22px; height: 7px; }
.category-card > button { width: 100%; min-height: 62px; border: 0; border-top: 1px solid var(--line); background: #fbfcfb; color: var(--ink-soft); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 24px; text-align: left; cursor: pointer; font-size: 12px; }
.category-card > button:hover { color: var(--petrol); background: var(--blue-soft); }
.category-card > button b { color: var(--green); font-size: 25px; font-weight: 400; transition: transform .18s ease; }
.category-card > button:hover b { transform: translateX(3px); }

.checklist-section { margin-top: 44px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.03em; }
.filter-tabs { display: flex; align-items: center; gap: 5px; padding: 5px; border: 1px solid var(--line); background: rgba(255,255,255,.8); border-radius: 12px; }
.filter-tabs button { border: 0; background: transparent; color: var(--ink-soft); border-radius: 8px; padding: 9px 12px; cursor: pointer; font-size: 12px; font-weight: 650; }
.filter-tabs button[aria-selected="true"] { background: var(--ink); color: white; }
.checklist-list { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 32px rgba(8,44,61,.05); }
.checklist-row { min-height: 82px; display: grid; grid-template-columns: 38px 1fr auto auto; gap: 14px; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.checklist-row:last-child { border-bottom: 0; }
.checklist-row h3 { margin: 0 0 5px; font-size: 15px; }
.checklist-row p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.status-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 850; }
.status-dot.accepted { background: #def3e5; color: var(--green); }
.status-dot.review { background: #e4f1f7; color: var(--petrol); }
.status-dot.missing, .status-dot.partial { background: #fff0dd; color: var(--orange); }
.status-dot.optional { background: #eef1f2; color: #687b84; }
.status-pill { border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 780; white-space: nowrap; }
.status-pill.accepted { background: #e5f5ea; color: #08753d; }
.status-pill.review { background: #e9f4f8; color: var(--petrol); }
.status-pill.missing, .status-pill.partial { background: #fff1df; color: #a9620c; }
.status-pill.optional { background: #eef1f2; color: #64767e; }
.row-action { min-width: 82px; min-height: 37px; border: 1px solid var(--petrol); color: var(--petrol); background: white; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 750; }
.row-action:hover { background: var(--petrol); color: white; }
.empty-checklist { min-height: 110px; padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-soft); }
.empty-checklist strong { color: var(--ink); }
.empty-checklist span { margin-top: 5px; font-size: 12px; }

.models-section { margin-top: 42px; }
.models-heading { margin-bottom: 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.models-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.03em; }
.models-heading > div > p:last-child { max-width: 720px; margin: 9px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.models-secure { padding: 9px 12px; border: 1px solid #c9ded9; border-radius: 999px; background: #edf6f4; color: var(--green); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.models-secure svg { width: 16px; height: 16px; }
.models-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.models-grid.single { grid-template-columns: minmax(0, 650px); }
.model-card { min-height: 104px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.96); display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; box-shadow: 0 8px 28px rgba(8,44,61,.045); transition: transform .18s ease, border-color .18s ease; }
.model-card:hover { transform: translateY(-2px); border-color: #b9cfcc; }
.model-code { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, var(--petrol), var(--petrol-dark)); color: white; font-size: 13px; font-weight: 850; letter-spacing: -.03em; box-shadow: 0 8px 19px rgba(4,60,81,.16); }
.model-code.discharge { background: linear-gradient(145deg, #8e641f, #b9852b); }
.model-card h3 { margin: 0; font-size: 13px; }
.model-card p { margin: 5px 0; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.model-card small { color: var(--green); font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.model-card > a { width: 40px; height: 40px; border: 1px solid #bdd3d2; border-radius: 10px; background: white; color: var(--petrol); display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.model-card > a span { display: none; }
.model-card > a:hover { border-color: var(--petrol); background: var(--petrol); color: white; }
.model-card > a svg { width: 19px; height: 19px; }
.model-notice { margin-top: 12px; padding: 12px 14px; border: 1px solid #cce1dc; border-radius: 12px; background: #edf6f4; display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-size: 10px; }
.model-notice > span { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font-weight: 850; }
.model-notice p { margin: 0; flex: 1; line-height: 1.45; }.model-notice strong { color: var(--ink); }
.model-notice button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--ink); cursor: pointer; font-size: 18px; }

.support-card { margin-top: 22px; padding: 18px 22px; background: #edf6f4; border: 1px solid #cfe1dc; border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.support-card > div { display: flex; align-items: center; gap: 14px; }
.support-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.support-card p strong { color: var(--ink); }
.support-mark { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--petrol); color: white; font-weight: 850; font-family: Georgia, serif; }
.support-card a { color: var(--petrol); text-decoration: none; font-size: 12px; font-weight: 780; white-space: nowrap; }
footer { margin-top: 30px; padding: 20px 2px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #71838b; font-size: 11px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(7,31,43,.62); z-index: 100; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(5px); }
.upload-modal { width: min(570px, 100%); background: white; border-radius: 22px; padding: 34px; position: relative; box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.modal-close { position: absolute; right: 18px; top: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f0f3f2; color: var(--ink); font-size: 23px; cursor: pointer; }
.modal-icon { width: 48px; height: 48px; border-radius: 13px; background: var(--blue-soft); color: var(--petrol); display: grid; place-items: center; margin-bottom: 18px; }
.upload-modal h2 { margin: 0; font-size: 31px; letter-spacing: -.035em; }
.upload-modal > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.6; font-size: 14px; }
.drop-zone { width: 100%; margin-top: 16px; min-height: 154px; border: 1.5px dashed #9bb9be; border-radius: 15px; background: #f8fbfa; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.drop-zone svg { color: var(--green); width: 30px; height: 30px; }
.drop-zone strong { font-size: 14px; }
.drop-zone span { color: var(--ink-soft); font-size: 11px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.secondary-button { border: 1px solid var(--line-dark); background: white; color: var(--ink); min-height: 48px; border-radius: 11px; padding: 0 18px; cursor: pointer; font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.portal-state { min-height: calc(100vh - 96px); max-width: 760px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-bottom: 120px; }
.portal-state h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.045em; }
.portal-state > p:not(.eyebrow) { max-width: 620px; margin: 16px 0 24px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.portal-state > a { min-height: 46px; padding: 0 18px; border-radius: 10px; background: var(--petrol); color: white; display: inline-flex; align-items: center; text-decoration: none; font-weight: 750; }
.portal-notice { margin-top: 16px; padding: 13px 15px; border: 1px solid #cce1dc; border-radius: 12px; background: #edf6f4; display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-size: 12px; }
.portal-notice > span { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: white; display: grid; place-items: center; font-weight: 850; }
.portal-notice p { margin: 0; flex: 1; }
.portal-notice button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.8); color: var(--ink); cursor: pointer; font-size: 17px; }
.upload-select { margin-top: 17px; display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 750; }
.upload-select select { width: 100%; min-height: 48px; padding: 0 40px 0 13px; border: 1px solid var(--line-dark); border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.selected-files { max-height: 122px; margin: 12px 0 0; padding: 0; list-style: none; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.selected-files li { min-height: 38px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: 11px; }
.selected-files li:last-child { border-bottom: 0; }
.selected-files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-files small { flex: 0 0 auto; color: var(--ink-soft); }
.upload-feedback { margin: 12px 0 0 !important; padding: 10px 12px; border-radius: 9px; background: #edf5f8; color: var(--petrol) !important; font-size: 11px !important; }
.upload-feedback.error { background: #fff0ed; color: #a83c2d !important; }
.upload-feedback.success { background: #e8f6ec; color: #08753d !important; }

@media (max-width: 980px) {
  .progress-panel { align-items: stretch; flex-direction: column; }
  .primary-button { align-self: flex-start; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { display: grid; grid-template-columns: 1fr 130px; }
  .category-card .category-top, .category-card .category-count, .category-card .mini-track { grid-column: 1; }
  .category-card > button { grid-column: 2; grid-row: 1 / span 3; border-top: 0; border-left: 1px solid var(--line); flex-direction: column; justify-content: center; text-align: center; padding: 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .models-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar { height: 76px; padding: 0 18px; }
  .brand { height: 58px; }
  .brand img { width: 156px; height: 58px; }
  .identity-button span:nth-child(2), .identity-button .chevron { display: none; }
  .identity-icon { width: 38px; height: 38px; }
  .page { width: min(100% - 28px, 1320px); padding-top: 20px; }
  .breadcrumb { margin-bottom: 22px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 18px; }
  .intro h1 { font-size: 39px; }
  .last-update { min-width: 0; width: 100%; }
  .project-meta i, .project-meta span:last-child { display: none; }
  .dossier-switcher { margin-top: 25px; }
  .dossier-current { grid-template-columns: 56px 1fr; }
  .dossier-current img { width: 56px; height: 56px; }
  .dossier-current > b { display: none; }
  .progress-panel { padding: 23px 20px; }
  .progress-copy { align-items: flex-start; flex-direction: column; gap: 20px; }
  .progress-main { width: 100%; }
  .progress-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .primary-button { width: 100%; min-height: 56px; }
  .category-card { display: block; }
  .category-card > button { border-left: 0; border-top: 1px solid var(--line); min-height: 58px; flex-direction: row; text-align: left; padding: 0 22px; }
  .filter-tabs { width: 100%; overflow-x: auto; }
  .filter-tabs button { white-space: nowrap; }
  .checklist-row { grid-template-columns: 34px 1fr auto; gap: 10px; padding: 15px; }
  .checklist-row .status-pill { grid-column: 2; justify-self: start; }
  .row-action { grid-column: 3; grid-row: 1 / span 2; }
  .support-card { align-items: flex-start; flex-direction: column; }
  .models-heading { align-items: flex-start; flex-direction: column; }
  .model-card { grid-template-columns: 48px 1fr; }
  .model-code { width: 48px; height: 48px; }
  .model-card > a { width: auto; height: 38px; grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; }
  .model-card > a span { display: inline; font-size: 10px; font-weight: 750; }
  footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .upload-modal { padding: 28px 20px 22px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
}
