:root {
  --ink: #14283b;
  --navy: #17324d;
  --teal: #087a78;
  --teal-dark: #05615f;
  --teal-pale: #e7f3f2;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #dce3e7;
  --muted: #687885;
  --danger: #a43c42;
  --danger-pale: #faecec;
  --shadow: 0 18px 50px rgba(26, 48, 67, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
body { margin: 0; min-height: 100vh; background-image: linear-gradient(rgba(23,50,77,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(23,50,77,.025) 1px, transparent 1px); background-size: 32px 32px; }
a { color: inherit; }
button, input { font: inherit; }

.site-header { min-height: 82px; padding: 15px max(24px, calc((100vw - 1180px)/2)); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: block; width: 44px; height: 44px; border-radius: 12px; flex: 0 0 44px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { color: var(--muted); margin-top: 2px; }
.user-area { display: flex; align-items: center; gap: 18px; }
.user-meta { text-align: right; }
.user-meta strong, .user-meta span { display: block; }
.user-meta span { color: var(--muted); font-size: 13px; margin-top: 3px; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 80px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px; color: var(--muted); font-size: 13px; background: rgba(255,255,255,.7); }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--teal-dark); font-weight: 750; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -.045em; margin-bottom: 24px; color: var(--navy); }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; margin-bottom: 14px; color: var(--navy); }
h3 { font-size: 18px; margin-bottom: 8px; }
p { color: var(--muted); line-height: 1.65; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 11px; border: 1px solid transparent; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-dark); }
.button:disabled, .button:disabled:hover { opacity: .48; cursor: not-allowed; transform: none; }
.button-primary:disabled, .button-primary:disabled:hover { background: var(--teal); }
.button-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.button-quiet { border-color: var(--line); background: white; color: var(--ink); }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.inline-button-form { display: inline-flex; margin: 0; }

