/* Astina Kundensupport. Colours, type and fonts come from the Paloma design system (paloma/styles.css);
   this file lays out the portal's pages after the Claude Design prototype (docs/design). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-page); color: var(--grey-9); font-size: 15px; }
a { color: var(--primary-7); }
a:hover { color: var(--primary-9); text-decoration: underline; }
h1, h2, h3 { color: var(--primary-9); }
h1 { margin: 0; font-size: 1.75rem; font-weight: 600; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--focus-color, var(--primary-7)); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.mono { font-family: var(--font-family-monospace); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.muted { color: var(--grey-6); }
.spacer { flex: 1; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--white); color: var(--primary-9); border-radius: 6px; font-weight: 500; }
.skip:focus { left: 8px; }

/* Brand */
.logo { display: block; flex: none; width: 32px; height: 32px; border-radius: 6px; }
.public-top .logo { width: 34px; height: 34px; border: 1px solid var(--grey-1); }
.brand-name { font-size: 17px; font-weight: 600; }
.brand-sep { width: 1px; height: 20px; background: var(--grey-2); }
.brand-sub { font-size: 15px; color: var(--grey-7); white-space: nowrap; }

/* Language switch */
.lang { display: flex; gap: 2px; padding: 2px; border-radius: 6px; border: 1px solid var(--grey-2); background: var(--white); }
.lang a { display: grid; place-items: center; height: 28px; min-width: 36px; padding: 0 8px; border-radius: 4px; font-size: 12.5px; font-weight: 600; color: var(--grey-7); text-decoration: none; }
.lang a.on { background: var(--primary-9); color: var(--on-color); }
.lang.on-dark { border-color: rgba(255, 255, 255, .3); background: transparent; }
.lang.on-dark a { color: var(--text-on-dark-muted); }
.lang.on-dark a.on { background: var(--white); color: var(--primary-9); }

/* Login and password pages */
.public-top { display: flex; align-items: center; gap: 16px; max-width: 1280px; width: 100%; margin: 0 auto; padding: 20px 24px; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.public-top .brand-name { color: var(--primary-9); font-size: 18px; }
.public-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 56px; }
.card { width: 100%; background: var(--white); border: 1px solid var(--grey-1); border-radius: 9px; padding: 32px; }
.card.narrow { max-width: 420px; }
.intro { margin: 8px 0 24px; font-size: 15px; line-height: 1.5; color: var(--grey-7); text-wrap: pretty; }
.below-card { max-width: 420px; margin: 20px 0 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--grey-7); }
.hint-line { display: flex; gap: 8px; align-items: baseline; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--grey-1); font-size: 13px; line-height: 1.45; color: var(--grey-6); }
.back-link { margin: 16px 0 0; font-size: 14px; }
.round-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-0); color: var(--primary-9); display: grid; place-items: center; font-size: 20px; margin-bottom: 16px; }
.round-icon.small { width: 44px; height: 44px; font-size: 18px; margin: 0; }
.round-icon.tiny { width: 32px; height: 32px; font-size: 14px; margin: 0; }
.round-icon.large { width: 60px; height: 60px; font-size: 26px; margin: 0 auto 18px; }
.round-icon.success { background: var(--success-0); color: var(--success-7); }
.round-icon.vivid { flex: none; width: 40px; height: 40px; font-size: 16px; margin: 0; background: var(--vivid-4); color: var(--vivid-9); }
@media (max-width: 480px) { .card { padding: 24px 20px; } }

/* Notices */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 20px; border-radius: 6px; font-size: 14px; line-height: 1.45; }
.notice > .fa-solid, .notice > .fa-regular { margin-top: 3px; }
.notice strong { display: block; font-weight: 600; }
.notice.danger { background: var(--danger-0); border: 1px solid var(--danger-1); color: var(--danger-7); }
.notice.info { background: var(--primary-0); border: 1px solid var(--primary-1); color: var(--primary-9); }
.notice.success { background: var(--success-0); border: 1px solid var(--success-2); color: var(--success-8); }
.notice.summary { display: block; }
.summary-title { display: flex; gap: 8px; align-items: baseline; font-weight: 600; font-size: 14.5px; }
.notice.summary ul { margin: 8px 0 0; padding: 0 0 0 22px; line-height: 1.6; }
.notice.summary a { color: var(--danger-7); text-decoration: underline; }

