[hidden] { display: none !important; }
:root { --text3: #aaa9a3; }
button, input, select, textarea { font-size: 14px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: wait; }
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 420px); padding: 32px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 16px; }
.auth-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--teal); border-radius: 10px; font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card p { font-size: 16px; color: var(--text2); margin: 0 0 24px; }
.auth-card label { display: block; font-size: 14px; margin-bottom: 6px; }
.auth-card input { width: 100%; margin-bottom: 18px; padding: 12px; background: var(--bg); border: 1px solid var(--border2); border-radius: 8px; color: var(--text); font-size: 16px; }
.auth-card button { width: 100%; padding: 12px; font-size: 16px; }
.auth-card #authMessage { font-size: 14px; color: var(--amber-dark); margin: 16px 0; overflow-wrap: anywhere; }
.auth-card .auth-help { font-size: 13px; margin: 20px 0 0; }
.cloud-status { display: flex; justify-content: space-between; gap: 12px; color: var(--text2); font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.recovery-banner { position: fixed; z-index: 300; bottom: 16px; left: 16px; right: 16px; max-width: 760px; margin: auto; padding: 18px; border: 1px solid var(--amber-dark); border-radius: 12px; background: #312718; box-shadow: 0 4px 30px #0009; }
.recovery-banner p { margin: 8px 0 12px; }
.recovery-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.busy-overlay { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: #0004; cursor: wait; }
.busy-overlay span { padding: 14px 24px; background: var(--bg2); border-radius: 8px; }
.tbl-wrap { max-width: 100%; }
.drawer { visibility: hidden; }
.drawer.open { visibility: visible; }
.form-group input, .form-group select, .form-group textarea, .draft-box { font-size: 16px; }
.nav button, .header-right button, .drawer-tabs button { font-size: 14px; }
.btn-sm { font-size: 13px; min-height: 34px; }
.kv, .setting-row, .dash-item .di-name { font-size: 14px; }
@media(max-width:600px) {
  .app { padding: 16px 12px; }
  .header-left h1 { font-size: 21px; }
  .header-right { width: 100%; }
  .header-right button { min-height: 42px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .nav button { flex: 0 0 auto; min-height: 44px; padding: 9px 12px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters select, .filters input { font-size: 16px !important; min-height: 42px; max-width: 100%; }
  .filters select { flex: 1 1 140px; }
  .overlay { padding: 8px; }
  .modal { padding: 18px; max-height: 95dvh; }
  .form-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; max-width: 100%; height: 100dvh; }
  .drawer-body { padding: 16px; }
  .kv { grid-template-columns: 105px minmax(0,1fr); }
  .tl-add input { min-width: 0; font-size: 16px; }
  .dash-item { align-items: start; flex-wrap: wrap; }
  .dash-item .di-meta { white-space: normal; }
  .auth-card { padding: 24px; }
  .recovery-banner { max-height: 70dvh; overflow: auto; }
}
