:root { font-family: Inter, system-ui, sans-serif; color: #17212b; background: #f3f6f9; }
html, body, #app { min-height: 100%; margin: 0; }
body { background: radial-gradient(circle at 8% 8%, #dce9f3 0, transparent 33%), #f3f6f9; }
.app-shell { min-height: 100vh; }
.app-header { height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 max(20px, calc((100vw - 1120px) / 2)); background: #fff; border-bottom: 1px solid #dce3ea; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #183a63, #16a085); font-weight: 700; font-size: 20px; }
.brand-name { color: #183a63; font-weight: 700; line-height: 1.1; }
.brand-product { color: #617181; font-size: 12px; margin-top: 3px; }
.app-content { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0; }
.activation-grid { display: grid; grid-template-columns: 1fr minmax(360px, 470px); gap: 72px; align-items: center; }
.intro-panel h1, .state-card h1 { color: #183a63; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.04em; margin: 14px 0 20px; }
.intro-panel p, .state-card p { max-width: 560px; color: #526476; font-size: 18px; line-height: 1.65; }
.eyebrow { color: #168472; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.security-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; color: #365169; background: rgba(255,255,255,.72); border: 1px solid #d7e1e9; border-radius: 14px; padding: 16px; }
.activation-card { padding: 32px; border-radius: 20px !important; }
.state-card { max-width: 680px; margin: 8vh auto; padding: 42px; background: #fff; border: 1px solid #dce3ea; border-radius: 22px; box-shadow: 0 20px 60px rgba(24,58,99,.09); }
.compact-state { display: flex; justify-content: center; align-items: center; gap: 18px; }
.clock-panel { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.clock-panel h1 { color: #183a63; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.04em; margin: 10px 0 4px; }
.clock-panel p { color: #66798b; margin: 0; }
.clock-value { color: #183a63; font-size: clamp(44px, 8vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.operation-card { width: min(520px, 100%); margin: 0 auto; padding: 34px; border-radius: 22px !important; }
.success-mark { display: grid; place-items: center; color: #16a085; font-size: 74px; margin-bottom: 12px; }
.success-mark .mud-icon-root { font-size: inherit; }
.receipt-summary { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; margin: 30px 0; padding: 20px; background: #f3f6f9; border-radius: 14px; }
.receipt-summary span { color: #66798b; }
.receipt-summary strong { color: #183a63; text-align: right; }
.eyebrow.error { color: #b3261e; }
.history-list { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #dce3ea; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 4px; border-bottom: 1px solid #edf1f4; }
.history-item div { display: grid; gap: 4px; }
.history-item span { color: #66798b; font-size: 12px; }
.device-actions { display: flex; justify-content: center; margin-top: 22px; }
.boot-loader { min-height: 100vh; display: grid; place-items: center; color: #183a63; font-weight: 600; }
#blazor-error-ui { display: none; position: fixed; inset: auto 0 0; padding: 12px; background: #b3261e; color: #fff; text-align: center; }
#blazor-error-ui a { color: #fff; font-weight: 700; }
.install-banner { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: auto; display: flex; align-items: center; gap: 12px; padding: 12px; color: #fff; background: #183a63; border-radius: 16px; box-shadow: 0 12px 32px rgba(16,39,66,.3); }
.install-app { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.install-app img { border-radius: 10px; }
.install-app div { display: grid; }
.install-app span { font-size: 12px; opacity: .78; }
.install-action { border: 0; border-radius: 9px; padding: 9px 15px; color: #183a63; background: #fff; font-weight: 700; cursor: pointer; }
.install-close { border: 0; padding: 4px 7px; color: #fff; background: transparent; font-size: 22px; cursor: pointer; }
@media (max-width: 820px) {
  .app-header { padding: 0 18px; }
  .app-content { padding: 32px 0; }
  .activation-grid { grid-template-columns: 1fr; gap: 28px; }
  .intro-panel h1 { font-size: 38px; }
  .intro-panel p { font-size: 16px; }
  .security-note { margin-top: 22px; }
  .activation-card { padding: 24px 20px; }
  .clock-panel { align-items: flex-start; }
  .clock-value { font-size: 42px; }
  .operation-card { padding: 26px 20px; }
}
