:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182430;
  background: #f5f7f8;
  font-synthesis: none;
  --navy: #071523;
  --navy-soft: #10273b;
  --navy-light: #17344d;
  --gold: #c8941a;
  --gold-dark: #9b7010;
  --gold-pale: #fbf5e8;
  --paper: #ffffff;
  --canvas: #f5f7f8;
  --line: #e5e9ec;
  --line-dark: #d7dde1;
  --muted: #697783;
  --muted-light: #89949d;
  --green: #167250;
  --green-pale: #eaf7f1;
  --red: #a33b42;
  --red-pale: #fbeff0;
  --amber: #8a6211;
  --shadow-sm: 0 1px 2px rgba(7, 21, 35, .04), 0 8px 24px rgba(7, 21, 35, .04);
  --shadow-md: 0 18px 55px rgba(7, 21, 35, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
[hidden], .is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-body { background: var(--canvas); }
.app-frame { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 252px;
  padding: 25px 18px 20px;
  color: #fff;
  background: var(--navy);
  box-shadow: 10px 0 35px rgba(7, 21, 35, .08);
  overflow-y: auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 45px; height: 45px; object-fit: contain; flex: 0 0 auto; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.brand small { margin-top: 3px; color: rgba(255, 255, 255, .48); font-size: 9px; letter-spacing: .06em; }
.sidebar-nav { display: grid; gap: 4px; margin-top: 38px; }
.sidebar-nav p { margin: 22px 11px 7px; color: rgba(255, 255, 255, .35); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: rgba(255, 255, 255, .62); text-decoration: none; font-size: 11px; font-weight: 700; transition: color .2s ease, background .2s ease, transform .2s ease; }
.sidebar-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); transform: translateX(2px); }
.sidebar-nav a.is-active { color: #fff; background: rgba(200, 148, 26, .17); box-shadow: inset 2px 0 var(--gold); }
.nav-symbol { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 7px; font-size: 8px; font-weight: 900; }
.sidebar-nav a.is-active .nav-symbol { border-color: rgba(200, 148, 26, .45); color: #f0cc75; }
.sidebar-security { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 11px; background: rgba(255, 255, 255, .035); }
.security-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #3dbd82; box-shadow: 0 0 0 4px rgba(61, 189, 130, .12); }
.sidebar-security strong, .sidebar-security small { display: block; }
.sidebar-security strong { font-size: 9px; }
.sidebar-security small { margin-top: 3px; color: rgba(255, 255, 255, .4); font-size: 8px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 10px 5px; border-top: 1px solid rgba(255, 255, 255, .08); color: inherit; text-decoration: none; }
.avatar, .recipient-avatar { display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #f2d17d; font-weight: 900; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; font-size: 11px; }
.sidebar-profile strong, .sidebar-profile small { display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile strong { font-size: 10px; }
.sidebar-profile small { margin-top: 3px; color: rgba(255, 255, 255, .42); font-size: 8px; }

.app-content { min-height: 100vh; margin-left: 252px; padding-top: 68px; }
.topbar { position: fixed; z-index: 40; inset: 0 0 auto 252px; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); }
.topbar-title strong, .topbar-title small { display: block; }
.topbar-title strong { color: var(--navy); font-size: 12px; }
.topbar-title small { margin-top: 3px; color: var(--muted-light); font-size: 9px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-actions form { margin: 0; }
.header-action { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: #55636e; background: #fff; cursor: pointer; text-decoration: none; font-size: 9px; font-weight: 800; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.header-action:hover { border-color: #c6ced3; color: var(--navy); transform: translateY(-1px); }
.notification-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.menu-button { display: none; width: 37px; height: 37px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.menu-button span { display: block; height: 1.5px; margin: 4px 0; background: var(--navy); }

.page-shell { width: min(1220px, calc(100% - 54px)); margin: 0 auto; padding: 40px 0 64px; }
.narrow-page { width: min(760px, calc(100% - 38px)); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.split-heading { align-items: flex-end; }
.page-heading h1, .welcome-panel h1 { margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 47px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.page-heading p:last-child { max-width: 670px; margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.eyebrow { margin: 0 0 9px !important; color: var(--gold-dark) !important; font-size: 9px !important; font-weight: 900 !important; letter-spacing: .16em; text-transform: uppercase; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: 0 17px; border-radius: 10px; cursor: pointer; font-size: 10px; font-weight: 850; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button { border: 0; color: #fff; background: var(--navy); box-shadow: 0 8px 20px rgba(7, 21, 35, .13); }
.primary-button:hover { background: var(--navy-soft); transform: translateY(-1px); box-shadow: 0 11px 25px rgba(7, 21, 35, .16); }
.secondary-button { border: 1px solid var(--line-dark); color: var(--navy); background: #fff; }
.secondary-button:hover { border-color: #bcc5ca; transform: translateY(-1px); }
.button-link { width: max-content; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow-sm); }
.content-panel { padding: 21px; }

.password-field { position: relative; display: block; width: 100%; }
.password-field > input { width: 100%; padding-right: 45px !important; }
.password-view-toggle { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; transform: translateY(-50%); transition: color .18s ease, background .18s ease; }
.password-view-toggle:hover, .password-view-toggle:focus-visible, .password-view-toggle.is-visible { color: var(--navy); background: #f1f4f5; outline: none; }
.password-view-toggle:focus-visible { box-shadow: 0 0 0 2px rgba(200,148,26,.28); }
.password-view-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.welcome-panel { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 28px 30px; overflow: hidden; border: 1px solid rgba(200, 148, 26, .22); border-radius: 18px; background: radial-gradient(circle at 88% 15%, rgba(200, 148, 26, .17), transparent 18rem), linear-gradient(120deg, #fff 0%, #fff 64%, #fbf7ed 100%); box-shadow: var(--shadow-sm); }
.welcome-panel p:last-child { max-width: 660px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.welcome-actions { display: flex; gap: 9px; flex: 0 0 auto; }
.metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 11px; margin-top: 14px; }
.metric-card { position: relative; min-width: 0; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.metric-card:hover { border-color: #d4dade; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7, 21, 35, .07); }
.metric-card:after { content: ""; position: absolute; inset: auto -14px -24px auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(200, 148, 26, .06); }
.metric-label, .metric-card small { display: block; color: var(--muted); font-size: 9px; }
.metric-card strong { display: block; margin: 10px 0 4px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; letter-spacing: -.03em; }
.storage-card strong { font-size: 22px; }
.system-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid #163047; border-radius: 14px; color: #fff; background: #173149; }
.system-strip div { padding: 16px 19px; background: var(--navy); }
.system-strip span, .system-strip strong { display: block; }
.system-strip span { color: rgba(255, 255, 255, .46); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.system-strip strong { margin-top: 7px; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 14px; margin-top: 14px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.section-title span, .section-title h2 { display: block; }
.section-title > div > span { color: var(--muted-light); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.section-title h2 { margin: 3px 0 0; color: var(--navy); font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.section-title > a { color: var(--gold-dark); font-size: 9px; font-weight: 850; text-decoration: none; }
.count-pill { display: grid !important; place-items: center; min-width: 27px; height: 27px; padding: 0 7px; border-radius: 999px; color: var(--gold-dark); background: var(--gold-pale); font-size: 9px; font-weight: 900; }
.recent-file-list, .notification-list, .timeline-list { display: grid; }
.recent-file { display: grid; grid-template-columns:auto minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 60px; padding: 9px 0; border-bottom: 1px solid #edf0f1; }
.recent-file:last-child, .notification-item:last-child { border-bottom: 0; }
.file-type { display: grid; place-items: center; width: 37px; height: 42px; flex: 0 0 auto; border: 1px solid #dce3e6; border-radius: 9px; color: var(--navy); background: #f4f7f8; font-size: 8px; font-weight: 900; }
.recent-file strong, .recent-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-file strong { color: var(--navy); font-size: 10px; }
.recent-file small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.recent-file > a { color: var(--gold-dark); font-size: 8px; font-weight: 900; text-decoration: none; }
.notification-item { display: flex; align-items: flex-start; gap: 11px; min-height: 57px; padding: 11px 2px; border-bottom: 1px solid #edf0f1; text-decoration: none; transition: background .2s ease; }
.notification-item:hover { background: #fafbfb; }
.event-marker { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; }
.marker-gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(200, 148, 26, .1); }
.marker-green { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 114, 80, .1); }
.notification-item strong, .notification-item small { display: block; }
.notification-item strong { color: var(--navy); font-size: 9px; line-height: 1.45; }
.notification-item small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.empty-compact { display: grid; gap: 5px; padding: 34px 10px; text-align: center; }
.empty-compact strong { color: var(--navy); font-size: 11px; }
.empty-compact span { color: var(--muted); font-size: 9px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
.quick-actions > a { display: flex; align-items: center; gap: 15px; min-height: 82px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.quick-actions > a:hover { border-color: #d2d9dd; transform: translateY(-2px); }
.quick-actions > a > span { color: var(--gold); font-family: Georgia, serif; font-size: 17px; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions strong { color: var(--navy); font-size: 10px; }
.quick-actions small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.4; }

.file-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 14px; }
.file-summary-grid article { display: flex; align-items: center; justify-content: space-between; min-height: 67px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.file-summary-grid span { color: var(--muted); font-size: 9px; }
.file-summary-grid strong { color: var(--navy); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.file-manager { overflow: hidden; }
.file-toolbar { display: grid; gap: 14px; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.scope-tabs { display: flex; align-items: center; gap: 4px; }
.scope-tabs button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 9px; font-weight: 850; }
.scope-tabs button:hover { color: var(--navy); background: #f5f7f8; }
.scope-tabs button.is-active { color: var(--navy); background: var(--gold-pale); box-shadow: inset 0 0 0 1px #eddfbc; }
.file-filters { display: grid; grid-template-columns: minmax(210px, 1fr) repeat(3, minmax(115px, .28fr)); gap: 8px; }
.file-filters label { display: grid; gap: 5px; }
.file-filters label > span { color: var(--muted-light); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.file-filters input, .file-filters select { width: 100%; min-height: 38px; padding: 0 11px; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--navy); background: #fff; outline: none; font-size: 9px; }
.file-filters input:focus, .file-filters select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 148, 26, .11); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid #edf0f1; text-align: left; vertical-align: middle; }
th { color: #7e8a93; background: #fafbfb; font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
td strong, td > span, td small { display: block; }
td strong { color: var(--navy); font-size: 9px; }
td > span { font-size: 9px; }
td small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.file-cell { display: flex; align-items: center; gap: 11px; min-width: 230px; }
.file-cell > span:last-child { min-width: 0; }
.file-cell strong, .file-cell small { max-width: 270px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; width: max-content; padding: 6px 8px; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.status-active { color: var(--green); background: var(--green-pale); }
.status-expired, .status-muted { color: #68747d; background: #eef1f2; }
.status-revoked { color: var(--red); background: var(--red-pale); }
.file-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 155px; }
.file-actions a, .danger-link, .text-button { padding: 0; border: 0; color: var(--gold-dark); background: transparent; cursor: pointer; font-size: 8px; font-weight: 900; text-decoration: none; }
.danger-link { color: var(--red); }
.file-actions form { margin: 0; }
.empty-state { padding: 60px 24px; text-align: center; }
.empty-state h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-weight: 500; }
.empty-state p { color: var(--muted); font-size: 10px; }
.empty-state a { color: var(--gold-dark); font-size: 9px; font-weight: 850; }

.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 15px; align-items: start; }
.form-panel { display: grid; gap: 18px; padding: 24px; }
.form-panel h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.form-panel label, .inline-form label, .auth-card label { display: grid; gap: 7px; color: #35434e; font-size: 9px; font-weight: 850; }
.form-panel input, .form-panel select, .inline-form input, .auth-card input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 9px; color: var(--navy); background: #fff; outline: none; }
.form-panel input:focus, .form-panel select:focus, .inline-form input:focus, .auth-card input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 148, 26, .11); }
label small { color: var(--muted); font-size: 8px; font-weight: 500; line-height: 1.5; }
.optional { color: var(--muted-light); font-size: 8px; font-weight: 500; }
.form-section { display: flex; align-items: center; gap: 11px; }
.form-step { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; color: var(--gold-dark); background: var(--gold-pale); font-size: 8px; font-weight: 900; }
.form-section p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.form-divider { height: 1px; background: var(--line); }
.upload-dropzone { display: grid !important; place-items: center; min-height: 175px; padding: 22px; border: 1px dashed #c8d0d5; border-radius: 12px; background: #fafbfb; cursor: pointer; text-align: center; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.upload-dropzone:hover, .upload-dropzone.is-dragging { border-color: var(--gold); background: #fdfaf3; transform: translateY(-1px); }
.upload-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-mark { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 9px; border-radius: 12px; color: #fff; background: var(--navy); font-size: 21px; font-weight: 300; }
.upload-dropzone strong { color: var(--navy); font-size: 10px; }
.upload-dropzone > span:not(.upload-mark):not(.selected-file) { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 500; }
.selected-file { margin-top: 10px; color: var(--gold-dark); font-size: 9px; font-weight: 850; }
.form-panel fieldset { margin: 0; padding: 0; border: 0; }
.recipient-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.recipient-option { display: flex !important; align-items: center; gap: 9px; min-height: 57px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.recipient-option:hover { border-color: #cdd5da; }
.recipient-option:has(input:checked) { border-color: #ddc889; background: var(--gold-pale); }
.recipient-option input { width: 14px; min-height: 14px; padding: 0; accent-color: var(--navy); }
.recipient-avatar { width: 29px; height: 29px; flex: 0 0 auto; font-size: 9px; }
.recipient-option strong, .recipient-option small { display: block; }
.recipient-option strong { font-size: 9px; }
.recipient-option small { margin-top: 3px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 3px; }
.upload-assurance { padding: 24px; border-radius: 15px; color: #fff; background: var(--navy); box-shadow: var(--shadow-md); }
.assurance-label { color: #e6c56b; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.upload-assurance h2 { margin: 10px 0 22px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; line-height: 1.05; }
.upload-assurance ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.upload-assurance li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.upload-assurance li > span { color: #e6c56b; font-family: Georgia, serif; font-size: 13px; }
.upload-assurance strong, .upload-assurance small { display: block; }
.upload-assurance strong { font-size: 9px; }
.upload-assurance small { margin-top: 4px; color: rgba(255, 255, 255, .43); font-size: 8px; line-height: 1.45; }
.upload-progress { padding: 13px; border: 1px solid #d9e0e3; border-radius: 10px; background: #fafbfb; }
.upload-progress > div { display: flex; justify-content: space-between; color: var(--navy); font-size: 8px; font-weight: 850; }
.progress-track { display: block; height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #e6eaec; }
.progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #e3bc5c); transition: width .18s ease; }
.form-error { padding: 11px 12px; border-radius: 9px; color: var(--red); background: var(--red-pale); font-size: 9px; line-height: 1.5; }

.activity-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; align-items: start; }
.timeline-item { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0f1; }
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot { width: 7px; height: 7px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px #ddc67f; }
.timeline-item strong, .timeline-item span, .timeline-item small { display: block; }
.timeline-item strong { color: var(--navy); font-size: 9px; }
.timeline-item div > span { margin-top: 3px; color: #50606c; font-size: 8px; }
.timeline-item small { margin-top: 3px; color: var(--muted-light); font-size: 8px; }

.admin-grid { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(410px, 1.3fr); gap: 14px; align-items: start; }
.staff-list { padding: 22px; }
.staff-list h2 { margin: 0 0 12px; color: var(--navy); font-family: Georgia, serif; font-weight: 500; }
.staff-list article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.staff-list article:last-child { border-bottom: 0; }
.staff-list article > div > strong, .staff-list article > div > span, .staff-list article > div > small { display: block; }
.staff-list article > div > strong { color: var(--navy); font-size: 9px; }
.staff-list article > div > span { margin-top: 3px; color: #56646e; font-size: 8px; }
.staff-list article > div > small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.staff-security { display: grid; justify-items: end; gap: 5px; }
.mini-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 14px; overflow: hidden; background: var(--line); }
.profile-summary > div { padding: 18px; background: #fff; }
.profile-summary span, .profile-summary strong { display: block; }
.profile-summary span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.profile-summary strong { margin-top: 6px; color: var(--navy); font-size: 10px; }

.privacy-pill { display: inline-flex; align-items: center; padding: 7px 9px; border-radius: 999px; color: var(--green); background: var(--green-pale); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.document-tools { min-height: 460px; }
.tool-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 510px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.tool-nav { padding: 20px; background: var(--navy); }
.tool-nav > p { margin: 0 0 13px; color: rgba(255, 255, 255, .4); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.tool-tab { display: block; width: 100%; margin: 5px 0; padding: 12px; border: 1px solid transparent; border-radius: 9px; color: rgba(255, 255, 255, .62); background: transparent; cursor: pointer; text-align: left; font-size: 9px; font-weight: 800; }
.tool-tab.active { border-color: rgba(200, 148, 26, .35); color: #fff; background: rgba(200, 148, 26, .14); }
.tool-workspace { display: flex; flex-direction: column; padding: 27px; }
.tool-head { display: flex; justify-content: space-between; gap: 16px; }
.tool-head h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.tool-head p { max-width: 590px; margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.local-tag { height: max-content; padding: 6px 8px; border-radius: 999px; color: var(--green); background: var(--green-pale); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.tool-drop { display: grid; place-items: center; min-height: 190px; margin: 20px 0 13px; padding: 25px; border: 1px dashed #cbd2d6; border-radius: 12px; background: #fafbfb; cursor: pointer; text-align: center; }
.tool-drop.dragging { border-color: var(--gold); background: #fdfaf3; }
.tool-drop input { display: none; }
.tool-drop strong, .tool-drop span { display: block; }
.tool-drop strong { color: var(--navy); font-size: 10px; }
.tool-drop span { margin-top: 6px; color: var(--muted); font-size: 8px; }
.tool-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0; }
.tool-options label { display: grid; gap: 6px; color: #4a5862; font-size: 9px; font-weight: 800; }
.tool-options input, .tool-options select { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tool-check { display: flex !important; align-items: center; gap: 8px; }
.tool-check input { width: 16px; min-height: 16px; }
.tool-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.tool-file strong, .tool-file span { display: block; }
.tool-file strong { max-width: 500px; overflow: hidden; color: var(--navy); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tool-file span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.tool-actions { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 18px; }
.tool-status { color: var(--muted); font-size: 9px; }
.tool-status.success { color: var(--green); }
.tool-status.error { color: var(--red); }

.flash-stack { position: fixed; z-index: 100; top: 80px; right: 20px; display: grid; gap: 8px; width: min(390px, calc(100% - 40px)); }
.auth-flashes { top: 18px; }
.flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid; border-radius: 10px; background: #fff; box-shadow: var(--shadow-md); font-size: 9px; line-height: 1.5; animation: flash-in .25s ease both; }
.flash button { padding: 0; border: 0; color: currentColor; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; opacity: .6; }
.flash-success { border-color: #a9d3bd; color: #15583d; }
.flash-error { border-color: #e4bcbc; color: #8c2626; }
.flash-warning { border-color: #e2cc94; color: #705415; }
.app-footer { display: flex; justify-content: space-between; width: min(1220px, calc(100% - 54px)); margin: 0 auto; padding: 22px 0 28px; border-top: 1px solid var(--line); color: #7d8992; font-size: 8px; }

.auth-body { background: #f5f6f6; }
.auth-shell { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 100vh; }
.auth-brand-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 42px clamp(34px, 6vw, 80px); overflow: hidden; color: #fff; background: radial-gradient(circle at 90% 12%, rgba(200, 148, 26, .18), transparent 23rem), linear-gradient(145deg, #071523, #0d2234 70%, #102b43); }
.auth-brand-panel:after { content: ""; position: absolute; right: -180px; bottom: -250px; width: 500px; height: 500px; border: 1px solid rgba(200, 148, 26, .16); border-radius: 50%; box-shadow: 0 0 0 55px rgba(200, 148, 26, .025), 0 0 0 110px rgba(200, 148, 26, .02); }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.auth-brand img { width: 60px; height: 60px; object-fit: contain; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-family: Georgia, serif; font-size: 19px; }
.auth-brand small { margin-top: 4px; color: rgba(255, 255, 255, .48); font-size: 9px; letter-spacing: .06em; }
.auth-message { position: relative; z-index: 1; max-width: 650px; }
.auth-kicker { display: inline-flex; padding: 7px 10px; border: 1px solid rgba(200, 148, 26, .28); border-radius: 99px; color: #ebcb7b; font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.auth-message h1 { max-width: 620px; margin: 18px 0 13px; font-family: Georgia, serif; font-size: clamp(43px, 6vw, 73px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.auth-message p { max-width: 510px; margin: 0; color: rgba(255, 255, 255, .55); font-size: 12px; line-height: 1.65; }
.auth-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 25px; }
.auth-trust span { position: relative; padding-left: 12px; color: rgba(255, 255, 255, .58); font-size: 8px; font-weight: 750; }
.auth-trust span:before { content: ""; position: absolute; top: 3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.auth-brand-panel > small { position: relative; z-index: 1; color: rgba(255, 255, 255, .35); font-size: 8px; letter-spacing: .09em; }
.auth-form-panel { display: grid; place-items: center; padding: 30px; background: #f6f7f7; }
.auth-card { display: grid; width: min(405px, 100%); gap: 16px; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-md); }
.auth-card h1, .auth-card h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.auth-card > p:not(.eyebrow) { margin: -8px 0 4px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.auth-card .primary-button { width: 100%; margin-top: 3px; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.mobile-auth-logo { display: none; }
.center-shell { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 10% 0, rgba(200, 148, 26, .08), transparent 28rem), #f5f6f6; }
.compact-card { max-width: 470px; }
.compact-brand { margin-bottom: 15px; color: var(--navy); }
.compact-brand img { width: 48px; height: 48px; }
.compact-brand small { color: var(--muted); }
.code-input { text-align: center; font-size: 18px !important; font-weight: 850; letter-spacing: .12em; }
.setup-panel { padding: 26px; }
.setup-steps { margin: 0; padding-left: 20px; color: #4e5c66; font-size: 10px; line-height: 1.8; }
.secret-box { display: grid; gap: 5px; margin: 20px 0; padding: 17px; border-radius: 11px; background: #f4f6f6; }
.secret-box span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.secret-box strong, .secret-box code { margin-bottom: 9px; color: var(--navy); font-size: 10px; }
.secret-box code { font-size: 17px; letter-spacing: .08em; overflow-wrap: anywhere; }
.setup-panel details { margin: 10px 0 20px; color: var(--muted); font-size: 9px; }
.break-code { display: block; margin-top: 10px; overflow-wrap: anywhere; }
.inline-form { display: grid; gap: 14px; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.recovery-grid code { padding: 12px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 14px; letter-spacing: .06em; }
.warning-copy { color: #7b5d18; font-size: 9px; line-height: 1.55; }

.reveal { animation: rise-in .45s ease both; }
.reveal:nth-of-type(2) { animation-delay: .05s; }
.reveal:nth-of-type(3) { animation-delay: .1s; }
.reveal:nth-of-type(4) { animation-delay: .15s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flash-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .file-filters { grid-template-columns: minmax(210px, 1fr) repeat(3, 120px); }
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-102%); transition: transform .25s ease; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-open:after { content: ""; position: fixed; z-index: 55; inset: 0; background: rgba(7, 21, 35, .45); backdrop-filter: blur(2px); }
  .app-content { margin-left: 0; }
  .topbar { left: 0; padding: 0 22px; }
  .menu-button { display: block; }
  .topbar-title { margin-right: auto; margin-left: 12px; }
  .dashboard-grid, .activity-layout { grid-template-columns: 1fr; }
  .upload-layout { grid-template-columns: 1fr; }
  .upload-assurance { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .file-filters { grid-template-columns: 1fr repeat(3, 1fr); }
  .auth-shell { grid-template-columns: .85fr 1.15fr; }
  .auth-brand-panel { padding: 35px; }
  .auth-message h1 { font-size: 48px; }
  .tool-shell { grid-template-columns: 1fr; }
  .tool-nav { display: flex; gap: 6px; overflow-x: auto; padding: 12px; }
  .tool-nav > p { display: none; }
  .tool-tab { flex: 0 0 auto; width: auto; margin: 0; }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 26px, 650px); padding: 28px 0 48px; }
  .page-heading, .split-heading, .welcome-panel { display: block; }
  .page-heading h1, .welcome-panel h1 { font-size: 35px; }
  .page-heading .primary-button { margin-top: 17px; }
  .welcome-panel { padding: 23px; }
  .welcome-actions { margin-top: 19px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .system-strip { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: 1fr; }
  .file-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .file-filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .scope-tabs { overflow-x: auto; }
  .scope-tabs button { flex: 0 0 auto; }
  .recipient-grid { grid-template-columns: 1fr; }
  .auth-shell { display: block; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 24px 18px; }
  .mobile-auth-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; color: var(--navy); }
  .mobile-auth-logo img { width: 44px; height: 44px; object-fit: contain; }
  .mobile-auth-logo strong { font-family: Georgia, serif; }
  .file-actions { min-width: 135px; }
  .app-footer { width: calc(100% - 26px); flex-direction: column; gap: 6px; }
}

@media (max-width: 500px) {
  .topbar { height: 62px; padding: 0 13px; }
  .app-content { padding-top: 62px; }
  .topbar-title small { display: none; }
  .header-action { padding: 0 9px; }
  .topbar-actions .header-action .notification-dot { display: none; }
  .metric-grid { gap: 8px; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 24px; }
  .welcome-actions { display: grid; }
  .file-summary-grid { gap: 8px; }
  .file-summary-grid article { display: grid; min-height: 78px; }
  .file-filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .content-panel { padding: 17px; }
  .form-panel { padding: 18px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .primary-button, .form-actions .secondary-button { width: 100%; }
  .profile-summary, .recovery-grid, .tool-options { grid-template-columns: 1fr; }
  .tool-workspace { min-height: 480px; padding: 20px 15px; }
  .tool-head { display: block; }
  .local-tag { display: inline-block; margin-top: 9px; }
  .tool-actions { align-items: stretch; flex-direction: column; }
  .tool-actions .primary-button { width: 100%; }
  .auth-card { padding: 27px 21px; }
}

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

/* Scan & Share */
.scanner-start { display: grid; grid-template-columns: 1fr 330px; min-height: 300px; overflow: hidden; }
.scanner-start-copy { display: flex; flex-direction: column; justify-content: center; padding: 38px; }
.scanner-step-label { color: var(--gold-dark); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.scanner-start h2 { max-width: 620px; margin: 10px 0 8px; color: var(--navy); font-family: Georgia, serif; font-size: clamp(28px, 4vw, 42px); font-weight: 500; letter-spacing: -.03em; }
.scanner-start p { max-width: 640px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.scanner-start-actions { display: flex; gap: 9px; margin-top: 22px; }
.scanner-start-copy > small { margin-top: 10px; color: var(--muted-light); font-size: 8px; }
.scanner-file-button { position: relative; overflow: hidden; }
.scanner-file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.scanner-illustration { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at center, rgba(200, 148, 26, .16), transparent 55%), var(--navy); }
.scanner-illustration:before, .scanner-illustration:after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 50%; }
.scanner-illustration:after { width: 230px; height: 230px; }
.scan-sheet { position: relative; z-index: 2; width: 138px; height: 184px; padding: 30px 22px; border-radius: 8px; background: #fff; box-shadow: 0 25px 45px rgba(0, 0, 0, .25); transform: rotate(4deg); }
.scan-sheet i { display: block; height: 5px; margin: 0 0 13px; border-radius: 9px; background: #dce2e5; }
.scan-sheet i:nth-child(2) { width: 70%; }
.scan-sheet i:nth-child(3) { width: 88%; }
.scan-sheet i:nth-child(4) { width: 55%; }
.scan-line { position: absolute; z-index: 3; left: 60px; right: 60px; top: 50%; height: 2px; background: #e3b94f; box-shadow: 0 0 16px rgba(227, 185, 79, .8); animation: scanner-line 2.4s ease-in-out infinite; }
@keyframes scanner-line { 0%, 100% { transform: translateY(-75px); opacity: .55; } 50% { transform: translateY(75px); opacity: 1; } }

.camera-panel { padding: 20px; overflow: hidden; }
.camera-head, .camera-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.camera-head { margin-bottom: 14px; }
.camera-head span, .camera-head strong { display: block; }
.camera-head span { color: var(--gold-dark); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.camera-head strong { margin-top: 3px; color: var(--navy); font-size: 10px; }
.camera-head > button, .scan-modal-head > button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; cursor: pointer; font-size: 18px; }
.camera-view { position: relative; display: grid; place-items: center; min-height: 420px; overflow: hidden; border-radius: 13px; background: #02070b; }
.camera-view video { display: block; width: 100%; max-height: 68vh; object-fit: contain; }
.camera-frame { position: absolute; inset: 9%; border: 2px solid rgba(236, 199, 104, .85); border-radius: 5px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .3), inset 0 0 30px rgba(200, 148, 26, .08); pointer-events: none; }
.camera-frame:before, .camera-frame:after { content: ""; position: absolute; inset: -3px; border: 16px solid transparent; border-top-color: #f0ce78; border-left-color: #f0ce78; width: 20px; height: 20px; }
.camera-frame:after { inset: auto -3px -3px auto; border-color: transparent #f0ce78 #f0ce78 transparent; }
.camera-actions { justify-content: flex-end; margin-top: 14px; }

.scanner-workspace { display: grid; grid-template-columns: 210px minmax(480px, 1fr) 290px; gap: 13px; align-items: start; }
.scanner-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.scanner-panel-head span, .scanner-panel-head h2 { display: block; }
.scanner-panel-head > div > span { color: var(--muted-light); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.scanner-panel-head h2 { margin: 3px 0 0; color: var(--navy); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.scan-pages-panel, .scan-editor-panel, .scan-export-panel { padding: 17px; }
.scan-pages-panel { position: sticky; top: 86px; }
.scan-page-list { display: grid; gap: 9px; max-height: 520px; margin: 14px 0; overflow-y: auto; }
.scan-page-item { position: relative; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 9px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.scan-page-item.is-active { border-color: #ddc579; background: var(--gold-pale); box-shadow: inset 2px 0 var(--gold); }
.scan-page-thumb { display: block; width: 52px; height: 66px; overflow: hidden; border-radius: 6px; background: #e8ecee; object-fit: cover; }
.scan-page-item strong, .scan-page-item small { display: block; }
.scan-page-item strong { color: var(--navy); font-size: 9px; }
.scan-page-item small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.scan-page-order { display: flex; gap: 3px; margin-top: 6px; }
.scan-page-order button { width: 22px; height: 21px; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; cursor: pointer; font-size: 10px; }
.scan-add-actions { display: grid; gap: 7px; }
.scan-add-actions .secondary-button { width: 100%; min-height: 38px; }

.scan-editor-panel { min-width: 0; }
.edge-status { padding: 6px 8px; border-radius: 99px; color: var(--green); background: var(--green-pale); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.crop-stage { position: relative; width: 100%; margin-top: 16px; overflow: hidden; border-radius: 11px; background: #111a21; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); touch-action: none; }
.crop-stage canvas { display: block; width: 100%; height: auto; }
.crop-outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.crop-outline polygon { fill: rgba(200, 148, 26, .08); stroke: #e6bf5e; stroke-width: .55; vector-effect: non-scaling-stroke; }
.crop-handle { position: absolute; z-index: 3; width: 24px; height: 24px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--gold); box-shadow: 0 3px 12px rgba(0, 0, 0, .3); cursor: grab; transform: translate(-50%, -50%); touch-action: none; }
.crop-handle:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.12); }
.crop-help { margin: 9px 0 0; color: var(--muted); font-size: 8px; text-align: center; }
.scan-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.scan-controls button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #4e5c66; background: #fff; cursor: pointer; font-size: 8px; font-weight: 850; }
.scan-controls button:hover { border-color: #c9d1d6; color: var(--navy); }
.scan-controls .danger-control { margin-left: auto; color: var(--red); }
.filter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 12px; }
.filter-row button { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 7px; min-height: 43px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; cursor: pointer; text-align: left; font-size: 8px; font-weight: 850; }
.filter-row button.is-active { border-color: #dcc57f; color: var(--navy); background: var(--gold-pale); }
.filter-swatch { width: 26px; height: 29px; border-radius: 5px; background: linear-gradient(135deg, #fff, #dfe5e8); box-shadow: inset 0 0 0 1px rgba(7, 21, 35, .08); }
.filter-clean { background: linear-gradient(135deg, #fffef9, #e8e3d5); }
.filter-original { background: linear-gradient(135deg, #f3dfb1, #829cb1); }
.filter-gray { background: linear-gradient(135deg, #f5f5f5, #7c7c7c); }
.filter-bw { background: linear-gradient(135deg, #fff 50%, #171717 50%); }

.scan-export-panel { position: sticky; top: 86px; display: grid; gap: 14px; }
.scan-export-panel > label { display: grid; gap: 6px; color: #40505b; font-size: 8px; font-weight: 850; }
.scan-export-panel input, .scan-export-panel select { width: 100%; min-height: 41px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--navy); background: #fff; outline: none; font-size: 9px; }
.scan-export-panel input:focus, .scan-export-panel select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 148, 26, .1); }
.scan-summary { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.scan-summary div { padding: 10px 8px; border-right: 1px solid var(--line); text-align: center; }
.scan-summary div:last-child { border-right: 0; }
.scan-summary span, .scan-summary strong { display: block; }
.scan-summary span { color: var(--muted-light); font-size: 7px; text-transform: uppercase; }
.scan-summary strong { margin-top: 5px; color: var(--navy); font-size: 9px; }
.scan-primary-actions { display: grid; gap: 7px; }
.scan-primary-actions button { width: 100%; }
.scan-divider { display: flex; align-items: center; gap: 9px; color: var(--muted-light); font-size: 7px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.scan-divider:before, .scan-divider:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.vault-share-button, .device-share-button { display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 10px; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; transition: border-color .2s ease, transform .2s ease; }
.vault-share-button:hover, .device-share-button:hover { border-color: #d3bc73; transform: translateY(-1px); }
.vault-share-button > span, .device-share-button > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: #fff; background: var(--navy); font-size: 8px; font-weight: 900; }
.device-share-button > span { color: var(--navy); background: var(--gold-pale); font-size: 16px; }
.vault-share-button strong, .vault-share-button small, .device-share-button strong, .device-share-button small { display: block; }
.vault-share-button strong, .device-share-button strong { color: var(--navy); font-size: 9px; }
.vault-share-button small, .device-share-button small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.external-warning { margin: -2px 0 0; color: var(--muted-light); font-size: 7px; line-height: 1.45; }
.scanner-status { padding: 10px; border-radius: 8px; color: var(--green); background: var(--green-pale); font-size: 8px; line-height: 1.45; }

.scan-processing { position: fixed; z-index: 150; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7, 21, 35, .62); backdrop-filter: blur(5px); }
.scan-processing > div { display: grid; justify-items: center; width: min(360px, 100%); padding: 28px; border-radius: 15px; background: #fff; box-shadow: var(--shadow-md); text-align: center; }
.processing-spinner { width: 36px; height: 36px; border: 3px solid #e6e9eb; border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-processing strong { margin-top: 13px; color: var(--navy); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.scan-processing small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.processing-track { width: 100%; height: 5px; margin-top: 15px; overflow: hidden; border-radius: 99px; background: #e9edef; }
.processing-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold); transition: width .2s ease; }

.scan-modal { position: fixed; z-index: 140; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(7, 21, 35, .58); backdrop-filter: blur(5px); }
.scan-share-card { display: grid; gap: 16px; width: min(650px, 100%); max-height: min(780px, calc(100vh - 36px)); padding: 23px; overflow-y: auto; }
.scan-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.scan-modal-head h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.scan-share-card > label { display: grid; gap: 7px; color: #40505b; font-size: 9px; font-weight: 850; }
.scan-share-card > label input { min-height: 43px; padding: 0 11px; border: 1px solid var(--line-dark); border-radius: 8px; outline: none; }
.scan-share-card fieldset { margin: 0; padding: 0; border: 0; }
.scan-share-card legend { margin-bottom: 9px; color: #40505b; font-size: 9px; font-weight: 850; }

@media (max-width: 1220px) {
  .scanner-workspace { grid-template-columns: 180px minmax(420px, 1fr) 260px; }
  .scan-page-item { grid-template-columns: 43px 1fr; }
  .scan-page-thumb { width: 43px; height: 57px; }
}

@media (max-width: 1040px) {
  .scanner-workspace { grid-template-columns: 180px 1fr; }
  .scan-export-panel { position: static; grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .scan-export-panel .scanner-panel-head, .scan-export-panel .scan-summary, .scan-export-panel .scan-divider, .scan-export-panel .external-warning, .scan-export-panel .scanner-status { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .scanner-start { grid-template-columns: 1fr; }
  .scanner-start-copy { padding: 25px; }
  .scanner-illustration { min-height: 210px; }
  .scan-sheet { width: 105px; height: 140px; }
  .scanner-workspace { grid-template-columns: 1fr; }
  .scan-pages-panel, .scan-export-panel { position: static; }
  .scan-pages-panel { order: 2; }
  .scan-editor-panel { order: 1; }
  .scan-export-panel { order: 3; grid-column: auto; grid-template-columns: 1fr; }
  .scan-export-panel .scanner-panel-head, .scan-export-panel .scan-summary, .scan-export-panel .scan-divider, .scan-export-panel .external-warning, .scan-export-panel .scanner-status { grid-column: auto; }
  .scan-page-list { grid-template-columns: repeat(2, 1fr); max-height: none; }
  .filter-row { grid-template-columns: repeat(2, 1fr); }
  .camera-view { min-height: 300px; }
}

@media (max-width: 500px) {
  .scanner-start-actions, .camera-actions { align-items: stretch; flex-direction: column; }
  .scanner-start-actions .primary-button, .scanner-start-actions .secondary-button, .camera-actions .primary-button, .camera-actions .secondary-button { width: 100%; }
  .scan-page-list { grid-template-columns: 1fr; }
  .scan-controls .danger-control { margin-left: 0; }
  .scan-recipient-grid { grid-template-columns: 1fr; }
}

/* IT Help Desk */
.install-action[hidden], .notification-count[hidden] { display: none; }
.notification-action { position: relative; }
.notification-count { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; color: #fff; background: var(--red); font-size: 7px; font-weight: 900; }
.push-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 13px; padding: 15px 17px; }
.push-card-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--gold-pale); }
.push-card-mark span { width: 11px; height: 13px; border: 2px solid var(--gold-dark); border-radius: 7px 7px 5px 5px; }
.push-card-mark span:after { content: ""; display: block; width: 4px; height: 2px; margin: 13px auto 0; border-radius: 99px; background: var(--gold-dark); }
.push-card strong, .push-card small { display: block; }
.push-card strong { color: var(--navy); font-size: 10px; }
.push-card small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.push-state { grid-column: 2 / -1; margin-top: -8px; color: var(--muted-light); font-size: 8px; }
.push-card.is-enabled { border-color: #b9d8c7; background: linear-gradient(90deg, #fff, #f5fbf7); }
.push-card.is-enabled .push-state { color: var(--green); }
.push-card.is-enabled .push-card-mark { background: var(--green-pale); }
.push-card.is-enabled .push-card-mark span { border-color: var(--green); }
.push-card.is-enabled .push-card-mark span:after { background: var(--green); }

.ticket-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 14px; }
.ticket-metrics article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.ticket-metrics span, .ticket-metrics small, .ticket-metrics strong { display: block; }
.ticket-metrics span { color: var(--muted); font-size: 9px; }
.ticket-metrics strong { margin: 9px 0 4px; color: var(--navy); font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.ticket-metrics small { color: var(--muted-light); font-size: 8px; }
.ticket-queue { overflow: hidden; }
.ticket-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
.ticket-queue-head span, .ticket-queue-head h2 { display: block; }
.ticket-queue-head > div > span { color: var(--muted-light); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ticket-queue-head h2 { margin: 4px 0 0; color: var(--navy); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.ticket-filters { display: grid; grid-template-columns: 1fr 180px 170px auto; align-items: end; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafbfb; }
.ticket-filters label { display: grid; gap: 5px; }
.ticket-filters label > span { color: var(--muted-light); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.ticket-filters input, .ticket-filters select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--navy); background: #fff; outline: none; font-size: 9px; }
.ticket-list { display: grid; }
.ticket-row { display: grid; grid-template-columns: 5px minmax(260px, 1fr) 170px 120px; align-items: center; gap: 16px; min-height: 84px; padding: 13px 19px; border-bottom: 1px solid #edf0f1; color: inherit; text-decoration: none; transition: background .18s ease; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: #fafbfb; }
.ticket-priority { width: 4px; height: 42px; border-radius: 99px; background: #b2bac0; }
.priority-low { background: #9da8af; }
.priority-normal { background: #2f779e; }
.priority-high { background: var(--gold); }
.priority-critical { background: var(--red); box-shadow: 0 0 0 4px rgba(169, 55, 55, .08); }
.ticket-main span, .ticket-main strong, .ticket-main small, .ticket-assignee span, .ticket-assignee strong, .ticket-assignee small, .ticket-state span, .ticket-state small { display: block; }
.ticket-reference { color: var(--gold-dark); font-size: 7px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ticket-main strong { margin-top: 5px; color: var(--navy); font-size: 10px; line-height: 1.35; }
.ticket-main small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.ticket-assignee small { color: var(--muted-light); font-size: 7px; text-transform: uppercase; }
.ticket-assignee strong { margin-top: 5px; color: #41505b; font-size: 9px; }
.ticket-state { display: grid; justify-items: end; gap: 6px; text-align: right; }
.ticket-state small { color: var(--muted-light); font-size: 7px; }
.ticket-status { display: inline-flex !important; width: max-content; padding: 6px 8px; border-radius: 99px; color: #51606b; background: #edf0f1; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.status-reported, .status-reopened { color: #8a5f00; background: var(--gold-pale); }
.status-acknowledged { color: #315f7a; background: #e7f2f8; }
.status-in_progress { color: #255f87; background: #e5f1fa; }
.status-waiting { color: #7c5b15; background: #f7efdc; }
.status-resolved { color: var(--green); background: var(--green-pale); }
.status-closed { color: #68747d; background: #eceff0; }
.overdue-label { width: max-content; color: var(--red) !important; font-size: 7px !important; font-weight: 900; text-transform: uppercase; }
.ticket-empty { min-height: 290px; }

.narrow-support-page { width: min(1080px, calc(100% - 54px)); }
.support-create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 15px; align-items: start; }
.support-form { display: grid; gap: 18px; padding: 25px; }
.support-form .form-section strong { color: var(--navy); font-size: 10px; }
.support-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.support-wide { grid-column: 1 / -1; }
.support-form label, .ticket-control-card label, .reporter-confirm-card label { display: grid; gap: 7px; color: #35434e; font-size: 9px; font-weight: 850; }
.support-form input, .support-form select, .support-form textarea, .ticket-control-card input, .ticket-control-card select, .ticket-control-card textarea, .reporter-confirm-card textarea, .ticket-comment-form textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 9px; color: var(--navy); background: #fff; outline: none; resize: vertical; font: inherit; font-size: 9px; line-height: 1.55; }
.support-form select, .ticket-control-card select { padding-top: 0; padding-bottom: 0; }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus, .ticket-control-card select:focus, .ticket-control-card textarea:focus, .reporter-confirm-card textarea:focus, .ticket-comment-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 148, 26, .11); }
.support-attachment { min-height: 100px; padding: 16px; border: 1px dashed #c8d0d5; border-radius: 11px; background: #fafbfb; cursor: pointer; }
.support-attachment input { min-height: auto; padding: 0; border: 0; background: transparent; }
.support-attachment > span:last-child { color: var(--gold-dark); font-size: 8px; font-weight: 750; }
.support-confidentiality { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 9px; background: #f3f7f5; }
.support-confidentiality > span { width: 7px; height: 7px; margin-top: 4px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.support-confidentiality p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.support-confidentiality strong { color: var(--green); }
.support-guidance { padding: 25px; border-radius: 15px; color: #fff; background: var(--navy); box-shadow: var(--shadow-md); }
.support-guidance h2 { margin: 10px 0 18px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; line-height: 1.08; }
.support-guidance > div { display: grid; grid-template-columns: 11px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); }
.support-guidance p { margin: 0; }
.support-guidance strong, .support-guidance small { display: block; }
.support-guidance strong { font-size: 9px; }
.support-guidance small { margin-top: 5px; color: rgba(255,255,255,.45); font-size: 8px; line-height: 1.45; }
.priority-dot { width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; }

.ticket-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.ticket-detail-heading > div:first-child > a { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 8px; font-weight: 850; text-decoration: none; }
.ticket-detail-heading h1 { max-width: 780px; margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: clamp(30px, 4vw, 45px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.ticket-heading-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.priority-label { padding: 6px 8px; border-radius: 99px; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.priority-text-low { color: #637079; background: #edf0f1; }
.priority-text-normal { color: #315f7a; background: #e7f2f8; }
.priority-text-high { color: #7c5b15; background: var(--gold-pale); }
.priority-text-critical { color: var(--red); background: var(--red-pale); }
.ticket-heading-person { min-width: 230px; padding: 14px 16px; border-left: 2px solid var(--gold); }
.ticket-heading-person small, .ticket-heading-person strong, .ticket-heading-person span { display: block; }
.ticket-heading-person small { color: var(--muted-light); font-size: 7px; text-transform: uppercase; }
.ticket-heading-person strong { margin-top: 5px; color: var(--navy); font-size: 10px; }
.ticket-heading-person span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.ticket-facts { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 14px; overflow: hidden; }
.ticket-facts div { padding: 15px 16px; border-right: 1px solid var(--line); }
.ticket-facts div:last-child { border-right: 0; }
.ticket-facts span, .ticket-facts strong { display: block; }
.ticket-facts span { color: var(--muted-light); font-size: 7px; text-transform: uppercase; }
.ticket-facts strong { margin-top: 6px; color: var(--navy); font-size: 9px; line-height: 1.4; }
.ticket-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 15px; align-items: start; }
.ticket-thread { min-width: 0; }
.ticket-description { padding: 21px; }
.ticket-description > span { color: var(--gold-dark); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.ticket-description p { margin: 10px 0 0; color: #40505b; font-size: 10px; line-height: 1.7; }
.ticket-thread-title { display: flex; align-items: center; justify-content: space-between; margin: 23px 0 11px; }
.ticket-thread-title span, .ticket-thread-title h2 { display: block; }
.ticket-thread-title > div > span { color: var(--muted-light); font-size: 8px; text-transform: uppercase; }
.ticket-thread-title h2 { margin: 3px 0 0; color: var(--navy); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.ticket-updates { position: relative; display: grid; gap: 11px; }
.ticket-updates:before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 17px; width: 1px; background: #dfe4e6; }
.ticket-update { position: relative; display: grid; grid-template-columns: 35px 1fr; gap: 11px; }
.update-avatar { z-index: 1; display: grid; place-items: center; width: 35px; height: 35px; border: 4px solid #f5f6f6; border-radius: 50%; color: var(--navy); background: #efd58f; font-size: 9px; font-weight: 900; }
.ticket-update.is-status .update-avatar { color: #fff; background: var(--navy); }
.update-card { padding: 15px 17px; }
.update-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.update-head strong, .update-head span, .update-head small { display: block; }
.update-head strong { color: var(--navy); font-size: 9px; }
.update-head span, .update-head small { margin-top: 3px; color: var(--muted-light); font-size: 7px; }
.update-card > p { margin: 10px 0 0; color: #45535d; font-size: 9px; line-height: 1.65; }
.update-transition { display: inline-flex; margin-top: 10px; padding: 5px 7px; border-radius: 6px; color: var(--gold-dark); background: var(--gold-pale); font-size: 7px; font-weight: 850; }
.ticket-attachment-link { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; margin-top: 11px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; color: inherit; background: #fafbfb; text-decoration: none; }
.ticket-attachment-link > span { display: grid; place-items: center; width: 38px; height: 40px; border-radius: 7px; color: #fff; background: var(--navy); font-size: 7px; font-weight: 900; }
.ticket-attachment-link strong, .ticket-attachment-link small { display: block; }
.ticket-attachment-link strong { color: var(--navy); font-size: 8px; }
.ticket-attachment-link small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.ticket-comment-form { display: grid; gap: 13px; margin-top: 15px; padding: 20px; }
.ticket-comment-form > div:first-child > span { color: var(--muted-light); font-size: 7px; text-transform: uppercase; }
.ticket-comment-form h2 { margin: 4px 0 0; color: var(--navy); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.attachment-button { position: relative; display: inline-flex; align-items: center; min-height: 39px; padding: 0 13px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 9px; color: var(--navy); background: #fff; cursor: pointer; font-size: 8px; font-weight: 850; }
.attachment-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ticket-control-column { display: grid; gap: 13px; }
.ticket-control-card, .reporter-confirm-card, .resolution-summary { display: grid; gap: 14px; padding: 20px; }
.ticket-control-card h2, .reporter-confirm-card h2 { margin: 0; color: var(--navy); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.resolution-fields { display: grid; gap: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.reporter-confirm-card > p:not(.eyebrow) { margin: -5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.reporter-confirm-card form { display: grid; gap: 9px; }
.reporter-confirm-card button { width: 100%; }
.resolution-summary > span { color: var(--muted-light); font-size: 7px; text-transform: uppercase; }
.resolution-summary > strong { color: var(--green); font-size: 10px; }
.resolution-summary p { margin: 0; color: #45535d; font-size: 9px; line-height: 1.6; }

@media (max-width: 1050px) {
  .ticket-detail-layout { grid-template-columns: 1fr; }
  .ticket-control-column { grid-template-columns: repeat(2, 1fr); }
  .ticket-control-card { grid-column: 1 / -1; }
  .ticket-facts { grid-template-columns: repeat(3, 1fr); }
  .ticket-facts div { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .ticket-metrics { grid-template-columns: repeat(2, 1fr); }
  .ticket-filters { grid-template-columns: 1fr 1fr; }
  .ticket-search { grid-column: 1 / -1; }
  .ticket-row { grid-template-columns: 5px 1fr 110px; }
  .ticket-assignee { display: none; }
  .support-create-layout { grid-template-columns: 1fr; }
  .support-guidance { display: none; }
  .ticket-detail-heading { display: block; }
  .ticket-heading-person { margin-top: 18px; }
}

@media (max-width: 580px) {
  .push-card { grid-template-columns: auto 1fr; }
  .push-card button { grid-column: 1 / -1; width: 100%; }
  .push-state { grid-column: 1 / -1; margin-top: 0; }
  .ticket-metrics { gap: 8px; }
  .ticket-metrics article { padding: 14px; }
  .ticket-filters, .support-form-grid { grid-template-columns: 1fr; }
  .ticket-search, .support-wide { grid-column: auto; }
  .ticket-row { grid-template-columns: 4px 1fr; gap: 11px; padding: 14px; }
  .ticket-state { grid-column: 2; justify-items: start; text-align: left; }
  .ticket-facts { grid-template-columns: 1fr 1fr; }
  .ticket-facts div { border-right: 1px solid var(--line); }
  .ticket-detail-layout { display: block; }
  .ticket-control-column { display: grid; grid-template-columns: 1fr; margin-top: 14px; }
  .comment-actions { align-items: stretch; flex-direction: column; }
  .comment-actions .primary-button, .attachment-button { width: 100%; justify-content: center; }
  .update-head { display: block; }
  .update-head > small { margin-top: 6px; }
}

/* Asset and inventory management */
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 8px; font-weight: 850; text-decoration: none; }
.inventory-overview-strip { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid #dfe4e6; border-radius: 14px; background: #e8ecee; box-shadow: var(--shadow-sm); }
.inventory-overview-strip > div { min-height: 68px; padding: 14px 17px; background: #fff; }
.inventory-overview-strip span, .inventory-overview-strip strong { display: block; }
.inventory-overview-strip span { color: var(--muted-light); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.inventory-overview-strip strong { margin-top: 8px; color: var(--navy); font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.inventory-overview-strip > a { display: grid; place-items: center; align-self: stretch; min-width: 130px; padding: 0 17px; color: #fff; background: var(--navy); font-size: 9px; font-weight: 850; text-decoration: none; }

.asset-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin-bottom: 14px; }
.asset-metrics article { position: relative; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.asset-metrics article:after { content: ""; position: absolute; right: -18px; bottom: -24px; width: 65px; height: 65px; border-radius: 50%; background: rgba(7,21,35,.035); }
.asset-metrics span, .asset-metrics strong, .asset-metrics small { display: block; }
.asset-metrics span { color: var(--muted); font-size: 9px; }
.asset-metrics strong { margin: 9px 0 4px; color: var(--navy); font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.asset-metrics small { color: var(--muted-light); font-size: 8px; }
.asset-metrics .metric-alert { border-color: #ecc9cb; background: linear-gradient(135deg,#fff,#fff7f7); }
.asset-metrics .metric-alert strong { color: var(--red); }
.asset-metrics .metric-warning { border-color: #e8d6a7; background: linear-gradient(135deg,#fff,#fffaf0); }
.asset-metrics .metric-warning strong { color: var(--amber); }
.asset-register { overflow: hidden; }
.asset-filters { display: grid; grid-template-columns: minmax(220px,1fr) repeat(3,minmax(130px,.3fr)) auto auto; align-items: end; gap: 8px; padding: 17px 18px; border-bottom: 1px solid var(--line); background: #fafbfb; }
.asset-filters label { display: grid; gap: 5px; }
.asset-filters label > span { color: var(--muted-light); font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.asset-filters input, .asset-filters select { width: 100%; min-height: 39px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--navy); background: #fff; outline: none; font-size: 9px; }
.asset-filters input:focus, .asset-filters select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,148,26,.1); }
.filter-reset { display: grid; place-items: center; min-height: 39px; padding: 0 8px; color: var(--muted); font-size: 8px; font-weight: 800; text-decoration: none; }
.asset-table-wrap { overflow-x: auto; }
.asset-table { min-width: 930px; }
.asset-table td { padding-top: 13px; padding-bottom: 13px; }
.asset-table td > strong, .asset-table td > small { display: block; }
.asset-table td > strong { color: var(--navy); font-size: 9px; }
.asset-table td > small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.asset-identity { display: block; min-width: 190px; text-decoration: none; }
.asset-identity span, .asset-identity strong, .asset-identity small { display: block; }
.asset-identity span { color: var(--gold-dark); font-size: 7px; font-weight: 900; letter-spacing: .04em; }
.asset-identity strong { margin-top: 5px; color: var(--navy); font-size: 10px; }
.asset-identity small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.asset-badge { display: inline-flex; align-items: center; width: max-content; padding: 6px 8px; border-radius: 99px; color: #52616c; background: #eef1f2; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.condition-new, .condition-good, .state-available, .state-assigned, .state-in_use { color: var(--green); background: var(--green-pale); }
.condition-fair, .state-under_maintenance, .state-awaiting_parts { color: var(--amber); background: var(--gold-pale); }
.condition-damaged, .condition-unserviceable, .state-out_of_service, .state-missing { color: var(--red); background: var(--red-pale); }
.state-retired { color: #697783; background: #eceff0; }
.asset-alerts { display: grid; gap: 4px; }
.asset-alerts span { width: max-content; padding: 4px 6px; border-radius: 5px; color: var(--amber); background: var(--gold-pale); font-size: 7px; font-weight: 800; }
.asset-alerts small { color: var(--green); font-size: 8px; }
.asset-empty { min-height: 300px; }

.asset-form-page { width: min(1020px, calc(100% - 54px)); }
.asset-form { display: grid; gap: 0; overflow: hidden; }
.asset-form > section { padding: 25px; border-bottom: 1px solid var(--line); }
.asset-form .form-section { margin-bottom: 18px; }
.asset-form-grid, .maintenance-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.asset-form label, .maintenance-form label { display: grid; gap: 7px; color: #35434e; font-size: 9px; font-weight: 850; }
.asset-form input, .asset-form select, .asset-form textarea, .maintenance-form input, .maintenance-form select, .maintenance-form textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 9px; color: var(--navy); background: #fff; outline: none; resize: vertical; font: inherit; font-size: 9px; line-height: 1.5; }
.asset-form select, .maintenance-form select, .asset-form input[type="date"], .maintenance-form input[type="date"], .maintenance-form input[type="datetime-local"] { padding-top: 0; padding-bottom: 0; }
.asset-form input:focus, .asset-form select:focus, .asset-form textarea:focus, .maintenance-form input:focus, .maintenance-form select:focus, .maintenance-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,148,26,.1); }
.asset-form label small, .maintenance-form label small { color: var(--muted-light); font-size: 7px; font-weight: 500; }
.form-span-2 { grid-column: 1 / -1; }
.asset-form > .form-actions { margin: 0; padding: 20px 25px; background: #fafbfb; }

.asset-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.asset-detail-heading h1 { margin: 0; color: var(--navy); font-family: Georgia,serif; font-size: clamp(32px,4vw,47px); font-weight: 500; letter-spacing: -.035em; }
.asset-heading-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.asset-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 265px; gap: 14px; align-items: stretch; }
.asset-overview { padding: 22px; }
.asset-fact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
.asset-fact-grid > div { min-height: 78px; padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.asset-fact-grid > div:nth-child(3n) { border-right: 0; }
.asset-fact-grid span, .asset-fact-grid strong, .asset-fact-grid small { display: block; }
.asset-fact-grid span { color: var(--muted-light); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.asset-fact-grid strong { margin-top: 7px; color: var(--navy); font-size: 9px; line-height: 1.45; }
.asset-fact-grid small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.asset-notes { margin-top: 17px; padding: 15px; border-radius: 10px; background: #f7f8f9; }
.asset-notes span { color: var(--gold-dark); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.asset-notes p { margin: 8px 0 0; color: #46545e; font-size: 9px; line-height: 1.65; }
.asset-qr-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.asset-qr-card img { width: 175px; height: 175px; }
.asset-qr-card p { margin: 10px 0 0; color: var(--gold-dark); font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.asset-qr-card strong { margin-top: 7px; color: var(--navy); font-family: Georgia,serif; font-size: 17px; }
.asset-qr-card > span { margin-top: 5px; color: #41505b; font-size: 9px; }
.asset-qr-card > small { margin: 5px 0 13px; color: var(--muted); font-size: 7px; }
.asset-record-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.asset-record-panel, .maintenance-form-panel, .asset-timeline-panel { padding: 21px; }
.maintenance-list, .asset-ticket-list { display: grid; gap: 9px; }
.maintenance-list article { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfb; }
.maintenance-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.maintenance-list article > div span { color: var(--gold-dark); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.maintenance-list article > div strong { color: var(--navy); font-size: 8px; }
.maintenance-list p { margin: 9px 0 0; color: #46545e; font-size: 8px; line-height: 1.55; }
.maintenance-list > article > small { display: block; margin-top: 10px; color: var(--muted); font-size: 7px; }
.asset-ticket-list a { display: grid; padding: 13px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.asset-ticket-list a:hover { border-color: #cbd3d7; transform: translateY(-1px); }
.asset-ticket-list span { color: var(--gold-dark); font-size: 7px; font-weight: 900; }
.asset-ticket-list strong { margin-top: 5px; color: var(--navy); font-size: 9px; }
.asset-ticket-list small { margin-top: 5px; color: var(--muted); font-size: 7px; }
.maintenance-form-panel, .asset-timeline-panel { margin-top: 14px; }
.maintenance-form { align-items: start; }
.asset-timeline { display: grid; }
.asset-timeline article { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 11px; min-height: 50px; }
.asset-timeline article:before { content: ""; position: absolute; top: 13px; bottom: -6px; left: 5px; width: 1px; background: #dfe4e6; }
.asset-timeline article:last-child:before { display: none; }
.asset-timeline article > span { z-index: 1; width: 11px; height: 11px; margin-top: 2px; border: 3px solid #f4e8c8; border-radius: 50%; background: var(--gold); }
.asset-timeline strong, .asset-timeline small { display: block; }
.asset-timeline strong { color: var(--navy); font-size: 9px; }
.asset-timeline small { margin-top: 5px; color: var(--muted); font-size: 7px; }

.report-actions { display: flex; justify-content: space-between; margin-bottom: 14px; }
.inventory-report { padding: 34px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.inventory-report > header { display: flex; align-items: center; gap: 17px; padding-bottom: 20px; border-bottom: 2px solid var(--navy); }
.inventory-report > header img { width: 65px; height: 65px; object-fit: contain; }
.inventory-report > header p { margin: 0; color: var(--gold-dark); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.inventory-report > header h1 { margin: 5px 0; color: var(--navy); font-family: Georgia,serif; font-size: 26px; font-weight: 500; }
.inventory-report > header span { color: var(--muted); font-size: 8px; }
.report-summary { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 18px 0; }
.report-summary div { padding: 12px; border: 1px solid var(--line); }
.report-summary span, .report-summary strong { display: block; }
.report-summary span { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.report-summary strong { margin-top: 6px; color: var(--navy); font-size: 13px; }
.inventory-report table { font-size: 8px; }
.inventory-report th, .inventory-report td { padding: 9px 8px; }
.inventory-report td small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }
.inventory-report > footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 7px; }

@media (max-width: 1100px) {
  .asset-metrics { grid-template-columns: repeat(3,1fr); }
  .asset-filters { grid-template-columns: 1fr 1fr 1fr; }
  .asset-filters .filter-search { grid-column: 1 / -1; }
  .asset-detail-grid { grid-template-columns: 1fr 230px; }
  .asset-fact-grid { grid-template-columns: repeat(2,1fr); }
  .asset-fact-grid > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .asset-fact-grid > div:nth-child(2n) { border-right: 0; }
  .inventory-overview-strip { grid-template-columns: repeat(4,1fr); }
  .inventory-overview-strip > a { grid-column: 1 / -1; min-height: 42px; }
}

@media (max-width: 780px) {
  .asset-heading, .asset-detail-heading { display: block; }
  .asset-heading .heading-actions, .asset-detail-heading .heading-actions { justify-content: flex-start; margin-top: 17px; }
  .asset-metrics { grid-template-columns: repeat(2,1fr); }
  .asset-filters { grid-template-columns: 1fr 1fr; }
  .asset-detail-grid, .asset-record-columns { grid-template-columns: 1fr; }
  .asset-qr-card { min-height: 320px; }
  .report-summary { grid-template-columns: repeat(2,1fr); }
  .inventory-report { padding: 20px; overflow-x: auto; }
  .inventory-report table { min-width: 760px; }
}

@media (max-width: 560px) {
  .heading-actions { align-items: stretch; flex-direction: column; }
  .heading-actions .primary-button, .heading-actions .secondary-button, .heading-actions form, .heading-actions form button { width: 100%; }
  .asset-metrics, .asset-filters, .asset-form-grid, .maintenance-form, .inventory-overview-strip { grid-template-columns: 1fr; }
  .asset-filters .filter-search, .form-span-2 { grid-column: auto; }
  .asset-fact-grid { grid-template-columns: 1fr; }
  .asset-fact-grid > div { border-right: 0 !important; }
  .inventory-overview-strip > a { grid-column: auto; }
  .asset-form > section { padding: 19px; }
  .inventory-report > header { align-items: flex-start; }
}

@media print {
  .sidebar, .topbar, .flash-stack, .app-footer, .no-print { display: none !important; }
  .app-content { margin: 0 !important; padding: 0 !important; }
  .page-shell { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .inventory-report { padding: 0; border: 0; box-shadow: none; }
  .inventory-report table { font-size: 7pt; }
  .inventory-report tr { break-inside: avoid; }
  .inventory-report thead { display: table-header-group; }
  body.asset-label-print .app-frame > .sidebar, body.asset-label-print .app-content > :not(main) { display: none !important; }
  body.asset-label-print .asset-detail-page > :not(.asset-detail-grid), body.asset-label-print .asset-detail-grid > :not(.asset-qr-card) { display: none !important; }
  body.asset-label-print .asset-detail-grid { display: block; }
  body.asset-label-print .asset-qr-card { width: 70mm; min-height: 70mm; margin: 0; padding: 4mm; border: 1px solid #111; box-shadow: none; break-inside: avoid; }
  body.asset-label-print .asset-qr-card img { width: 40mm; height: 40mm; }
}

/* Meeting recorder and minutes assistant */
.meeting-config-notice { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 15px 18px; border-color: #ead8a8; background: #fffcf5; }
.meeting-config-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(200,148,26,.12); }
.meeting-config-notice strong, .meeting-config-notice small { display: block; }
.meeting-config-notice strong { color: var(--navy); font-size: 9px; }
.meeting-config-notice small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.meeting-config-notice code { color: var(--gold-dark); font-family: ui-monospace, monospace; }
.meeting-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; margin-bottom: 14px; }
.meeting-metrics article { position: relative; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.meeting-metrics article:after { content: ""; position: absolute; right: -17px; bottom: -26px; width: 66px; height: 66px; border-radius: 50%; background: rgba(200,148,26,.055); }
.meeting-metrics span, .meeting-metrics strong, .meeting-metrics small { display: block; }
.meeting-metrics span { color: var(--muted); font-size: 9px; }
.meeting-metrics strong { margin: 9px 0 4px; color: var(--navy); font-family: Georgia,serif; font-size: 28px; font-weight: 500; }
.meeting-metrics small { color: var(--muted-light); font-size: 8px; }
.meeting-recovery { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 17px 19px; border-color: #dec579; background: linear-gradient(100deg,#fffdf8,#fbf3dc); }
.meeting-recovery span, .meeting-recovery strong, .meeting-recovery small { display: block; }
.meeting-recovery span { color: var(--gold-dark); font-size: 7px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.meeting-recovery strong { margin-top: 5px; color: var(--navy); font-size: 10px; }
.meeting-recovery small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.meeting-recovery-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.meeting-studio { margin-bottom: 14px; overflow: hidden; border-color: #d7dee2; box-shadow: var(--shadow-md); }
.meeting-studio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 27px 20px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 90% 15%,rgba(200,148,26,.11),transparent 15rem),#fff; }
.meeting-studio-head h2 { margin: 0; color: var(--navy); font-family: Georgia,serif; font-size: 26px; font-weight: 500; }
.meeting-studio-head p:last-child { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.icon-close { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: #fff; cursor: pointer; font-size: 18px; }
.meeting-setup-form { padding: 24px 27px 27px; }
.meeting-fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.meeting-fields-grid .field-wide { grid-column: 1 / -1; }
.meeting-setup-form label, .minutes-editor label, .meeting-share-form label { display: grid; gap: 7px; color: #35434e; font-size: 9px; font-weight: 850; }
.meeting-setup-form input, .meeting-setup-form select, .minutes-editor textarea, .minutes-editor input, .minutes-editor select, .meeting-share-form select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 9px; color: var(--navy); background: #fff; outline: none; resize: vertical; font: inherit; font-size: 9px; line-height: 1.5; }
.meeting-setup-form select, .meeting-setup-form input[type="datetime-local"], .minutes-editor input[type="date"], .minutes-editor select { padding-top: 0; padding-bottom: 0; }
.meeting-setup-form input:focus, .meeting-setup-form select:focus, .minutes-editor textarea:focus, .minutes-editor input:focus, .minutes-editor select:focus, .meeting-share-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,148,26,.1); }
.meeting-participants { margin: 22px 0 0; padding: 0; border: 0; }
.meeting-participants legend { color: var(--navy); font-family: Georgia,serif; font-size: 17px; font-weight: 500; }
.meeting-participants legend span { margin-left: 5px; color: var(--muted-light); font-family: Inter,sans-serif; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.meeting-participants > p { margin: 5px 0 11px; color: var(--muted); font-size: 8px; }
.participant-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.participant-grid > label { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfb; cursor: pointer; }
.participant-grid > label:has(input:checked) { border-color: #dbc171; background: var(--gold-pale); box-shadow: inset 0 0 0 1px rgba(200,148,26,.12); }
.participant-grid input { width: 14px; min-height: 14px; margin: 0; accent-color: var(--navy); }
.participant-avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; color: var(--navy); background: #f0d17e; font-size: 9px; font-weight: 900; }
.participant-grid strong, .participant-grid small { display: block; }
.participant-grid strong { color: var(--navy); font-size: 8px; }
.participant-grid small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.meeting-consent-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; margin-top: 20px; }
.consent-check { display: flex !important; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid #dfd3ad; border-radius: 10px; background: #fffcf4; cursor: pointer; }
.consent-check input { width: 15px; min-height: 15px; margin: 1px 0 0; accent-color: var(--gold-dark); }
.consent-check strong, .consent-check small { display: block; }
.consent-check strong { color: var(--navy); font-size: 8px; line-height: 1.45; }
.consent-check small { margin-top: 3px; color: var(--muted); font-size: 7px; font-weight: 500; }
.retention-check { border-color: var(--line); background: #f8f9fa; }

.recorder-console { position: relative; margin-top: 20px; padding: 23px; overflow: hidden; border-radius: 15px; color: #fff; background: radial-gradient(circle at 20% 0,rgba(200,148,26,.18),transparent 16rem),linear-gradient(135deg,#071523,#102c43); }
.recorder-status-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.recorder-status-line strong { font-size: 9px; }
.recorder-status-line time { color: #fff; font-family: ui-monospace,monospace; font-size: 16px; font-weight: 700; letter-spacing: .03em; }
.recorder-live-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28); }
.recorder-live-dot.is-live { background: #f0545f; box-shadow: 0 0 0 5px rgba(240,84,95,.14); animation: meeting-pulse 1.5s infinite; }
@keyframes meeting-pulse { 50% { box-shadow: 0 0 0 9px rgba(240,84,95,0); } }
.audio-meter { height: 3px; margin-top: 14px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.1); }
.audio-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#c8941a,#f2d57e); transition: width .08s linear; }
.recorder-main-control { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 29px 0 21px; }
.record-button { display: grid; place-items: center; width: 72px; height: 72px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.07); cursor: pointer; box-shadow: 0 0 0 9px rgba(255,255,255,.035); }
.record-button span { width: 28px; height: 28px; border-radius: 50%; background: #f0545f; box-shadow: 0 5px 15px rgba(0,0,0,.2); }
.record-button:hover { background: rgba(255,255,255,.12); transform: scale(1.02); }
.record-button:disabled { cursor: default; opacity: .62; }
.recorder-main-control strong, .recorder-main-control small { display: block; }
.recorder-main-control strong { font-family: Georgia,serif; font-size: 18px; font-weight: 500; }
.recorder-main-control small { max-width: 360px; margin-top: 5px; color: rgba(255,255,255,.52); font-size: 8px; line-height: 1.5; }
.recorder-secondary-controls { display: flex; justify-content: center; gap: 8px; }
.recorder-secondary-controls .secondary-button { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.08); }
.recorder-secondary-controls .primary-button { color: var(--navy); background: #fff; }
.recorder-secondary-controls button:disabled { cursor: not-allowed; opacity: .35; transform: none; }
.recording-or { display: flex; align-items: center; gap: 10px; margin: 20px 0 13px; color: rgba(255,255,255,.35); font-size: 7px; text-transform: uppercase; }
.recording-or:before, .recording-or:after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.09); }
.recording-file-picker { display: flex !important; align-items: center; justify-content: space-between; gap: 15px; min-height: 46px; padding: 10px 12px; border: 1px dashed rgba(255,255,255,.18); border-radius: 9px; color: rgba(255,255,255,.8) !important; cursor: pointer; font-size: 8px !important; }
.recording-file-picker input { position: absolute; width: 1px; min-height: 1px; opacity: 0; }
.recording-file-picker small { color: rgba(255,255,255,.43); font-size: 7px; font-weight: 500; }
.existing-upload-button { width: 100%; margin-top: 8px; border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.08); }
.existing-upload-button:disabled { cursor: not-allowed; opacity: .35; }
.meeting-processing { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px 27px; border-top: 1px solid var(--line); background: #fafbfb; }
.processing-orbit { position: relative; width: 30px; height: 30px; border: 2px solid #e1e6e8; border-top-color: var(--gold); border-radius: 50%; animation: processing-spin .8s linear infinite; }
@keyframes processing-spin { to { transform: rotate(360deg); } }
.meeting-processing strong, .meeting-processing small { display: block; }
.meeting-processing strong { color: var(--navy); font-size: 9px; }
.meeting-processing small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.meeting-progress { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 9px; background: #e5e9eb; }
.meeting-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--navy),var(--gold)); transition: width .25s ease; }
.meeting-processing b { color: var(--gold-dark); font-size: 9px; }
.meeting-error { margin: 0 27px 24px; padding: 12px 14px; border: 1px solid #edc9cc; border-radius: 9px; color: var(--red); background: var(--red-pale); font-size: 8px; line-height: 1.5; }

.meeting-library { overflow: hidden; }
.meeting-library-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.meeting-library-head span:not(.count-pill), .meeting-library-head h2 { display: block; }
.meeting-library-head > div > span { color: var(--muted-light); font-size: 7px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.meeting-library-head h2 { margin: 4px 0 0; color: var(--navy); font-family: Georgia,serif; font-size: 21px; font-weight: 500; }
.meeting-empty { min-height: 270px; }
.meeting-empty button { border: 0; color: var(--gold-dark); background: transparent; cursor: pointer; font-size: 9px; font-weight: 850; }
.meeting-list { display: grid; }
.meeting-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 16px; min-height: 82px; padding: 12px 20px; border-bottom: 1px solid #edf0f1; text-decoration: none; transition: background .2s ease; }
.meeting-row:last-child { border-bottom: 0; }
.meeting-row:hover { background: #fafbfb; }
.meeting-date { display: grid; place-items: center; width: 45px; height: 49px; border: 1px solid #e3e7e9; border-radius: 10px; background: #f7f9f9; }
.meeting-date strong, .meeting-date small { display: block; }
.meeting-date strong { color: var(--navy); font-family: Georgia,serif; font-size: 18px; font-weight: 500; line-height: 1; }
.meeting-date small { margin-top: -4px; color: var(--gold-dark); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.meeting-row-main small, .meeting-row-main strong, .meeting-row-main span, .meeting-row-actions small, .meeting-row-actions strong { display: block; }
.meeting-row-main > small { color: var(--gold-dark); font-size: 7px; font-weight: 850; letter-spacing: .03em; }
.meeting-row-main > strong { margin-top: 5px; color: var(--navy); font-size: 10px; }
.meeting-row-main > span { margin-top: 5px; color: var(--muted); font-size: 8px; }
.meeting-row-actions { min-width: 110px; text-align: right; }
.meeting-row-actions small { color: var(--muted); font-size: 7px; }
.meeting-row-actions strong { margin-top: 5px; color: #46545e; font-size: 8px; }
.meeting-status { display: inline-flex; align-items: center; width: max-content; min-height: 25px; padding: 0 8px; border-radius: 999px; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.meeting-status.status-recorded { color: #315f79; background: #eaf3f8; }
.meeting-status.status-transcribing { color: var(--gold-dark); background: var(--gold-pale); }
.meeting-status.status-ready { color: var(--amber); background: var(--gold-pale); }
.meeting-status.status-failed { color: var(--red); background: var(--red-pale); }
.meeting-status.status-finalized { color: var(--green); background: var(--green-pale); }

.meeting-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.meeting-detail-heading > div:first-child > a { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 8px; font-weight: 850; text-decoration: none; }
.meeting-detail-heading h1 { margin: 0; color: var(--navy); font-family: Georgia,serif; font-size: clamp(31px,4vw,45px); font-weight: 500; letter-spacing: -.035em; }
.meeting-heading-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.meeting-heading-meta > span:not(.meeting-status) { padding-left: 8px; border-left: 1px solid var(--line-dark); color: var(--muted); font-size: 8px; }
.meeting-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.meeting-facts { display: grid; grid-template-columns: repeat(4,1fr); margin-bottom: 14px; overflow: hidden; }
.meeting-facts > div { min-height: 76px; padding: 16px 18px; border-right: 1px solid var(--line); }
.meeting-facts > div:last-child { border-right: 0; }
.meeting-facts span, .meeting-facts strong, .meeting-facts small { display: block; }
.meeting-facts span { color: var(--muted-light); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.meeting-facts strong { margin-top: 7px; color: var(--navy); font-size: 9px; }
.meeting-facts small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.meeting-detail-alert { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid #e5d4a7; border-radius: 11px; color: var(--amber); background: #fffaf0; font-size: 8px; }
.meeting-detail-alert.is-error { border-color: #e9c9cb; color: var(--red); background: var(--red-pale); }
.meeting-detail-alert strong { flex: 0 0 auto; }
.meeting-transcribe-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 14px; padding: 20px 22px; border-color: #ddc77e; background: linear-gradient(105deg,#fff,#fffaf0); }
.meeting-transcribe-card h2 { margin: 0; color: var(--navy); font-family: Georgia,serif; font-size: 21px; font-weight: 500; }
.meeting-transcribe-card p:last-child { max-width: 650px; margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.meeting-transcribe-card .primary-button:disabled { cursor: not-allowed; opacity: .45; }
.transcribe-live-state { flex-basis: 100%; color: var(--gold-dark); font-size: 8px; }
.transcribe-live-state.is-error { color: var(--red); }
.meeting-audio-card { display: grid; grid-template-columns: minmax(210px,.75fr) minmax(260px,1fr) auto; align-items: center; gap: 18px; margin-bottom: 14px; padding: 17px 19px; }
.meeting-audio-title { display: flex; align-items: center; gap: 12px; }
.audio-symbol { display: flex; align-items: center; justify-content: center; gap: 2px; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 10px; color: #fff; background: var(--navy); }
.audio-symbol i { width: 2px; height: 10px; border-radius: 2px; background: var(--gold); }
.audio-symbol i:nth-child(2), .audio-symbol i:nth-child(3) { height: 17px; }
.meeting-audio-title span, .meeting-audio-title strong, .meeting-audio-title small { display: block; }
.meeting-audio-title > div > span { color: var(--gold-dark); font-size: 7px; font-weight: 900; text-transform: uppercase; }
.meeting-audio-title strong { margin-top: 4px; color: var(--navy); font-size: 9px; }
.meeting-audio-title small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.meeting-audio-card audio { width: 100%; height: 38px; }
.meeting-audio-card form { margin: 0; }
.text-danger { border: 0; color: var(--red); background: transparent; cursor: pointer; font-size: 8px; font-weight: 850; }
.meeting-audio-deleted { margin-bottom: 14px; padding: 11px 15px; border: 1px dashed #d4dade; border-radius: 10px; color: var(--muted); background: #fafbfb; }
.meeting-audio-deleted span { color: var(--navy); font-size: 8px; font-weight: 850; }
.meeting-audio-deleted p { display: inline; margin: 0 0 0 6px; font-size: 8px; }
.print-only { display: none; }
.minutes-summary-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-bottom: 14px; }
.minutes-summary, .minutes-decisions, .minutes-actions, .minutes-discussion, .meeting-transcript, .minutes-editor, .meeting-access-card, .finalize-card { padding: 22px; }
.minutes-summary > span, .minutes-decisions > span { color: var(--gold-dark); font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.minutes-summary h2, .minutes-decisions h2 { margin: 6px 0 0; color: var(--navy); font-family: Georgia,serif; font-size: 22px; font-weight: 500; }
.minutes-summary p, .minutes-decisions p { margin: 12px 0 0; color: #43515b; font-size: 9px; line-height: 1.75; }
.minutes-decisions { border-color: #e5d9b8; background: linear-gradient(140deg,#fff,#fffcf5); }
.minutes-decisions ul, .minutes-discussion ul { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.minutes-decisions li, .minutes-discussion li { position: relative; padding-left: 15px; color: #43515b; font-size: 8px; line-height: 1.55; }
.minutes-decisions li:before, .minutes-discussion li:before { content: ""; position: absolute; top: .55em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.minutes-actions { margin-bottom: 14px; overflow: hidden; }
.minutes-action-table { display: grid; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.minutes-action-head, .minutes-action-row { display: grid; grid-template-columns: minmax(220px,1fr) 150px 105px 95px; align-items: center; }
.minutes-action-head { min-height: 37px; color: var(--muted-light); background: #f7f8f9; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.minutes-action-head span, .minutes-action-row > * { padding: 10px 12px; }
.minutes-action-row { min-height: 50px; border-top: 1px solid var(--line); }
.minutes-action-row strong { color: var(--navy); font-size: 8px; line-height: 1.5; }
.minutes-action-row > span { color: var(--muted); font-size: 8px; }
.action-state { display: inline-flex; align-items: center; width: max-content; padding: 5px 7px !important; border-radius: 99px; font-size: 7px !important; font-weight: 900; text-transform: uppercase; }
.action-open { color: var(--amber) !important; background: var(--gold-pale); }
.action-in_progress { color: #315f79 !important; background: #eaf3f8; }
.action-completed { color: var(--green) !important; background: var(--green-pale); }
.action-cancelled { color: var(--muted) !important; background: #eef1f2; }
.minutes-discussion { margin-bottom: 14px; }
.meeting-transcript { margin-bottom: 14px; }
.section-title > span { color: var(--muted); font-size: 8px; }
.transcript-segments { display: grid; gap: 14px; margin-top: 18px; }
.transcript-segments article { display: grid; grid-template-columns: auto 1fr; gap: 11px; }
.speaker-avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--navy); background: #edf1f3; font-size: 8px; font-weight: 900; }
.transcript-segments article > div > div { display: flex; align-items: center; gap: 8px; }
.transcript-segments strong { color: var(--navy); font-size: 8px; }
.transcript-segments button { padding: 0; border: 0; color: var(--gold-dark); background: transparent; cursor: pointer; font-size: 7px; font-weight: 850; }
.transcript-segments p, .plain-transcript { margin: 5px 0 0; color: #43515b; font-size: 9px; line-height: 1.7; }
.minutes-editor { margin-bottom: 14px; border-color: #d8dee1; }
.minutes-editor .section-title > small { max-width: 340px; color: var(--muted); font-size: 7px; line-height: 1.5; text-align: right; }
.minutes-editor form { display: grid; gap: 14px; }
.minutes-editor label > span { color: var(--muted-light); font-size: 7px; font-weight: 500; }
.minutes-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.action-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 5px; }
.action-editor-head strong, .action-editor-head small { display: block; }
.action-editor-head strong { color: var(--navy); font-size: 10px; }
.action-editor-head small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.action-editor-list { display: grid; gap: 7px; }
.action-editor-row { display: grid; grid-template-columns: minmax(220px,1fr) 160px 125px 115px 32px; gap: 7px; }
.action-editor-row button { border: 1px solid #efd0d2; border-radius: 8px; color: var(--red); background: var(--red-pale); cursor: pointer; }
.minutes-editor-actions { display: flex; justify-content: flex-end; }
.meeting-bottom-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.meeting-access-card h2, .finalize-card h2 { margin: 0; color: var(--navy); font-family: Georgia,serif; font-size: 21px; font-weight: 500; }
.meeting-access-card > div:first-child > p:last-child, .finalize-card > p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.meeting-access-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.access-person { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfb; }
.access-person > b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--navy); background: #efd27f; font-size: 8px; }
.access-person strong, .access-person small { display: block; }
.access-person strong { color: var(--navy); font-size: 8px; }
.access-person small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.meeting-share-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.meeting-share-form select { min-height: 78px; }
.finalize-card { border-color: #e3d6b1; background: linear-gradient(140deg,#fff,#fffaf0); }
.finalize-card form { margin-top: 16px; }
.finalize-card.is-final { border-color: #c9e2d7; background: linear-gradient(140deg,#fff,#f0faf5); }

@media (max-width: 1000px) {
  .participant-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .meeting-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .meeting-row-actions { display: none; }
  .minutes-action-head, .minutes-action-row { grid-template-columns: minmax(200px,1fr) 130px 95px 85px; }
  .action-editor-row { grid-template-columns: 1fr 1fr 120px; }
  .action-editor-row select { grid-column: 1 / 3; }
}

@media (max-width: 780px) {
  .meeting-page-heading, .meeting-detail-heading { display: block; }
  .meeting-page-heading .primary-button, .meeting-heading-actions { margin-top: 17px; }
  .meeting-heading-actions { justify-content: flex-start; }
  .meeting-metrics { grid-template-columns: repeat(2,1fr); }
  .meeting-fields-grid, .meeting-consent-row, .minutes-summary-grid, .minutes-editor-grid, .meeting-bottom-grid { grid-template-columns: 1fr; }
  .meeting-fields-grid .field-wide { grid-column: auto; }
  .participant-grid { grid-template-columns: 1fr; }
  .meeting-facts { grid-template-columns: repeat(2,1fr); }
  .meeting-facts > div:nth-child(2) { border-right: 0; }
  .meeting-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .meeting-transcribe-card { align-items: flex-start; flex-direction: column; }
  .meeting-audio-card { grid-template-columns: 1fr; }
  .meeting-audio-card form { justify-self: start; }
  .minutes-action-table { overflow-x: auto; }
  .minutes-action-head, .minutes-action-row { min-width: 690px; }
  .meeting-share-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .meeting-metrics { grid-template-columns: 1fr 1fr; }
  .meeting-studio-head, .meeting-setup-form { padding-left: 18px; padding-right: 18px; }
  .meeting-recovery { align-items: stretch; flex-direction: column; }
  .meeting-recovery-actions, .meeting-recovery-actions button { width: 100%; }
  .recorder-main-control { align-items: center; flex-direction: column; text-align: center; }
  .recorder-secondary-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .recording-file-picker { align-items: flex-start; flex-direction: column; }
  .meeting-processing { grid-template-columns: auto 1fr; padding-left: 18px; padding-right: 18px; }
  .meeting-processing b { display: none; }
  .meeting-row { grid-template-columns: auto minmax(0,1fr); gap: 11px; padding: 11px 13px; }
  .meeting-row > .meeting-status { grid-column: 2; }
  .meeting-facts { grid-template-columns: 1fr; }
  .meeting-facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .meeting-facts > div:last-child { border-bottom: 0; }
  .minutes-summary, .minutes-decisions, .minutes-actions, .minutes-discussion, .meeting-transcript, .minutes-editor, .meeting-access-card, .finalize-card { padding: 18px; }
  .action-editor-row { grid-template-columns: 1fr 36px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
  .action-editor-row input, .action-editor-row select { grid-column: 1; }
  .action-editor-row button { grid-column: 2; grid-row: 1; }
  .minutes-editor-actions .primary-button { width: 100%; }
}

@media print {
  .print-only { display: block !important; }
  .meeting-detail-page { color: #111; background: #fff; }
  .minutes-document-header { margin-bottom: 8mm; padding-bottom: 4mm; border-bottom: 2px solid #071523; }
  .minutes-document-header strong, .minutes-document-header span { display: block; }
  .minutes-document-header strong { font-family: Georgia,serif; font-size: 18pt; }
  .minutes-document-header span { margin-top: 2mm; font-size: 8pt; }
  .meeting-detail-heading { margin-bottom: 5mm; }
  .meeting-detail-heading > div:first-child > a, .meeting-detail-heading .eyebrow { display: none; }
  .meeting-detail-heading h1 { font-size: 22pt; }
  .meeting-facts, .minutes-summary-grid, .meeting-bottom-grid { break-inside: avoid; }
  .panel { border-color: #bbb !important; box-shadow: none !important; }
  .minutes-summary-grid { grid-template-columns: 1.25fr .75fr; }
  .minutes-action-head, .minutes-action-row { grid-template-columns: 1fr 35mm 27mm 24mm; }
  .minutes-action-table { overflow: visible; }
  .minutes-actions, .minutes-discussion, .meeting-transcript { break-inside: auto; }
  .transcript-segments article, .minutes-action-row { break-inside: avoid; }
}

/* MEHIT Daily Files workspace v2.5: isolated, mobile-first styling */
.daily-files-v25{max-width:1450px;margin-inline:auto;min-width:0}.daily-files-v25 .page-heading{gap:18px;align-items:center}.daily-files-v25 .page-heading h1{font-family:Georgia,serif;letter-spacing:-.04em;font-size:clamp(2rem,3.1vw,3.3rem)}.df-heading-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.df-demo-button{background:#fff;border:1px solid #d8e0e8;border-radius:10px;padding:12px 16px;color:#0b253d;font-weight:750;cursor:pointer}.df-demo-button:hover{border-color:#c3932b;background:#fff9ea}.daily-files-v25 .primary-button{border-radius:10px}.df-transfer-stage{position:relative;overflow:hidden;border-radius:20px;padding:23px 25px 17px;margin:22px 0;background:linear-gradient(112deg,#071b31 0%,#0b2b4c 54%,#102f4e 100%);color:#fff;box-shadow:0 16px 36px #061e351c}.df-transfer-stage:before{content:'';position:absolute;width:260px;height:260px;border-radius:50%;background:#d6a23522;filter:blur(45px);top:-130px;left:40%}.df-stage-heading,.df-stage-bottom{position:relative;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.df-stage-kicker{font-size:11px;letter-spacing:.14em;font-weight:800;color:#e5b44e}.df-stage-note,.df-transfer-message{color:#a9c0d4;font-size:12px}.df-transfer-track{display:flex;align-items:center;justify-content:space-between;position:relative;min-height:138px}.df-person{position:relative;z-index:2;display:flex;gap:12px;align-items:center;padding:13px;background:#ffffff12;border:1px solid #ffffff26;border-radius:14px;min-width:155px;backdrop-filter:blur(8px)}.df-person-avatar{display:grid;place-items:center;background:linear-gradient(145deg,#ffe7a4,#c58c25);border-radius:50%;width:42px;height:42px;color:#122338;font-size:13px;font-weight:850;flex:none}.df-person strong,.df-person small{display:block}.df-person strong{font-size:13px}.df-person small{font-size:10px;color:#aec4d6;margin-top:4px}.df-flight-path{position:absolute;inset:6px 145px 0;pointer-events:none}.df-flight-path svg{width:100%;height:100%;overflow:visible}.df-flight-path path{fill:none;stroke:#e4b24e;stroke-width:2.5;stroke-dasharray:5 7;filter:drop-shadow(0 0 5px #f3ba50)}.df-flying-document{position:absolute;top:28%;left:0;width:37px;height:46px;border-radius:7px;display:grid;place-items:center;background:linear-gradient(145deg,#367fee,#1252c7);border:2px solid #b9d8ff;color:white;font-weight:900;font-size:19px;box-shadow:0 0 24px #74b4ff88;opacity:0}.df-lock{position:absolute;top:10%;left:50%;transform:translateX(-50%);font-size:11px;color:#ffe4a0;white-space:nowrap}.df-transfer-stage.is-playing .df-flying-document{animation:dfFlight 3.1s cubic-bezier(.4,0,.3,1) both}.df-transfer-stage.is-playing .df-flight-path path{animation:dfDash 1.2s linear infinite}.df-stage-bottom{border-top:1px solid #ffffff1d;padding-top:14px}.df-stage-bottom a{color:#ffdc8a;font-size:12px;font-weight:750;text-decoration:none}.daily-files-v25 .file-summary-grid{gap:12px}.daily-files-v25 .file-summary-grid article{position:relative;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px;border-radius:15px;box-shadow:0 5px 22px #132b4409;padding:19px}.daily-files-v25 .file-summary-grid article strong{font-size:clamp(24px,2.5vw,33px);color:#0b2239}.df-stat-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;font-size:20px;font-weight:800}.df-blue{background:#eaf2ff;color:#2975d9}.df-green{background:#e7f8ef;color:#14a96b}.df-purple{background:#f2eaff;color:#8758d5}.df-orange{background:#fff1e4;color:#e99021}.daily-files-v25 .file-manager{overflow:hidden;border-radius:17px;box-shadow:0 9px 28px #12283d0b}.daily-files-v25 .file-toolbar{padding:16px}.daily-files-v25 .files-table{width:100%;min-width:690px;border-collapse:collapse}.daily-files-v25 .files-table thead{background:#f3f6f9}.daily-files-v25 .files-table th{font-size:11px;text-transform:uppercase;letter-spacing:.045em;color:#62778b}.daily-files-v25 .files-table td{vertical-align:middle;border-bottom:1px solid #eaf0f5}.daily-files-v25 .files-table tbody tr:hover{background:#f8fafc}.daily-files-v25 .files-table .file-cell{min-width:0}.daily-files-v25 .files-table .file-cell strong{overflow-wrap:anywhere}.daily-files-v25 .files-table .file-actions{display:flex;gap:7px;flex-wrap:wrap}.daily-files-v25 .files-table .file-actions a{padding:7px 9px;border:1px solid #dfe7ef;border-radius:7px;text-decoration:none}.daily-files-v25 .files-table .file-actions a:hover{background:#fff2d5}.daily-files-v25 .file-filters input,.daily-files-v25 .file-filters select{max-width:100%;min-width:0}.df-disclaimer{color:#758698;font-size:11px;margin:14px 0}.daily-files-v25 [hidden]{display:none!important}@keyframes dfFlight{0%{left:0;top:60%;opacity:0;transform:scale(.6) rotate(-12deg)}12%{opacity:1}48%{left:48%;top:1%;transform:scale(1.25) rotate(3deg)}88%{opacity:1}100%{left:calc(100% - 37px);top:60%;opacity:0;transform:scale(.65) rotate(12deg)}}@keyframes dfDash{to{stroke-dashoffset:-48}}@media(max-width:760px){.daily-files-v25 .page-heading{align-items:flex-start}.df-heading-actions{width:100%}.df-heading-actions>*{flex:1;text-align:center;white-space:nowrap}.df-transfer-stage{padding:17px 14px;border-radius:15px}.df-transfer-track{min-height:130px}.df-person{min-width:0;flex-direction:column;gap:5px;padding:9px;width:95px;text-align:center}.df-person-avatar{width:34px;height:34px}.df-person small{font-size:9px}.df-flight-path{inset:13px 78px 0}.df-lock{font-size:9px;top:4%}.daily-files-v25 .file-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-files-v25 .file-summary-grid article{padding:14px}.daily-files-v25 .file-toolbar{padding:12px}.daily-files-v25 .file-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-files-v25 .file-filters .search-field{grid-column:1/-1}.df-stage-note{display:none}}@media(max-width:380px){.df-heading-actions{flex-direction:column}.df-heading-actions>*{width:100%}.df-person{width:76px}.df-flight-path{inset:12px 62px 0}}@media(prefers-reduced-motion:reduce){.df-transfer-stage.is-playing .df-flying-document,.df-transfer-stage.is-playing .df-flight-path path{animation:none}.df-transfer-stage.is-playing .df-flying-document{opacity:1;left:50%;top:20%}}

/* v2.6 — cinematic scene at the end of Files, numbered pagination */
.daily-files-v25 .df-transfer-stage{margin-top:22px;margin-bottom:10px;min-height:250px;background:radial-gradient(ellipse at 50% 100%,#3567a3 0%,transparent 50%),linear-gradient(120deg,#071a30,#103255);box-shadow:0 18px 38px #071a3022}
.daily-files-v25 .df-transfer-track{min-height:165px}
.daily-files-v25 .df-flight-path path,.df-upload-transfer .df-flight-path path{stroke:#ffd36c;stroke-width:3;stroke-dasharray:none;filter:drop-shadow(0 0 8px #ffbf38)}
.daily-files-v25 .df-person,.df-upload-transfer .df-person{background:linear-gradient(135deg,#ffffff27,#ffffff0b);box-shadow:0 8px 30px #061a3240;border:1px solid #ffe0a35c}
.daily-files-v25 .df-flying-document,.df-upload-transfer .df-flying-document{box-shadow:0 0 22px #ffc754a0,0 0 45px #528dff99}
.daily-files-v25 .df-number-col{width:55px;text-align:center}.daily-files-v25 .df-row-number{text-align:center;color:#9b711f;font-weight:800;font-variant-numeric:tabular-nums}
.df-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid #e8edf3;color:#63778b;font-size:12px}.df-page-buttons{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.df-page-buttons button{min-width:35px;height:35px;border:1px solid #dfe7ee;background:white;border-radius:8px;color:#223a51;cursor:pointer}.df-page-buttons button.is-active{background:#c8941a;border-color:#c8941a;color:white;font-weight:800}.df-page-buttons button:disabled{opacity:.35;cursor:default}
.df-upload-transfer{margin-top:20px}.df-upload-transfer[hidden]{display:none!important}
@media(max-width:760px){.daily-files-v25 .df-transfer-stage{min-height:220px}.daily-files-v25 .df-transfer-track{min-height:145px}.df-pagination{padding:12px}.df-page-buttons button{min-width:33px;height:33px}}
