:root {
    color-scheme: light;
    --navy-950: #0a263f;
    --navy-900: #123b63;
    --navy-800: #194e7d;
    --blue-700: #1b6595;
    --blue-100: #e8f2f8;
    --blue-50: #f3f8fb;
    --gold-500: #c9962f;
    --ink-900: #172433;
    --ink-700: #394b5d;
    --ink-600: #526477;
    --ink-500: #6a7a8b;
    --line-300: #cad5df;
    --line-200: #dce4eb;
    --line-100: #edf1f5;
    --surface: #ffffff;
    --canvas: #f4f7f9;
    --success: #187552;
    --success-bg: #e9f6f0;
    --warning: #925c08;
    --warning-bg: #fff6dc;
    --danger: #b33b38;
    --danger-bg: #fff0ef;
    --pending: #b6423e;
    --progress: #a86808;
    --resolved: #247453;
    --unknown: #657383;
    --shadow-sm: 0 2px 8px rgba(18, 59, 99, 0.07);
    --shadow-md: 0 14px 34px rgba(18, 45, 70, 0.10);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--canvas);
    color: var(--ink-900);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--navy-800);
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--navy-950);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #e9ad36;
    outline-offset: 3px;
}

.site-header {
    position: relative;
    z-index: 20;
    border-top: 4px solid var(--gold-500);
    border-bottom: 1px solid var(--line-200);
    background: rgba(255, 255, 255, 0.98);
}

.site-header__inner {
    width: min(calc(100% - 32px), 1120px);
    margin: 0 auto;
    padding: 14px 0 0;
}

