:root {
    color-scheme: light;
    --ink: #111722;
    --muted: #667085;
    --muted-2: #8a94a3;
    --line: #dde2e8;
    --line-strong: #cbd2da;
    --paper: #f6f7f9;
    --surface: #ffffff;
    --blue: #1769ff;
    --blue-soft: #eef4ff;
    --danger: #b42318;
    --warning: #9a5b00;
    --success: #027a48;
    --header-h: 56px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
}

a {
    color: inherit;
}

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

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

:focus-visible {
    outline: 3px solid rgba(23, 105, 255, 0.28);
    outline-offset: 2px;
}

.shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
}

.topbar-shell {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topbar-left,
.topbar-right,
.primary-nav,
.account,
.top-actions {
    display: flex;
    align-items: center;
}

.topbar-left {
    min-width: 0;
    gap: 28px;
}

.topbar-right {
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.045em;
    white-space: nowrap;
}

.brand > span {
    font-size: 1.06rem;
}

.brand .plus {
    color: var(--blue);
}

.brand small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.primary-nav {
    gap: 22px;
}

.primary-nav a {
    position: relative;
    padding: 19px 0 17px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--ink);
}

.primary-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--blue);
}

.quick-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border-radius: 6px;
    padding: 0 11px;
    background: var(--ink);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.quick-add kbd {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 1px 5px;
    color: #d0d5dd;
    font: inherit;
    font-size: 0.7rem;
}

.account {
    gap: 12px;
    color: var(--muted);
    font-size: 0.8rem;
}

.account form {
    margin: 0;
}

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

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
}

.link-button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.main {
    padding-top: 32px;
    padding-bottom: 72px;
}

.flash {
    position: fixed;
    z-index: 100;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 11px 13px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(17, 23, 34, 0.12);
    font-size: 0.86rem;
}

.flash-success {
    border-left: 3px solid var(--success);
}

.flash-warning {
    border-left: 3px solid var(--warning);
}

