/* Fixentra AI — portal theme. Colors and type come from the approved brand tokens
   (assets/brand/fixentra-theme.css); neutrals and the danger color are supporting values. */
:root {
  --bg: var(--fixentra-cloud-gray, #E5EAF5);
  --surface: #ffffff;
  --surface-muted: #f5f7fb;
  --text: var(--fixentra-midnight-navy, #0B1F4B);
  --text-secondary: #475867;
  --link: var(--fixentra-blue, #2563FF);          /* 4.9:1 on white */
  --link-hover: #1a4fd6;
  --border: #cdd5e5;
  --divider: var(--fixentra-cloud-gray, #E5EAF5);
  --nav-active: var(--fixentra-blue, #2563FF);
  --nav-hover: var(--fixentra-cloud-gray, #E5EAF5);
  --primary: var(--fixentra-midnight-navy, #0B1F4B);
  --primary-hover: #13306e;
  --danger: #d72d30;
  --hero-top: var(--fixentra-midnight-navy, #0B1F4B);
  --hero-bottom: var(--fixentra-blue, #2563FF);
  --shadow: 0 2px 4px 0 rgba(11, 31, 75, 0.05), 0 2px 18px 0 rgba(11, 31, 75, 0.1);
  --radius: 4px;
  --font: var(--fixentra-font, "Inter", system-ui, -apple-system, sans-serif), "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 14px/1.5 var(--font); color: var(--text); background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 20; height: 66px; padding: 4px 0;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.header-left { display: flex; align-items: center; padding-left: 20px; height: 35px; }
.menu-trigger {
  width: 32px; height: 32px; padding: 6px; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #000;
}
.menu-trigger img { width: 20px; height: 20px; }
.menu-white { display: none; }
.page-home .menu-white { display: block; }
.page-home .menu-dark { display: none; }
.brand { display: inline-flex; align-items: center; margin-left: 8px; color: #000; }
.brand:hover { color: #000; }
/* Approved logo: height-driven, width follows the 3:1 artwork (never stretched or cropped). */
.brand-logo { display: block; height: 56px; width: auto; flex: none; }
.nowrap { white-space: nowrap; }
.brand-mark { display: none; width: 32px; height: 32px; flex: none; border-radius: 7px; }
.brand-name { margin-left: 8px; font-size: 28px; font-weight: 600; line-height: 33px; white-space: nowrap; letter-spacing: -0.2px; }
.header-right { display: flex; align-items: center; gap: 8px; padding-right: 12px; }
.header-search { position: relative; width: 300px; height: 36px; margin-right: 0; }
.header-search svg { position: absolute; left: 8px; top: 11px; width: 14px; height: 14px; color: var(--text-secondary); }
.header-search input {
  width: 100%; height: 36px; padding: 0 8px 0 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-size: 16px; outline: none;
}
.header-search input:focus { border-color: var(--link); }
.header-search-btn { display: none; }
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(#fff, #f5f7f9);
  color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.hbtn:hover { color: var(--text); background: #f5f7f9; }
.user-chip { font-weight: 500; margin-right: 4px; white-space: nowrap; }

/* home: header floats over the hero, links in white */
.page-home .site-header { position: absolute; top: 0; left: 0; right: 0; height: 64px; background: transparent; border: 0; }
.page-home .menu-trigger, .page-home .brand, .page-home .brand:hover { color: #fff; }
/* The approved logo has dark lettering and no reversed variant: give it a light panel on the dark hero. */
.page-home .brand { background: #fff; border-radius: 10px; padding: 0 10px; box-shadow: 0 1px 6px rgba(11, 31, 75, 0.25); }
.page-home .header-search { display: none; }
.page-home .hbtn { height: 40px; border: 0; background: none; color: #fff; padding: 0 12px; }
.page-home .header-right { gap: 8px; padding-right: 12px; }
.page-home .user-chip { color: #fff; }
.page-home .header-search-btn { display: none !important; }

/* ---------- side menu (drawer) ---------- */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: 325px; padding: 16px;
  background: var(--surface); box-shadow: 2px 0 8px rgba(18, 51, 76, 0.08);
  transform: translateX(-100%); visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li + li { margin-top: 8px; }
.drawer a {
  display: flex; align-items: center; height: 56px; padding: 0 16px; border-radius: var(--radius);
  color: #000; font-weight: 700; font-size: 14px;
}
.drawer a:hover { background: var(--nav-hover); color: #000; }
.drawer a.active { background: var(--nav-active); color: #fff; }
.drawer svg { width: 28px; height: 28px; margin-right: 16px; flex: none; }
.drawer-close { display: none; }

/* ---------- main + footer ---------- */
main { flex: 1 0 auto; min-height: calc(100vh - 56px); background: var(--bg); }
.page-home main { min-height: calc(100vh - 56px); }
.site-footer {
  flex: none; background: var(--surface); padding: 16px; text-align: center; font-size: 14px; line-height: 24px;
}
.site-footer a { border-bottom: 1px dashed var(--link); }
.site-footer .sep { margin: 0 8px; }

/* ---------- home hero ---------- */
.hero {
  position: relative; overflow: hidden; height: 372px; padding: 108px 0 20px; text-align: center;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art .art-left { position: absolute; left: 0; top: 0; width: 300px; height: 372px; }
.hero-art .art-right { position: absolute; right: 0; top: 0; width: 320px; height: 372px; }
.hero h2 { position: relative; margin: 8px 0 6px; font-size: 40px; line-height: 48px; font-weight: 700; color: #fff; }
.hero-tagline { position: relative; margin: 0 0 22px; font-size: 16px; line-height: 22px; font-weight: 500; color: #fff; opacity: 0.92; letter-spacing: 0.2px; }
.auth-tagline { margin: -8px 0 24px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.hero-search { position: relative; max-width: 680px; height: 60px; margin: 0 auto; }
.hero-search svg { position: absolute; left: 16px; top: 18px; width: 24px; height: 24px; color: var(--text-secondary); }
.hero-search input {
  width: 100%; height: 60px; padding: 0 16px 0 49px; border: 0; border-radius: var(--radius);
  background: var(--surface); font-size: 20px; color: var(--text); outline: none; box-shadow: var(--shadow);
}
.hero-search input::placeholder { color: var(--text-secondary); }

.cards { display: flex; justify-content: center; gap: 32px; padding: 64px 72px 48px; }
.card {
  display: flex; align-items: center; width: 400px; min-height: 137px; padding: 24px 38px 24px 24px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text);
}
.card:hover { color: var(--text); box-shadow: 0 2px 4px rgba(18, 51, 76, 0.08), 0 4px 22px rgba(18, 51, 76, 0.16); }
.card-icon { width: 64px; height: 64px; flex: none; margin-right: 16px; }
.card h3 { font-size: 16.38px; line-height: 19px; font-weight: 700; }
.card p { margin-top: 8px; font-size: 14px; line-height: 21px; }

/* ---------- inner pages ---------- */
.panel { margin: 16px; min-height: calc(100% - 32px); background: var(--surface); border-radius: var(--radius); }
.page-solutions main, .page-portal main { display: flex; flex-direction: column; }
.page-solutions .panel, .page-portal .panel { flex: 1; display: flex; flex-direction: column; }
.panel-header { background: var(--surface-muted); padding: 0 24px 19px; }
.breadcrumbs { padding-top: 8px; height: 43px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; font-size: 16px; line-height: 27px; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li + li::before {
  content: ''; width: 5px; height: 5px; margin: 2px 11px 0 9px; border-right: 1.5px solid var(--text-secondary);
  border-top: 1.5px solid var(--text-secondary); transform: rotate(45deg);
}
.panel-title { display: flex; align-items: flex-start; }
.panel-title svg { width: 48px; height: 52px; flex: none; margin-right: 16px; }
.panel-title h2 { font-size: 22px; line-height: 25px; font-weight: 700; margin-top: 0; }
.panel-title p { margin-top: 4px; color: var(--text-secondary); font-size: 14px; line-height: 21px; }

.kb-body { flex: 1; display: flex; }
.kb-aside { width: 344px; flex: none; padding: 16px 24px; border-right: 1px solid var(--divider); }
.kb-aside ul { list-style: none; margin: 0; padding: 0; }
.kb-aside a {
  display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 12px 0 24px;
  border-radius: var(--radius); color: var(--text); font-weight: 700;
}
.kb-aside a.selected { background: var(--surface-muted); color: var(--link); }
.kb-aside a::after {
  content: ''; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg); margin-right: 6px;
}
.kb-content { flex: 1; min-width: 0; padding: 24px 16px 24px 16px; }
.kb-content > h3 { padding: 0 16px; font-size: 14px; line-height: 16px; font-weight: 600; color: var(--text-secondary); }
.kb-mobile-select { display: none; }
.folder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 492px)); gap: 16px; padding: 16px; }
.folder-card {
  display: flex; align-items: flex-start; min-height: 80px; padding: 22px 24px; border: 1px solid var(--divider);
  border-radius: var(--radius); color: var(--text); background: var(--surface);
}
.folder-card:hover { color: var(--text); box-shadow: var(--shadow); }
.folder-card svg { width: 16px; height: 16px; margin: 1px 11px 0 1px; flex: none; color: var(--link); }
.folder-card h4 { font-size: 16px; line-height: 19px; font-weight: 600; }
.folder-card p { margin-top: 4px; color: var(--text-secondary); font-size: 13px; }

.content-pad { padding: 24px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--divider); }
.list a { display: block; padding: 14px 0; color: var(--text); }
.list a:hover { color: var(--link); }
.list .meta { color: var(--text-secondary); font-size: 12px; }
.article-body { max-width: 760px; font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.empty { color: var(--text-secondary); padding: 24px 0; }

/* buttons + forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 24px;
  border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(#fff, #f5f7f9);
  color: var(--text); font-weight: 700; cursor: pointer; white-space: nowrap;
}
.btn:hover { color: var(--text); }
.btn-primary { background: var(--primary); border-color: var(--primary-hover); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.req { color: var(--danger); margin-left: 2px; vertical-align: super; font-size: 10px; }
.field input, .field textarea, .field select {
  width: 100%; height: 34px; padding: 0 8px; border: 1px solid #7b8ea0; border-radius: var(--radius); background: #fff; outline: none;
}
.field textarea { height: 228px; padding: 8px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
.field input[readonly] { background: var(--surface-muted); }
.form-error { color: var(--danger); margin: -8px 0 16px; min-height: 0; }
.form-ok { background: #daf3ee; border: 1px solid #9ddfd0; color: #00795c; padding: 12px 16px; border-radius: var(--radius); }

/* Status pills come from the shared design system (assets/ui.css). */

/* report an issue */
.report { flex: 1; display: flex; }
.report-main { flex: 1; min-width: 0; margin: 16px 16px 16px; background: var(--surface); border-radius: var(--radius); display: flex; flex-direction: column; }
.report-head { padding: 0 24px 22px; border-bottom: 1px solid var(--divider); }
.report-head .row { display: flex; justify-content: space-between; align-items: flex-end; }
.report-head h2 { font-size: 21px; font-weight: 700; line-height: 25px; }
.report-head small { font-size: 12px; }
.report-form { padding: 24px 28px; max-width: 856px; }
.report-actions { display: flex; justify-content: flex-end; gap: 20px; padding: 24px 16px 24px; margin-top: auto; }
.report-actions .btn { height: 34px; width: 96px; padding: 0; }
.report-side { width: 360px; flex: none; padding: 48px 24px; text-align: center; }
.report-side svg { width: 160px; height: 170px; }
.report-side h3 { margin-top: 24px; font-size: 14px; font-weight: 700; }
.report-side p { margin-top: 12px; color: var(--text-secondary); }
.suggest-list { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; }
.suggest-list li { background: #fff; border-radius: var(--radius); margin-bottom: 8px; box-shadow: var(--shadow); }
.suggest-list a { display: block; padding: 10px 12px; font-weight: 500; }
/* AI/assistant labels: Intelligence Violet as a marker, navy text for small-text contrast. */
.assist-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.4px; }
.assist-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fixentra-intelligence-violet, #8B5CF6); }

/* ticket view */
.thread { list-style: none; padding: 0; margin: 16px 0; max-width: 820px; }
.thread li { border: 1px solid var(--divider); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; }
.thread .who { font-weight: 700; }
.thread .when { color: var(--text-secondary); font-size: 12px; margin-left: 8px; }
.thread .body { margin-top: 6px; white-space: pre-wrap; }
.thread li.from-agent { background: #f6f7f8; }
.ticket-table { width: 100%; border-collapse: collapse; }
.ticket-table th, .ticket-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--divider); }
.ticket-table th { font-size: 12px; color: var(--text-secondary); font-weight: 700; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs button { border: 1px solid var(--border); background: #fff; border-radius: 16px; padding: 4px 14px; cursor: pointer; }
.tabs button.on { background: var(--text); color: #fff; border-color: var(--text); }

/* signup */
.auth-wrap { padding: 40px 16px; }
.auth-card { max-width: 720px; margin: 0 auto; padding: 60px 132px; background: var(--surface); border-radius: var(--radius); }
.auth-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.auth-card .field { margin-bottom: 32px; }
.auth-card .actions { display: flex; gap: 12px; margin-top: 56px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  /* Tablet: keep the approved logo at full size and give the header buttons room. */
  .header-search { width: 160px; }
  .cards { flex-direction: column; align-items: center; padding: 64px 72px 80px; }
  .report-side { display: none; }
}
@media (max-width: 767px) {
  .site-header { height: 72px; }
  .header-left { padding-left: 16px; }
  .menu-trigger { width: 48px; height: 48px; padding: 14px; justify-content: flex-start; }
  /* Narrow screens: the approved app icon instead of the wide logo. */
  .brand { margin-left: 2px; }
  .brand-logo { display: none; }
  .brand-mark { display: block; }
  .page-home .brand { padding: 4px; border-radius: 10px; }
  .header-search { display: none; }
  .header-search-btn { display: inline-flex; width: 36px; height: 36px; border: 0; background: none; padding: 6px; cursor: pointer; color: #000; }
  .header-search-btn svg { width: 24px; height: 24px; }
  .header-right { gap: 2px; padding-right: 8px; }
  .hbtn { padding: 0 15px; }
  .page-home .site-header { height: 72px; }
  .page-home .header-right { gap: 8px; padding-right: 12px; }
  .page-home .hbtn { padding: 0 8px; }
  .hero { height: 316px; padding: 74px 16px 0; }
  .hero-art .art-left { width: 260px; height: 316px; }
  .hero-art .art-right { width: 200px; height: 316px; }
  .hero h2 { margin: 0 0 4px; font-size: 24px; line-height: 29px; }
  .hero-tagline { margin: 0 0 14px; font-size: 13px; line-height: 18px; }
  .hero-search { height: 42px; }
  .hero-search svg { left: 12px; top: 13px; width: 16px; height: 16px; }
  .hero-search input { height: 42px; padding-left: 33px; font-size: 14px; }
  .cards { padding: 16px 16px 48px; gap: 32px; }
  .card { width: 100%; min-height: 136px; padding: 16px 16px 16px 16px; }
  .card-icon { margin-right: 12px; }
  .card h3 { font-size: 19px; line-height: 23px; }
  .card p { font-size: 14px; }
  main { min-height: calc(100vh - 112px); }
  .panel { margin: 16px 8px; }
  .panel-header { padding: 0 12px 19px; }
  .kb-body { flex-direction: column; }
  .kb-aside { display: none; }
  .kb-content { padding: 12px 12px; }
  .kb-content > h3 { display: none; }
  .kb-mobile-select { display: block; width: 100%; height: 30px; border: 1px solid #767676; border-radius: 3px; background: #fff; font-size: 13px; color: #000; }
  .folder-grid { grid-template-columns: 1fr; padding: 16px 0; }
  .report-main { margin: 8px; }
  .report-head .row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .report-form { padding: 16px 12px; }
  .auth-card { padding: 32px 20px; }
  .ticket-table .hide-sm { display: none; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .kb-aside { width: 258px; padding: 16px 12px; }
}
.req-data { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; max-width: 820px; }
.req-data dt { font-weight: 700; text-transform: capitalize; }
.req-data dd { margin: 0; }
.folder-card p.assist-tag { margin-top: 6px; }
.mfa-banner { margin: 16px 16px 0; padding: 12px 16px; border-radius: var(--radius); background: #feecd5; border: 1px solid #fbc88c; color: #12344d; }
.page-home .mfa-banner { position: relative; z-index: 30; margin: 72px 16px 0; }
.sec-page { max-width: 760px; }
.sec-card { border: 1px solid var(--divider); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.sec-card h3 { font-size: 16px; margin-bottom: 8px; }
.sec-card .field { margin-bottom: 14px; }
.sec-secret code { display: inline-block; padding: 8px 12px; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; letter-spacing: 1px; }
.sec-codes { columns: 2; font-size: 15px; }

/* ---------- TASD-UX-001-R1: accessibility and self-service polish ---------- */
/* Clearly visible keyboard focus on every input (the brand blue ring from the design system). */
.header-search input:focus-visible, .hero-search input:focus-visible, .field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
.kb-mobile-select:focus-visible { border-color: var(--fx-primary, #2563FF); box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.28); outline: 2px solid transparent; }
.hero-search input:focus-visible { box-shadow: var(--shadow), 0 0 0 4px rgba(6, 214, 255, 0.55); }
.btn:focus-visible, .hbtn:focus-visible, .card:focus-visible, .folder-card:focus-visible, .drawer a:focus-visible { outline: 2px solid var(--fx-primary, #2563FF); outline-offset: 2px; }
.page-home .hbtn:focus-visible, .page-home .menu-trigger:focus-visible, .page-home .brand:focus-visible { outline-color: #fff; }
.btn { border-radius: 8px; font-weight: 600; }
.btn-primary { background: var(--fx-primary, #2563FF); border-color: var(--fx-primary, #2563FF); }
.btn-primary:hover { background: var(--fx-primary-hover, #1d4fd8); border-color: var(--fx-primary-hover, #1d4fd8); }
.panel { border-radius: 12px; }
.ticket-table td { vertical-align: middle; }
.ticket-table .fx-id { font-size: 13px; }
.tabs button { min-height: 32px; font-weight: 500; }
.tabs button:focus-visible { outline: 2px solid var(--fx-primary, #2563FF); outline-offset: 2px; }

/* Home: four self-service actions. */
.cards { flex-wrap: wrap; max-width: 1040px; margin: 0 auto; gap: 24px; }
.card { width: calc(50% - 12px); min-width: 300px; border-radius: 12px; transition: box-shadow 160ms ease; }
.card .card-cta { display: inline-block; margin-top: 10px; color: var(--link); font-weight: 600; font-size: 13px; }

/* Request tracking on the ticket page. */
.tracker { list-style: none; display: flex; margin: 4px 0 20px; padding: 0; max-width: 820px; counter-reset: step; }
.tracker li { position: relative; flex: 1; padding-top: 30px; font-size: 13px; color: var(--text-secondary); text-align: center; }
.tracker li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--border); font-weight: 700; font-size: 12px; color: var(--text-secondary); }
.tracker li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.tracker li:first-child::after { display: none; }
.tracker li.done::before { content: "✓"; background: var(--fx-success, #0b7a6d); border-color: var(--fx-success, #0b7a6d); color: #fff; }
.tracker li.done::after, .tracker li.current::after { background: var(--fx-teal, #14B8A6); }
.tracker li.current::before { border-color: var(--fx-primary, #2563FF); color: var(--fx-primary, #2563FF); box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.15); }
.tracker li.current { color: var(--text); font-weight: 600; }
.ticket-note { max-width: 820px; margin: 0 0 16px; }
.meta-grid { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 12px; font-size: 14px; align-items: center; }
/* My tickets: paging, search and sort (FIXENTRA-OPS-002). */
.mt-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mt-bar .tabs { margin-bottom: 0; }
.mt-search { display: flex; gap: 8px; }
.mt-search input { height: 34px; min-width: 240px; padding: 0 10px; border: 1px solid #7b8ea0; border-radius: 8px; font-size: 14px; }
.mt-search input:focus-visible { border-color: var(--fx-primary, #2563FF); box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.28); outline: 2px solid transparent; }
.mt-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0; color: var(--text-secondary); font-size: 13px; }
.mt-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.mt-controls label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; }
.mt-controls select { height: 30px; border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: 0 6px; }
.mt-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; color: var(--text-secondary); font-size: 13px; }
.mt-pages { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.mt-pages .btn { height: 30px; padding: 0 10px; min-width: 32px; }
@media (max-width: 767px) { .mt-search input { min-width: 0; flex: 1; } .mt-search { width: 100%; } }
/* Not Found page (served with HTTP 404). */
.not-found { max-width: 640px; margin: 24px auto; text-align: center; }
.not-found-code { font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -2px; background: var(--fx-gradient, linear-gradient(110deg, #06D6FF, #2563FF 62%, #8B5CF6)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.not-found h2 { font-size: 24px; margin-bottom: 8px; }
.not-found p { color: var(--text-secondary); }
.not-found-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0; padding: 0; }
.not-found-search { height: 44px; max-width: 520px; }
.not-found-search input { height: 44px; font-size: 15px; border: 1px solid var(--border); box-shadow: none; }
.not-found-search svg { top: 12px; width: 18px; height: 18px; }
.empty-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px 0; color: var(--text-secondary); }
@media (max-width: 767px) {
  .card { width: 100%; min-width: 0; }
  .tracker li { font-size: 11px; }
}