.login-layout { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 620px; background: var(--white); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.intro-panel { padding: clamp(40px, 7vw, 82px); background: var(--navy); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.intro-panel::after { content: ""; position: absolute; width: 320px; height: 320px; border: 70px solid rgba(255,255,255,.045); border-radius: 50%; right: -130px; bottom: -120px; }
.intro-panel h1 { color: white; font-size: clamp(42px, 5vw, 66px); max-width: 680px; }
.intro-panel p { color: #c8d5df; max-width: 580px; font-size: 18px; }
.intro-panel .eyebrow { color: #7ed2ce; }
.safety-line { color: white; margin-top: 52px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.safety-line span { width: 9px; height: 9px; background: #6dd3a8; border-radius: 50%; box-shadow: 0 0 0 5px rgba(109,211,168,.13); }
.login-card { padding: clamp(36px, 6vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.login-card h2 { font-size: 34px; }
.oidc-button { width: 100%; margin-top: 12px; }
.dev-login-section { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.dev-login-section h3 { margin-bottom: 5px; }
.dev-login-section > p { margin-bottom: 0; font-size: 14px; }
.profile-list { display: grid; gap: 12px; margin-top: 24px; }
.profile-option { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; text-align: left; cursor: pointer; color: var(--ink); }
.profile-option:hover { border-color: var(--teal); background: var(--teal-pale); }
.profile-option strong, .profile-option small { display: block; }
.profile-option small { margin-top: 4px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--teal-pale); color: var(--teal-dark); font-weight: 800; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 70px; align-items: center; padding: 34px 0 76px; }
.hero > div > p { max-width: 700px; font-size: 18px; }
.dashboard-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 0 46px; }
.dashboard-hero h1 { font-size: clamp(44px, 5vw, 62px); }
.method-section { padding-bottom: 32px; }
.compact-heading { margin-bottom: 22px; }
.compact-heading h2 { font-family: inherit; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.method-card { display: flex; flex-direction: column; min-height: 285px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.method-card-recommended { border-color: #91c9c6; box-shadow: inset 0 3px var(--teal); }
.method-card-header { min-height: 27px; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.method-type { color: #81929d; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recommendation-label { padding: 4px 8px; border-radius: 999px; background: var(--teal-pale); color: var(--teal-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.method-card h3 { font-size: 19px; }
.method-card p { margin-bottom: 22px; font-size: 14px; line-height: 1.55; }
.method-card > .button, .method-actions { margin-top: auto; }
.method-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.text-action { color: var(--teal-dark); font-size: 13px; font-weight: 750; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric-grid article { padding: 28px 30px; border-right: 1px solid var(--line); }
.metric-grid article:last-child { border-right: 0; }
.metric-grid small, .metric-grid strong { display: block; }
.metric-grid small { color: var(--muted); margin-bottom: 10px; }
.metric-grid strong { font-family: Georgia, serif; font-size: 26px; color: var(--navy); }
.process-section, .history-section { padding-top: 76px; }
.section-heading { max-width: 650px; margin-bottom: 30px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.steps article > span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 26px; border-radius: 10px; background: var(--teal-pale); color: var(--teal-dark); font-weight: 800; }
.steps p { margin-bottom: 0; }
.history-list { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.history-entry { display: flex; align-items: center; gap: 18px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.history-entry:last-child { border-bottom: 0; }
.history-entry:hover { background: #f7fafb; }
.history-main { display: flex; flex: 1 1 auto; justify-content: space-between; gap: 20px; align-items: center; min-width: 0; padding: 20px 0; text-decoration: none; }
.history-list strong, .history-list small { display: block; }
.history-list small { color: var(--muted); margin-top: 4px; }
.result-count { color: var(--teal-dark); font-weight: 700; }
.calendar-export-form { display: flex; align-items: flex-end; gap: 10px; }
.calendar-export-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.calendar-export-form select { min-height: 42px; padding: 7px 32px 7px 10px; border: 1px solid #aabac4; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.calendar-export-form select:focus, .calendar-download:focus { outline: 3px solid var(--teal-pale); border-color: var(--teal); }
.calendar-export-compact { flex: 0 0 auto; align-items: center; }
.calendar-export-compact select { min-height: 36px; max-width: 145px; font-size: 12px; }
.calendar-download { min-height: 36px; padding: 6px 11px; border: 1px solid var(--teal); border-radius: 8px; background: var(--teal-pale); color: var(--teal-dark); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.calendar-download:hover { background: #d8eeec; }
.access-denied { display: flex; gap: 18px; padding: 28px; border: 1px solid #eccbcd; background: var(--danger-pale); border-radius: var(--radius); }
.access-denied h2 { font-family: inherit; font-size: 21px; margin-bottom: 6px; }
.access-denied p { margin: 0; }
.lock-symbol { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--danger); color: white; font-weight: 800; }

.legal-page { max-width: 820px; }
.legal-page h1 { font-size: clamp(44px, 6vw, 64px); }
.legal-card { padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.legal-card h2 { margin: 34px 0 14px; font-family: inherit; font-size: 19px; letter-spacing: -.01em; }
.legal-card p { color: var(--ink); }
.legal-card address { color: var(--ink); font-style: normal; line-height: 1.65; }
.legal-card a { color: var(--teal-dark); overflow-wrap: anywhere; }

.breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 46px; }
.breadcrumb a { color: var(--teal-dark); }
.narrow-header { max-width: 720px; }
.narrow-header h1, .preview-header h1 { font-size: clamp(42px, 6vw, 62px); }
.upload-card { max-width: 820px; margin-top: 34px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dropzone { min-height: 260px; border: 2px dashed #aabac4; border-radius: 14px; background: #f8fafb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover { border-color: var(--teal); background: var(--teal-pale); }
.upload-prompt { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); }
.upload-prompt strong { color: var(--navy); }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: var(--navy); color: white !important; font-size: 24px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone.has-file { min-height: 190px; border-style: solid; border-color: var(--teal); background: var(--teal-pale); }
.dropzone.is-uploading { opacity: .72; cursor: wait; }
.selected-file { width: min(100% - 40px, 620px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid #a8d7d4; border-radius: 12px; background: white; text-align: left; color: var(--navy); box-shadow: 0 8px 24px rgba(23,50,77,.08); }
.selected-file[hidden] { display: none; }
.selected-file-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #dff4ea; color: #08704a; font-size: 20px; font-weight: 800; }
.selected-file small, .selected-file strong, .selected-file span { display: block; }
.selected-file small { margin-bottom: 3px; color: var(--teal-dark); font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.selected-file strong { overflow-wrap: anywhere; }
.selected-file #selected-file-size { margin-top: 4px; color: var(--muted); font-size: 13px; }
.selected-file-change { color: var(--teal-dark); font-size: 13px; font-weight: 750; white-space: nowrap; }
.form-actions, .preview-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.form-errors { margin-top: 14px; padding: 13px 16px; border-radius: 10px; background: var(--danger-pale); color: var(--danger); }
.form-errors ul { margin: 0; padding-left: 18px; }
.calendar-window { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px 18px; align-items: center; margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; }
.upload-attribute { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; align-items: center; margin-top: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; }
.upload-attribute label { display: block; color: var(--navy); font-weight: 800; }
.upload-attribute span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.upload-attribute select, .row-attribute select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #aabac4; border-radius: 8px; background: white; color: var(--ink); font: inherit; }
.row-attribute { display: grid; grid-template-columns: auto minmax(110px, 1fr); align-items: center; gap: 7px; margin-top: 8px; max-width: 290px; color: var(--muted); font-size: 12px; }
.row-attribute > span { white-space: nowrap; }
.row-attribute .attribute-pending-change { grid-column: 1 / -1; justify-self: start; }
.has-pending-attribute .row-attribute select { border-color: #c58c00; box-shadow: 0 0 0 2px #fff1bd; }
.calendar-window[hidden] { display: none; }
.calendar-window label, .calendar-window strong { display: block; color: var(--navy); font-weight: 800; }
.calendar-window div > span, .calendar-window small { display: block; color: var(--muted); font-size: 13px; }
.calendar-window select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #aabac4; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.calendar-window strong, .calendar-window small { grid-column: 1 / -1; }
.suggestion-options { grid-column: 1 / -1; display: grid; gap: 10px; margin: 12px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.suggestion-options legend { padding: 0 6px; color: var(--navy); font-weight: 800; }
.calendar-window .check-option { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 650; cursor: pointer; }
.calendar-window .check-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); }
.suggestion-explanation { margin: 3px 0 0; padding: 11px 13px; border-radius: 8px; background: var(--teal-pale); color: var(--teal-dark); font-size: 13px; line-height: 1.45; }
.suggestion-help { color: var(--muted); font-size: 13px; }
.suggestion-help summary { color: var(--teal-dark); font-weight: 750; cursor: pointer; }
.suggestion-help dl { display: grid; gap: 8px; margin: 12px 0 0; }
.suggestion-help dl div { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 12px; }
.suggestion-help dt { color: var(--navy); font-weight: 750; }
.suggestion-help dd { margin: 0; line-height: 1.4; }
.preview-period { color: var(--muted); font-size: 14px; font-weight: 650; }
.edit-card { max-width: 860px; margin-top: 34px; padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-group:first-child, .field-wide { grid-column: 1 / -1; }
.field-group label { color: var(--navy); font-weight: 750; }
.field-group input, .field-group select, .field-group textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #aabac4; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.field-group textarea { resize: vertical; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { outline: 3px solid var(--teal-pale); border-color: var(--teal); }
.field-errors { color: var(--danger); font-size: 13px; }
.field-errors ul { margin: 0; padding-left: 18px; }
.table-action { display: inline-block; color: var(--teal-dark); font-weight: 750; white-space: nowrap; }
.table-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 6px; min-width: 0; margin-top: 9px; }
.table-actions form { margin: 0; }
.table-action-button { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; text-decoration: underline; }
.table-action-save, .table-action-cancel { min-height: 34px; padding: 7px 10px; border-radius: 7px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.table-action-save { border: 1px solid var(--teal); background: var(--teal); color: white; }
.table-action-cancel { border: 1px solid #aabac4; background: white; color: var(--teal-dark); font: inherit; }
.table-action-danger { padding: 0; border: 0; background: transparent; color: var(--danger); font: inherit; cursor: pointer; text-decoration: underline; }
.inline-edit-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; width: 100%; }
[data-inline-edit][hidden], [data-inline-display][hidden], [data-inline-edit-toggle][hidden] { display: none; }
.time-suggestion { display: block; width: 100%; max-width: 100%; margin-top: 7px; padding: 5px 8px; border: 1px solid #7ebfba; border-radius: 7px; background: var(--teal-pale); color: var(--teal-dark); font: inherit; font-size: 11px; font-weight: 800; line-height: 1.25; white-space: normal !important; overflow-wrap: anywhere !important; cursor: pointer; }
.time-suggestion:hover { border-color: var(--teal); background: #d9f0ee; }
.time-suggestion:focus { outline: 3px solid rgba(10,122,120,.18); border-color: var(--teal); }
.time-suggestion[hidden] { display: none; }
.pending-change { display: inline-flex; max-width: 100%; padding: 4px 7px; border-radius: 8px; background: #fff1c9; color: #795600; flex-direction: column; gap: 1px; font-size: 10px; font-weight: 800; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.pending-change small { display: block; width: 100%; color: #795600; font-size: 9px; font-weight: 650; }
.pending-change[hidden] { display: none; }
.resource-pending-change { margin-top: 7px; }
.has-pending-changes td, .has-pending-resource td, .has-pending-attribute td { box-shadow: inset 0 2px #e3b341, inset 0 -2px #e3b341; }
.has-pending-changes td:first-child, .has-pending-resource td:first-child, .has-pending-attribute td:first-child { box-shadow: inset 3px 0 #e3b341, inset 0 2px #e3b341, inset 0 -2px #e3b341; }
.has-pending-changes td:last-child, .has-pending-resource td:last-child, .has-pending-attribute td:last-child { box-shadow: inset -3px 0 #e3b341, inset 0 2px #e3b341, inset 0 -2px #e3b341; }
.inline-time-editor { min-width: 0; }
.inline-time-editor, .inline-time-editor label { display: flex; align-items: center; gap: 7px; }
.inline-title-editor label { display: grid; gap: 4px; }
.inline-time-editor { flex-wrap: wrap; }
.inline-time-editor strong { flex-basis: 100%; font-size: 12px; }
.inline-time-editor label span, .inline-title-editor label span { color: var(--muted); font-size: 11px; }
.inline-edit-control { min-height: 34px; padding: 6px 8px; border: 1px solid #aabac4; border-radius: 7px; background: white; color: var(--ink); font: inherit; font-size: 12px; }
.inline-title-editor, .inline-title-editor label, .inline-title-editor .inline-edit-control { width: 100%; min-width: 0; }
.inline-edit-control:focus { outline: 3px solid var(--teal-pale); border-color: var(--teal); }
.is-inline-editing td:last-child { background: #f4fbfa; }
.title-with-description { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.description-info { display: inline-grid; flex: 0 0 auto; place-items: center; width: 19px; height: 19px; border: 1px solid #8ca5b5; border-radius: 50%; background: #f5f9fc; color: var(--teal-dark); font-size: 12px; font-style: normal; font-weight: 850; line-height: 1; cursor: help; }
.description-info:focus { outline: 3px solid var(--teal-pale); border-color: var(--teal); }
.description-tooltip { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; display: none; width: max-content; max-width: min(360px, 70vw); padding: 10px 12px; border: 1px solid #9db1bd; border-radius: 8px; background: var(--navy); color: white; box-shadow: 0 10px 28px rgba(23,50,77,.22); font-size: 13px; font-weight: 500; line-height: 1.4; white-space: normal; }
.title-with-description:hover .description-tooltip, .title-with-description:focus-within .description-tooltip { display: block; }
.resource-assignment { display: flex; align-items: center; gap: 8px; min-width: 300px; }
.resource-assignment select { min-width: 220px; padding: 8px 34px 8px 10px; font-size: 13px; }
.resource-assignment button { border: 0; border-radius: 8px; padding: 9px 11px; background: var(--teal); color: white; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.resource-assignment button:hover { background: var(--teal-dark); }
.resource-review-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; background: #f5f9fc; border-bottom: 1px solid var(--line); }
.resource-review-intro div { display: flex; flex-direction: column; gap: 3px; }
.resource-review-intro span { color: var(--muted); font-size: 13px; }
.resource-review-intro .review-pending { padding: 5px 9px; border-radius: 999px; background: #fff1c9; color: #795600; font-weight: 800; white-space: nowrap; }
.preview-sticky-tools { position: sticky; top: 0; z-index: 8; background: rgba(255,255,255,.98); box-shadow: 0 8px 18px rgba(23,50,77,.1); }
.table-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: white; }
.filter-buttons { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font: inherit; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.filter-button:hover { border-color: #9eb0ba; color: var(--ink); }
.filter-button.is-active { border-color: var(--teal); background: var(--teal-pale); color: var(--teal-dark); }
.table-tool-fields { display: flex; align-items: center; gap: 10px; }
.table-search input, .table-sort select { min-height: 38px; padding: 7px 10px; border: 1px solid #aabac4; border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 13px; }
.table-search input { width: 215px; }
.table-sort { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.table-search input:focus, .table-sort select:focus { outline: 3px solid var(--teal-pale); border-color: var(--teal); }
.filter-result { grid-column: 1; margin: 0; align-self: center; color: var(--muted); font-size: 12px; line-height: 1.3; }
.bulk-actions { grid-column: 2; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bulk-action, .bulk-delete { min-height: 34px; padding: 7px 11px; border-radius: 8px; background: white; font: inherit; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.bulk-action { border: 1px solid var(--line); color: var(--teal-dark); }
.bulk-check { border-color: var(--teal); background: var(--teal-pale); }
.bulk-delete { border: 1px solid #dba7aa; color: var(--danger); }
.bulk-action:hover { border-color: var(--teal); }
.bulk-delete:hover:not(:disabled) { border-color: var(--danger); background: var(--danger-pale); }
.bulk-delete:disabled { opacity: .5; cursor: not-allowed; }
.row-number-cell { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.row-number-cell input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.filtered-empty { padding: 28px 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.resource-select { width: 100%; min-width: 0; padding: 9px 30px 9px 8px; border: 1px solid #aabac4; border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 13px; }
.resource-select:focus { outline: 3px solid var(--teal-pale); border-color: var(--teal); }
.resource-cell { min-width: 0; }
.resource-cell-suggested { background: #edf6ff; box-shadow: inset 4px 0 #3988c9; }
.resource-cell-manual { background: #f8fafb; box-shadow: inset 4px 0 #8293a0; }
.selection-label { display: inline-block; margin-top: 7px; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.selection-suggested { background: #d7ebff; color: #145f9c; }
.selection-manual { background: #e7ecef; color: #435663; }
.selection-none { background: var(--danger-pale); color: var(--danger); }
.row-warning td { background-color: #fffaf0; }
.row-warning .resource-cell-suggested { background: #edf6ff; }
.capacity-warning, .duplicate-warning, .blocking-error { display: block; }
.capacity-warning, .duplicate-warning { color: #8a6200; font-weight: 700; }
.capacity-warning + .duplicate-warning, .duplicate-warning + .capacity-warning,
.blocking-error + .capacity-warning, .blocking-error + .duplicate-warning { margin-top: 5px; }
.blocking-error { color: var(--danger); }
.resource-availability { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.resource-unavailable { color: #8a6200; font-weight: 700; }
.unassigned-resource { color: var(--danger); font-weight: 750; }
.empty-state { padding: 34px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.info-strip { max-width: 820px; display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 16px 20px; border-radius: 12px; background: var(--teal-pale); color: var(--teal-dark); }
.info-strip span { color: #496d6c; }
.info-strip a { margin-left: auto; font-weight: 750; }

.preview-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.score { min-width: 180px; padding: 22px; border-left: 3px solid var(--teal); background: white; }
.score strong, .score span { display: block; }
.score strong { font-family: Georgia, serif; font-size: 38px; color: var(--navy); }
.score span { color: var(--muted); font-size: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 38px 0 20px; }
.summary-grid article { padding: 20px 22px; border: 1px solid var(--line); background: white; border-radius: 12px; }
.summary-grid small, .summary-grid strong { display: block; }
.summary-grid small { color: var(--muted); margin-bottom: 6px; }
.summary-grid strong { font-size: 23px; }
.summary-valid { border-left: 4px solid var(--teal) !important; }
.summary-invalid { border-left: 4px solid var(--danger) !important; }
.import-progress { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr); align-items: center; gap: 8px 24px; margin: 0 0 20px; padding: 18px 22px; border: 1px solid #a8d7d4; border-radius: 12px; background: var(--teal-pale); }
.import-progress div { display: flex; flex-direction: column; gap: 3px; }
.import-progress span, .import-progress small { color: var(--muted); }
.import-progress progress { width: 100%; height: 14px; accent-color: var(--teal); }
.import-progress small { grid-column: 1 / -1; }
.calendar-export-panel { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: 8px 24px; margin: 0 0 20px; padding: 20px 22px; border: 1px solid #8fc7c3; border-radius: 12px; background: var(--teal-pale); }
.calendar-export-panel > div { display: grid; gap: 4px; }
.calendar-export-panel > div > span, .calendar-export-panel > small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.calendar-export-panel > small { grid-column: 1 / -1; }
.table-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: visible; box-shadow: var(--shadow); }
.inline-add { border-bottom: 1px solid var(--line); }
.inline-add summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: var(--teal-dark); font-weight: 800; cursor: pointer; list-style: none; user-select: none; }
.inline-add summary::-webkit-details-marker { display: none; }
.inline-add summary:hover { background: #f4fbfa; }
.plus-symbol { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: white; font-size: 22px; font-weight: 500; line-height: 1; }
.inline-add[open] summary { background: #f4fbfa; border-bottom: 1px solid var(--line); }
.inline-add[open] .plus-symbol { transform: rotate(45deg); }
.inline-add-form { padding: 22px; background: #fbfdfd; }
.inline-form-actions { margin-top: 18px; }
.inline-add-error { margin: 0; padding: 18px 22px; color: var(--danger); background: var(--danger-pale); }
.table-wrap { overflow-x: visible; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.calendar-preview-table th:nth-child(1) { width: 7%; }
.calendar-preview-table th:nth-child(2) { width: 18%; }
.calendar-preview-table th:nth-child(3) { width: 9%; }
.calendar-preview-table th:nth-child(4) { width: 22%; }
.calendar-preview-table th:nth-child(5) { width: 19%; }
.calendar-preview-table th:nth-child(6) { width: 25%; }
.standard-preview-table th:nth-child(1) { width: 8%; }
.standard-preview-table th:nth-child(2) { width: 20%; }
.standard-preview-table th:nth-child(3) { width: 25%; }
.standard-preview-table th:nth-child(4) { width: 20%; }
.standard-preview-table th:nth-child(5) { width: 27%; }
th { padding: 13px 10px; text-align: left; background: var(--navy); color: white; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.calendar-preview-table th:nth-child(3), .calendar-preview-table td:nth-child(3) { white-space: nowrap; overflow-wrap: normal; }
.calendar-preview-table td:nth-child(5) > [data-inline-display], .standard-preview-table td:nth-child(4) > [data-inline-display] { white-space: nowrap; overflow-wrap: normal; }
tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-valid { color: #086846; background: #e6f5ee; }
.badge-imported { color: #086846; background: #e6f5ee; }
.badge-invalid, .badge-failed { color: var(--danger); background: var(--danger-pale); }
.row-status-detail { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.center-note { text-align: right; margin-top: 12px; font-size: 13px; }
.notice { padding: 14px 18px; margin-bottom: 24px; border: 1px solid #a8d7d4; background: var(--teal-pale); border-radius: 12px; color: var(--teal-dark); }
code { background: rgba(23,50,77,.08); padding: 2px 5px; border-radius: 5px; }

@media (max-width: 800px) {
  .page-shell { width: min(100% - 28px, 1180px); padding-top: 38px; }
  .site-header { padding: 13px 16px; }
  .user-meta { display: none; }
  .login-layout, .hero { grid-template-columns: 1fr; }
  .intro-panel { min-height: 400px; }
  .hero { gap: 28px; padding-bottom: 48px; }
  .metric-grid, .method-grid, .steps, .summary-grid { grid-template-columns: 1fr; }
  .import-progress { grid-template-columns: 1fr; }
  .import-progress small { grid-column: auto; }
  .calendar-export-panel { grid-template-columns: 1fr; align-items: stretch; }
  .calendar-export-panel > small { grid-column: auto; }
  .calendar-export-panel .calendar-export-form { align-items: stretch; flex-direction: column; }
  .method-card { min-height: 0; }
  .metric-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-grid article:last-child { border-bottom: 0; }
  .preview-header { align-items: flex-start; flex-direction: column; }
  .score { width: 100%; }
  .info-strip { align-items: flex-start; flex-direction: column; }
  .info-strip a { margin-left: 0; }
  .selected-file { grid-template-columns: auto 1fr; }
  .selected-file-change { grid-column: 2; white-space: normal; }
  .calendar-window { grid-template-columns: 1fr; }
  .upload-attribute { grid-template-columns: 1fr; }
  .calendar-window strong, .calendar-window small { grid-column: auto; }
  .suggestion-options { grid-column: auto; }
  .suggestion-help dl div { grid-template-columns: 1fr; gap: 2px; }
  .history-entry { align-items: stretch; flex-direction: column; gap: 0; padding: 0 18px 18px; }
  .history-main { align-items: flex-start; flex-direction: column; }
  .calendar-export-compact { align-items: stretch; flex-direction: column; }
  .calendar-export-compact select, .calendar-download { width: 100%; max-width: none; }
  .edit-grid { grid-template-columns: 1fr; }
  .field-group:first-child, .field-wide { grid-column: auto; }
  .table-tools { grid-template-columns: 1fr; }
  .filter-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .filter-button { flex: 0 0 auto; }
  .table-tool-fields { align-items: stretch; flex-direction: column; }
  .table-search input, .table-sort, .table-sort select { width: 100%; }
  .table-sort { align-items: flex-start; flex-direction: column; }
  .filter-result, .bulk-actions { grid-column: 1; }
  .bulk-actions { flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
  .table-wrap { overflow-x: auto; }
  .calendar-preview-table { min-width: 900px; }
  .standard-preview-table { min-width: 760px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