.flash button {
    border: 0;
    padding: 0 3px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.15rem;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    letter-spacing: -0.035em;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

h2 {
    margin: 0;
}

.workspace {
    min-width: 0;
}

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

.workspace-heading h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.workspace-summary {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.workspace-summary strong {
    color: var(--ink);
    font-weight: 750;
}

.back-link,
.quiet-link,
.text-link {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
    text-decoration: none;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
}

.back-link:hover,
.quiet-link:hover,
.text-link:hover {
    color: var(--blue);
}

.text-link {
    color: var(--blue);
}

.break-link {
    overflow-wrap: anywhere;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 36px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 0 12px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.button:hover {
    border-color: #aeb7c2;
}

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

.button.primary:hover {
    opacity: 0.92;
}

.button.quiet {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label,
.list-toolbar label {
    color: #344054;
    font-size: 0.78rem;
    font-weight: 700;
}

.field input,
.field select,
.field textarea,
.list-toolbar select,
.quick-status select {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 10px 11px;
    background: var(--surface);
    color: var(--ink);
    outline: none;
}

.field textarea {
    resize: vertical;
    line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.list-toolbar select:focus,
.quick-status select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.1);
}

.help {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-actions,
.lead-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.alert {
    margin: 18px 0;
    border-left: 3px solid var(--danger);
    padding: 10px 12px;
    background: #fff6f5;
    color: var(--danger);
    font-size: 0.84rem;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

/* Dashboard */

.queue-section {
    margin-top: 34px;
}

.queue-heading,
.section-line-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.queue-heading > div,
.section-line-heading {
    min-width: 0;
}

.queue-heading h2,
.section-line-heading h2 {
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.queue-heading > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.queue-heading > div > span,
.section-line-heading > span {
    color: var(--muted);
    font-size: 0.76rem;
}

.queue-heading > a {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
}

.queue-heading > a:hover {
    color: var(--blue);
}

.queue-table {
    border-top: 1px solid var(--line);
}

.queue-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 150px 80px;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    padding: 9px 2px;
    text-decoration: none;
}

.queue-row:hover {
    background: rgba(17, 23, 34, 0.018);
}

.queue-title {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-source,
.queue-time,
.queue-deadline,
.status-text,
.priority-text {
    color: var(--muted);
    font-size: 0.78rem;
}

.queue-time {
    text-align: right;
}

.queue-priority,
.queue-deadline {
    font-size: 0.75rem;
    font-weight: 700;
}

.queue-deadline strong {
    color: var(--ink);
}

.priority-high,
.priority-urgent {
    color: var(--warning);
}

.priority-urgent {
    color: var(--danger);
}

.status-reporting,
.status-drafting {
    color: #175cd3;
}

.status-review,
.status-ready,
.status-published {
    color: var(--success);
}

.status-dropped,
.status-archived {
    color: var(--muted-2);
}

.queue-empty {
    border-bottom: 1px solid var(--line);
    padding: 18px 2px;
    color: var(--muted);
    font-size: 0.84rem;
}

/* Inbox */

.subnav {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
}

.subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    border-bottom: 2px solid transparent;
    padding: 0 0 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
    text-decoration: none;
}

.subnav-link span {
    color: var(--muted-2);
    font-size: 0.72rem;
}

.subnav-link:hover,
.subnav-link.is-active {
    color: var(--ink);
}

.subnav-link.is-active {
    border-bottom-color: var(--blue);
}

.triage-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.4fr);
    min-height: 560px;
    border-bottom: 1px solid var(--line);
}

.triage-list {
    border-right: 1px solid var(--line);
}

.triage-row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px 10px 2px;
    text-decoration: none;
}

.triage-row:hover,
.triage-row.is-selected {
    background: rgba(23, 105, 255, 0.035);
}

.triage-row.is-selected {
    box-shadow: inset -2px 0 0 var(--blue);
}

.priority-mark {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b9c1cb;
}

.priority-mark.priority-high {
    background: #d98500;
}

.priority-mark.priority-urgent {
    background: #d92d20;
}

.priority-mark.priority-low {
    background: #98a2b3;
}

.priority-mark.priority-normal {
    background: #667085;
}

.triage-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.triage-copy strong {
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.triage-copy span,
.triage-row time {
    color: var(--muted);
    font-size: 0.74rem;
}

.triage-row time {
    text-align: right;
}

.triage-preview {
    min-width: 0;
    padding: 24px 0 24px 28px;
}

.triage-placeholder {
    display: grid;
    min-height: 320px;
    place-items: center;
    color: var(--muted);
}

.lead-preview {
    max-width: 760px;
}

.lead-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lead-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-text,
.priority-text {
    font-weight: 700;
}

.lead-title {
    margin: 14px 0 10px;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.1;
}

.lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    color: var(--muted);
    font-size: 0.78rem;
}

.lead-preview > .text-link {
    display: inline-block;
    margin-top: 14px;
}

.lead-actions {
    margin-top: 22px;
}

.lead-actions form {
    margin: 0;
}

.lead-notes {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.lead-notes h3 {
    margin: 0 0 10px;
    font-size: 0.88rem;
    letter-spacing: 0;
}

.prose-compact {
    max-width: 720px;
    color: #344054;
    line-height: 1.65;
}

.lead-full {
    max-width: 900px;
}

.form-workspace {
    width: min(760px, 100%);
}

.intake-form {
    margin-top: 26px;
}

/* Stories list */

.list-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.list-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.list-toolbar select {
    width: auto;
    min-width: 140px;
    padding: 7px 9px;
    font-size: 0.8rem;
}

.story-table {
    border-top: 1px solid var(--line);
}

.story-table-head,
.story-table-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 140px 145px 64px;
    align-items: center;
    gap: 14px;
}

.story-table-head {
    min-height: 34px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.story-table-row {
    min-height: 64px;
    border-top: 1px solid var(--line);
    padding: 9px 0;
    text-decoration: none;
}

.story-table-row:hover {
    background: rgba(17, 23, 34, 0.018);
}

.story-table-title {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.story-table-title strong {
    overflow: hidden;
    font-size: 0.91rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-table-title small,
.story-table-assignee,
.story-table-deadline,
.story-table-updated {
    color: var(--muted);
    font-size: 0.75rem;
}

.story-table-title small {
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-table-updated {
    text-align: right;
}

/* Story dossier */

.story-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.story-header-main {
    min-width: 0;
}

.story-header h1 {
    max-width: 900px;
    font-size: clamp(1.75rem, 3.4vw, 2.7rem);
    line-height: 1.06;
}

.story-header-meta {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.quick-status {
    flex: 0 0 170px;
}

.quick-status label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.quick-status select {
    padding: 8px 10px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.story-tabs {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
}

.story-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    border-bottom: 2px solid transparent;
    padding: 0 0 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.story-tabs a span {
    color: var(--muted-2);
    font-size: 0.7rem;
}

.story-tabs a:hover,
.story-tabs a.is-active {
    color: var(--ink);
}

.story-tabs a.is-active {
    border-bottom-color: var(--blue);
}

.story-tab-content {
    padding-top: 26px;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: clamp(34px, 5vw, 64px);
    align-items: start;
}

.overview-main {
    min-width: 0;
}

.overview-side {
    min-width: 0;
}

.quick-note {
    margin-bottom: 34px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 26px;
}

.quick-note > label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 750;
}

.quick-note > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.quick-note textarea {
    width: 100%;
    min-height: 76px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 10px 11px;
    resize: vertical;
    line-height: 1.5;
}

.reporting-log {
    min-width: 0;
}

.log-list {
    border-top: 1px solid var(--line);
}

.log-entry {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.log-time {
    color: var(--muted);
    font-size: 0.75rem;
}

.log-content {
    min-width: 0;
}

.log-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.log-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.log-content p {
    margin: 0 0 7px;
    color: #475467;
    font-size: 0.84rem;
}

.log-note {
    color: #344054;
    line-height: 1.65;
}

.story-facts {
    position: sticky;
    top: calc(var(--header-h) + 22px);
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.story-facts dl {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 9px 12px;
    margin: 0;
    font-size: 0.8rem;
}

.story-facts dt {
    color: var(--muted);
}

.story-facts dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.story-facts dd a {
    color: var(--blue);
    text-decoration: none;
}

.edit-details {
    margin-top: 20px;
    border-top: 1px solid var(--line);
    padding-top: 13px;
}

.edit-details summary,
.side-action summary {
    width: fit-content;
    color: var(--blue);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 750;
    list-style: none;
}

.edit-details summary::-webkit-details-marker,
.side-action summary::-webkit-details-marker {
    display: none;
}

.edit-details[open] summary,
.side-action[open] summary {
    margin-bottom: 16px;
}

.compact-form {
    margin-top: 0;
}

.compact-form textarea {
    min-height: 88px;
}

/* Sources, files, activity */

.tab-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: clamp(34px, 5vw, 64px);
    align-items: start;
}

.record-list {
    border-top: 1px solid var(--line);
}

.record-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 140px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.record-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.record-main {
    min-width: 0;
}

.record-main strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
}

.record-main p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.record-notes {
    margin-top: 10px;
    border-left: 2px solid var(--line);
    padding-left: 12px;
    color: #475467;
    font-size: 0.82rem;
    line-height: 1.55;
}

.record-meta {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.55;
    text-align: right;
}

.hash {
    display: block;
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 0.68rem;
    overflow-wrap: anywhere;
}

.side-action {
    position: sticky;
    top: calc(var(--header-h) + 22px);
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.activity-rows {
    border-top: 1px solid var(--line);
}

.activity-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.activity-row time,
.activity-row span {
    color: var(--muted);
    font-size: 0.75rem;
}

.activity-row div {
    display: grid;
    gap: 4px;
}

.activity-row strong {
    font-size: 0.88rem;
    line-height: 1.4;
}

/* Auth */

.auth-panel {
    width: min(460px, 100%);
    margin-top: 36px;
}

.auth-panel h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.lede {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-panel .form {
    margin-top: 28px;
}

.muted {
    color: var(--muted);
}

/* Responsive */

@media (max-width: 980px) {
    .account-name {
        display: none;
    }

    .overview-grid,
    .tab-layout {
        grid-template-columns: 1fr;
    }

    .story-facts,
    .side-action {
        position: static;
    }

    .overview-side {
        order: -1;
    }

    .story-table-head,
    .story-table-row {
        grid-template-columns: 88px minmax(0, 1fr) 120px 120px 54px;
    }
}

@media (max-width: 820px) {
    .shell {
        width: min(100% - 28px, 1240px);
    }

    .topbar-left {
        gap: 18px;
    }

    .primary-nav {
        gap: 15px;
    }

    .account {
        display: none;
    }

    .triage-layout {
        grid-template-columns: 1fr;
    }

    .triage-list {
        border-right: 0;
    }

    .triage-preview {
        order: -1;
        padding: 18px 0;
        border-bottom: 1px solid var(--line);
    }

    .triage-row.is-selected {
        box-shadow: none;
    }

    .queue-row {
        grid-template-columns: 80px minmax(0, 1fr) 100px 60px;
    }

    .story-table-head {
        display: none;
    }

    .story-table-row {
        grid-template-columns: 86px minmax(0, 1fr) 70px;
        gap: 10px;
    }

    .story-table-assignee,
    .story-table-deadline {
        display: none;
    }
}

@media (max-width: 640px) {
    :root {
        --header-h: 52px;
    }

    .shell {
        width: calc(100% - 24px);
    }

    .topbar-shell {
        min-height: var(--header-h);
    }

    .brand small {
        display: none;
    }

    .primary-nav a {
        padding: 17px 0 15px;
        font-size: 0.8rem;
    }

    .primary-nav a:first-child {
        display: none;
    }

    .quick-add {
        min-height: 32px;
        padding: 0 9px;
    }

    .quick-add kbd {
        display: none;
    }

    .main {
        padding-top: 24px;
    }

    .workspace-heading {
        margin-bottom: 22px;
    }

    .workspace-heading h1 {
        font-size: 2rem;
    }

    .queue-row {
        grid-template-columns: 70px minmax(0, 1fr) 48px;
        gap: 9px;
    }

    .queue-source {
        display: none;
    }

    .story-queue-row .queue-source {
        display: none;
    }

    .queue-time {
        font-size: 0.7rem;
    }

    .subnav {
        gap: 14px;
    }

    .triage-row {
        padding-right: 4px;
    }

    .story-header {
        flex-direction: column;
        gap: 16px;
    }

    .quick-status {
        width: 100%;
        flex-basis: auto;
    }

    .story-tabs {
        gap: 18px;
    }

    .quick-note > div {
        grid-template-columns: 1fr;
    }

    .quick-note .button {
        justify-self: start;
    }

    .log-entry {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .log-time {
        font-size: 0.7rem;
    }

    .record-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .record-label {
        margin-bottom: 2px;
    }

    .record-meta {
        text-align: left;
    }

    .activity-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .list-toolbar label {
        justify-content: space-between;
    }

    .list-toolbar select {
        min-width: 150px;
    }

    .story-table-row {
        grid-template-columns: 78px minmax(0, 1fr) 44px;
    }

    .story-table-title small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
