/* GRC navy and turquoise, with local fonts and no third-party assets. */
:root {
  --navy: #092d5a;
  --navy-deep: #071e3c;
  --turquoise: #25d1c5;
  --teal: #087b75;
  --page: #f3f5fa;
  --ink: #192d46;
  --muted: #64748b;
  --line: #e6ebf2;
  --white: #fff;
  --shadow: 0 4px 24px #17365c06;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.6 "Segoe UI", system-ui, sans-serif; overflow-wrap: anywhere; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal); text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #098d85; outline-offset: 3px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #25d1c522; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.3vw, 35px); letter-spacing: -1.1px; line-height: 1.25; margin-bottom: 12px; overflow-wrap: anywhere; }
h2 { font-size: 17px; letter-spacing: -.3px; margin-bottom: 12px; }
h3 { font-size: 15px; margin-bottom: 8px; }
small { font-size: 11px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { display: block; font-size: 10px; letter-spacing: 1.8px; font-weight: 750; color: var(--teal); margin-bottom: 12px; }
.heading-dot { color: var(--teal); }
.app-shell { display: flex; min-height: 100vh; }
.work-board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 16px; }
.board-column { padding: 18px; min-width: 0; }
.board-column h2 { font-size: 15px; }
.board-card { padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.board-card h3 { font-size: 14px; margin: 8px 0; }
.deadline-late { color: #a82332; font-weight: 650; font-size: 12px; }
.dashboard-breakdowns, .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.dashboard-breakdowns .panel, .stat-card { padding: 22px; }
.metric-value { margin-top: 10px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 14px; }
.stat-card strong, .metric-value { font-size: 30px; color: var(--navy); }
.company-logo { width: 64px; height: 64px; max-width: 100%; object-fit: contain; flex-shrink: 0; }
.login-story .company-logo { width: 96px; height: 80px; }
.nav-icon { width: 18px; height: 18px; min-width: 18px; flex-shrink: 0; }
.brand > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; padding: 33px 22px 18px; background: var(--navy-deep); color: #d1dceb; display: flex; flex-direction: column; overflow-y: auto; }
.navigation-toggle, .navigation-toggle-label { display: none; }
.navigation-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; color: white; font-weight: 750; font-size: 27px; letter-spacing: 1px; line-height: 1.15; margin-bottom: 42px; }
.brand:hover { color: white; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 45px; border: 1px solid #25d1c570; background: #25d1c51a; border-radius: 14px 14px 14px 3px; color: var(--turquoise); font-size: 30px; letter-spacing: -2px; padding-bottom: 6px; }
.brand-caption { display: block; font-size: 8px; letter-spacing: 2.7px; font-weight: 500; margin-top: 6px; color: #94abc7; }
.nav-label { font-size: 9px; color: #7f96b1; font-weight: 700; letter-spacing: 1.5px; margin: 22px 12px 12px; }
.navigation-content > .nav-label { margin-top: 0; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin: 4px 0; border-radius: 8px; color: #bdcce0; font-size: 12px; }
.sidebar nav a span { font-size: 19px; line-height: 1; width: 19px; color: #8ca6c5; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { color: white; background: #ffffff0c; text-decoration: none; }
.sidebar nav a[aria-current] { background: #25d1c51c; color: #77e6dd; box-shadow: inset 3px 0 var(--turquoise); }
.sidebar nav a[aria-current] span { color: var(--turquoise); }
.sidebar-note { margin: auto 0 24px; padding: 28px 12px 0; font-size: 11px; color: #c6d6e8; }
.sidebar-note p { font-size: 11px; color: #859bb7; margin: 7px 0 0 16px; line-height: 1.8; }
.live-dot { display: inline-block; background: var(--turquoise); height: 5px; width: 5px; border-radius: 50%; margin-right: 6px; }
.profile { display: flex; align-items: center; gap: 11px; border-top: 1px solid #ffffff12; padding-top: 21px; }
.profile > div { min-width: 0; }
.profile strong { display: block; color: #e9f0f9; font-size: 12px; font-weight: 600; }
.profile small { display: block; color: #91a8c4; font-size: 10px; }
.avatar { flex-shrink: 0; display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; font-weight: 700; font-size: 13px; color: #096c69; background: #dff4ef; }
.account-actions { display: flex; justify-content: space-between; margin-top: 15px; font-size: 10px; }
.account-actions a, .text-button { color: #a9bbd2; }
.language-selector { margin-bottom: 20px; }
.language-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.language-controls select { flex: 1; min-width: 100px; }
.sidebar .language-selector label { color: #bdcce0; }
.sidebar .language-controls .button { flex: 1; }
.public-header { display: flex; justify-content: flex-end; padding: 12px 24px; background: white; border-bottom: 1px solid var(--line); }
.public-header .language-selector { margin: 0; }
.public-header .language-selector label { font-size: 11px; margin-bottom: 3px; }
.text-button { background: none; border: 0; padding: 0; font-size: inherit; }
.main-column { margin-left: 248px; width: calc(100% - 248px); min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 40px; background: white; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.topbar strong { font-weight: 550; color: var(--ink); }
.slash { margin: 0 12px; color: #a6b5c6; }
.secure-label { color: var(--teal); font-size: 10px; }
.main-content { max-width: 1680px; margin: auto; padding: 36px 40px 20px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading p { margin-bottom: 0; font-size: 12px; }
.button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; flex-shrink: 0; max-width: 100%; padding: 11px 18px; background: var(--navy); color: white; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 600; text-align: center; min-height: 42px; }
.button:hover { background: #123f72; color: white; text-decoration: none; }
.button.secondary { background: white; color: var(--navy); border-color: #dbe3ee; }
.button.secondary:hover { background: #f3f8fb; border-color: #86b9ba; }
.button.compact { min-height: 34px; padding: 6px 12px; font-size: 11px; }
.button.full { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 29px; }
.stat { display: flex; justify-content: space-between; align-items: flex-start; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.stat-label { font-size: 11px; color: var(--muted); }
.stat strong { display: block; font-size: 31px; line-height: 1.2; margin: 9px 0; letter-spacing: -1px; }
.stat small { color: var(--muted); display: block; font-size: 10px; }
.stat-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; font-size: 20px; }
.blue { color: #3564ac; background: #edf2fc; }
.amber { color: #9b6a15; background: #fff5dc; }
.purple { color: #7753b5; background: #f3edfc; }
.teal { color: #0b8175; background: #e2f7f1; }
.three-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 24px 25px 16px; gap: 15px; }
.panel-heading h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.panel-heading p { margin-bottom: 0; }
.count-pill { display: inline-block; border: 1px solid var(--line); background: #f5f7fb; color: #526881; border-radius: 5px; font-size: 10px; padding: 0 6px; font-weight: 500; }
.subtle-tag { font-size: 9px; letter-spacing: .6px; color: #60728b; background: #f4f6fa; border: 1px solid var(--line); border-radius: 4px; padding: 4px 7px; }
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 16px 12px; padding: 8px 25px 23px; }
.filters > div { min-width: 0; }
.filters > div:has(> input), .filters > div:has(> select) { margin-bottom: 0; }
.filters .search-field { grid-column: span 3; }
.filters .people-field, .filters .filter-actions { grid-column: span 2; }
.filters .filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.filters input, .filters select, .filters .button, .filters .filter-reset { min-height: 44px; }
.filters .filter-reset { display: inline-flex; align-items: center; }
label { display: block; color: #354c66; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.filters label { font-size: 10px; color: var(--muted); font-weight: 500; margin-bottom: 5px; }
input, select, textarea { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid #dce3ed; background: #fff; color: var(--ink); border-radius: 7px; min-width: 0; font-size: 12px; }
fieldset { min-width: 0; max-width: 100%; }
input::placeholder, textarea::placeholder { color: #8b99ab; }
textarea { resize: vertical; min-height: 105px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal); }
input[type="file"] { padding: 9px; font-size: 10px; background: #f7f9fc; }
.filter-reset { font-size: 11px; padding: 10px 0 10px 5px; }
.table-scroll { overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline-offset: -3px; }
.table-scroll table { min-width: 640px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
th { background: #fafbfd; padding: 12px 20px; font-size: 9px; text-transform: uppercase; letter-spacing: .6px; color: #6b7c92; font-weight: 600; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 18px 20px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
tbody tr:hover { background: #fcfdfd; }
td small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.ticket-title { font-size: 12px; font-weight: 650; display: block; max-width: 320px; overflow-wrap: anywhere; }
.ticket-reference { display: block; color: #60728b; font-size: 10px; margin-top: 5px; }
.ticket-reference span { color: #7d8ca1; }
.table-main { display: block; font-weight: 550; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 5px; font-size: 10px; line-height: 1.45; white-space: nowrap; font-weight: 550; }
.status-open { color: #2754a6; background: #eaf0fe; }
.status-in_progress { color: #6c46a7; background: #f2ebfd; }
.status-waiting { color: #875b09; background: #fff5d9; }
.status-resolved { color: #08725f; background: #e4f6ee; }
.status-closed { color: #5e6c80; background: #edf1f5; }
.priority { font-size: 10px; white-space: nowrap; }
.priority::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #8496af; margin-right: 6px; }
.priority-low::before { background: #5d91c9; }
.priority-normal::before { background: #249d90; }
.priority-high::before { background: #bd820c; }
.priority-urgent::before { background: #d7475e; }
.person { display: inline-flex; gap: 7px; align-items: center; }
.small-avatar { width: 25px; height: 25px; border-radius: 8px; font-size: 10px; }
.pagination { padding: 17px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; gap: 7px; }
.empty-state { padding: 55px 25px; text-align: center; }
.empty-state p { font-size: 12px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; height: 54px; width: 54px; margin: 0 auto 16px; border-radius: 17px; background: #edf7f6; font-size: 28px; color: var(--teal); }
.info-strip { display: flex; gap: 17px; align-items: center; background: #eaf4f5; border: 1px solid #dcecee; border-radius: 10px; padding: 19px 23px; margin: 24px 0; color: #2a5862; }
.info-strip strong { font-size: 11px; font-weight: 600; }
.info-strip p { font-size: 11px; margin: 3px 0 0; color: #53747c; }
.info-symbol { font-size: 22px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; color: #7c8a9e; font-size: 9px; margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--line); }
.back-link { display: inline-block; font-size: 11px; color: var(--muted); margin-bottom: 22px; }
.form-panel { max-width: 760px; padding: 30px; }
form > div:has(> input), form > div:has(> select), form > div:has(> textarea) { margin-bottom: 20px; }
.helptext { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.helptext ul { padding-left: 17px; }
.errorlist { list-style: none; padding: 10px 13px; background: #fceef0; border: 1px solid #f4d7dd; border-radius: 7px; color: #a02c43; font-size: 12px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 24px; }
.message { border: 1px solid #c2e7dc; color: #17634e; background: #eaf8f1; border-radius: 9px; padding: 13px 17px; font-size: 12px; margin-bottom: 20px; }
.message.error { background: #fceef0; border-color: #f4d7dd; color: #a02c43; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; }
.detail-main, .detail-aside { min-width: 0; }
.section-pad { padding: 25px; }
.prose { line-height: 1.9; font-size: 12px; overflow-wrap: anywhere; margin-top: 17px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title h2 { margin-bottom: 0; }
.ownership { margin: 0; }
.ownership dt { font-size: 10px; color: var(--muted); margin: 18px 0 6px; }
.ownership dd { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 12px; }
.timeline { list-style: none; margin: 22px 0 0 7px; padding: 0 0 0 24px; border-left: 1px solid #dce7ea; }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline-dot { width: 9px; height: 9px; background: #25a99f; border: 3px solid #def3ee; box-sizing: content-box; border-radius: 50%; position: absolute; left: -32px; top: 3px; }
.timeline-header { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.timeline-header time { color: var(--muted); font-size: 9px; }
.event-label { color: var(--muted); font-size: 10px; }
.comment-body { padding: 14px 16px; margin-top: 10px; background: #f5f7fb; border: 1px solid #edf0f5; border-radius: 0 10px 10px 10px; font-size: 12px; overflow-wrap: anywhere; }
.event-evidence { font-size: 11px; padding-top: 7px; overflow-wrap: anywhere; }
.change-log { font-size: 10px; background: #f7f9fc; padding: 10px 12px; border-radius: 7px; margin-top: 8px; overflow-wrap: anywhere; }
.change-log span { color: var(--teal); font-weight: 600; margin-right: 7px; }
.followup-form { border-top: 1px solid var(--line); padding-top: 23px; }
.attachments { list-style: none; padding: 0; margin: 0 0 20px; }
.attachments li { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.attachments li > div { min-width: 0; }
.attachments a { font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.attachments small { color: var(--muted); font-size: 9px; display: block; margin-top: 3px; }
.file-icon { font-size: 23px; color: var(--teal); }
.upload-form .helptext { font-size: 10px; }
.aside-note { padding: 0 20px; color: var(--muted); font-size: 11px; }
.aside-note > span { color: var(--teal); font-size: 22px; display: block; margin-bottom: 8px; }
.aside-note strong { color: #395c75; font-size: 12px; }
.aside-note p { margin-top: 6px; }
.role-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 25px; }
.role-guide > div { padding: 20px; background: #eaf0f8; border-radius: 10px; }
.role-guide strong { font-size: 12px; }
.role-guide p { font-size: 11px; margin: 5px 0 0; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.catalog-row { display: flex; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.check-label { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; margin: 0; font-size: 10px; }
.audit-details { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 600px; font-size: 10px; }
details summary { cursor: pointer; color: var(--muted); font-size: 10px; margin-top: 4px; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.login-story { position: relative; overflow: hidden; background: radial-gradient(ellipse at 100% 80%, #12656b75, transparent 65%), var(--navy-deep); padding: 45px 60px 25px; display: flex; flex-direction: column; color: white; }
.login-story::after { content: ""; position: absolute; border: 1px solid #4ab8b321; width: 550px; height: 550px; border-radius: 50%; right: -310px; bottom: -170px; box-shadow: 0 0 0 70px #4ab8b309, 0 0 0 140px #4ab8b306; pointer-events: none; }
.login-story-content { margin: auto 0; position: relative; z-index: 1; padding: 40px 0; }
.login-story .eyebrow { color: #79d4cc; font-size: 9px; }
.login-story h1 { font-size: clamp(36px, 4.3vw, 64px); letter-spacing: -2.6px; line-height: 1.12; margin: 24px 0; }
.login-story-content > p { color: #a9bed5; font-size: 14px; line-height: 1.9; }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 42px; }
.story-tags span { padding: 6px 12px; border: 1px solid #ffffff22; border-radius: 25px; font-size: 10px; color: #c8d9e9; }
.story-card { display: flex; gap: 14px; padding: 20px; max-width: 360px; background: #ffffff08; border: 1px solid #ffffff16; border-radius: 13px; }
.story-check { display: grid; place-items: center; align-self: start; background: #25d1c51c; color: var(--turquoise); border-radius: 9px; width: 30px; height: 30px; }
.story-card strong { font-size: 12px; }
.story-card p { font-size: 11px; color: #abc1d6; margin: 5px 0 0; }
.login-story-footer { font-size: 10px; color: #8ca5c1; margin: 25px 0 0; }
.login-form-panel { background: #fff; padding: 60px; display: grid; place-items: center; }
.login-form-inner { width: 100%; max-width: 365px; }
.login-shell > *, .page-heading > div, .stat > div, .info-strip > div { min-width: 0; }
.login-form-inner h2 { font-size: 30px; letter-spacing: -.9px; margin-bottom: 12px; }
.login-form-inner > p { font-size: 12px; margin-bottom: 30px; }
.login-form-inner .eyebrow { font-size: 8px; }
.login-form-inner .language-selector { margin: 0 0 28px; }
.login-form-inner .language-selector label { font-size: 11px; }
.login-form-inner > form:not(.language-selector) { margin-top: 35px; }
.login-form-inner > form:not(.language-selector) input { min-height: 46px; }
.login-form-inner > form:not(.language-selector) .button { margin-top: 8px; min-height: 47px; justify-content: space-between; }
.login-security { display: flex; align-items: center; justify-content: center; gap: 7px; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 30px; font-size: 10px; color: var(--teal); }
.login-security + p { text-align: center; margin-top: 14px; font-size: 10px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 12px; background: white; color: var(--navy); }
@media (min-width: 1600px) { .main-content { padding-top: 48px; } }
@media (max-width: 1250px) {
  .sidebar { width: 220px; padding-left: 16px; padding-right: 16px; }
  .main-column { margin-left: 220px; width: calc(100% - 220px); }
  .main-content { padding: 30px 24px 20px; }
  .topbar { padding: 0 24px; }
  .stat { padding: 18px; }
  .stat-icon { width: 28px; height: 28px; font-size: 16px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; }
  .login-story { padding: 35px; }
}
@media (max-width: 1200px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters .search-field { grid-column: 1 / -1; }
  .filters .people-field, .filters .filter-actions { grid-column: auto; }
}
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .settings-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: start; }
  .page-heading > .button { margin-top: 28px; }
  .login-form-panel { padding: 35px; }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; padding: 18px; overflow: visible; }
  .sidebar .brand { margin: 0 0 12px; font-size: 23px; }
  .sidebar .brand-mark { width: 36px; height: 36px; font-size: 25px; }
  .navigation-toggle { display: block; }
  .navigation-toggle-label { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; margin: 0; border: 1px solid #ffffff35; border-radius: 8px; color: white; font-size: 14px; cursor: pointer; }
  .navigation-toggle:focus-visible + .navigation-toggle-label { outline: 3px solid var(--turquoise); outline-offset: 3px; }
  .navigation-toggle:checked + .navigation-toggle-label { background: #25d1c51c; }
  .navigation-toggle:not(:checked) ~ .navigation-content { display: none; }
  .navigation-content { padding-top: 16px; }
  .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .sidebar nav .nav-label { grid-column: 1 / -1; }
  .sidebar nav a { min-height: 44px; font-size: 14px; margin: 0; padding: 10px; }
  .sidebar-note { margin: 0 0 18px; padding-top: 18px; }
  .nav-label { font-size: 11px; }
  .profile { border: 0; padding-top: 10px; }
  .profile .avatar { width: 25px; height: 25px; font-size: 10px; }
  .profile strong, .profile small { font-size: 12px; }
  .account-actions { margin-top: 9px; font-size: 14px; gap: 16px; flex-wrap: wrap; }
  .account-actions a, .account-actions button { display: inline-flex; align-items: center; min-height: 44px; }
  .main-column { width: 100%; margin-left: 0; }
  .topbar { min-height: 49px; height: auto; padding: 12px 18px; gap: 8px; flex-wrap: wrap; }
  .main-content { padding: 25px 16px 18px; }
  .page-heading { display: block; margin-bottom: 24px; }
  .page-heading > .button { margin-top: 18px; }
  .stat { padding: 16px; }
  .stats { gap: 12px; margin-bottom: 22px; }
  .stat strong { font-size: 27px; }
  .panel-heading, .section-pad { padding: 20px; }
  .panel-heading, .panel-heading h2, .section-title { flex-wrap: wrap; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 20px 20px; }
  .role-guide { grid-template-columns: 1fr; gap: 10px; }
  .role-guide > div { padding: 14px 18px; }
  .form-panel { padding: 22px; }
  .page-footer { flex-direction: column; font-size: 12px; }
  .timeline-header { flex-wrap: wrap; gap: 1px; }
  .timeline-header time { flex-basis: 100%; }
  .catalog-row { flex-wrap: wrap; }
  .catalog-row > input:not([type="hidden"]) { flex: 1 1 100%; min-width: 0; }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { padding: 26px; }
  .login-story .brand { margin-bottom: 0; }
  .login-story-content { padding: 28px 0 8px; }
  .login-story h1 { font-size: 37px; margin: 15px 0; }
  .story-tags { margin: 18px 0 15px; }
  .story-card, .login-story-footer { display: none; }
  .login-form-panel { padding: 35px 26px; }
  .login-form-inner { max-width: none; }
  input, select, textarea, input[type="file"] { font-size: 16px; min-height: 44px; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 20px; flex-shrink: 0; }
  label, .filters label, .helptext, .small, .muted.small { font-size: 12px; }
  .check-label, form label:has(input[type="checkbox"]), form label:has(input[type="radio"]) { display: flex; align-items: center; gap: 10px; min-height: 44px; white-space: normal; }
  .button, .button.compact { min-height: 44px; font-size: 14px; }
  .back-link, .filter-reset { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
  .form-actions > .button { flex: 1 1 140px; }
  .pagination, .pagination > div { flex-wrap: wrap; font-size: 12px; }
  .prose, .comment-body { font-size: 14px; }
  .ticket-meta, .ownership dd, .attachments a, .attachments small, .timeline-header, .event-label, .event-evidence, .change-log { font-size: 12px; }
  .timeline-header time, .ownership dt, .login-security, .secure-label, .audit-details, details summary { font-size: 12px; }
  details summary { min-height: 44px; padding-block: 10px; }
  .ownership dd { flex-wrap: wrap; }
  table { font-size: 13px; }
  th { font-size: 11px; }
  td small, .ticket-reference { font-size: 12px; }
  .ticket-title { font-size: 14px; }
  td a { display: inline-block; padding-block: 10px; }
  .badge, .priority { max-width: 100%; white-space: normal; font-size: 12px; }
  .info-strip { padding: 16px; gap: 12px; align-items: flex-start; }
  .info-strip p, .info-strip strong { font-size: 12px; }
}
@media (max-width: 520px) {
  .sidebar nav, .stats { grid-template-columns: minmax(0, 1fr); }
  .main-content { padding: 24px 12px 18px; }
  .panel-heading, .section-pad, .form-panel { padding: 16px; }
  .filters { grid-template-columns: minmax(0, 1fr); padding: 0 16px 16px; }
  .filters .filter-actions > .button { flex: 1; }
  .login-story { padding: 24px; }
  .login-story h1 { font-size: 32px; letter-spacing: -1px; }
  .login-form-panel { padding: 28px 20px; }
  .language-controls > select, .language-controls > .button { flex: 1 1 120px; }
}
@media (prefers-reduced-motion: no-preference) { a, button { transition: background-color .15s, color .15s; } }
@media print { .sidebar, .topbar, .followup-form, .upload-form, .page-footer { display: none; } .main-column { margin: 0; width: 100%; } }