/* Form fields */
.field { margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > .label, .field > legend, .label-row label { display: block; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 500; color: var(--grey-9); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.label-row label { margin: 0; }
.label-row a { font-size: 13.5px; }
.optional { font-size: 12.5px; font-weight: 400; color: var(--grey-6); }
.counter { font-size: 12.5px; color: var(--grey-6); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--danger-6); }
input[type=email], input[type=password], input[type=search], input[type=text], input:not([type]), textarea, select {
	display: block; width: 100%; padding: 0 12px; border: 1px solid var(--grey-3); border-radius: 3px; background: var(--white);
	font: inherit; font-size: 15px; color: var(--grey-9);
}
input[type=email], input[type=password], input[type=search], input[type=text], input:not([type]), select { height: 42px; }
input[type=search] { -webkit-appearance: none; appearance: none; }
textarea { padding: 10px 12px; line-height: 1.55; resize: vertical; }
.invalid, input.invalid, textarea.invalid, select.invalid { border-color: var(--danger-6); }
.field-error { display: flex; gap: 6px; align-items: baseline; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--danger-6); }
.help { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--grey-6); }
.password { position: relative; }
.password input { padding-right: 46px; }
.reveal { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; border-radius: 3px; background: transparent; color: var(--grey-6); cursor: pointer; font-size: 14px; }
.reveal:hover { background: var(--grey-0); }
.select { position: relative; }
.select select { height: 38px; padding: 0 32px 0 12px; border-radius: 6px; font-size: 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select.block select { height: 42px; border-radius: 3px; font-size: 15px; }
.select > .fa-caret-down { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--grey-6); pointer-events: none; }
.narrow-field { max-width: 360px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; }
.group { border: 0; border-top: 1px solid var(--grey-1); margin: 8px 0 0; padding: 22px 0 0; min-width: 0; }
.group > legend { padding: 0 10px 0 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--grey-7); }

/* Buttons, after the Paloma Button component */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 6px; border: 1px solid transparent;
	font: inherit; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
	transition: background-color .15s ease-in-out, box-shadow .2s ease-in-out, border-color .15s ease-in-out, color .15s ease-in-out; }
.btn:hover { text-decoration: none; }
.btn.small { height: 28px; padding: 0 10px; border-radius: 5px; font-size: 12.5px; gap: 5px; }
.btn.large { height: 40px; padding: 0 18px; border-radius: 8px; font-size: 14px; gap: 8px; }
.btn.wide { width: 100%; }
.btn.primary { background: var(--vivid-4); color: var(--on-vivid); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }
.btn.primary:hover { background: var(--vivid-5); color: var(--on-vivid); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08), 0 0 0 3px color-mix(in srgb, var(--vivid-4) 35%, transparent); }
.btn.primary:active { background: var(--vivid-6); }
.btn.default { background: var(--surface-navy); color: var(--on-color); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2); }
.btn.default:hover { background: var(--button-default-hover); color: var(--on-color); }
.btn.outline { background: var(--white); color: var(--grey-9); border-color: var(--grey-2); box-shadow: 0 1px 2px rgba(0, 49, 107, .06); }
.btn.outline:hover { background: var(--grey-0); border-color: var(--grey-3); color: var(--grey-9); }
.btn.outline .fa-regular, .btn.outline .fa-solid { color: var(--grey-5); }
.btn.cancel { background: transparent; color: var(--grey-7); }
.btn.cancel:hover { background: var(--grey-0); color: var(--grey-9); }
.btn[disabled], .btn.htmx-request { cursor: progress; opacity: .7; }

