:root {
    color-scheme: light;
    --ink: #17191d;
    --ink-soft: #25282e;
    --paper: #f3f5f6;
    --surface: #ffffff;
    --surface-muted: #f8f9fa;
    --line: #dfe3e6;
    --line-strong: #cbd1d5;
    --text: #202329;
    --text-muted: #687078;
    --gold: #b28a32;
    --gold-dark: #8c681f;
    --gold-soft: #f5edda;
    --blue: #356f9f;
    --blue-soft: #e7f0f7;
    --green: #2f7962;
    --green-soft: #e6f2ed;
    --red: #b84a4a;
    --red-soft: #f8e9e9;
    --shadow: 0 18px 45px rgba(23, 25, 29, 0.08);
    --radius: 8px;
    --content: 1180px;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    min-width: 320px;
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: "Segoe UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: #285c88;
}

:focus-visible {
    outline: 3px solid rgba(53, 111, 159, 0.28);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 8px 12px;
    color: #fff;
    background: var(--ink);
    border-radius: 4px;
    transform: translateY(-160%);
}

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

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #fff;
    background: var(--ink);
    border-bottom: 2px solid var(--gold);
}

.app-header-inner {
    width: min(calc(100% - 40px), var(--content));
    min-height: 68px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.brand:hover {
    color: #fff;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 15px;
    font-weight: 700;
}

.brand-copy small {
    margin-top: 3px;
    color: #aeb4ba;
    font-size: 10px;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a,
.account-name,
.text-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    color: #c9cdd1;
    background: transparent;
    border: 0;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.account-name:hover,
.account-name[aria-current="page"],
.text-button:hover {
    color: #fff;
    background: #2b2e34;
}

.main-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--gold);
}

.account-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.account-menu form {
    margin: 0;
}

.page-shell {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 42px 0 56px;
}

.page-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-heading h1,
.auth-form-pane h1,
.error-shell h1 {
    margin: 0;
    color: var(--ink);
    font-size: 36px;
    font-weight: 720;
    line-height: 1.22;
}

.page-heading p,
.auth-form-pane > p,
.error-shell p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--text-muted);
}

.eyebrow,
.section-kicker {
    margin: 0 0 7px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
}

.section-kicker::before {
    width: 20px;
    height: 2px;
    content: "";
    background: var(--gold);
}

.dashboard-grid,
.ticket-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.35fr);
    gap: 28px;
    align-items: start;
}

.ticket-layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.65fr);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(23, 25, 29, 0.05);
}

