@font-face { font-family: Montserrat; src: url('./assets/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url('./assets/Montserrat-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Montserrat; src: url('./assets/Montserrat-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --navy: #1d3852;
  --navy-deep: #10283e;
  --blue: #4c6f90;
  --blue-light: #76a8ca;
  --ink: #18202a;
  --ink-2: #1d3852;
  --forest: #1d3852;
  --forest-bright: #4c6f90;
  --sand: #f4f3ef;
  --paper: #ffffff;
  --white: #ffffff;
  --orange: #f47a2d;
  --orange-soft: #fff0e6;
  --mint: #e5edf3;
  --red: #a54037;
  --red-soft: #fbe8e5;
  --line: #d8dde1;
  --muted: #66727e;
  --shadow: 0 24px 80px rgba(12, 31, 48, .14);
  --radius: 3px;
  --sidebar: 248px;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: var(--sand);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--sand); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.ambient { position: fixed; border-radius: 999px; filter: blur(90px); pointer-events: none; opacity: .3; }
.ambient-one { width: 420px; height: 420px; background: var(--orange); right: -180px; top: -160px; }
.ambient-two { width: 380px; height: 380px; background: var(--blue-light); left: -220px; bottom: -170px; }

.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 178px; height: auto; }
.brand-light { color: white; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 1.08fr) minmax(440px, .92fr); }
.login-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(38px, 6vw, 84px); overflow: hidden; color: white; background: linear-gradient(90deg, rgba(9,29,46,.97), rgba(9,29,46,.76)), url('./assets/login-hero.webp') center / cover no-repeat; }
.login-intro::after { content: ""; position: absolute; inset: 0; border-right: 1px solid rgba(255,255,255,.16); background: linear-gradient(0deg, rgba(10,31,48,.3), transparent 55%); pointer-events: none; }
.login-copy { position: relative; z-index: 1; max-width: 670px; margin: 100px 0 60px; }
.eyebrow { margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 34px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--orange); }
.eyebrow.dark { color: var(--blue); }
.login-copy h1 { margin: 0; max-width: 650px; font-size: clamp(42px, 5.2vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }
.login-copy h1 em { color: var(--orange); font-style: normal; }
.login-copy > p:last-child { max-width: 570px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.75; }
.trust-list { position: relative; z-index: 1; display: flex; gap: 34px; margin: 0; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; color: rgba(255,255,255,.78); font-size: 12px; }
.trust-list li { display: grid; gap: 7px; max-width: 160px; }
.trust-list span { color: var(--orange); font-weight: 800; font-size: 11px; letter-spacing: .12em; }
.login-panel { display: grid; place-items: center; overflow-y: auto; padding: 18px clamp(26px, 5vw, 76px); background: var(--sand); }
.login-card { width: min(100%, 500px); margin-block: auto; padding: 24px 40px; border-top: 4px solid var(--orange); background: white; box-shadow: var(--shadow); }
.login-card h2, .modal h2 { margin: 0 0 11px; color: var(--navy-deep); font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.muted { color: var(--muted); line-height: 1.55; }
.login-card > .muted { margin: 7px 0 0; font-size: 12px; }
.mobile-brand { display: none; align-items: center; margin-bottom: 38px; }
.mobile-brand img { width: 190px; height: auto; }
.field { display: grid; gap: 8px; margin-top: 22px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.login-card .field { margin-top: 12px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 3px; outline: none; background: white; color: var(--ink); transition: border .18s, box-shadow .18s; }
.field input, .field select { height: 50px; padding: 0 14px; }
.login-card .field input { height: 46px; }
.field textarea { min-height: 125px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76,111,144,.12); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 78px; }
.password-toggle { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); border: 0; background: transparent; color: var(--forest); font-size: 12px; font-weight: 800; cursor: pointer; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 3px; padding: 0 20px; font-size: 12px; font-weight: 700; letter-spacing: .03em; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, .nav-button:focus-visible { outline: 3px solid rgba(239,154,55,.5); outline-offset: 2px; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary { background: var(--orange); color: white; box-shadow: 0 12px 35px rgba(244,122,45,.25); }
.button-primary:hover { background: #dd631c; }
.button-secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.button-ghost { background: transparent; color: var(--forest); }
.button-wide { width: 100%; justify-content: space-between; margin-top: 16px; }
.button-compact { min-height: 40px; padding: 0 15px; font-size: 13px; }
.help-text { margin: 9px 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.help-text a { color: var(--forest); font-weight: 700; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); color: #77817d; font-size: 9px; }
.demo-access { margin: 12px -40px -24px; padding: 12px 40px 14px; background: var(--navy-deep); color: white; }
.demo-head { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: baseline; gap: 8px; margin-bottom: 8px; }
.demo-kicker { color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.demo-head h3 { margin: 0; font-size: 15px; }
.demo-head p { margin: 0; color: rgba(255,255,255,.58); font-size: 8px; }
.demo-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-account { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; align-items: center; min-width: 0; padding: 9px 11px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: white; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.demo-account:hover { border-color: var(--orange); background: rgba(255,255,255,.1); }
.demo-role { font-size: 11px; font-weight: 700; }
.demo-credentials { grid-column: 1; min-width: 0; }
.demo-credentials small { display: block; overflow: hidden; color: rgba(255,255,255,.55); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.demo-arrow { grid-column: 2; grid-row: 1 / 3; color: var(--orange); font-size: 18px; }
.alert { margin: 18px 0 2px; padding: 12px 14px; border: 1px solid #e9c2bc; border-radius: 10px; background: var(--red-soft); color: var(--red); font-size: 13px; line-height: 1.45; }

.portal { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); grid-template-rows: 80px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; padding: 24px 18px 20px; border-right: 1px solid rgba(255,255,255,.08); background: var(--navy-deep); color: white; }
.sidebar .brand { margin: 6px 10px 42px; color: white; }
.sidebar .brand img { width: 172px; }
.main-nav { display: grid; gap: 5px; }
.nav-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 13px; border: 0; border-left: 3px solid transparent; border-radius: 0; background: transparent; color: rgba(255,255,255,.66); font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.nav-button:hover, .nav-button.active { border-left-color: var(--orange); background: rgba(255,255,255,.07); color: white; }
.nav-icon { width: 21px; color: var(--orange); font-size: 17px; text-align: center; }
.nav-badge { min-width: 21px; margin-left: auto; padding: 2px 6px; border-radius: 2px; background: var(--orange); color: white; font-size: 10px; text-align: center; }
.sidebar-contact { margin-top: auto; padding: 16px 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 3px; background: rgba(255,255,255,.04); }
.sidebar-contact p, .sidebar-contact a, .sidebar-contact small { display: block; margin: 0; }
.sidebar-contact p { color: rgba(255,255,255,.55); font-size: 11px; }
.sidebar-contact a { margin: 6px 0 3px; color: white; font-size: 13px; font-weight: 800; text-decoration: none; }
.sidebar-contact small { color: rgba(255,255,255,.46); font-size: 10px; }
.logout-button { display: flex; gap: 10px; margin-top: 13px; padding: 12px 14px; border: 0; background: transparent; color: rgba(255,255,255,.55); cursor: pointer; }
.topbar { position: sticky; top: 0; z-index: 15; grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; padding: 0 clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgba(244,243,239,.92); backdrop-filter: blur(16px); }
.top-context { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.top-title { margin: 4px 0 0; font-size: 14px; font-weight: 800; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.profile-button { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 3px; background: var(--blue); color: white; font-size: 12px; font-weight: 700; }
.profile-copy { display: grid; gap: 2px; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; }
.menu-button { display: none !important; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); cursor: pointer; font-size: 20px; }
.content { grid-column: 2; min-width: 0; padding: clamp(24px, 4vw, 48px); }
.content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.content-head h1 { margin: 0; color: var(--navy-deep); font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -.04em; }
.content-head p { max-width: 670px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.grid { display: grid; gap: 18px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 26px rgba(12,31,48,.045); }
.card-pad { padding: clamp(20px, 2.4vw, 30px); }
.stat-card { padding: 21px; }
.stat-label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stat-value { margin: 7px 0 0; color: var(--navy-deep); font-size: 34px; font-weight: 600; line-height: 1; }
.stat-meta { margin: 10px 0 0; color: var(--forest-bright); font-size: 11px; }
.hero-card { position: relative; overflow: hidden; padding: clamp(25px, 4vw, 42px); border-color: var(--navy-deep); background: linear-gradient(120deg, var(--navy-deep), var(--navy)); color: white; }
.hero-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -80px; top: -90px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.03); }
.hero-meta { display: flex; gap: 8px; align-items: center; color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero-card h2 { position: relative; z-index: 1; max-width: 680px; margin: 18px 0 8px; font-size: clamp(28px, 3.3vw, 44px); font-weight: 600; letter-spacing: -.035em; }
.hero-address { margin: 0; color: rgba(255,255,255,.63); font-size: 13px; }
.progress-head { display: flex; justify-content: space-between; margin-top: 30px; color: rgba(255,255,255,.64); font-size: 12px; }
.progress-head strong { color: white; }
.progress { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.13); }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 0 9px; border-radius: 20px; background: var(--mint); color: var(--forest); font-size: 10px; font-weight: 800; text-transform: capitalize; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.orange { background: var(--orange-soft); color: #905510; }
.status-pill.gray { background: #eceeea; color: #626b67; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 0; color: var(--navy-deep); font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.section-link { border: 0; background: transparent; color: var(--forest); font-size: 12px; font-weight: 800; cursor: pointer; }
.project-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.detail { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.detail small { display: block; margin-bottom: 5px; color: rgba(255,255,255,.48); font-size: 10px; text-transform: uppercase; }
.detail strong { font-size: 13px; font-weight: 650; }
.timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; min-height: 61px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 25px; bottom: 0; width: 1px; background: var(--line); }
.timeline-marker { z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: #9da5a1; font-size: 10px; }
.timeline .done .timeline-marker { border-color: var(--forest); background: var(--forest); color: white; }
.timeline .active .timeline-marker { border: 6px solid var(--orange-soft); background: var(--orange); }
.timeline-title { margin: 3px 0 0; font-size: 13px; font-weight: 750; }
.timeline-date { margin-top: 4px; color: var(--muted); font-size: 10px; }
.document-list, .ticket-list { display: grid; gap: 9px; }
.document-row, .ticket-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 68px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: white; text-decoration: none; transition: border .15s, transform .15s; }
.document-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
button.ticket-row { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.document-row:hover, .ticket-row:hover { border-color: #aeb9b3; transform: translateY(-1px); }
.file-icon { display: grid; place-items: center; width: 40px; height: 42px; border-radius: 3px; background: var(--orange-soft); color: var(--orange); font-size: 10px; font-weight: 700; }
.row-copy { min-width: 0; }
.row-copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.row-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.row-action { color: var(--forest); font-size: 18px; }
.ticket-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ticket-number { color: var(--muted); font-size: 10px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.table th { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.table td { padding: 15px 14px; border-bottom: 1px solid #eceee9; font-size: 12px; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: #faf8f3; }
.table .primary-cell { font-weight: 800; }
.table .secondary-cell { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.empty-state { display: grid; place-items: center; min-height: 250px; padding: 32px; border: 1px dashed #bdc4c0; border-radius: var(--radius); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px; border-radius: 50%; background: var(--mint); color: var(--forest); font-size: 24px; }
.empty-state h3 { margin: 0 0 7px; color: var(--navy-deep); font-size: 23px; font-weight: 600; }
.empty-state p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.photo-card { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #d9dfe5; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; color: white; background: linear-gradient(transparent, rgba(11,23,18,.8)); }
.photo-caption strong, .photo-caption small { display: block; }
.photo-caption small { margin-top: 3px; color: rgba(255,255,255,.72); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr); gap: 18px; }
.quick-actions { display: grid; gap: 10px; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); cursor: pointer; text-align: left; }
.quick-action span:first-child { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 3px; background: var(--orange-soft); color: var(--orange); }
.quick-action strong, .quick-action small { display: block; }
.quick-action strong { font-size: 12px; }
.quick-action small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.modal { width: min(640px, calc(100vw - 28px)); max-height: min(86vh, 850px); padding: 0; border: 0; border-radius: 3px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(12,31,48,.32); }
.modal::backdrop { background: rgba(14,28,23,.62); backdrop-filter: blur(5px); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.modal-head h2 { font-size: 30px; }
.modal-head .eyebrow { margin-bottom: 7px; }
.modal-body { padding: 10px 28px 30px; overflow-y: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.field.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.thread { display: grid; gap: 13px; margin-top: 18px; }
.message { max-width: 86%; padding: 13px 15px; border-radius: 13px 13px 13px 3px; background: #eef1ed; }
.message.admin { justify-self: end; border-radius: 13px 13px 3px 13px; background: var(--mint); }
.message p { margin: 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.message small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.divider { height: 1px; margin: 22px 0; background: var(--line); }
.toast-region { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: grid; gap: 10px; }
.toast { width: min(360px, calc(100vw - 40px)); padding: 14px 16px; border-radius: 3px; background: var(--navy-deep); color: white; box-shadow: var(--shadow); font-size: 12px; line-height: 1.45; animation: toast-in .2s ease-out; }
.toast.error { background: var(--red); }
.skeleton { position: relative; min-height: 130px; overflow: hidden; background: #e8e7e1; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.2s infinite; }

@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .split { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --sidebar: 260px; }
  .login-page { grid-template-columns: 1fr; }
  .login-intro { display: none; }
  .login-panel { min-height: 100vh; padding: 18px 22px; }
  .login-card { padding: 24px 30px; }
  .demo-access { margin: 12px -30px -24px; padding: 12px 30px 14px; }
  .mobile-brand { display: flex; }
  .portal { grid-template-columns: 1fr; grid-template-rows: 68px 1fr; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 14px 0 40px rgba(10,22,18,.24); }
  .portal.menu-open .sidebar { transform: translateX(0); }
  .topbar, .content { grid-column: 1; }
  .topbar { height: 68px; padding: 0 16px; }
  .menu-button { display: grid !important; }
  .profile-copy, #new-ticket-top { display: none; }
  .content { padding: 24px 16px 38px; }
  .content-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .demo-head { grid-template-columns: auto 1fr; }
  .demo-head p { grid-column: 1 / -1; }
  .demo-accounts { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 28px; }
  .project-details, .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: auto; }
  .photo-grid { grid-template-columns: 1fr; }
  .content-head h1 { font-size: 36px; }
  .document-row, .ticket-row { gap: 10px; padding: 10px; }
  .modal-head { padding: 20px 20px 15px; }
  .modal-body { padding: 8px 20px 24px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
