:root {
  --ink: #241b1f;
  --ink-soft: #54484d;
  --paper: #f6f3ed;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --line: #ded8cf;
  --line-strong: #c8beb3;
  --wine: #6f2f45;
  --wine-dark: #522234;
  --wine-soft: #f2e7eb;
  --gold: #b98b45;
  --gold-soft: #f5ead7;
  --green: #2f6a52;
  --green-soft: #e7f1ec;
  --red: #a13232;
  --red-soft: #f9e8e6;
  --orange: #9b541f;
  --orange-soft: #f8eadc;
  --blue: #315f81;
  --blue-soft: #e7eff5;
  --shadow-sm: 0 1px 2px rgba(36, 27, 31, 0.05), 0 8px 24px rgba(36, 27, 31, 0.05);
  --shadow-lg: 0 24px 80px rgba(36, 27, 31, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --header-height: 78px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 10000; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: white; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

.preview-banner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 16px; background: #fff1c8; border-bottom: 1px solid #e1c66f; color: #604a0d; font-size: 13px; text-align: center; }
.preview-banner strong { text-transform: uppercase; letter-spacing: .07em; font-size: 11px; }

.site-header { min-height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 14px clamp(18px, 4vw, 60px); border-bottom: 1px solid rgba(109, 93, 98, .16); background: rgba(246, 243, 237, .93); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 100; }
.preview-banner + .site-header { top: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: max-content; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: Georgia, serif; font-size: 21px; font-style: italic; }
.brand > span:last-child { display: grid; line-height: 1; gap: 4px; }
.brand strong { font-size: 13px; letter-spacing: .18em; }
.brand small { color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: .28em; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 5px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header-actions .site-nav { justify-self: end; }
.nav-link { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-link:hover, .nav-link:focus-visible { background: rgba(111, 47, 69, .08); color: var(--wine-dark); outline: none; }
.nav-link.is-current { background: var(--ink); color: white; }
.user-menu { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 13px; }
.user-menu .user-name { max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 750; }
.user-menu a { color: var(--ink-soft); }

main { min-height: calc(100vh - var(--header-height) - 70px); }
.site-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(18px, 4vw, 60px); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; }
.site-footer span { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; cursor: pointer; font-weight: 800; font-size: 14px; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:focus-visible, .icon-button:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(49, 95, 129, .35); outline-offset: 2px; }
.button-primary { background: var(--wine); color: white; box-shadow: 0 10px 24px rgba(111, 47, 69, .2); }
.button-primary:hover { background: var(--wine-dark); box-shadow: 0 13px 30px rgba(111, 47, 69, .27); }
.button-quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button-quiet:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.button-danger { background: var(--red-soft); color: var(--red); border-color: #eac2be; }
.button-large { min-height: 52px; padding-inline: 24px; font-size: 15px; }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.text-link { color: var(--wine); font-weight: 750; }
.text-button { border: 0; background: transparent; color: var(--wine); cursor: pointer; font-weight: 800; padding: 9px; text-decoration: underline; text-underline-offset: 3px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 24px; line-height: 1; }

.eyebrow { margin: 0 0 12px; color: var(--wine); font-size: 11px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.page-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 58px 0 72px; }
.wide-shell { width: min(1600px, calc(100% - 32px)); }
.page-intro { max-width: 680px; margin-bottom: 34px; }
.page-intro h1, .board-heading h1 { margin: 0; font-size: clamp(36px, 6vw, 62px); line-height: .98; letter-spacing: -.05em; }
.page-intro p:not(.eyebrow), .board-heading p:not(.eyebrow) { color: var(--ink-soft); font-size: 17px; }

.hero-shell { width: min(1400px, calc(100% - 36px)); margin: 0 auto; min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .72fr); align-items: center; gap: clamp(38px, 8vw, 120px); padding: clamp(70px, 9vw, 130px) 0; }
.hero-copy h1 { margin: 0; font-size: clamp(55px, 8.5vw, 124px); line-height: .82; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--wine); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-lead { max-width: 710px; margin: 30px 0 0; color: var(--ink-soft); font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.hero-card-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.flow-list { list-style: none; padding: 0; margin: 14px 0; }
.flow-list li { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.flow-list li > span { color: var(--wine); font-family: Georgia, serif; font-size: 30px; font-style: italic; }
.flow-list li div { display: grid; gap: 3px; }
.flow-list strong { font-size: 19px; }
.flow-list small { color: var(--ink-soft); }
.deadline-note { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; margin-top: 20px; padding: 16px; border-radius: 14px; background: var(--gold-soft); }
.deadline-note > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-size: 22px; }
.deadline-note div { display: grid; gap: 3px; }
.deadline-note small { color: #725923; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.landing-features { width: min(1400px, calc(100% - 36px)); margin: 0 auto 80px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.landing-features article { padding: 34px 30px 40px; }
.landing-features article + article { border-left: 1px solid var(--line); }
.feature-number { color: var(--wine); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.landing-features h2 { margin: 18px 0 8px; font-size: 24px; letter-spacing: -.025em; }
.landing-features p { margin: 0; color: var(--ink-soft); }

.home-simple { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: clamp(90px, 13vw, 165px) 0 70px; text-align: center; }
.home-simple h1 { margin: 0; font-size: clamp(48px, 8vw, 92px); line-height: .96; letter-spacing: -.06em; }
.home-lead { max-width: 630px; margin: 25px auto 0; color: var(--ink-soft); font-size: clamp(18px, 2.4vw, 24px); line-height: 1.45; }
.home-simple .button { margin-top: 32px; }
.home-note { max-width: 660px; margin: 28px auto 0; padding: 16px 20px; border: 1px solid #e1c66f; border-radius: 14px; background: var(--gold-soft); color: #725923; font-size: 14px; }
.home-note strong { color: #604a0d; }
.home-steps { width: min(1050px, calc(100% - 36px)); margin: 0 auto 96px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-step { padding: 30px; }
.home-step + .home-step { border-left: 1px solid var(--line); }
.home-step-number { color: var(--wine); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.home-step h2 { margin: 16px 0 8px; font-size: 22px; line-height: 1.1; letter-spacing: -.025em; }
.home-step p { margin: 0; color: var(--ink-soft); }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }
.request-form { overflow: hidden; }
.form-section { margin: 0; padding: 30px; border: 0; border-bottom: 1px solid var(--line); }
.form-section legend { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 0; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.form-section legend > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; }
.field-grid { display: grid; gap: 20px; }
.field-grid.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-span-2 { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 750; }
.field > span b { color: var(--wine); }
.field input, .field select, .field textarea, .filter-panel input, .filter-panel select, .status-select, .inline-control select, .inline-control input { width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-strong); color: var(--ink); padding: 11px 13px; outline: none; font-weight: 500; transition: border .14s ease, box-shadow .14s ease, background .14s ease; }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-panel input:focus, .filter-panel select:focus, .status-select:focus, .inline-control select:focus, .inline-control input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 95, 129, .14); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.field small { color: var(--ink-soft); font-weight: 500; }
.char-count { justify-self: end; font-variant-numeric: tabular-nums; }
.inline-time { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.mini-check { min-height: 48px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-strong); cursor: pointer; }
.mini-check input { width: 18px; height: 18px; }
.field-help { margin: -10px 0 16px; color: var(--ink-soft); font-size: 14px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-card { min-height: 60px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-strong); cursor: pointer; font-size: 14px; font-weight: 750; }
.check-card:hover { border-color: var(--line-strong); }
.check-card:has(input:checked) { border-color: var(--wine); background: var(--wine-soft); }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-indicator { width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 6px; background: white; }
.check-card input:focus-visible + .check-indicator { outline: 3px solid rgba(49, 95, 129, .3); outline-offset: 2px; }
.check-card input:checked + .check-indicator { border-color: var(--wine); background: var(--wine); box-shadow: inset 0 0 0 5px var(--wine); }
.check-card input:checked + .check-indicator::after { content: "✓"; display: grid; place-items: center; color: white; font-size: 14px; line-height: 18px; }
.toggle-row { min-height: 66px; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; margin-top: 20px; cursor: pointer; }
.toggle-row.compact { margin-top: 4px; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-ui { width: 44px; height: 25px; border-radius: 999px; background: #cbc4bc; position: relative; transition: background .14s ease; }
.toggle-ui::after { content: ""; position: absolute; width: 19px; height: 19px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .14s ease; }
.toggle-row input:checked + .toggle-ui { background: var(--wine); }
.toggle-row input:checked + .toggle-ui::after { transform: translateX(19px); }
.toggle-row input:focus-visible + .toggle-ui { outline: 3px solid rgba(49, 95, 129, .3); outline-offset: 3px; }
.toggle-row > span:last-child { display: grid; }
.toggle-row small { color: var(--ink-soft); }
.conditional-field { margin-top: 10px; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 30px; background: #f0ece5; }
.form-submit-row > div { display: grid; gap: 2px; }
.form-submit-row span { color: var(--ink-soft); font-size: 13px; }
.request-aside { min-width: 0; }
.sticky-card { position: sticky; top: calc(var(--header-height) + 24px); padding: 26px; }
.preview-banner + .site-header + main .sticky-card { top: calc(var(--header-height) + 58px); }
.aside-card h2 { margin: 0 0 12px; font-size: 27px; line-height: 1.05; letter-spacing: -.035em; }
.aside-card p { color: var(--ink-soft); }
.mini-calendar { display: grid; gap: 5px; margin: 22px 0; padding: 18px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--paper); text-align: center; }
.mini-calendar span { color: var(--ink-soft); font-size: 12px; }
.mini-calendar strong { color: var(--wine); font-family: Georgia, serif; font-size: 25px; font-style: italic; }
.mini-calendar b { font-size: 14px; }
.aside-small { font-size: 13px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { margin: 18px 30px 0; padding: 14px 16px; border: 1px solid #e0aaa5; border-radius: 10px; background: var(--red-soft); color: #742727; font-size: 14px; }
.field-error { color: var(--red); font-size: 12px; font-weight: 750; }

.success-shell, .centered-state { width: min(680px, calc(100% - 36px)); min-height: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 65px 0; text-align: center; }
.success-mark, .state-icon { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 35px; font-weight: 900; }
.state-icon { background: var(--wine-soft); color: var(--wine); }
.state-icon-lock { background: var(--red-soft); color: var(--red); }
.success-shell h1, .centered-state h1 { margin: 0; font-size: clamp(48px, 9vw, 82px); line-height: .95; letter-spacing: -.06em; }
.success-lead, .centered-state > p:not(.eyebrow) { max-width: 560px; color: var(--ink-soft); font-size: 18px; }
.success-card { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); margin: 28px 0 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); text-align: left; }
.success-card > div { display: grid; gap: 6px; padding: 20px; }
.success-card > div + div { border-left: 1px solid var(--line); }
.success-card span { color: var(--ink-soft); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.success-card strong { font-size: 20px; }
.success-card .success-due { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; background: var(--gold-soft); }
.success-card .success-due strong { color: #664b1a; font-size: 31px; }
.notice { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; padding: 14px 16px; border-radius: 12px; text-align: left; font-size: 13px; }
.notice strong { white-space: nowrap; }
.notice-rush { background: var(--orange-soft); color: #763c14; border: 1px solid #eac49f; }
.notice-critical, .notice-error { background: var(--red-soft); color: #752727; border: 1px solid #e3b2ad; }
.notice-info { background: var(--blue-soft); color: #264e6b; border: 1px solid #b9d0df; }
.success-footnote { color: var(--ink-soft); font-size: 13px; }
.centered-state .button { margin-top: 16px; }
.centered-state .text-link { margin-top: 18px; }
.login-state { gap: 0; }
.login-form { width: min(460px, 100%); margin: 24px 0 0; padding: 24px; text-align: left; }
.login-form .field { margin: 0; }
.login-form .button { width: 100%; margin-top: 18px; }
.login-state .notice { width: min(560px, 100%); margin-top: 20px; }

.board-page, .archive-page { padding-top: 38px; }
.board-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.board-heading h1 { font-size: clamp(38px, 6vw, 68px); }
.board-heading p:not(.eyebrow) { margin: 10px 0 0; font-size: 15px; }
.filter-bar { position: relative; display: grid; grid-template-columns: minmax(220px, 520px) auto; justify-content: start; gap: 10px; margin-bottom: 18px; }
.search-field { min-height: 46px; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 4px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
.search-field > span:not(.sr-only) { color: var(--ink-soft); font-size: 23px; }
.search-field input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filter-toggle { min-width: 110px; }
.count-badge { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--wine); color: white; font-size: 11px; }
.filter-panel { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: min(900px, 96vw); display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.filter-panel label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.filter-panel input, .filter-panel select { min-height: 42px; padding: 8px 10px; font-size: 13px; text-transform: none; letter-spacing: normal; }
.filter-panel .text-button { justify-self: start; align-self: end; }
.loading-state { min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink-soft); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--wine); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.kanban-board { display: grid; grid-template-columns: repeat(4, minmax(280px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 12px; }
.kanban-column { min-width: 280px; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, .5); }
.column-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: rgba(246, 243, 237, .94); backdrop-filter: blur(12px); }
.preview-banner + .site-header + main .column-header { top: auto; }
.column-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; }
.column-title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.kanban-column[data-status="Submitted"] .column-title::before { background: var(--blue); }
.kanban-column[data-status="Working"] .column-title::before { background: var(--gold); }
.kanban-column[data-status="Done"] .column-title::before { background: var(--green); }
.kanban-column[data-status="Posted"] .column-title::before { background: var(--wine); }
.column-count { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; font-weight: 850; }
.column-body { min-height: 440px; display: grid; align-content: start; gap: 10px; padding: 10px; }
.column-body.is-drag-over { background: var(--wine-soft); outline: 2px dashed var(--wine); outline-offset: -6px; }
.column-empty { min-height: 180px; display: grid; place-items: center; color: var(--ink-soft); font-size: 13px; text-align: center; }

.project-card { position: relative; display: grid; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-strong); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, border .14s ease; }
.project-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 12px 30px rgba(36, 27, 31, .1); }
.project-card:focus-visible { outline: 3px solid rgba(49, 95, 129, .35); outline-offset: 2px; }
.project-card.is-dragging { opacity: .45; transform: rotate(2deg); }
.project-card.is-updating::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.58); cursor: wait; }
.card-due { display: grid; gap: 1px; padding: 11px 12px; border-radius: 10px; background: var(--gold-soft); }
.card-due span { color: #73571f; font-size: 9px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.card-due strong { color: #5b4213; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.badge::before { content: "!"; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; font-size: 9px; }
.badge-rush { background: var(--orange-soft); color: var(--orange); }
.badge-critical, .badge-overdue { background: var(--red-soft); color: var(--red); }
.badge-priority { background: var(--blue-soft); color: var(--blue); }
.badge-priority::before { content: "↑"; }
.card-heading { display: grid; gap: 4px; }
.card-heading h3 { margin: 0; font-size: 18px; line-height: 1.18; letter-spacing: -.02em; }
.card-heading span { color: var(--ink-soft); font-size: 12px; }
.type-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.type-chip { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink-soft); font-size: 9px; font-weight: 800; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.card-meta div { display: grid; gap: 1px; min-width: 0; }
.card-meta span { color: var(--ink-soft); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.card-meta strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.card-status-control { display: grid; gap: 5px; }
.card-status-control > span { color: var(--ink-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.status-select { min-height: 40px; padding: 7px 10px; font-size: 12px; font-weight: 750; }
.card-progress { display: flex; gap: 6px; align-items: center; color: var(--ink-soft); font-size: 10px; }
.card-progress-track { flex: 1; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.card-progress-track span { display: block; height: 100%; background: var(--green); border-radius: inherit; }

.empty-state { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; color: var(--ink-soft); }
.empty-state > span { font-size: 50px; color: var(--line-strong); }
.empty-state h2 { margin: 10px 0 3px; color: var(--ink); }
.empty-state p { margin: 0; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }

.project-dialog, .small-dialog { width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.small-dialog { width: min(560px, calc(100% - 24px)); }
.project-dialog::backdrop, .small-dialog::backdrop { background: rgba(23, 17, 20, .62); backdrop-filter: blur(5px); }
.project-dialog-shell { max-height: calc(100dvh - 24px); display: grid; grid-template-rows: auto 1fr; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-heading h2 { margin: 0; font-size: clamp(27px, 4vw, 40px); line-height: 1; letter-spacing: -.04em; }
.dialog-heading p { margin: 7px 0 0; color: var(--ink-soft); font-size: 13px; }
.dialog-body { overflow: auto; padding: 0 26px 34px; }
.detail-due-banner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; margin: 24px 0; padding: 18px 20px; border-radius: 14px; background: var(--gold-soft); }
.detail-due-banner span { color: #73571f; font-size: 10px; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.detail-due-banner strong { display: block; color: #573f14; font-size: clamp(27px, 5vw, 42px); line-height: 1; letter-spacing: -.035em; }
.detail-due-banner .card-badges { justify-content: flex-end; margin: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 20px; }
.detail-section { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-strong); }
.detail-section + .detail-section { margin-top: 14px; }
.detail-section h3 { margin: 0 0 15px; font-size: 18px; letter-spacing: -.02em; }
.detail-section h4 { margin: 20px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.detail-list div { min-width: 0; }
.detail-list dt { color: var(--ink-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.detail-list dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
.detail-copy { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 14px; }
.inline-control { display: grid; gap: 7px; margin-bottom: 14px; }
.inline-control > span { color: var(--ink-soft); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.inline-control-row { display: flex; gap: 8px; }
.inline-control-row > *:first-child { flex: 1; }
.override-form { display: grid; gap: 10px; padding: 13px; border-radius: 12px; background: var(--paper); }
.deliverable-list { display: grid; gap: 9px; }
.deliverable-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.deliverable-row > strong { font-size: 13px; }
.check-action { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 750; cursor: pointer; }
.check-action input { width: 19px; height: 19px; accent-color: var(--green); }
.upload-zone { position: relative; min-height: 150px; display: grid; place-items: center; padding: 24px; border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--paper); text-align: center; transition: border .14s ease, background .14s ease; }
.upload-zone.is-over { border-color: var(--wine); background: var(--wine-soft); }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone strong { display: block; font-size: 17px; }
.upload-zone span { color: var(--ink-soft); font-size: 12px; }
.upload-zone .button { margin-top: 12px; pointer-events: none; }
.upload-queue { display: grid; gap: 10px; margin-top: 12px; }
.upload-task { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.upload-task-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.upload-task-top strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--wine); transition: width .15s ease; }
.upload-task-actions { display: flex; gap: 8px; }
.upload-task-actions button { min-height: 32px; padding: 5px 11px; font-size: 11px; }
.file-list { display: grid; gap: 9px; }
.file-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.file-thumb { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 8px; background: var(--paper); overflow: hidden; color: var(--ink-soft); font-size: 10px; font-weight: 900; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-info { min-width: 0; display: grid; gap: 2px; }
.file-info strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.file-info span { color: var(--ink-soft); font-size: 10px; }
.file-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.file-actions a, .file-actions button { border: 0; background: transparent; color: var(--wine); cursor: pointer; font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 9px; padding: 0 0 16px; }
.activity-list li::before { content: ""; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 4px var(--wine-soft); }
.activity-list li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 1px; width: 1px; background: var(--line); }
.activity-list div { display: grid; gap: 2px; }
.activity-list strong { font-size: 12px; }
.activity-list span { color: var(--ink-soft); font-size: 10px; }
.blocker-list { margin: 8px 0 0; padding-left: 20px; }
.drive-link { display: inline-flex; align-items: center; gap: 6px; color: var(--wine); font-weight: 800; font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.small-dialog form { padding-bottom: 24px; }
.small-dialog form > .field, .small-dialog form > .toggle-row, .small-dialog form > .error-summary, .small-dialog form > .dialog-actions { margin-left: 24px; margin-right: 24px; }
.small-dialog form > .field { margin-top: 16px; }
.small-dialog .error-summary { margin-top: 16px; }

.admin-page { max-width: 1180px; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; overflow: hidden; }
.admin-summary > div { display: grid; gap: 4px; padding: 20px; }
.admin-summary > div + div { border-left: 1px solid var(--line); }
.admin-summary span { color: var(--ink-soft); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.admin-summary strong { font-size: 24px; letter-spacing: -.03em; }
.team-list { display: grid; gap: 10px; }
.team-user { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.team-user.is-inactive { opacity: .65; }
.team-user-main { min-width: 0; display: grid; gap: 2px; }
.team-user-main strong { font-size: 16px; }
.team-user-main span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-soft); font-size: 13px; }
.role-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.role-chip { padding: 5px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 10px; font-weight: 850; }
.role-chip.lead { background: var(--wine-soft); color: var(--wine); }
.role-chip.inactive { background: var(--red-soft); color: var(--red); }
.team-actions { display: flex; gap: 7px; }
.team-actions button { min-height: 38px; padding: 7px 12px; font-size: 12px; }
.integration-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; }
.integration-card, .setup-panel, .acceptance-panel { padding: 24px; }
.integration-heading { display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.provider-mark { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: white; border: 1px solid var(--line); font-size: 25px; font-weight: 900; color: #4285f4; }
.integration-heading h2 { margin: 0; font-size: 22px; }
.integration-heading p { margin: 2px 0 0; color: var(--ink-soft); font-size: 12px; }
.connection-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.connection-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { background: var(--green-soft); color: var(--green); }
.status-warn { background: var(--gold-soft); color: #795b1f; }
.status-error { background: var(--red-soft); color: var(--red); }
.integration-details { margin: 20px 0; }
.integration-details div { display: grid; grid-template-columns: 150px 1fr; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.integration-details dt { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.integration-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.integration-details code { font-size: 11px; }
.integration-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.setup-panel h2, .acceptance-panel h2 { margin: 0 0 18px; font-size: 25px; letter-spacing: -.035em; }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { display: grid; grid-template-columns: 25px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.setup-list li > span { color: var(--line-strong); font-size: 19px; font-weight: 900; }
.setup-list li.is-complete > span { color: var(--green); }
.setup-list li div { display: grid; gap: 2px; }
.setup-list strong { font-size: 13px; }
.setup-list small { color: var(--ink-soft); }
.acceptance-panel { margin-top: 18px; }
.acceptance-list { columns: 2; column-gap: 44px; margin: 0; padding-left: 23px; }
.acceptance-list li { break-inside: avoid; padding: 5px 6px; color: var(--ink-soft); font-size: 13px; }

.toast-region { position: fixed; z-index: 1000; right: 18px; bottom: 18px; width: min(390px, calc(100vw - 36px)); display: grid; gap: 8px; pointer-events: none; }
.toast { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); pointer-events: auto; animation: toast-in .18s ease both; }
.toast::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 900; }
.toast.is-error::before { content: "!"; background: var(--red-soft); color: var(--red); }
.toast div { display: grid; gap: 2px; }
.toast strong { font-size: 13px; }
.toast span { color: var(--ink-soft); font-size: 11px; }
.toast button { border: 0; background: transparent; cursor: pointer; color: var(--ink-soft); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-nav { justify-self: end; overflow-x: auto; }
  .header-actions { grid-column: 2; }
  .user-menu { display: none; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-copy { max-width: 900px; }
  .hero-card { max-width: 620px; transform: none; }
  .form-layout { grid-template-columns: 1fr; }
  .request-aside { grid-row: 1; }
  .sticky-card { position: static; }
  .request-aside .aside-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; align-items: center; }
  .request-aside .eyebrow, .request-aside h2 { grid-column: 1 / -1; }
  .request-aside .mini-calendar { margin: 0; }
  .kanban-board { grid-template-columns: repeat(4, minmax(300px, 330px)); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .preview-banner { align-items: flex-start; flex-direction: column; gap: 0; min-height: 42px; }
  .preview-banner + .site-header { top: 42px; }
  .site-header { grid-template-columns: 1fr auto; gap: 12px; padding: 10px 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 11px; }
  .brand small { font-size: 8px; }
  .site-nav { max-width: 58vw; justify-content: flex-start; gap: 1px; }
  .nav-link { min-height: 40px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .page-shell, .wide-shell { width: min(100% - 24px, 1180px); padding: 38px 0 55px; }
  .hero-shell { width: min(100% - 28px, 1400px); min-height: 0; padding: 58px 0; }
  .hero-copy h1 { font-size: clamp(51px, 18vw, 83px); }
  .hero-lead { margin-top: 23px; font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-card { padding: 20px; }
  .landing-features { width: min(100% - 28px, 1400px); grid-template-columns: 1fr; }
  .landing-features article + article { border-left: 0; border-top: 1px solid var(--line); }
  .home-simple { width: min(100% - 28px, 900px); padding: 70px 0 52px; }
  .home-steps { width: min(100% - 28px, 1050px); grid-template-columns: 1fr; margin-bottom: 64px; }
  .home-step + .home-step { border-top: 1px solid var(--line); border-left: 0; }
  .page-intro h1, .board-heading h1 { font-size: 45px; }
  .form-section { padding: 24px 18px; }
  .field-grid.two-column, .check-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
  .form-submit-row { align-items: stretch; flex-direction: column; padding: 22px 18px; }
  .request-aside .aside-card { display: block; }
  .success-card { grid-template-columns: 1fr; }
  .success-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .success-card .success-due { grid-column: auto; }
  .success-card .success-due strong { font-size: 25px; }
  .notice { grid-template-columns: 1fr; }
  .board-heading { align-items: stretch; flex-direction: column; }
  .board-heading > .button { align-self: flex-start; }
  .filter-bar { grid-template-columns: 1fr auto; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .kanban-board { margin-inline: -12px; padding-inline: 12px; scroll-snap-type: x mandatory; }
  .kanban-column { scroll-snap-align: start; }
  .column-header { top: auto; }
  .preview-banner + .site-header + main .column-header { top: auto; }
  .project-dialog { width: 100%; max-height: 100dvh; border-radius: 0; }
  .project-dialog-shell { max-height: 100dvh; }
  .dialog-heading, .dialog-body { padding-left: 16px; padding-right: 16px; }
  .detail-due-banner { grid-template-columns: 1fr; }
  .detail-due-banner .card-badges { justify-content: flex-start; }
  .detail-list { grid-template-columns: 1fr; }
  .deliverable-row { grid-template-columns: 1fr; }
  .file-row { grid-template-columns: 44px minmax(0, 1fr); }
  .file-thumb { width: 44px; height: 44px; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-summary > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .team-user { grid-template-columns: 1fr; }
  .role-chips { justify-content: flex-start; }
  .team-actions { justify-content: flex-start; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-heading { grid-template-columns: 50px 1fr; }
  .connection-status { grid-column: 1 / -1; justify-self: start; }
  .integration-details div { grid-template-columns: 1fr; gap: 4px; }
  .acceptance-list { columns: 1; }
}

@media (max-width: 480px) {
  .site-nav .nav-link:not(.is-current):first-child { display: none; }
  .filter-panel { grid-template-columns: 1fr; max-height: 72vh; overflow: auto; }
  .search-field { min-width: 0; }
  .filter-toggle { min-width: 92px; padding-inline: 12px; }
  .inline-time { grid-template-columns: 1fr; }
  .mini-check { justify-content: center; }
}

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

/* Runtime-rendered board and detail components */
.kanban-column > header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(246, 243, 237, .95);
  backdrop-filter: blur(12px);
}
.preview-banner + .site-header + main .kanban-column > header { top: auto; }
.kanban-column > header h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; letter-spacing: -.015em; }
.kanban-column > header h2::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.kanban-column[data-status="Submitted"] > header h2::before { background: var(--blue); }
.kanban-column[data-status="Working"] > header h2::before { background: var(--gold); }
.kanban-column[data-status="Done"] > header h2::before { background: var(--green); }
.kanban-column[data-status="Posted"] > header h2::before { background: var(--wine); }
.kanban-column > header p { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; }
.kanban-dropzone { min-height: 440px; display: grid; align-content: start; gap: 10px; padding: 10px; transition: background .14s ease, outline .14s ease; }
.kanban-dropzone.is-dragover { background: var(--wine-soft); outline: 2px dashed var(--wine); outline-offset: -6px; }

.card-warning-row { min-height: 25px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.request-number { color: var(--ink-soft); font-size: 10px; font-weight: 850; letter-spacing: .025em; }
.warning-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 25px; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 950; letter-spacing: .045em; text-transform: uppercase; }
.warning-badge b { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; line-height: 1; }
.warning-badge.badge-rush { background: var(--orange-soft); color: var(--orange); }
.warning-badge.badge-critical, .warning-badge.badge-overdue { background: var(--red-soft); color: var(--red); }
.card-open { width: 100%; display: grid; gap: 2px; padding: 12px; border: 0; border-radius: 11px; background: var(--gold-soft); color: inherit; cursor: pointer; text-align: left; }
.card-open:hover { background: #f4e7c7; }
.card-open:focus-visible { outline: 3px solid rgba(49, 95, 129, .3); outline-offset: 2px; }
.card-due-label { color: #73571f; font-size: 9px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.card-open .card-due { display: block; padding: 0; background: transparent; color: #563f13; font-size: 22px; font-weight: 900; line-height: 1.15; letter-spacing: -.028em; }
.card-open h3 { margin: 9px 0 0; color: var(--ink); font-size: 17px; line-height: 1.18; letter-spacing: -.02em; }
.card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; margin: 0; padding-top: 11px; border-top: 1px solid var(--line); }
.card-facts > div:last-child { grid-column: 1 / -1; }
.card-facts dt { color: var(--ink-soft); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.card-facts dd { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 750; }
.type-chips span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink-soft); font-size: 9px; font-weight: 800; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: 10px; }
.priority-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .045em; }
.priority-high { background: var(--blue-soft); color: var(--blue); }
.priority-urgent { background: var(--red-soft); color: var(--red); }
.mobile-status-select { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.mobile-status-select > span { color: var(--ink-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.mobile-status-select select { min-height: 38px; padding: 6px 9px; font-size: 11px; font-weight: 750; }

#project-dialog-content { max-height: calc(100dvh - 24px); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.sticky-dialog-heading { position: sticky; top: 0; z-index: 10; }
.dialog-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.project-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 34px; }
.project-control-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-strong); }
.project-control-bar label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.project-control-bar select { min-height: 42px; padding: 8px 10px; color: var(--ink); font-size: 13px; font-weight: 750; text-transform: none; letter-spacing: normal; }
.due-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-bottom: 14px; padding: 19px 20px; border: 1px solid #dfc785; border-radius: 14px; background: var(--gold-soft); }
.due-hero > div { display: grid; gap: 3px; }
.due-hero span { color: #73571f; font-size: 9px; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.due-hero strong { color: #573f14; font-size: clamp(29px, 4.5vw, 43px); line-height: 1; letter-spacing: -.038em; }
.due-hero small { color: #73571f; }
.due-hero.is-rush { border-color: #dfa05c; background: var(--orange-soft); }
.due-hero.is-critical, .due-hero.is-overdue { border-color: #d99393; background: var(--red-soft); }
.due-hero.is-critical strong, .due-hero.is-overdue strong { color: var(--red); }
.inline-editor { display: grid; grid-template-columns: minmax(160px, .45fr) minmax(220px, 1fr); gap: 12px; margin: 0 0 14px; padding: 16px; }
.inline-editor > div { grid-column: 1 / -1; display: flex; gap: 8px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading h3 { margin: 3px 0 0; }
.section-heading > span { color: var(--ink-soft); font-size: 11px; font-weight: 750; }
dl.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.detail-row { min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-row:nth-last-child(-n+2) { border-bottom: 0; }
.detail-row-wide { grid-column: 1 / -1; }
.detail-row dt { color: var(--ink-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.detail-row dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 650; }
.preserve-lines { margin: 0; white-space: pre-wrap; color: var(--ink-soft); font-weight: 500; line-height: 1.55; }
.deliverable-row { grid-template-columns: minmax(190px, 1fr) auto auto auto; }
.deliverable-title { min-width: 0; display: grid; gap: 3px; }
.deliverable-title strong { font-size: 13px; }
.deliverable-title small { overflow: hidden; color: var(--ink-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.completion-check { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 750; }
.completion-check input { width: 19px; height: 19px; accent-color: var(--green); }
.upload-dropzone { min-height: 160px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 24px; border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--paper); text-align: center; cursor: pointer; transition: border .14s ease, background .14s ease; }
.upload-dropzone.is-dragover { border-color: var(--wine); background: var(--wine-soft); }
.upload-dropzone:focus-visible { outline: 3px solid rgba(49,95,129,.3); outline-offset: 2px; }
.upload-symbol { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); font-size: 23px; font-weight: 800; }
.upload-dropzone > span:not(.upload-symbol) { color: var(--ink-soft); font-size: 11px; }
.upload-dropzone .button { margin-top: 10px; }
.active-upload-list { display: grid; gap: 9px; margin-top: 12px; }
.active-upload { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(130px, .7fr) auto auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.active-upload > div:first-child { min-width: 0; display: grid; }
.active-upload strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.active-upload small, .active-upload [data-upload-status] { color: var(--ink-soft); font-size: 10px; }
.active-upload progress { width: 100%; accent-color: var(--wine); }
.active-upload.has-error { border-color: #d99393; background: var(--red-soft); }
.active-upload.is-complete { border-color: #9bbda5; background: var(--green-soft); }
.file-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 9px; background: var(--paper); color: var(--wine); font-size: 17px; font-weight: 900; }
.file-info small { color: var(--ink-soft); font-size: 10px; }
.subtle-empty { margin: 12px 0 0; padding: 18px; border: 1px dashed var(--line); border-radius: 11px; color: var(--ink-soft); text-align: center; }
.activity-list li { grid-template-columns: 16px 1fr; }
.activity-list li::before { display: none; }
.activity-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 4px var(--wine-soft); }
.activity-list small { color: var(--ink-soft); font-size: 10px; }
.transition-blockers { display: block; margin: 0 0 14px; }
.transition-blockers > div { margin-top: 10px; }
.transition-blockers ul { margin: 5px 0 0; }
.compact-state { min-height: 320px; }

.team-row { display: grid; grid-template-columns: 48px minmax(220px, 1fr) minmax(220px, auto) auto; align-items: center; gap: 15px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; font-weight: 900; letter-spacing: .04em; }
.team-identity { min-width: 0; display: grid; gap: 2px; }
.team-identity strong { font-size: 15px; }
.team-identity span { overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.team-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.team-tags span { padding: 5px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: 9px; font-weight: 850; }
.team-tags .status-active { background: var(--green-soft); color: var(--green); }
.team-tags .status-inactive { background: var(--red-soft); color: var(--red); }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 8px; border: 0; background: transparent; color: var(--wine); cursor: pointer; font: inherit; font-size: 11px; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.danger-link { color: var(--red); }

.toast { grid-template-columns: auto 1fr; opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 900; }
.toast-error > span { background: var(--red-soft); color: var(--red); }
.toast::before { display: none; }
.toast > div { color: var(--ink); font-size: 12px; font-weight: 700; }

@media (max-width: 900px) {
  .project-control-bar { grid-template-columns: 1fr 1fr; }
  .project-control-bar label:last-child { grid-column: 1 / -1; }
  .deliverable-row { grid-template-columns: 1fr 1fr; }
  .deliverable-title { grid-column: 1 / -1; }
  .team-row { grid-template-columns: 44px 1fr; }
  .team-tags, .team-actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .preview-banner + .site-header + main .kanban-column > header { top: auto; }
  #project-dialog-content { max-height: 100dvh; }
  .project-dialog-body { padding: 16px 16px 28px; }
  .project-control-bar { grid-template-columns: 1fr; }
  .project-control-bar label:last-child { grid-column: auto; }
  .due-hero { grid-template-columns: 1fr; }
  .inline-editor { grid-template-columns: 1fr; }
  .inline-editor > div { grid-column: auto; }
  dl.detail-grid { grid-template-columns: 1fr; }
  .detail-row-wide { grid-column: auto; }
  .detail-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-row:last-child { border-bottom: 0; }
  .deliverable-row { grid-template-columns: 1fr; }
  .deliverable-title { grid-column: auto; }
  .active-upload { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: 42px 1fr; padding: 14px; }
  .team-tags, .team-actions { grid-column: 1 / -1; }
  .mobile-status-select { grid-template-columns: 1fr; }
}

/* Administrator request maintenance */
.board-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.project-details-editor { margin: 0 0 14px; padding: 20px; border-color: #bea8b1; background: #fffafc; }
.project-details-editor .section-heading { align-items: center; }
.details-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.edit-types { min-width: 0; margin: 0; padding: 0; border: 0; }
.edit-types legend { margin-bottom: 9px; color: var(--ink-soft); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.compact-check-card { min-height: 48px; padding: 10px 12px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
#request-details-display[hidden] { display: none; }

@media (max-width: 760px) {
  .board-actions { justify-content: flex-start; }
  .board-actions .button { flex: 1 1 180px; }
  .details-editor-grid { grid-template-columns: 1fr; }
  .project-details-editor .field-span-2, .project-details-editor .edit-types { grid-column: auto; }
  .editor-actions { align-items: stretch; flex-direction: column; }
  .editor-actions .button { width: 100%; }
}
.file-thumbnail { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.settings-form { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.settings-form textarea { min-height: 96px; }
.settings-form .button { justify-self: start; }