.panel-header {
    padding: 19px 22px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2,
.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.panel-header p,
.section-heading p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.panel-body {
    padding: 22px;
}

.section-heading {
    min-height: 54px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ticket-list {
    display: grid;
    gap: 10px;
}

.ticket-row {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    padding: 16px 17px 16px 0;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ticket-row::before {
    align-self: stretch;
    content: "";
    background: var(--line-strong);
    border-radius: 0 3px 3px 0;
}

.ticket-row[data-status="0"]::before { background: #8b9298; }
.ticket-row[data-status="1"]::before { background: var(--blue); }
.ticket-row[data-status="2"]::before { background: var(--green); }
.ticket-row[data-status="3"]::before { background: #6e6262; }

.ticket-row:hover {
    color: var(--text);
    border-color: #bbc3c8;
    box-shadow: 0 9px 22px rgba(23, 25, 29, 0.06);
    transform: translateY(-1px);
}

.ticket-row-main {
    min-width: 0;
}

.ticket-row-title {
    margin: 0 0 5px;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.ticket-row-side {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.new-reply {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
}

.status-pill,
.severity-pill,
.tag,
.role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.status-0 { color: #5e6469; background: #eff1f2; border-color: #d8dcdf; }
.status-1 { color: #285d89; background: var(--blue-soft); border-color: #c9ddea; }
.status-2 { color: #286c56; background: var(--green-soft); border-color: #c7e3d8; }
.status-3 { color: #665a5a; background: #efeded; border-color: #ded9d9; }
.severity-1 { color: #626970; background: #f0f2f3; border-color: #dce0e2; }
.severity-2 { color: #285d89; background: var(--blue-soft); border-color: #c9ddea; }
.severity-3 { color: #85631d; background: var(--gold-soft); border-color: #e6d3a6; }
.severity-4 { color: #a03939; background: var(--red-soft); border-color: #ebc6c6; }
.tag { color: #4f565c; background: #f6f7f8; border-color: var(--line); font-weight: 600; }
.role-pill { color: #765a1d; background: var(--gold-soft); border-color: #e3ce9c; }

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

.field {
    min-width: 0;
    margin-bottom: 17px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label,
.field-label {
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: #34383d;
    font-size: 13px;
    font-weight: 650;
}

.field-help,
.character-count {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
}

.form-control,
.form-select {
    min-height: 44px;
    color: var(--text);
    background-color: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(53, 111, 159, 0.13);
}

textarea.form-control {
    min-height: 132px;
    resize: vertical;
}

.password-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.password-field .form-control {
    border-radius: 6px 0 0 6px;
}

.password-toggle {
    padding: 0 13px;
    color: var(--text-muted);
    background: #f4f5f6;
    border: 1px solid var(--line-strong);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-muted);
    font-size: 12px;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--gold-dark);
}

.field .checkbox-row {
    align-items: flex-start;
    justify-content: flex-start;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.button,
.btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

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

.button:disabled,
.btn:disabled {
    opacity: 0.64;
    cursor: wait;
    transform: none;
}

.button-primary,
.btn-primary {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.button-primary:hover,
.btn-primary:hover {
    color: #fff;
    background: #2a2d33;
    border-color: #2a2d33;
}

.button-gold {
    color: #1f1a10;
    background: #d2ad58;
    border-color: #c59b3f;
}

.button-gold:hover {
    color: #17130c;
    background: #dfbd6c;
}

.button-secondary,
.btn-outline-secondary {
    color: #3f454a;
    background: #fff;
    border-color: var(--line-strong);
}

.button-secondary:hover,
.btn-outline-secondary:hover {
    color: var(--ink);
    background: #f4f5f6;
    border-color: #aeb6bb;
}

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

.button-block {
    width: 100%;
}

.notice {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    color: #3f474d;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue);
    border-radius: 5px;
}

.notice-success { border-left-color: var(--green); }
.notice-error { border-left-color: var(--red); }
.notice-warning { border-left-color: var(--gold); }

.notice button {
    flex: 0 0 auto;
    padding: 0;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    font-size: 12px;
}

.empty-state {
    padding: 52px 22px;
    color: var(--text-muted);
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.empty-state strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 16px;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background: #edf0f1;
}

.auth-shell {
    width: min(100%, 920px);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid #d8dde0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-brand-pane {
    position: relative;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: var(--ink);
    border-right: 3px solid var(--gold);
}

.auth-brand-pane::after {
    position: absolute;
    right: -3px;
    bottom: 72px;
    width: 3px;
    height: 110px;
    content: "";
    background: #e5c77e;
}

.auth-mark {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.auth-brand-pane h2 {
    margin: 24px 0 9px;
    font-size: 24px;
    font-weight: 750;
}

.auth-brand-pane p {
    margin: 0;
    color: #b6bbc0;
    font-size: 13px;
}

.auth-brand-pane a {
    color: #e2c77f;
    font-size: 13px;
}

.auth-form-pane {
    padding: 52px clamp(30px, 6vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-pane form {
    margin-top: 30px;
}

.auth-switch {
    margin: 20px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.error-shell {
    width: min(100%, 520px);
    padding: 44px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.error-shell .button {
    margin-top: 18px;
}

.public-intro {
    margin-bottom: 24px;
    padding: 17px 20px;
    color: #4c5359;
    background: var(--blue-soft);
    border-left: 3px solid var(--blue);
    border-radius: 4px;
}

.public-intro p {
    margin: 0;
}

.public-intro small {
    color: #61717d;
}

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

.public-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.public-card:hover {
    color: var(--text);
    border-color: #c8ced2;
    box-shadow: 0 12px 28px rgba(23, 25, 29, 0.07);
    transform: translateY(-2px);
}

.public-card-top,
.public-card-footer,
.ticket-title-row,
.message-header,
.detail-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.public-card h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-card-summary {
    min-height: 48px;
    margin: 15px 0 18px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.public-card-footer {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 12px;
}

.detail-panel {
    overflow: hidden;
}

.detail-panel-body {
    padding: 25px;
}

.ticket-title-row h1 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    font-weight: 740;
    line-height: 1.3;
}

.ticket-number {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-family: Consolas, monospace;
    font-size: 12px;
}

.detail-meta-row {
    margin-top: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.ticket-description {
    margin-top: 22px;
    padding: 18px;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--surface-muted);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
}

.evidence-link {
    margin-top: 16px;
    display: inline-block;
}

.evidence-link img {
    max-width: 100%;
    max-height: 320px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.thread-heading {
    margin: 30px 0 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.message-thread {
    padding: 22px;
    display: grid;
    gap: 19px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.message {
    padding-left: 14px;
    border-left: 3px solid var(--line-strong);
}

.message-admin { border-left-color: var(--gold); }
.message-user { border-left-color: var(--blue); }
.message-other { border-left-color: #84938d; }

.message-header {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.message-author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

.message-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.system-message {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.community-section {
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.community-section summary {
    padding: 14px 0;
    color: #485057;
    font-weight: 700;
    cursor: pointer;
}

.community-thread {
    padding-top: 7px;
    display: grid;
    gap: 16px;
}

.reply-panel {
    margin-top: 20px;
}

.side-stack {
    display: grid;
    gap: 16px;
}

.summary-list {
    margin: 0;
    display: grid;
    gap: 13px;
}

.summary-list div {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.summary-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.summary-list dt {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 650;
}

.summary-list dd {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    word-break: break-word;
}

.admin-actions {
    display: grid;
    gap: 16px;
}

.admin-actions form {
    margin: 0;
}

.filter-bar {
    margin-bottom: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(240px, 1.2fr) auto;
    gap: 12px;
    align-items: end;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.filter-bar .field {
    margin: 0;
}

.stat-strip {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-item {
    min-width: 0;
    padding: 17px 20px;
    color: #fff;
    border-right: 1px solid #393c42;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item span {
    display: block;
    color: #aeb4ba;
    font-size: 11px;
}

.stat-item strong {
    display: block;
    margin-top: 2px;
    font-size: 23px;
    font-weight: 720;
}

.table-shell {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.admin-table {
    width: 100%;
    min-width: 920px;
    margin: 0;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #60676d;
    background: #f6f7f8;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-table td {
    font-size: 12px;
}

.admin-table tbody tr:hover {
    background: #fafbfb;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-title-cell {
    max-width: 310px;
}

.admin-title-cell strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unread-mark {
    margin-top: 4px;
    display: inline-block;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
}

.live-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 500;
    width: min(calc(100% - 40px), 360px);
    padding: 14px 16px;
    color: #fff;
    background: var(--ink);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.live-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.security-note {
    padding: 18px;
    color: #4c5359;
    background: var(--gold-soft);
    border-left: 3px solid var(--gold);
    border-radius: 5px;
}

.security-note h2 {
    margin: 0 0 7px;
    color: #4c3b18;
    font-size: 15px;
}

.security-note p {
    margin: 0;
    font-size: 12px;
}

.app-footer {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 24px 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-muted);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.app-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.app-footer span {
    color: var(--ink);
    font-weight: 750;
}

@media (max-width: 920px) {
    .app-header-inner {
        grid-template-columns: auto 1fr;
        gap: 10px 18px;
        padding: 12px 0;
    }

    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        overflow-x: auto;
    }

    .account-menu {
        justify-self: end;
    }

    .dashboard-grid,
    .ticket-layout,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .ticket-layout .side-stack {
        grid-row: 1;
    }

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

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(-n + 2) {
        border-bottom: 1px solid #393c42;
    }
}

@media (max-width: 720px) {
    .page-shell,
    .app-footer,
    .app-header-inner {
        width: min(calc(100% - 28px), var(--content));
    }

    .page-shell {
        padding-top: 28px;
    }

    .page-heading h1,
    .auth-form-pane h1,
    .error-shell h1 {
        font-size: 29px;
    }

    .ticket-title-row h1 {
        font-size: 24px;
    }

    .page-heading,
    .section-heading,
    .app-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-shell {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .auth-brand-pane {
        min-height: 190px;
        padding: 28px;
        border-right: 0;
        border-bottom: 3px solid var(--gold);
    }

    .auth-brand-pane::after {
        right: 46px;
        bottom: -3px;
        width: 90px;
        height: 3px;
    }

    .auth-brand-pane h2 {
        margin-top: 10px;
    }

    .auth-mark {
        width: 42px;
        height: 42px;
    }

    .auth-form-pane {
        padding: 34px 26px 38px;
    }

    .form-grid,
    .public-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .ticket-row {
        grid-template-columns: 4px minmax(0, 1fr);
    }

    .ticket-row-side {
        grid-column: 2;
        justify-items: start;
        display: flex;
        align-items: center;
    }

    .public-card-top,
    .public-card-footer,
    .ticket-title-row,
    .message-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .panel-body,
    .detail-panel-body,
    .message-thread {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 14px;
    }

    .brand-copy small {
        display: none;
    }

    .account-name {
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .button-row .button,
    .button-row .btn {
        width: 100%;
    }

    .stat-item {
        padding: 14px;
    }

    .stat-item strong {
        font-size: 20px;
    }
}

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