/* App header */
.app-top { background: var(--surface-sidebar); color: var(--on-color); --focus-color: var(--vivid-4); }
.app-top-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 12px; }
.home { display: flex; align-items: center; gap: 10px; color: var(--on-color); text-decoration: none; border-radius: 4px; min-width: 0; }
.home:hover { color: var(--on-color); text-decoration: none; }
.app-top .brand-sep { background: rgba(255, 255, 255, .3); }
.app-top .brand-sub { font-weight: 300; color: var(--text-on-dark-muted); }
.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 6px; border-radius: 6px; cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: rgba(0, 0, 0, .15); }
.who { display: flex; flex-direction: column; line-height: 1.25; }
.who-name { font-size: 14px; font-weight: 500; white-space: nowrap; }
.who-mail { font-size: 12px; color: var(--text-on-dark-muted); white-space: nowrap; }
.caret { font-size: 11px; color: var(--text-on-dark-muted); }
.menu { position: absolute; right: 0; top: 50px; z-index: 30; width: 260px; background: var(--white); color: var(--grey-9); border-radius: 9px; box-shadow: var(--shadow-popover, 0 12px 32px rgba(0, 62, 107, .18)); border: 1px solid var(--grey-1); overflow: hidden; --focus-color: var(--primary-7); }
.menu-head { padding: 14px 16px; border-bottom: 1px solid var(--grey-1); }
.menu-name { font-weight: 600; }
.menu-mail { font-size: 13px; color: var(--grey-6); overflow-wrap: anywhere; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--grey-9); cursor: pointer; text-align: left; }
.menu-item:hover { background: var(--grey-0); }
.menu-item .fa-regular { color: var(--grey-6); }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; background: var(--vivid-2); color: var(--vivid-9); }
.avatar.navy { background: var(--primary-9); color: var(--on-color); }
@media (max-width: 720px) { .wide-only { display: none; } .app-top-inner { padding: 0 16px; } }

.app-main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 24px 56px; }
@media (max-width: 720px) { .app-main { padding: 20px 16px 40px; } }
.back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px -2px; padding: 4px 2px; font-size: 14px; color: var(--primary-7); text-decoration: none; }
.panel { background: var(--white); border: 1px solid var(--grey-1); border-radius: 9px; overflow: hidden; }
.panel.padded { padding: 28px; overflow: visible; }
.panel.centered { text-align: center; }
@media (max-width: 720px) { .panel.padded { padding: 20px 16px; } }

