/* ============================================================
   HECA BI - Hondeen EC Assistant
   Typography: system font stack only (no bundled or remote fonts).
   Navy #002b5b / gold #c9a84c.
   ============================================================ */
:root {
  --navy: #002b5b;
  --navy-dark: #00396f;
  --navy-deep: #001f42;
  --gold: #c9a84c;
  --gold-deep: #7f6717;
  --light-gray: #f5f5f0;
  --charcoal: #2d2d2d;
  --gray: #6b6b6b;

  --bg: var(--light-gray);
  --panel: #ffffff;
  --panel-2: #fafaf7;
  --text: var(--charcoal);
  --muted: var(--gray);
  --border: #e3e3dc;
  --shadow: 0 2px 14px rgba(0, 31, 66, 0.08);
  --ok: #1f9254;
  --warn: #c9821a;
  --danger: #c0392b;
  --info: #2b6cb0;
  --radius: 10px;
  --sidebar-w: 246px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-serif: Georgia, 'Times New Roman', 'Songti SC', SimSun, serif;
  --font: var(--font-sans);
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

body.theme-dark {
  --bg: #121b26;
  --panel: #1b2735;
  --panel-2: #223044;
  --text: #ecf0f5;
  --muted: #a7b4c4;
  --border: #33445a;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  --light-gray: #1b2735;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.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;
}
a { color: var(--navy); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border: 1px solid transparent; border-radius: 6px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-dark); }
.btn-gold { background: var(--gold); color: #2d2410; }
.btn-gold:hover:not(:disabled) { background: #d8b85a; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover:not(:disabled) { background: var(--panel-2); border-color: var(--gold); }
body.theme-dark .btn-outline { color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #a93226; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-xs { padding: 3px 8px; font-size: 12px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  border-radius: 6px; cursor: pointer; font-size: 16px;
}
.icon-btn:hover { border-color: var(--gold); }
.link-btn { background: none; border: none; color: var(--navy); cursor: pointer; padding: 2px 4px; font-family: inherit; font-size: inherit; }
body.theme-dark .link-btn { color: var(--gold); }
.link-btn.danger { color: var(--danger); }

/* ---------- Form controls ---------- */
input, select, textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 10px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 43, 91, .1); }
body.theme-dark input:focus, body.theme-dark select:focus, body.theme-dark textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--navy); }
textarea { min-height: 80px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--text); font-size: 13px; }
.field .hint { font-size: 12px; color: var(--muted); }
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; margin: -4px 0 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inline-fields .field { margin: 0; min-width: 150px; }

/* ============================================================
   LOGIN — official hondeen.com shell
   ============================================================ */
