:root, [data-theme="light"] {
    --color-primary: #176b63;
    --color-primary-content: #fff;
    --color-secondary: #6055a5;
    --color-neutral: #25364b;
    --color-base-100: #fff;
    --color-base-200: #f4f6f9;
    --color-base-300: #dde3eb;
    --color-base-content: #233147;
    --radius-box: 1rem;
    --radius-field: .5rem;
    --radius-selector: .5rem;
    --ink: #233147;
    --muted: #526177;
    --line: #e2e7ee;
    --accent: #176b63;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f4f6f9; color: var(--ink); font: 15px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 650; line-height: 1.3; }
h1 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.035em; }
h2 { font-size: 1.25rem; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
h4, h5 { font-size: 1rem; }
h6 { font-size: .8125rem; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #389b90; outline-offset: 3px; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 100; padding: .75rem 1rem; background: white; border: 2px solid var(--accent); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.app-header { background: white; border-bottom: 1px solid var(--line); }
.app-header-inner { max-width: 1280px; padding: 1rem 2rem; margin: auto; display: flex; align-items: center; gap: 2.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-size: 1rem; font-weight: 750; letter-spacing: -.02em; text-decoration: none; flex-shrink: 0; }
.brand small { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); letter-spacing: .03em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--ink); color: white; font-size: 1.2rem; }
.main-nav { display: flex; gap: .3rem; flex: 1; align-items: center; }
.main-nav a { display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem; border-radius: .5rem; font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { background: #edf5f3; color: var(--accent); }
.notification-count { background: #b13939; color: white; padding: 0 .4rem; border-radius: 8px; font-size: .8125rem; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; margin-left: auto; }
.account-menu { position: relative; }
.account-menu summary { display: flex; gap: .5rem; align-items: center; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar-initial { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #eef1f6; font-size: .8125rem; font-weight: 700; }
.account-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; }
.account-panel { position: absolute; right: 0; top: calc(100% + 14px); z-index: 40; width: 235px; background: white; border: 1px solid var(--line); border-radius: .75rem; padding: .5rem; box-shadow: 0 12px 35px #23314718; }
.account-identity { padding: .6rem .75rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; overflow-wrap: anywhere; }
.account-identity small { display: block; color: var(--muted); }
.account-panel a, .account-panel button { display: block; width: 100%; text-align: left; padding: .6rem .75rem; border-radius: .4rem; cursor: pointer; }
.account-panel a:hover, .account-panel button:hover { background: #f4f6f9; }
.app-main { max-width: 1280px; margin: auto; padding: 2rem 2rem 4rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.eyebrow { font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 750; margin-bottom: .35rem; }
.page-description { color: var(--muted); margin-top: .5rem; max-width: 65ch; }
.scope-tabs { display: flex; gap: .25rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.scope-tabs a { padding: .65rem 1rem; color: var(--muted); border-bottom: 2px solid transparent; }
.scope-tabs a[aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 650; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.summary-card { display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: .8rem; padding: 1.15rem 1.25rem; transition: border-color .15s, box-shadow .15s; }
.summary-card:hover { border-color: #a8bdb8; box-shadow: 0 4px 14px #23314708; }
.summary-card[aria-current] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.summary-card > span { font-size: .82rem; font-weight: 600; }
.summary-card strong { font-size: 2rem; font-weight: 700; line-height: 1.4; letter-spacing: -.04em; }
.summary-card small { color: var(--muted); font-size: .8125rem; }
.attention-summary { background: #f0f7f5; }
.attention-summary strong { color: var(--accent); }
.surface { background: white; border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 2px 4px #23314703; min-width: 0; }
.section-heading { padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.section-heading p { color: var(--muted); font-size: .8125rem; margin-top: .25rem; }
.text-link { color: var(--accent); font-weight: 600; font-size: .8125rem; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.ticket-filters { display: flex; flex-wrap: wrap; gap: .75rem; padding: 0 1.4rem 1.2rem; align-items: end; }
.ticket-filters > div { flex: 1 1 140px; min-width: 0; }
.ticket-filters .filter-search { flex: 2 1 230px; }
.ticket-filters label { display: block; color: var(--muted); font-size: .8125rem; font-weight: 600; margin-bottom: .3rem; }
.ticket-filters .input, .ticket-filters .select { width: 100%; }
.ticket-filters .filter-buttons { flex: 0 0 auto; display: flex; gap: .3rem; }
.ticket-list-head, .ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px 125px 145px; gap: 1rem; align-items: center; padding: 1rem 1.4rem; }
.ticket-list-head { background: #f8fafc; border-block: 1px solid var(--line); font-size: .8125rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding-block: .6rem; }
.ticket-row { border-bottom: 1px solid #edf0f5; transition: background .15s; }
.ticket-row:last-child { border-bottom: none; border-radius: 0 0 .9rem .9rem; }
.ticket-row:hover { background: #f7faf9; }
.ticket-row-main { min-width: 0; }
.stale-notice { display: flex; flex-wrap: wrap; gap: .2rem .6rem; padding: .65rem .8rem; margin-bottom: 1rem; border: 1px solid #dec778; border-radius: .5rem; background: #fff7df; color: #78450b; font-size: .8125rem; line-height: 1.5; }
.stale-notice strong { font-weight: 750; }
.ticket-date .stale-notice { margin: .5rem 0 0; padding: .35rem .5rem; }
.watching-badge { display: inline-block; margin: .35rem .5rem 0 0; padding: .1rem .5rem; border: 1px solid #c4b5fd; border-radius: 1rem; background: #f5f3ff; color: #5b21b6; font-size: .75rem; font-weight: 650; line-height: 1.5; }
.ticket-title { font-size: 1rem; display: flex; gap: .65rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.ticket-number { flex-shrink: 0; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; font-size: .8125rem; padding-top: .08rem; }
.ticket-people { display: flex; gap: .4rem 1rem; flex-wrap: wrap; color: var(--muted); font-size: .8125rem; margin-top: .35rem; }
.ticket-status { font-size: .8125rem; height: auto; min-height: 1.6rem; white-space: normal; overflow-wrap: anywhere; padding-block: .2rem; line-height: 1.4; max-width: 100%; }
.ticket-date { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.ticket-date small { display: block; color: var(--muted); font-size: .8125rem; }
.overdue-label { display: block; color: #b23a3a; font-size: .8125rem; font-weight: 600; }
.mobile-label { display: none; }
.pagination-bar, .pagination-controls { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-size: .8125rem; }
.pagination-bar { justify-content: space-between; padding: 1rem 1.4rem; border-top: 1px solid var(--line); }
.empty-state { text-align: center; padding: 2.5rem 1rem; border-top: 1px solid var(--line); }
.empty-state p { color: var(--muted); margin: .5rem 0 1rem; }
.empty-symbol { display: inline-grid; place-items: center; width: 40px; height: 40px; background: #edf5f3; color: var(--accent); border-radius: 12px; font-size: 1.2rem; margin-bottom: .75rem; }
.btn { text-transform: none; font-weight: 600; box-shadow: none; }
.input, .select, .textarea { background: white; border-color: #aab8c8; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #b13939; }
.field { position: relative; margin-bottom: 1.25rem; }
.field > label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.field-help { color: var(--muted); font-size: .8125rem; margin-top: .4rem; }
.field-help ul { list-style: disc; padding-left: 1.2rem; }
.field-errors, .errorlist { color: #a62929; font-size: .8125rem; margin-top: .4rem; }
.form-surface { padding: 1.8rem; max-width: 760px; }
.form-actions { display: flex; gap: .75rem; align-items: center; padding-top: .75rem; border-top: 1px solid var(--line); }
.auth-layout { max-width: 430px; margin: 3rem auto; }
.auth-layout .form-surface { margin-top: 1.5rem; }
.breadcrumbs-line { display: flex; gap: .6rem; color: var(--muted); font-size: .8125rem; margin-bottom: 1.25rem; }
.breadcrumbs-line a:hover { color: var(--accent); }
.ticket-heading h1 { overflow-wrap: anywhere; }
.ticket-heading .badge { height: auto; padding-block: .35rem; white-space: normal; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.detail-main { min-width: 0; }
.ticket-description { padding: 1.5rem; margin-bottom: 1.25rem; }
.prose-content { overflow-wrap: anywhere; }
.prose-content[hidden], .comment-expand[hidden] { display: none; }
.user-mention { font-weight: 750; color: #14534c; }
.comment-meta .comment-status { font-size: .8125rem; height: auto; white-space: normal; line-height: 1.5; padding: .2rem .5rem; }
.comment-expand { display: inline-block; padding: .4rem 0; margin-top: .25rem; color: var(--accent); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.comment-card { scroll-margin-top: 1.5rem; }
.comment-card:target { border-left-color: var(--accent); background: #f0f7f5; }
.prose-content p + p { margin-top: .75rem; }
.ticket-sidebar { min-width: 0; }
.ticket-sidebar .card-body { padding: 1.25rem; }
.ticket-sidebar .join { display: flex; width: 100%; }
.ticket-sidebar .join .select, .ticket-sidebar .join .input { flex: 1; min-width: 0; width: 0; }
.ticket-sidebar .join .btn { flex-shrink: 0; }
.ticket-sidebar .badge { max-width: 100%; white-space: normal; height: auto; padding-block: .25rem; }
.conversation { padding: 1.5rem; }
.comment-card { border-left: 3px solid #dce5ee; padding: .8rem 0 .8rem 1rem; margin-bottom: 1rem; }
.comment-card + .comment-card { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.comment-meta time { font-size: .8125rem; color: var(--muted); margin-left: auto; }
.comment-meta .badge { font-size: .8125rem; }
.comment-composer { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.2rem; }
.comment-composer label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .4rem; }
.watcher-list { margin-top: .6rem; max-height: 230px; overflow-y: auto; }
.people-summary { margin-bottom: .75rem; }
.people-summary > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: .5rem; margin-bottom: .6rem; }
.people-summary dt { color: var(--muted); font-size: .8125rem; }
.people-summary dd { overflow-wrap: anywhere; }
.people-summary .badge { margin-top: .25rem; }
.mention-dropdown { position: absolute; z-index: 30; width: min(100%, 360px); max-height: 260px; overflow-y: auto; background: white; border: 1px solid #cbd4df; border-radius: .6rem; box-shadow: 0 8px 24px #2331471a; list-style: none; padding: .3rem; margin: .2rem 0 0; }
.mention-option { cursor: pointer; padding: .55rem .65rem; font-size: .8125rem; border-radius: .35rem; overflow-wrap: anywhere; }
.mention-option:hover, .mention-option[aria-selected="true"] { background: #e5f2ee; color: #14534c; }
.workflow-banner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.2rem 1.4rem; border: 1px solid #cce1dc; background: #edf6f3; border-radius: .85rem; margin-bottom: 1.5rem; }
.workflow-copy { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.workflow-copy h2 { font-size: .95rem; }
.workflow-copy p { color: #506b64; font-size: .8125rem; margin-top: .25rem; overflow-wrap: anywhere; }
.workflow-icon { width: 35px; height: 35px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #dceee7; color: var(--accent); font-size: 1.2rem; }
.workflow-banner > a, .workflow-banner > form { flex-shrink: 0; }
.completion-action { flex-shrink: 0; max-width: 100%; }
.completion-action[open] { width: 360px; }
.approval-panel { margin-bottom: 1.25rem; border-top: 3px solid var(--accent); scroll-margin-top: 1rem; }
.approval-panel > form { padding: 0 1.4rem 1.4rem; }
.comment-composer { scroll-margin-top: 1rem; }
.clarification-response { padding: 1.4rem; margin-bottom: 1.25rem; border: 2px solid #dba15f; background: #fffbf5; scroll-margin-top: 1rem; }
.clarification-response h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.clarification-request { padding: .85rem; margin: 1rem 0; border-left: 3px solid #b96820; background: white; overflow-wrap: anywhere; }
.attachment-card { display: flex; align-items: center; gap: .75rem; width: min(100%, 430px); padding: .75rem; margin-top: .8rem; border: 1px solid var(--line); border-radius: .65rem; background: #f8fafc; }
.attachment-card:hover { border-color: #9abfb7; background: #f0f7f5; }
.attachment-type { display: grid; place-items: center; width: 42px; height: 45px; flex-shrink: 0; background: white; border: 1px solid var(--line); border-radius: .4rem; color: var(--accent); font-size: .8125rem; font-weight: 750; }
.attachment-copy { flex: 1; min-width: 0; }
.attachment-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; font-weight: 600; }
.attachment-copy small { color: var(--muted); font-size: .8125rem; }
.file-selection { overflow-wrap: anywhere; color: var(--accent); font-size: .8125rem; margin-top: .35rem; }
.file-input { max-width: 100%; min-width: 0; }
.activity-section { margin-top: 1.25rem; }
.activity-section summary { cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 650; }
.activity-section summary .badge { margin-left: .5rem; }
.activity-timeline { list-style: none; padding: 0 1.5rem 1.25rem; }
.activity-timeline li { display: flex; gap: 1rem; position: relative; padding-bottom: 1.2rem; }
.activity-timeline li::before { content: ''; position: absolute; width: 1px; background: var(--line); left: 5px; top: 15px; bottom: -3px; }
.activity-timeline li:last-child::before { display: none; }
.activity-timeline li:last-child { padding-bottom: 0; }
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #99bdb5; background: white; flex-shrink: 0; margin-top: .35rem; }
.timeline-entry { flex: 1; min-width: 0; }
.timeline-header { display: flex; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; font-size: .8125rem; }
.timeline-header p, .timeline-detail { overflow-wrap: anywhere; }
.timeline-header time { font-size: .8125rem; color: var(--muted); }
.timeline-detail { font-size: .8125rem; color: var(--muted); margin-top: .25rem; }
.activity-empty { padding: 0 1.4rem 1.2rem; }
.ticket-sidebar .activity-section summary { padding: 1rem 1.25rem; }
.ticket-sidebar .activity-timeline { padding-inline: 1.25rem; }
.ticket-sidebar .timeline-header { flex-direction: column; gap: .2rem; }
.inbox-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--line); padding: .6rem 1.4rem 0; }
.inbox-toolbar .scope-tabs { border: 0; margin: 0; }
.inbox-toolbar .field-help { padding-bottom: .6rem; }
.unread-count { display: inline-block; min-width: 22px; text-align: center; padding: 0 .3rem; margin-left: .3rem; border-radius: .35rem; background: #e6f1ee; color: var(--accent); font-size: .8125rem; }
.notification-list { list-style: none; margin: 0; padding: 0; }
.notification-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.4rem; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); }
.notification-list li:last-child .notification-row { border-bottom: 0; }
.notification-row:hover { background: #f6f9fa; }
.notification-row.is-unread { background: #f2f8f6; border-left-color: var(--accent); }
.notification-row.is-unread:hover { background: #eaf3f0; }
.notification-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; flex-shrink: 0; font-size: .8125rem; font-weight: 650; background: #e6ebf2; color: #41526c; }
.notification-content { flex: 1; min-width: 0; }
.notification-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .8125rem; }
.notification-meta strong { overflow-wrap: anywhere; }
.notification-meta time { margin-left: auto; color: var(--muted); font-size: .8125rem; }
.unread-label { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-size: .8125rem; font-weight: 650; }
.unread-label::before { content: ''; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.notification-message { font-size: .82rem; margin-top: .3rem; overflow-wrap: anywhere; }
.notification-ticket { margin-top: .5rem; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.notification-ticket > span { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: .3rem; }
.notification-arrow { color: var(--muted); align-self: center; }
.btn[aria-disabled="true"] { opacity: .65; cursor: wait; pointer-events: none; }
.ticket-heading > div { min-width: 0; }
.ticket-heading > .badge { max-width: 200px; overflow-wrap: anywhere; }
@media (max-width: 1050px) {
    .app-header-inner { gap: 1rem; flex-wrap: wrap; }
    .main-nav { order: 3; flex-basis: 100%; }
    .detail-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; }
}
@media (max-width: 760px) {
    .workflow-banner { flex-direction: column; align-items: stretch; padding: 1rem; }
    .workflow-banner > form .btn { width: 100%; }
    .notification-row { padding: 1rem; gap: .65rem; }
    .notification-meta time { flex-basis: 100%; margin-left: 0; }
    .notification-arrow { display: none; }
    .inbox-toolbar { padding-inline: .75rem; }
    .page-heading { flex-wrap: wrap; }
    .ticket-heading > .badge { max-width: 100%; }
    .app-header-inner { padding: .8rem 1rem; }
    .app-main { padding: 1.5rem 1rem 3rem; }
    .account-name { display: none; }
    .header-actions { gap: .75rem; }
    .main-nav { gap: .1rem; overflow-x: auto; }
    .main-nav a { padding: .45rem .6rem; font-size: .8125rem; }
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .summary-card { padding: 1rem; }
    .summary-card strong { font-size: 1.7rem; }
    .page-heading { align-items: start; }
    .page-heading > .badge { flex-shrink: 0; }
    .section-heading, .ticket-filters { padding-inline: 1rem; }
    .ticket-list-head { display: none; }
    .ticket-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: 1rem; border-top: 1px solid var(--line); border-bottom: 0; }
    .ticket-row-main { grid-column: 1 / -1; }
    .ticket-status { grid-column: 1 / -1; justify-self: start; }
    .ticket-date small { display: inline; margin-left: .3rem; }
    .mobile-label { display: inline; color: var(--muted); }
    .detail-grid { display: flex; flex-direction: column; }
    .detail-main, .ticket-sidebar { width: 100%; }
    .ticket-sidebar .card-body { padding: 1rem; }
    .form-surface, .conversation, .ticket-description { padding: 1.2rem; }
    .auth-layout { margin: 1.5rem auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Shared status tokens keep the badge and next-step banner in agreement. */
.status-pending { --status-ink: #854d0e; --status-bg: #fef3c7; --status-line: #dec778; }
.status-ready { --status-ink: #1e5296; --status-bg: #eaf2ff; --status-line: #aac6ec; }
.status-progress { --status-ink: #493a99; --status-bg: #efedff; --status-line: #c4bbef; }
.status-clarification { --status-ink: #963b10; --status-bg: #fff0e3; --status-line: #efbb94; }
.status-done { --status-ink: #21623c; --status-bg: #e8f5ec; --status-line: #a7cdb4; }
.status-rejected { --status-ink: #a12732; --status-bg: #fff0f1; --status-line: #e8b3b8; }
.status-withdrawn { --status-ink: #526177; --status-bg: #eef1f5; --status-line: #bdc6d3; }
.badge[class*="status-"] { color: var(--status-ink); background: var(--status-bg); border: 1px solid var(--status-line); font-weight: 650; }
.workflow-banner[class*="status-"] { background: var(--status-bg); border-color: var(--status-line); }
.workflow-banner h2, .workflow-banner .workflow-icon { color: var(--status-ink); }
.workflow-banner .workflow-icon { background: white; border: 1px solid var(--status-line); }
.workflow-banner p { color: var(--ink); font-size: .875rem; }
.workflow-copy h2 { font-size: 1.125rem; }
.ticket-row { border-left: 3px solid transparent; }
.ticket-row.needs-action { background: #fffbef; border-left-color: #ab6a13; }
.ticket-row.is-overdue { border-left-color: #b13939; }
.ticket-row.needs-action:hover { background: #fff5d8; }
.action-label { display: inline-block; margin-top: .35rem; color: #854d0e; font-size: .8125rem; font-weight: 650; }
.due-label { display: block; font-size: .8125rem; font-weight: 600; color: #854d0e; }
.due-label.overdue-label { color: #a12732; }
.scope-tabs { flex-wrap: wrap; }
.scope-tabs a[aria-current] { background: #e5f1ed; border-radius: .4rem .4rem 0 0; border-bottom-width: 3px; }
.main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.field > label, .comment-composer label { font-size: .9375rem; }
.btn-sm { min-height: 2.25rem; font-size: .875rem; }
.input-sm, .select-sm { min-height: 2.5rem; font-size: .875rem; }
.textarea { font-size: .9375rem; line-height: 1.6; }
.summary-card small { line-height: 1.5; }
@media (max-width: 760px) {
    .input, .select, .textarea { font-size: 1rem; }
    .scope-tabs a { padding: .65rem .75rem; }
    .ticket-date small { display: block; margin-left: 0; }
}