/* Request list */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head > div { min-width: 0; flex: 1 1 320px; }
.page-head .intro { margin: 6px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--grey-1); }
.segmented { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; background: var(--grey-0); border: 1px solid var(--grey-1); border-radius: 6px; }
.seg { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 4px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; background: transparent; color: var(--grey-7); }
.seg[aria-pressed=true] { background: var(--white); color: var(--primary-9); box-shadow: 0 1px 2px rgba(0, 49, 107, .12); }
.seg-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.search { position: relative; flex: 1 1 220px; min-width: 180px; }
.search .fa-magnifying-glass { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--grey-6); font-size: 13px; pointer-events: none; }
.search input { height: 38px; padding: 0 12px 0 32px; border-radius: 6px; font-size: 14px; }
.switch { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 4px; font-size: 14px; color: var(--grey-9); cursor: pointer; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { position: relative; flex: none; width: 36px; height: 20px; border-radius: 10px; background: var(--toggle-track, var(--grey-3)); transition: background .15s ease-in-out; }
.knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .15s ease-in-out; }
.switch input:checked + .track { background: var(--primary-7); }
.switch input:checked + .track .knob { left: 18px; }
.switch input:focus-visible + .track { outline: 2px solid var(--primary-7); outline-offset: 2px; }
.list-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 16px; font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-7); }
#results.htmx-request { opacity: .6; transition: opacity .2s; }
.requests { width: 100%; border-collapse: collapse; font-size: 14px; }
.requests th { text-align: left; padding: 10px 16px; font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-7); white-space: nowrap; background: var(--surface-header-tint); border-top: 1px solid var(--grey-1); border-bottom: 1px solid var(--grey-1); }
.requests th.sorted { font-weight: 600; color: var(--primary-9); }
.requests td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--grey-0); color: var(--grey-8); }
.requests td.status-cell { padding-top: 12px; min-width: 140px; }
.requests tr.row:hover { background: var(--surface-row-hover); }
.requests tr.unread { background: color-mix(in srgb, var(--vivid-0) 70%, var(--white)); }
.requests td.key { font-size: 13px; color: var(--grey-7); white-space: nowrap; }
.requests td.title { min-width: 220px; }
.requests td.title a { color: var(--primary-9); font-weight: 500; text-decoration: none; line-height: 1.4; }
.requests tr.unread td.title a { font-weight: 600; }
.requests td.title a:hover { text-decoration: underline; }
.requests .sub { font-size: 12.5px; color: var(--grey-6); }
.compact-meta { display: none; margin-top: 4px; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--grey-7); }
@media (max-width: 1100px) { .requests .col-wide { display: none; } .compact-meta { display: flex; } }
@media (max-width: 720px) {
	.requests thead { display: none; }
	.requests, .requests tbody, .requests tr, .requests td { display: block; }
	.requests tr.row { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--grey-1); }
	.requests td { padding: 0; border: 0; }
	.requests td.key { margin-bottom: 6px; }
	.requests td.status-cell { position: absolute; top: 12px; right: 16px; padding: 0; min-width: 0; }
	.requests td.title a { font-size: 15.5px; }
	.requests .col-mid, .requests td.num .sub { display: none; }
	.requests td.num { margin-top: 6px; font-size: 13px; color: var(--grey-7); }
}
.new-reply { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 8px; border-radius: .75rem; background: var(--vivid-1); color: var(--vivid-9); font-size: 12px; font-weight: 500; }
.new-reply .fa-circle { font-size: 6px; color: var(--vivid-7); }
.more { padding: 16px; text-align: center; }
.more:empty { display: none; }
.no-results { padding: 48px 24px; text-align: center; border-top: 1px solid var(--grey-1); }
.no-results > .fa-regular { font-size: 22px; color: var(--grey-5); }
.no-results h2 { margin: 12px 0 4px; font-size: 1.1rem; font-weight: 600; }
.no-results p { margin: 0 0 18px; font-size: 14px; color: var(--grey-7); }
.empty { background: var(--white); border: 1px dashed var(--grey-3); border-radius: 9px; padding: 56px 24px; text-align: center; }
.empty .round-icon { width: 56px; height: 56px; margin: 0 auto 18px; font-size: 22px; }
.empty h2 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.empty p { max-width: 520px; margin: 8px auto 24px; line-height: 1.5; color: var(--grey-7); }

/* Status badges and types */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: .75rem; font-size: 12.5px; font-weight: 500; line-height: 1.35; border: 1px solid; white-space: nowrap; }
.badge .fa-solid { font-size: 11px; }
.st-received { background: var(--grey-0); color: var(--grey-8); border-color: var(--grey-3); }
.st-progress { background: var(--primary-0); color: var(--primary-9); border-color: var(--primary-2); }
.st-waiting { background: var(--vivid-1); color: var(--vivid-9); border-color: var(--vivid-4); }
.st-done { background: var(--success-0); color: var(--success-8); border-color: var(--success-2); }
.type { white-space: nowrap; }
.type > span:first-child { margin-right: 6px; color: var(--grey-6); }