.login-view { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); padding-top: 72px; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 72px;
  background: rgba(0, 43, 91, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.official-nav {
  height: 72px; max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-brand { display: flex; align-items: center; gap: 26px; }
.site-logo { height: 52px; width: auto; display: block; flex-shrink: 0; }
.site-brand-text { display: flex; flex-direction: column; gap: 10px; white-space: nowrap; }
.site-brand-name {
  font-family: var(--font-sans);
  font-size: 1.42rem; font-weight: 700; color: var(--white);
  letter-spacing: 4px; line-height: 1.05;
}
.site-brand-en {
  font-family: var(--font-sans); font-size: 0.84rem; font-weight: 500;
  color: var(--gold); letter-spacing: 1.8px; text-transform: uppercase; line-height: 1;
}
.lang-select { min-width: 132px; padding: 6px 8px; font-size: 13px; }
.official-lang .lang-select {
  min-width: 148px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 2px;
  font-family: var(--font-sans); font-size: 0.84rem; letter-spacing: 0.5px;
}
.official-lang .lang-select option { color: var(--charcoal); background: #fff; }

.login-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 64px 20px 72px;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(201,168,76,0.12), transparent 68%),
    linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}
body.theme-dark .login-main { background: var(--bg); }
.login-card {
  width: 100%; max-width: 460px; background: var(--panel);
  border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: 2px; box-shadow: var(--shadow-lg);
  padding: 40px 42px 30px;
}
.login-card-head { text-align: center; margin-bottom: 28px; }
.login-mark { width: 56px; height: auto; margin-bottom: 12px; }
.login-title {
  font-family: var(--font-serif); font-size: 30px; font-weight: 400;
  margin: 0 0 8px; color: var(--navy); letter-spacing: 0.5px;
}
body.theme-dark .login-title { color: var(--gold); }
.login-subtitle {
  margin: 0; color: var(--muted); font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
}
.login-card .btn { margin-top: 8px; height: 46px; font-size: 14px; letter-spacing: 1px; }
.login-hint { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; min-height: 16px; }

.site-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0; }
.official-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3,minmax(0,1fr));
  gap: 48px; margin-bottom: 48px;
}
.footer-rule { display: block; width: 40px; height: 2px; background: var(--gold); opacity: .85; margin-bottom: 22px; }
.footer-brand p { font-size: 0.9375rem; color: rgba(255,255,255,0.5); line-height: 1.95; max-width: 340px; margin: 0; }
.footer-col h3 {
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--white); margin-bottom: 20px;
}
.footer-col a { display: block; font-size: 0.9375rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom { border-top: 0; padding-top: 0; }
.footer-bottom p { font-size: 0.875rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-view { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: #dbe6f2; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 40;
  box-shadow: 2px 0 12px rgba(0,0,0,.16);
}
.sidebar-brand {
  height: 72px; display: flex; align-items: center; gap: 14px; padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.12); flex: 0 0 auto;
}
.sidebar-logo { height: 42px; width: auto; flex-shrink: 0; }
.sidebar-brand-text { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.sidebar-brand-name {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 700;
  color: #fff; letter-spacing: 3px; line-height: 1.05;
}
.sidebar-brand-en {
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 500;
  color: var(--gold); letter-spacing: 1.6px; text-transform: uppercase;
}
.main-nav { flex: 1; overflow-y: auto; padding: 10px 0; }
.nav-group-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.45);
  padding: 12px 20px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 20px; background: none; border: none; color: #dbe6f2; cursor: pointer;
  font-family: inherit; font-size: 14px; border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { background: rgba(201,168,76,.16); border-left-color: var(--gold); color: #fff; font-weight: 600; }
.nav-icon { width: 18px; text-align: center; opacity: .85; font-size: 15px; }
.nav-item.active .nav-icon { color: var(--gold); }

.sidebar-bottom { position: relative; padding: 12px; border-top: 1px solid rgba(255,255,255,.12); flex: 0 0 auto; }
.account-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  color: #fff; cursor: pointer; font-family: inherit; text-align: left;
}
.account-btn:hover { background: rgba(255,255,255,.12); }
.account-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: var(--gold); color: #2d2410; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.account-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.account-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-role { font-size: 11px; color: rgba(255,255,255,.6); }
.account-caret { font-size: 12px; }
.account-menu {
  position: absolute; bottom: calc(100% + 8px); left: 12px; right: 12px;
  background: var(--navy) !important; border: 2px solid #fff !important; border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); padding: 6px; z-index: 50; color: #fff;
}
.account-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 10px; background: none; border: none; border-radius: 5px;
  color: #fff; font-family: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.account-item:hover { background: var(--navy-dark); }
.account-lang-item { flex-direction: column; align-items: stretch; gap: 6px; cursor: default; }
.account-lang-item label { font-size: 13px; }
.account-lang-item .lang-select { width: 100%; background: #fff; color: var(--navy); border: none; }
.account-menu-sep { height: 1px; background: rgba(255,255,255,.22); margin: 5px 4px; }

.app-main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-header {
  height: 64px; flex: 0 0 64px; background: var(--panel); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.menu-toggle { display: none; }
.breadcrumb { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.breadcrumb .sep { color: var(--muted); margin: 0 6px; font-weight: 400; }
.breadcrumb .muted { color: var(--muted); font-weight: 400; }
.app-header-actions { display: flex; align-items: center; gap: 10px; }
.page-container { flex: 1; padding: 22px 24px 40px; outline: none; }
.sidebar-overlay { display: none; }

/* ============================================================
   PAGE / CARDS / TABLES
   ============================================================ */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title { font-size: 22px; margin: 0; color: var(--navy); }
body.theme-dark .page-title { color: var(--gold); }
.page-subtitle { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title { font-size: 15px; font-weight: 700; margin: 0; }
.card-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 140px; }
.filters label { font-size: 12px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 24px; font-weight: 700; margin: 6px 0 2px; color: var(--navy); font-variant-numeric: tabular-nums; }
body.theme-dark .kpi-value { color: var(--gold); }
.kpi-delta { font-size: 12px; }
.delta-up { color: var(--ok); }
.delta-down { color: var(--danger); }
.delta-flat { color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 1080px) { .two-col { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.table th { background: var(--panel-2); font-weight: 600; color: var(--muted); font-size: 12px; position: sticky; top: 0; }
.table tbody tr:hover { background: var(--panel-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; }
.table-empty { text-align: center; padding: 36px; color: var(--muted); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-ok { background: rgba(31,146,84,.12); color: var(--ok); }
.badge-warn { background: rgba(201,130,26,.14); color: var(--warn); }
.badge-danger { background: rgba(192,57,43,.12); color: var(--danger); }
.badge-info { background: rgba(43,108,176,.12); color: var(--info); }
.badge-navy { background: rgba(0,43,91,.1); color: var(--navy); }
body.theme-dark .badge-navy { background: rgba(201,168,76,.16); color: var(--gold); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  padding: 10px 16px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); border-bottom-color: var(--gold); }
body.theme-dark .tab.active { color: var(--gold); }

/* ---------- Alerts / callouts ---------- */
.callout { padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; border-left: 3px solid; }
.callout-info { background: rgba(43,108,176,.08); border-color: var(--info); }
.callout-warn { background: rgba(201,130,26,.08); border-color: var(--warn); }
.callout-danger { background: rgba(192,57,43,.08); border-color: var(--danger); }
.callout-ok { background: rgba(31,146,84,.08); border-color: var(--ok); }
.callout strong { display: block; margin-bottom: 2px; }
.alert-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border); }
.alert-row:last-child { border-bottom: none; }
.alert-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: 0 0 8px; }
.alert-dot.danger { background: var(--danger); }
.alert-dot.warn { background: var(--warn); }
.alert-dot.info { background: var(--info); }
.alert-title { font-weight: 600; font-size: 13px; }
.alert-detail { font-size: 12px; color: var(--muted); }

/* ---------- Simple SVG chart ---------- */
.chart { width: 100%; height: 240px; display: block; }
.chart-empty { height: 240px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--navy); }
.legend .gold::before { background: var(--gold); }

/* ---------- File upload ---------- */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 8px; padding: 26px; text-align: center;
  background: var(--panel-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--gold); background: rgba(201,168,76,.06); }
.upload-zone .icon { font-size: 28px; color: var(--gold); }
.upload-zone .main-text { font-weight: 600; margin: 6px 0 2px; }
.upload-zone .sub-text { font-size: 12px; color: var(--muted); }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 6px; font-size: 13px; }
.preview-table { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 14px; font-size: 13px; }
.pagination .page-btn { padding: 4px 10px; border: 1px solid var(--border); background: var(--panel); border-radius: 5px; cursor: pointer; color: var(--text); }
.pagination .page-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   MODAL & TOAST
   ============================================================ */
.modal-root {
  position: fixed; inset: 0; background: rgba(0,31,66,.5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--panel); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; border-top: 4px solid var(--navy);
}
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 16px; font-weight: 700; margin: 0; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.version-item { border-left: 2px solid var(--gold); padding: 0 0 18px 16px; position: relative; }
.version-item::before { content: ""; position: absolute; left: -5px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.version-meta { font-size: 12px; color: var(--muted); }
.version-title { font-weight: 700; margin: 2px 0 6px; }
.version-notes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.version-notes li { margin-bottom: 2px; }

.toast-root { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 240px; max-width: 360px; padding: 12px 16px; border-radius: 8px; color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: 13px; animation: toastIn .2s ease-out;
}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
.toast.info { background: var(--navy); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .big { font-size: 34px; color: var(--border); margin-bottom: 8px; }

/* ============================================================
   MOBILE / RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 270px; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  body.sidebar-open .sidebar-overlay { display: block; }
  .page-container { padding: 16px 14px 30px; }
  .app-header { padding: 0 14px; }
  .official-nav, .official-container { padding-left: 16px; padding-right: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .login-card { padding: 30px 22px 24px; }
  .site-brand-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .official-lang .lang-select { min-width: 118px; }
  .page-title { font-size: 19px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .app-header-actions .btn { font-size: 12px; padding: 6px 9px; }
}