.brand {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 11px;
    color: var(--ink-900);
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 12px;
    background: var(--navy-900);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand__text strong {
    font-size: 17px;
    letter-spacing: 0.08em;
}

.brand__text span {
    margin-top: 2px;
    color: var(--ink-600);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.primary-nav__link {
    position: relative;
    display: grid;
    min-height: 48px;
    place-items: center;
    padding: 8px 12px;
    color: var(--ink-600);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav__link::after {
    position: absolute;
    right: 20%;
    bottom: -1px;
    left: 20%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    content: "";
}

.primary-nav__link:hover,
.primary-nav__link.is-current {
    color: var(--navy-900);
}

.primary-nav__link.is-current::after {
    background: var(--gold-500);
}

.page-shell {
    width: min(calc(100% - 24px), 920px);
    margin: 0 auto;
    padding: 20px 0 48px;
}

.page-shell--board {
    width: min(calc(100% - 24px), 1120px);
}

.page-intro {
    position: relative;
    overflow: hidden;
    padding: 26px 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.page-intro::after {
    position: absolute;
    right: -68px;
    bottom: -82px;
    width: 190px;
    height: 190px;
    border: 30px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    content: "";
}

.page-intro__copy,
.process-list,
.intro-action {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 4px;
    color: #d7e7f3;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.page-intro h1 {
    margin: 0;
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.25;
    letter-spacing: 0.04em;
}

.page-intro__lead {
    max-width: 660px;
    margin: 12px 0 0;
    color: #e9f2f8;
    line-height: 1.75;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 22px 0 0;
    padding: 15px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    list-style: none;
}

.process-list li {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    color: #e9f2f8;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.process-list span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line-300);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.notice__icon {
    position: relative;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.notice__icon::after {
    position: absolute;
    top: 5px;
    left: 7px;
    width: 6px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.notice strong {
    display: block;
    margin-bottom: 2px;
}

.notice p {
    margin: 0;
    color: var(--ink-700);
}

.notice .notice__order {
    margin-top: 5px;
}

.notice .notice__order strong {
    display: inline;
}

.notice--success {
    border-color: #9acdb8;
    background: var(--success-bg);
    color: var(--success);
}

.notice--warning {
    border-color: #e7c66e;
    background: var(--warning-bg);
    color: var(--warning);
}

.notice--error {
    border-color: #e4aaa7;
    background: var(--danger-bg);
    color: var(--danger);
}

.notice--info {
    border-color: #a9cadf;
    background: var(--blue-50);
    color: var(--blue-700);
}

.notice--warning .notice__icon::after,
.notice--error .notice__icon::after,
.notice--info .notice__icon::after {
    top: 3px;
    left: 10px;
    width: 2px;
    height: 10px;
    border: 0;
    border-bottom: 4px solid currentColor;
    transform: none;
}

.repair-form {
    margin-top: 18px;
    scroll-margin-top: 90px;
}

.service-router {
    margin-top: 18px;
    padding: 22px 18px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.service-router__heading h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 22px;
    line-height: 1.35;
}

.service-router__heading > p:last-child {
    margin: 7px 0 0;
    color: var(--ink-600);
    font-size: 14px;
}

.eyebrow--dark {
    color: var(--blue-700);
}

.service-route-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.service-route {
    display: flex;
    min-width: 0;
    min-height: 174px;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line-300);
    border-radius: 13px;
    background: var(--blue-50);
    color: var(--ink-700);
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.service-route:hover {
    border-color: var(--blue-700);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.service-route--general {
    border-color: #e3c16c;
    background: var(--warning-bg);
}

.service-route--general:hover {
    border-color: var(--warning);
}

.service-route__tag {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--navy-900);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.service-route--general .service-route__tag {
    background: var(--warning);
}

.service-route strong {
    margin-top: 12px;
    color: var(--ink-900);
    font-size: 18px;
}

.service-route > span:not(.service-route__tag):not(.service-route__action) {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.55;
}

.service-route__action {
    margin-top: auto;
    padding-top: 15px;
    color: var(--navy-900);
    font-size: 14px;
    font-weight: 800;
}

.service-route--general .service-route__action {
    color: #754802;
}

.scope-confirmation {
    margin-bottom: 14px;
    padding: 17px 18px;
    border: 1px solid #a9cadf;
    border-radius: var(--radius-md);
    background: var(--blue-50);
    box-shadow: var(--shadow-sm);
}

.scope-confirmation label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.scope-confirmation input {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    margin: 2px 0 0;
    accent-color: var(--navy-900);
}

.scope-confirmation strong,
.scope-confirmation small {
    display: block;
}

.scope-confirmation strong {
    color: var(--ink-900);
    font-size: 15px;
}

.scope-confirmation small {
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 13px;
    line-height: 1.5;
}

.scope-confirmation > a {
    display: inline-block;
    margin: 11px 0 0 33px;
    color: var(--warning);
    font-size: 13px;
    font-weight: 800;
}

.scope-warning {
    margin-top: 18px;
    padding: 18px;
    border: 2px solid #d39a24;
    border-radius: var(--radius-md);
    background: var(--warning-bg);
    color: var(--ink-900);
    box-shadow: var(--shadow-sm);
}

.scope-warning strong {
    font-size: 17px;
}

.scope-warning p {
    margin: 5px 0 0;
    color: var(--ink-700);
}

.scope-warning__actions {
    display: grid;
    gap: 9px;
    margin-top: 15px;
}

.button--warning {
    border-color: var(--warning);
    background: var(--warning);
    color: #fff;
}

.button--warning:hover {
    border-color: #754802;
    background: #754802;
}

.form-section {
    margin-top: 14px;
    padding: 22px 18px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.form-section:first-of-type {
    margin-top: 0;
}

.form-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-100);
}

.form-section__heading h2 {
    margin: 0;
    color: var(--ink-900);
    font-size: 21px;
    line-height: 1.35;
}

.form-section__heading p {
    margin: 4px 0 0;
    color: var(--ink-600);
    font-size: 14px;
    line-height: 1.55;
}

.step-number {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--navy-900);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.form-group {
    min-width: 0;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group > label,
.form-group > legend {
    display: block;
    margin: 0 0 8px;
    color: var(--ink-900);
    font-size: 15px;
    font-weight: 750;
}

.required-mark {
    color: var(--danger);
    font-weight: 800;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.choice-card {
    position: relative;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.choice-card span {
    display: grid;
    min-height: 50px;
    place-items: center;
    border: 1px solid var(--line-300);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-700);
    font-weight: 750;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.choice-card input:checked + span {
    border-color: var(--navy-800);
    background: var(--blue-50);
    color: var(--navy-900);
    box-shadow: inset 0 0 0 1px var(--navy-800);
}

.choice-card input:focus-visible + span {
    outline: 3px solid #e9ad36;
    outline-offset: 3px;
}

.identity-fields {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 12px;
    background: var(--blue-50);
}

.identity-fields .form-group {
    margin-bottom: 0;
}

.field-grid {
    display: grid;
    gap: 18px;
}

input[type="text"],
select,
textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line-300);
    border-radius: 10px;
    background-color: #fff;
    color: var(--ink-900);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

input[type="text"],
textarea {
    padding: 12px 14px;
}

select {
    padding: 10px 40px 10px 13px;
}

textarea {
    min-height: 138px;
    resize: vertical;
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: #82909d;
    opacity: 1;
}

input[type="text"]:hover,
select:hover,
textarea:hover {
    border-color: #9cafbf;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-700);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(27, 101, 149, 0.14);
}

input[type="text"]:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    background: #eef2f5;
    color: var(--ink-500);
}

.field-hint,
.field-status {
    margin: 7px 0 0;
    color: var(--ink-600);
    font-size: 13px;
    line-height: 1.55;
}

.field-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.field-meta .field-hint {
    flex: 1;
}

.character-count {
    margin-top: 7px;
    color: var(--ink-500);
    font-size: 12px;
    white-space: nowrap;
}

.upload-control {
    display: flex !important;
    min-height: 92px;
    align-items: center;
    gap: 14px;
    margin: 0 !important;
    padding: 16px;
    border: 1px dashed #9aafc1;
    border-radius: 12px;
    background: var(--blue-50);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.upload-control:hover {
    border-color: var(--blue-700);
    background: #eaf4fa;
}

.upload-control__icon {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: var(--navy-900);
}

.upload-control__icon::before {
    position: absolute;
    top: 12px;
    left: 9px;
    width: 24px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 4px;
    content: "";
}

.upload-control__icon::after {
    position: absolute;
    top: 17px;
    left: 17px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    content: "";
}

.upload-control strong {
    display: block;
    color: var(--navy-900);
    font-size: 15px;
}

.upload-control small {
    display: block;
    margin-top: 3px;
    color: var(--ink-600);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.visually-hidden-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.visually-hidden-file:focus-visible + input + .photo-feedback,
.visually-hidden-file:focus-visible ~ .field-status {
    outline: 0;
}

.form-group:focus-within .upload-control {
    border-color: var(--blue-700);
    box-shadow: 0 0 0 4px rgba(27, 101, 149, 0.14);
}

.photo-feedback {
    margin-top: 14px;
}

.photo-preview-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-200);
    border-radius: 12px;
    background: #e9eef2;
}

.photo-preview {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.photo-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 88px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 9px;
    background: rgba(14, 32, 48, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.field-status.is-working {
    color: var(--blue-700);
    font-weight: 700;
}

.field-status.is-success {
    color: var(--success);
    font-weight: 700;
}

.field-status.is-error {
    color: var(--danger);
    font-weight: 700;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 18px;
    padding: 22px 18px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.form-actions > p {
    margin: 0 0 12px;
    color: var(--ink-600);
    font-size: 13px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    border-color: var(--navy-900);
    background: var(--navy-900);
    color: #fff;
    box-shadow: 0 6px 16px rgba(18, 59, 99, 0.18);
}

.button--primary:hover {
    border-color: var(--navy-950);
    background: var(--navy-950);
}

.button--secondary {
    border-color: var(--line-300);
    background: #fff;
    color: var(--navy-900);
}

.button--secondary:hover {
    border-color: var(--navy-800);
    background: var(--blue-50);
}

.button--compact {
    min-height: 44px;
    padding: 9px 15px;
    font-size: 14px;
}

.button:disabled {
    cursor: not-allowed;
    border-color: #9ba9b5;
    background: #9ba9b5;
    box-shadow: none;
    transform: none;
}

.button[aria-busy="true"] .button__arrow {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    font-size: 0;
    animation: button-spin 750ms linear infinite;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

.text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    text-underline-offset: 3px;
}

.site-footer {
    padding: 24px max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    border-top: 1px solid var(--line-200);
    background: #fff;
    color: var(--ink-600);
    text-align: center;
}

.site-footer p {
    margin: 2px 0;
    font-size: 13px;
}

.site-footer p:first-child {
    color: var(--ink-900);
    font-weight: 750;
}

/* Public board */
.page-intro--board .intro-action {
    width: 100%;
    margin-top: 20px;
    border-color: #fff;
    background: #fff;
    color: var(--navy-900);
    box-shadow: none;
}

.page-intro--board .intro-action:hover {
    background: #f1f6f9;
}

.status-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
}

.summary-item {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 14px 10px;
    border: 1px solid var(--line-200);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.summary-item::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--status-color);
    content: "";
}

.summary-item span {
    display: block;
    color: var(--ink-600);
    font-size: 12px;
    white-space: nowrap;
}

.summary-item strong {
    display: block;
    margin-top: 3px;
    color: var(--ink-900);
    font-size: 24px;
    line-height: 1.2;
}

.summary-item--pending { --status-color: var(--pending); }
.summary-item--progress { --status-color: var(--progress); }
.summary-item--resolved { --status-color: var(--resolved); }

.board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 30px 2px 14px;
}

.board-toolbar h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
}

.board-toolbar p {
    margin: 2px 0 0;
    color: var(--ink-600);
    font-size: 13px;
}

.visually-hidden-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ticket-list-header {
    display: none;
}

.ticket-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ticket-list > li {
    min-width: 0;
}

.ticket-row {
    --status-color: var(--unknown);
    overflow: hidden;
    border: 1px solid var(--line-200);
    border-left: 4px solid var(--status-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.ticket-row.status--pending { --status-color: var(--pending); }
.ticket-row.status--progress { --status-color: var(--progress); }
.ticket-row.status--resolved { --status-color: var(--resolved); }
.ticket-row.status--unknown { --status-color: var(--unknown); }

.ticket-row__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 12px;
    margin: 0;
    padding: 17px 16px;
}

.ticket-cell {
    min-width: 0;
}

.ticket-cell dt {
    margin: 0 0 3px;
    color: var(--ink-500);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.ticket-cell dd {
    margin: 0;
    color: var(--ink-900);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ticket-cell--identity dd {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ticket-cell--identity h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
}

.ticket-cell--status {
    text-align: right;
}

.ticket-cell--department,
.ticket-cell--source {
    grid-column: auto;
}

.ticket-cell--location,
.ticket-cell--time {
    grid-column: 1 / -1;
}

.ticket-cell--time time {
    white-space: nowrap;
}

.ticket-number {
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.status-badge {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f3f5;
    color: var(--unknown);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.status--pending {
    background: #fff0ef;
    color: var(--pending);
}

.status-badge.status--progress {
    background: #fff5df;
    color: var(--progress);
}

.status-badge.status--resolved {
    background: #eaf6f0;
    color: var(--resolved);
}

.status-badge.status--unknown {
    background: #eef1f4;
    color: var(--unknown);
}

.department-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--blue-100);
    color: var(--navy-800);
    font-size: 13px;
    font-weight: 750;
}

.ticket-row__content {
    display: grid;
    gap: 10px;
    padding: 13px 16px 15px;
    border-top: 1px solid var(--line-100);
    background: #f9fbfc;
}

.ticket-content-block {
    min-width: 0;
    padding-left: 11px;
    border-left: 3px solid var(--line-300);
}

.ticket-content-block--reply {
    border-left-color: var(--blue-700);
}

.ticket-content-block h4 {
    margin: 0 0 3px;
    color: var(--ink-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.ticket-content-block p {
    margin: 0;
    color: var(--ink-700);
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.empty-state {
    padding: 42px 22px;
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.empty-state__mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-size: 24px;
    font-weight: 800;
}

.empty-state--error .empty-state__mark {
    background: var(--danger-bg);
    color: var(--danger);
}

.empty-state h2 {
    margin: 0;
    font-size: 21px;
}

.empty-state p {
    max-width: 520px;
    margin: 8px auto 20px;
    color: var(--ink-600);
}

@media (min-width: 600px) {
    .page-shell {
        width: min(calc(100% - 40px), 920px);
        padding-top: 30px;
    }

    .page-shell--board {
        width: min(calc(100% - 40px), 1120px);
    }

    .page-intro {
        padding: 34px 36px;
    }

    .process-list {
        max-width: 500px;
        gap: 18px;
    }

    .process-list li {
        flex-direction: row;
        font-size: 14px;
        text-align: left;
    }

    .form-section,
    .form-actions,
    .service-router {
        padding: 30px 32px;
    }

    .service-route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scope-warning__actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    }

    .field-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-summary {
        gap: 14px;
    }

    .summary-item {
        display: flex;
        min-height: 86px;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px;
        text-align: left;
    }

    .summary-item span {
        font-size: 14px;
    }

    .summary-item strong {
        margin: 0;
        font-size: 30px;
    }
}

@media (min-width: 760px) {
    .site-header {
        position: sticky;
        top: 0;
    }

    .site-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
    }

    .primary-nav {
        display: flex;
        margin-top: 0;
        gap: 6px;
    }

    .primary-nav__link {
        min-width: 104px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .primary-nav__link::after {
        right: 16px;
        bottom: -11px;
        left: 16px;
    }

    .page-intro--board {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 34px;
    }

    .page-intro--board .page-intro__copy {
        max-width: 710px;
    }

    .page-intro--board .intro-action {
        width: auto;
        flex: 0 0 auto;
        margin-top: 0;
    }

    .ticket-row__content.has-reply {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 900px) {
    .ticket-table {
        --ticket-columns: minmax(160px, 1.25fr) 98px minmax(112px, 0.8fr) minmax(112px, 0.8fr) minmax(145px, 1fr) 128px;
        overflow: hidden;
        border: 1px solid var(--line-200);
        border-radius: var(--radius-md);
        background: #fff;
        box-shadow: var(--shadow-sm);
    }

    .ticket-list-header {
        display: grid;
        grid-template-columns: var(--ticket-columns);
        padding-left: 4px;
        border-bottom: 1px solid var(--line-300);
        background: #edf3f7;
    }

    .ticket-list-header span {
        min-width: 0;
        padding: 11px 12px;
        color: var(--ink-600);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.04em;
    }

    .ticket-list {
        display: block;
    }

    .ticket-list > li + li {
        border-top: 1px solid var(--line-200);
    }

    .ticket-row {
        border: 0;
        border-left: 4px solid var(--status-color);
        border-radius: 0;
        box-shadow: none;
    }

    .ticket-row__summary {
        grid-template-columns: var(--ticket-columns);
        gap: 0;
        align-items: center;
        padding: 0;
    }

    .ticket-cell {
        align-self: stretch;
        display: flex;
        min-height: 68px;
        align-items: center;
        padding: 11px 12px;
    }

    .ticket-cell dt {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .ticket-cell dd {
        width: 100%;
        font-size: 13px;
    }

    .ticket-cell--identity dd {
        gap: 0;
    }

    .ticket-cell--identity h3 {
        font-size: 15px;
    }

    .ticket-cell--status,
    .ticket-cell--department,
    .ticket-cell--source,
    .ticket-cell--location,
    .ticket-cell--time {
        grid-column: auto;
        text-align: left;
    }

    .ticket-row__content {
        padding: 11px 14px 12px;
    }

    .ticket-content-block p {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    body {
        background: #fff;
    }

    .site-header,
    .site-footer,
    .intro-action,
    .board-toolbar .button,
    .skip-link {
        display: none !important;
    }

    .page-shell,
    .page-shell--board {
        width: 100%;
        padding: 0;
    }

    .page-intro {
        padding: 0 0 18px;
        border-radius: 0;
        background: #fff;
        color: #000;
        box-shadow: none;
    }

    .page-intro__lead,
    .eyebrow {
        color: #333;
    }

    .status-summary,
    .ticket-table {
        box-shadow: none;
    }

    .ticket-row {
        break-inside: avoid;
    }
}
