:root {
  color-scheme: dark;
  --bg: #09090d;
  --panel: #101015;
  --panel-soft: #141419;
  --line: #27252b;
  --text: #f2efe9;
  --muted: #8e8a91;
  --dim: #5c5960;
  --red: #d44c4c;
  --red-bright: #f16d68;
  --gold: #c5a47a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 13px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.hidden { display: none !important; }
.grain { position: fixed; z-index: 20; pointer-events: none; inset: 0; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: radial-gradient(ellipse at 18% 48%, #22171b 0, #101014 40%, #09090d 78%); }
.login-art { min-height: 100vh; position: relative; display: grid; place-items: center; overflow: hidden; border-right: 1px solid #27232a; background: radial-gradient(ellipse at center, #42212652, transparent 52%); }
.login-art::before, .login-art::after { content: ""; position: absolute; width: 1px; height: 130%; background: linear-gradient(transparent, #ffffff13, transparent); transform: rotate(37deg); }
.login-art::after { transform: rotate(-37deg); }
.orbit { border: 1px solid #d5604928; border-radius: 50%; position: absolute; width: min(70vw, 580px); aspect-ratio: 1; animation: turn 80s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; width: 4px; height: 4px; background: var(--red-bright); box-shadow: 0 0 20px 5px #d44c4c65; top: 14%; left: 17%; }
.orbit::after { width: 3px; height: 3px; top: 78%; left: 81%; background: var(--gold); }
.orbit-two { width: min(49vw, 410px); border-color: #b3946c20; animation-direction: reverse; animation-duration: 55s; }
.seal { position: relative; font-family: Georgia, serif; font-size: clamp(110px, 18vw, 220px); letter-spacing: -.12em; font-weight: 400; color: #e7ddd3; text-shadow: 0 0 80px #c3544029; padding-right: .12em; }
.seal::before { content: ""; position: absolute; inset: 9%; border: 1px solid #c5a47a56; transform: rotate(45deg); }
.seal span, .brand-mark span, .hero-monogram span { color: var(--red-bright); }
.art-caption { position: absolute; bottom: 46px; color: #938d8d; font-size: 9px; letter-spacing: .34em; }
.login-side { max-width: 540px; width: 100%; justify-self: center; align-self: center; padding: 50px clamp(30px, 7vw, 110px); }
.login-brand, .sidebar-brand { display: flex; align-items: center; gap: 12px; letter-spacing: .14em; font-size: 11px; color: #d8d2cd; }
.login-brand b, .brand-name b { color: #fff; font-weight: 500; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #a54948; color: #fff; font-family: Georgia, serif; font-size: 18px; letter-spacing: -.15em; padding-right: 3px; }
.login-copy { margin: 78px 0 35px; }
.eyebrow { margin: 0 0 17px; color: var(--gold); font-size: 9px; letter-spacing: .22em; font-weight: 600; }
.eyebrow i, .live-label i, .status-dot, .history-live-dot, .connection-dot { display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 1px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 12px #f16d6870; }
h1, h2, h3, p { margin-top: 0; }
.login-copy h1, .hero h1 { margin-bottom: 17px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 57px); line-height: 1.02; font-weight: 400; letter-spacing: -.035em; }
h1 em, h2 em { color: var(--red-bright); font-weight: 400; }
.muted, .login-copy > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-form, .modal-card { display: flex; flex-direction: column; }
.login-form label, .modal-card label { margin: 14px 0 8px; color: #c8c1bf; font-size: 11px; }
input, select { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #302d33; outline: 0; background: #111115; color: var(--text); border-radius: 2px; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: #625e65; }
input:focus, select:focus { border-color: #a74746; box-shadow: 0 0 0 3px #d44c4c17; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 0 17px; border: 1px solid transparent; cursor: pointer; font-size: 11px; font-weight: 600; transition: .2s ease; }
.button-primary { background: linear-gradient(105deg, #a83b3e, #c9514d); color: white; box-shadow: 0 8px 24px #ac383622; }
.button-primary:hover { background: linear-gradient(105deg, #c0494b, #da625c); transform: translateY(-1px); }
.button-outline { border-color: #4b4142; background: #141216aa; color: #e8e0da; }
.button-outline:hover { border-color: var(--red); background: #211619; }
.login-button { width: 100%; margin-top: 22px; justify-content: space-between; height: 47px; }
.login-foot { margin: 45px 0 0; color: #625e65; font-size: 8px; letter-spacing: .16em; }
.login-foot span { color: var(--red); padding: 0 7px; }
.form-error { min-height: 17px; padding-top: 9px; color: #f18a83; font-size: 11px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 3; inset: 0 auto 0 0; width: 235px; padding: 29px 20px 17px; display: flex; flex-direction: column; border-right: 1px solid #27252a; background: #0d0d11; }
.sidebar-brand { gap: 11px; font-size: 9px; }
.brand-name { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-name small { color: #77727a; font-size: 8px; letter-spacing: .22em; margin-top: 4px; }
.nav-label { margin: 64px 0 13px 10px; color: #68636c; font-size: 8px; letter-spacing: .2em; }
.side-nav { display: grid; gap: 6px; }
.nav-link { min-height: 41px; position: relative; display: flex; align-items: center; gap: 11px; padding: 0 12px; color: #938d95; font-size: 11px; transition: .2s; }
.nav-link:hover, .nav-link.active { background: linear-gradient(90deg, #302024, transparent); color: #f1e8e4; }
.nav-link.active::before { content: ""; position: absolute; width: 2px; height: 23px; left: 0; background: var(--red-bright); }
.nav-icon { width: 14px; color: #a85a58; font-size: 15px; }
.nav-indicator { width: 4px; height: 4px; margin-left: auto; border-radius: 50%; background: var(--red-bright); }
.sidebar-bottom { margin-top: auto; }
.connection-card { display: flex; align-items: center; gap: 11px; padding: 13px 10px; border: 1px solid #28272b; background: #131317; }
.connection-dot { flex: 0 0 6px; margin: 0; background: #82ae80; box-shadow: 0 0 12px #82ae8070; }
.connection-card div { display: flex; flex-direction: column; gap: 5px; }
.connection-card b { font-size: 10px; font-weight: 500; }
.connection-card small { color: #716e74; font-size: 9px; }
.logout-button { width: 100%; display: flex; align-items: center; gap: 10px; margin: 14px 0 22px; padding: 10px; background: transparent; border: 0; color: #a09aa0; cursor: pointer; text-align: left; font-size: 10px; }
.logout-button:hover { color: #fff; }
.logout-button span { color: var(--red-bright); font-size: 15px; }
.sidebar-version { display: flex; justify-content: space-between; color: #5b575f; font-size: 7px; letter-spacing: .13em; }
.sidebar-version span { color: #827b80; }
.main-content { max-width: 1660px; min-height: 100vh; margin-left: 235px; padding: 0 5.1%; }
.topbar { height: 65px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #211f25; }
.breadcrumb { color: #757078; font-size: 8px; letter-spacing: .15em; }
.breadcrumb i { margin: 0 10px; color: #4f484e; font-style: normal; }
.breadcrumb b { color: #cfc7c2; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 15px; color: #a29ca3; }
.live-label { color: #c5bdbd; font-size: 8px; letter-spacing: .13em; }
.live-label i { width: 5px; height: 5px; margin: 0 6px 0 0; background: #82ae80; }
.topbar-divider { height: 19px; width: 1px; background: #2b292e; }
.clock { font-variant-numeric: tabular-nums; color: #99939a; font-size: 10px; }
.avatar { width: 25px; height: 25px; display: grid; place-items: center; margin-left: 6px; border: 1px solid #704347; border-radius: 50%; color: #e1aaa3; font-family: Georgia, serif; }
.admin-label { color: #a9a2a7; font-size: 8px; letter-spacing: .1em; }
.hero { min-height: 307px; position: relative; display: flex; align-items: center; justify-content: space-between; overflow: hidden; border-bottom: 1px solid #28242a; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, #23141735 57%, transparent); }
.hero-copy { z-index: 1; padding: 29px 0 34px; }
.hero-copy .eyebrow { margin-bottom: 17px; }
.hero h1 { font-size: clamp(43px, 5vw, 61px); margin-bottom: 13px; }
.hero-copy > p:not(.eyebrow) { max-width: 362px; color: #99939a; font-size: 11px; line-height: 1.75; margin-bottom: 21px; }
.hero .button { min-height: 36px; font-size: 10px; }
.hero-art { position: relative; width: 270px; height: 240px; margin-right: 8%; display: grid; place-items: center; }
.hero-ring { position: absolute; border: 1px solid #ab4a483b; border-radius: 50%; aspect-ratio: 1; width: 205px; }
.ring-outer { width: 223px; border-style: dashed; border-color: #b2936c37; animation: turn 80s linear infinite; }
.ring-inner { width: 158px; border-color: #db69662e; }
.hero-crosshair { position: absolute; width: 275px; height: 1px; background: linear-gradient(90deg, transparent, #c783704a, transparent); transform: rotate(-34deg); }
.hero-crosshair::after { content: ""; display: block; width: 275px; height: 1px; background: linear-gradient(90deg, transparent, #c783704a, transparent); transform: rotate(68deg); }
.hero-monogram { z-index: 1; font: 90px/.9 Georgia, serif; letter-spacing: -.16em; padding-right: .16em; text-shadow: 0 0 45px #e4564a30; }
.hero-art-label { position: absolute; bottom: -1px; color: #c3a47f; font: 9px Georgia, serif; letter-spacing: .17em; }
.hero-art-label span { display: block; margin-top: 6px; color: #71676b; font: 7px Inter, sans-serif; text-align: center; letter-spacing: .2em; }
.hero-index { position: absolute; right: 1px; bottom: 18px; color: #8c7270; font: 9px Georgia, serif; letter-spacing: .1em; }
.hero-index span { padding: 0 5px; color: #554448; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0 54px; }
.stat-card { min-height: 108px; padding: 14px 15px; border: 1px solid #28262b; background: linear-gradient(135deg, #141317, #0f0f13); }
.stat-head { display: flex; align-items: center; justify-content: space-between; color: #8f8991; font-size: 8px; letter-spacing: .12em; }
.stat-icon { color: #988373; font-size: 13px; }
.stat-icon.red { color: var(--red-bright); }
.stat-value { margin: 10px 0 4px; font: 29px/1 Georgia, serif; color: #eee8e1; }
.stat-foot { color: #77717a; font-size: 9px; }
.status-dot { width: 5px; height: 5px; margin: 0 4px 0 0; background: #82ae80; box-shadow: none; }
.section-block { padding-bottom: 47px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .modal-card h2 { margin-bottom: 5px; font: 33px/1.1 Georgia, serif; letter-spacing: -.025em; }
.section-subtitle { margin: 0; color: #827c84; font-size: 10px; }
.section-heading > .button { min-height: 37px; margin-bottom: 2px; font-size: 10px; }
.module-list { display: grid; gap: 9px; }
.module-card { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(100px, .75fr) minmax(145px, 1fr) minmax(220px, 1.2fr); align-items: center; gap: 15px; min-height: 76px; padding: 14px 17px; border: 1px solid #29272d; background: linear-gradient(105deg, #141317, #101014); }
.module-name-wrap { display: flex; align-items: center; gap: 11px; min-width: 0; }
.module-glyph { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border: 1px solid #3c3034; color: #d06a62; font: 15px Georgia, serif; }
.module-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e4ded9; font-size: 11px; }
.module-key { overflow: hidden; margin-top: 5px; color: #77717a; font: 9px Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.module-status { display: flex; align-items: center; gap: 7px; color: #c1babd; font-size: 9px; }
.module-status i { width: 6px; height: 6px; border-radius: 50%; background: #817a80; }
.module-status.is-active i { background: #82ae80; box-shadow: 0 0 10px #82ae8070; }
.module-status.is-active { color: #a6c5a0; }
.module-expiry { display: flex; flex-direction: column; gap: 5px; color: #d3ccc7; font-size: 9px; }
.module-expiry small { color: #77717a; font-size: 8px; }
.module-expiry.expired { color: #b3a0a0; }
.module-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.small-button { min-height: 30px; padding: 0 10px; border: 1px solid #433337; background: #1b1418; color: #e7aaa3; cursor: pointer; font-size: 9px; transition: .2s; }
.small-button:hover { border-color: #bd5552; background: #2a171a; }
.small-button.secondary { border-color: #333037; background: transparent; color: #aaa3a9; }
.small-button.secondary:hover { color: #fff; border-color: #64585d; }
.empty-state { padding: 40px 15px; border: 1px dashed #39333a; text-align: center; }
.empty-glyph { color: #b0524f; font: 30px Georgia, serif; }
.empty-state h3 { margin: 12px 0 7px; font: 21px Georgia, serif; }
.empty-state p { max-width: 420px; margin: 0 auto 18px; color: #827c84; font-size: 10px; line-height: 1.65; }
.empty-state .button { font-size: 10px; }
.history-section { padding-top: 3px; }
.history-heading { margin-bottom: 18px; }
.history-total { display: flex; align-items: center; gap: 7px; padding-bottom: 5px; color: #8b858d; font-size: 8px; letter-spacing: .12em; }
.history-live-dot { width: 5px; height: 5px; margin: 0; background: #82ae80; box-shadow: none; }
.history-table-wrap { overflow-x: auto; border: 1px solid #29272d; background: #101014; }
.history-table { width: 100%; border-collapse: collapse; min-width: 670px; text-align: left; }
.history-table th { height: 38px; padding: 0 15px; border-bottom: 1px solid #2c292f; color: #77717a; font-size: 8px; font-weight: 500; letter-spacing: .13em; }
.history-table td { height: 52px; padding: 7px 15px; border-bottom: 1px solid #211f24; color: #c8c1c3; font-size: 9px; }
.history-table tr:last-child td { border-bottom: 0; }
.history-module { color: #e3ddd8; font-size: 10px; }
.history-module small { display: block; margin-top: 4px; color: #77717a; font: 8px Consolas, monospace; }
.event-badge { display: inline-block; padding: 5px 7px; border: 1px solid #343039; color: #aaa3aa; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.event-badge.activated { color: #e4a19b; border-color: #603536; background: #28191b; }
.event-badge.expired { color: #c8a477; border-color: #514333; }
.event-badge.created { color: #a7bda2; border-color: #354431; }
.event-badge.paused { color: #c8a477; border-color: #514333; }
.event-badge.resumed, .event-badge.serial_added { color: #a7bda2; border-color: #354431; }
.history-module .history-serial { color: #c28c84; }
.table-empty { padding: 27px; color: #827c84; text-align: center; font-size: 10px; }
.load-more { display: block; margin: 14px auto 0; padding: 9px 13px; border: 1px solid #343039; background: transparent; color: #b7afb3; cursor: pointer; font-size: 9px; }
.load-more:hover { border-color: #8e4d4d; color: #fff; }
.page-footer { display: flex; justify-content: space-between; padding: 18px 0 23px; border-top: 1px solid #242228; color: #625d65; font-size: 7px; letter-spacing: .16em; }
.page-footer i { color: #aa514d; font-style: normal; }

.modal { width: min(440px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; border: 1px solid #393038; background: #111014; color: var(--text); box-shadow: 0 20px 100px #000b; }
.modal::backdrop { background: #050507d9; backdrop-filter: blur(5px); }
.modal-card { position: relative; padding: 31px; }
.modal-close { position: absolute; top: 15px; right: 17px; border: 0; background: none; color: #908991; cursor: pointer; font-size: 22px; }
.modal-card .eyebrow { margin-bottom: 13px; }
.modal-card h2 { margin-bottom: 10px; font-size: 30px; }
.modal-copy { margin-bottom: 16px; color: #8e8790; font-size: 10px; line-height: 1.65; }
.modal-card label { margin-top: 13px; }
.modal-card input { height: 41px; }
.input-hint { margin: 7px 0 0; color: #706b72; font-size: 9px; line-height: 1.6; }
.modal-submit { justify-content: space-between; margin-top: 13px; }
.serial-section { padding-top: 4px; }
.serial-section .section-heading { margin-bottom: 15px; }
.serial-panel { padding: 20px; border: 1px solid #393038; background: linear-gradient(125deg, #151317, #101014 70%); }
.serial-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.3fr) minmax(130px, .65fr) auto; align-items: end; gap: 0 13px; padding-bottom: 17px; border-bottom: 1px solid #29272d; }
.serial-field label { display: block; margin: 0 0 8px; color: #c8c1bf; font-size: 10px; }
.serial-field input, .serial-field select { height: 41px; }
.serial-form-actions { display: flex; gap: 8px; }
.serial-form-actions .button { min-height: 41px; padding: 0 12px; font-size: 9px; white-space: nowrap; }
.serial-help, .serial-form > .form-error { grid-column: 1 / -1; }
.serial-help { margin-top: 10px; }
.serial-form > .form-error { min-height: 0; }
.serial-form input:disabled, .serial-form select:disabled { opacity: .58; cursor: not-allowed; }
.license-list-heading { display: flex; align-items: center; gap: 9px; margin: 19px 0 10px; }
.license-list-heading h3 { margin: 0; font: 19px Georgia, serif; }
.license-list-heading > span { color: #a59ba2; font-size: 9px; }
.license-list { display: grid; gap: 7px; }
.license-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #29272d; background: #141317; }
.license-identity { min-width: 0; }
.license-identity strong { display: block; overflow-wrap: anywhere; color: #e7dfd9; font: 10px Consolas, monospace; }
.license-identity small { display: block; margin-top: 5px; color: #77717a; font-size: 8px; }
.license-status { display: inline-flex; align-items: center; gap: 6px; color: #aaa3aa; font-size: 8px; }
.license-status i { width: 5px; height: 5px; border-radius: 50%; background: #817a80; }
.license-status.active { color: #a6c5a0; }
.license-status.active i { background: #82ae80; }
.license-status.paused { color: #c8a477; }
.license-status.paused i { background: #c8a477; }
.license-actions { display: flex; justify-content: flex-end; gap: 6px; }
.license-empty { margin: 0; padding: 18px; border: 1px dashed #39333a; color: #827c84; text-align: center; font-size: 9px; }
.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; max-width: min(390px, calc(100vw - 44px)); padding: 12px 16px; border: 1px solid #4f373b; background: #1a1418; color: #e7deda; box-shadow: 0 9px 40px #0009; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; font-size: 10px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #8f3939; color: #f0aaa4; }

@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 1050px) {
  .sidebar { width: 205px; }
  .main-content { margin-left: 205px; padding: 0 4%; }
  .module-card { grid-template-columns: minmax(120px, 1.1fr) minmax(86px, .7fr) minmax(120px, 1fr) auto; }
  .module-expiry { grid-column: 1 / 3; grid-row: 2; flex-direction: row; align-items: center; }
  .module-actions { grid-column: 3 / 5; grid-row: 2; }
  .hero-art { margin-right: 0; transform: scale(.83); }
}
@media (max-width: 620px) {
  .serial-panel { padding: 15px 12px; }
  .serial-form { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .serial-field, .serial-help, .serial-form > .form-error { grid-column: 1; }
  .serial-form-actions { display: grid; grid-template-columns: 1fr; }
  .license-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .license-actions { grid-column: 1 / -1; justify-content: stretch; }
  .license-actions .small-button { flex: 1; }
}
@media (max-width: 700px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-art { position: absolute; inset: 0 0 auto; min-height: 245px; border: 0; opacity: .45; }
  .orbit { width: 230px; }
  .orbit-two { width: 170px; }
  .seal { font-size: 90px; }
  .art-caption { bottom: 18px; font-size: 7px; }
  .login-side { z-index: 1; margin-top: 185px; padding: 26px 28px 38px; }
  .login-copy { margin: 55px 0 27px; }
  .login-copy h1 { font-size: 45px; }
  .login-foot { margin-top: 30px; }
  .sidebar { position: sticky; top: 0; width: 100%; height: 57px; padding: 0 15px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid #28252b; }
  .sidebar-brand { font-size: 8px; }
  .sidebar-brand .brand-mark { width: 30px; height: 30px; font-size: 15px; }
  .brand-name small, .nav-label, .sidebar-bottom, .side-nav .nav-link:not(.active), .nav-indicator { display: none; }
  .side-nav { display: flex; margin-left: auto; }
  .nav-link { min-height: 35px; padding: 0 8px; font-size: 9px; gap: 5px; }
  .nav-link.active::before { height: 17px; }
  .main-content { margin-left: 0; padding: 0 19px; }
  .topbar { height: 48px; }
  .breadcrumb { font-size: 7px; }
  .topbar-right { gap: 8px; }
  .live-label, .topbar-divider, .admin-label { display: none; }
  .hero { min-height: 265px; }
  .hero-copy { padding: 25px 0; }
  .hero h1 { font-size: 47px; }
  .hero-copy > p:not(.eyebrow) { max-width: 280px; font-size: 10px; }
  .hero-art { position: absolute; right: -86px; opacity: .28; transform: scale(.75); }
  .hero-index { bottom: 11px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 41px; }
  .stat-card { min-height: 95px; padding: 12px; }
  .stat-head { font-size: 7px; }
  .stat-value { font-size: 26px; }
  .stat-foot { font-size: 8px; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 28px; }
  .section-subtitle { max-width: 260px; font-size: 9px; line-height: 1.5; }
  .section-heading > .button { min-height: 34px; gap: 6px; padding: 0 9px; font-size: 8px; }
  .module-card { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px; }
  .module-name-wrap { grid-column: 1; }
  .module-status { grid-column: 2; grid-row: 1; }
  .module-expiry { grid-column: 1 / 3; grid-row: 2; flex-direction: column; align-items: flex-start; }
  .module-actions { grid-column: 1 / 3; grid-row: 3; justify-content: stretch; }
  .module-actions .small-button { flex: 1; }
  .history-heading { align-items: end; }
  .history-total { font-size: 7px; }
  .page-footer { font-size: 6px; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