/* New request */
.form-col { max-width: 800px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 14px 0 24px; padding: 0; font-size: 14px; color: var(--grey-6); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li.current { color: var(--primary-9); font-weight: 600; }
.steps li.done { color: var(--grey-8); }
.step-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--white); color: var(--grey-6); border: 1px solid var(--grey-3); }
.steps li.current .step-num { background: var(--primary-9); color: var(--on-color); border-color: var(--primary-9); }
.steps li.done .step-num { background: var(--success-0); color: var(--success-7); border-color: var(--success-2); }
.legend { margin: 0 0 14px; font-size: 1.15rem; font-weight: 500; color: var(--grey-9); }
.type-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 170px; padding: 22px 20px; border: 1px solid var(--grey-2); border-radius: 9px; background: var(--white); color: inherit; text-decoration: none; }
.type-card:hover { border-color: var(--primary-4); background: var(--surface-row-hover); text-decoration: none; color: inherit; }
.type-card-title { font-size: 1.15rem; font-weight: 600; color: var(--primary-9); }
.type-card-text { font-size: 14.5px; line-height: 1.45; color: var(--grey-7); }
.type-card-cta { margin-top: auto; font-size: 13.5px; font-weight: 500; color: var(--primary-7); }
.chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; margin-bottom: 24px; border-radius: 6px; background: var(--surface-header-tint); border: 1px solid var(--primary-0); }
.chosen-text { flex: 1 1 200px; min-width: 0; }
.chosen-label { font-size: 12px; color: var(--grey-7); }
.chosen-title { font-weight: 600; color: var(--primary-9); }
.editor { border: 1px solid var(--grey-3); border-radius: 3px; background: var(--white); }
.editor.invalid { border-color: var(--danger-6); }
.editor textarea { border: 0; border-radius: 0 0 3px 3px; }
.toolbar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--grey-1); background: var(--surface-header-tint); border-radius: 3px 3px 0 0; }
.toolbar button { width: 32px; height: 30px; border: 0; border-radius: 3px; background: transparent; color: var(--grey-7); cursor: pointer; font-size: 13px; }
.toolbar button:hover { background: var(--white); color: var(--grey-9); }
.urgency-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.radio-card { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--grey-2); border-radius: 6px; background: var(--white); cursor: pointer; font-size: 14.5px; }
.radio-card:has(input:checked) { border-color: var(--primary-7); background: var(--primary-0); }
.radio-card input { margin: 0; width: 16px; height: 16px; accent-color: var(--primary-9); }
.u-high { color: var(--vivid-9); }
.u-critical { color: var(--danger-6); }
.radio-card.u-high, .radio-card.u-critical { color: var(--grey-9); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 1px dashed var(--grey-3); border-radius: 9px; background: var(--white); text-align: center; transition: background .15s ease-in-out; }
.dropzone.over { background: var(--primary-0); border-color: var(--primary-7); }
.dropzone > .fa-regular { font-size: 22px; color: var(--grey-6); }
.dropzone .link { color: var(--primary-7); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + .file-list, .dropzone:focus-within { outline: 2px solid var(--primary-7); outline-offset: 2px; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid var(--grey-1); border-radius: 6px; font-size: 14px; background: var(--white); }
.file-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .size { font-size: 12.5px; color: var(--grey-6); white-space: nowrap; }
.file-list button { width: 32px; height: 32px; border: 0; border-radius: 3px; background: transparent; color: var(--grey-6); cursor: pointer; }
.file-list button:hover { background: var(--danger-0); color: var(--danger-6); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 20px; border-top: 1px solid var(--grey-1); }
.actions.center { justify-content: center; border: 0; margin-top: 26px; }
.number { display: inline-flex; flex-direction: column; gap: 4px; margin: 22px auto 0; padding: 14px 28px; border-radius: 9px; background: var(--surface-header-tint); border: 1px solid var(--primary-0); }
.number-label { font-size: 11.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--grey-7); }
.number-value { font-size: 1.6rem; font-weight: 600; color: var(--primary-9); }
.number-meta { font-size: 13.5px; color: var(--grey-7); }
.panel.centered h1 { font-size: 1.6rem; text-wrap: balance; }
.panel.centered .intro { max-width: 500px; margin: 10px auto 0; }

/* Request detail */
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--grey-7); }
.detail-meta .mono { font-size: 13.5px; color: var(--grey-8); }
.detail-title { margin: 6px 0 12px; overflow-wrap: anywhere; text-wrap: pretty; }
.waiting { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; padding: 16px 18px; border-radius: 9px; background: var(--vivid-1); border: 1px solid var(--vivid-4); color: var(--vivid-9); }
.waiting-text { flex: 1 1 260px; min-width: 0; font-size: 14px; line-height: 1.45; }
.waiting-title { font-weight: 600; font-size: 15px; }
.detail-grid { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: flex-start; gap: 24px; margin-top: 24px; }
.facts { flex: 1 1 260px; }
.panel-head { margin: 0; padding: 12px 16px; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--grey-7); background: var(--surface-header-tint); border-bottom: 1px solid var(--grey-1); }
.facts dl { margin: 0; }
.facts dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 11px 16px; border-bottom: 1px solid var(--grey-0); }
.facts dt { font-size: 13.5px; color: var(--grey-7); }
.facts dd { margin: 0; font-size: 14px; text-align: right; }
.detail-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.section-label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--grey-7); }
.byline { font-size: 13px; color: var(--grey-6); margin-bottom: 12px; }
.rich { font-size: 15px; line-height: 1.6; color: var(--grey-9); overflow-wrap: anywhere; max-width: 72ch; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich h3 { margin: 20px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--grey-8); }
.rich table { border-collapse: collapse; margin: 8px 0; width: 100%; font-size: 14.5px; }
.rich th, .rich td { padding: 10px 14px; border: 1px solid var(--grey-1); vertical-align: top; text-align: left; }
.rich th { background: var(--surface-header-tint); font-weight: 500; color: var(--grey-8); width: 34%; }
.rich img { max-width: 100%; height: auto; }
.rich pre { overflow-x: auto; padding: 10px 12px; background: var(--grey-0); border-radius: 6px; font-size: 13px; }
.files-head { margin: 20px 0 8px; font-size: 13.5px; font-weight: 500; color: var(--grey-8); }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--grey-2); border-radius: 6px; font-size: 13.5px; color: var(--grey-9); text-decoration: none; background: var(--white); }
.file:hover { background: var(--grey-0); color: var(--grey-9); text-decoration: none; }
.file > span:first-child { color: var(--grey-6); }
.file-name { overflow-wrap: anywhere; }
.file-size { color: var(--grey-6); font-size: 12.5px; white-space: nowrap; }
.conversation { margin-bottom: 24px; }
.no-comments { margin: 0; padding: 18px; border: 1px dashed var(--grey-3); border-radius: 9px; font-size: 14.5px; line-height: 1.5; color: var(--grey-7); background: var(--white); }
.thread { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 2px 0 2px 44px; font-size: 13px; color: var(--grey-7); }
.event .fa-regular { font-size: 12px; color: var(--grey-6); }
.comment { display: flex; gap: 12px; align-items: flex-start; }
.bubble { flex: 1; min-width: 0; padding: 12px 16px 14px; border-radius: 9px; background: var(--white); border: 1px solid var(--grey-1); }
.comment.astina .bubble { background: var(--surface-header-tint); border-color: var(--primary-1); }
.bubble-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.author { font-weight: 600; font-size: 14.5px; }
.bubble-head time { margin-left: auto; font-size: 13px; color: var(--grey-6); font-variant-numeric: tabular-nums; }
.tag { padding: 1px 8px; border-radius: .75rem; font-size: 11.5px; font-weight: 500; }
.tag.navy { background: var(--surface-navy); color: var(--on-color); }
.tag.vivid { background: var(--vivid-1); color: var(--vivid-9); border: 1px solid var(--vivid-3); }
.reply.expected { border-color: var(--vivid-4); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vivid-4) 25%, transparent); }
.reply-banner { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--vivid-1); color: var(--vivid-9); font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--vivid-3); }
.reply-body { padding: 20px; }
.reply-body h2 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; }
.reply-body textarea { margin-top: 8px; }
.reply-body .notice { margin: 8px 0 0; }
.reply-body .help { margin: 0 0 10px; }
.reply-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--grey-1); background: var(--white); }
.foot-inner { max-width: 1280px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; line-height: 1.45; color: var(--grey-7); }
