@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap");

/* Angela Soko - Admin app. PHONE layout first, PC rules at the bottom (768px and up). */
:root {
  --paper: #f6f3ec; --paper-dim: #ede8dc; --ink: #1e2530; --ink-soft: #55606f;
  --line: #dcd5c4; --copper: #a8601f; --copper-dark: #7f4816; --copper-tint: #f1e1cd;
  --danger: #b3402f;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 10px; --nav-h: 64px;
  --shadow: 0 1px 2px rgba(30,37,48,.06), 0 6px 20px rgba(30,37,48,.07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--font-body); background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.2; }
p { margin: 0; line-height: 1.55; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* Buttons (big enough to tap) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius); font: inherit;
  font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); }
.btn-primary:disabled { background: var(--ink-soft); cursor: progress; }
.btn-block { width: 100%; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35);
  min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }

/* Loading and login */
.boot, .login-view { min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  justify-content: center; padding: 20px; color: var(--ink-soft); text-align: center; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 24px; width: min(420px, 100%); text-align: left; }
.login-mark { width: 48px; height: 48px; border-radius: 10px; background: var(--copper); color: #fff;
  font-family: var(--font-display); font-weight: 600; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px; }
.login-card h1 { font-size: 1.5rem; }
.login-note { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
.login-card label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin: 18px 0 6px; }
.login-card input { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; font-size: 1rem; background: var(--paper); color: var(--ink); }
.login-card .btn { margin-top: 22px; }
.form-error { color: var(--danger); font-size: .9rem; margin-top: 14px; }

/* Header */
.a-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px); }
.a-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 0 16px; }
.a-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.a-logo { height: 36px; width: auto; max-width: 80px; object-fit: contain; background: #fff;
  border-radius: 6px; padding: 2px; }
.a-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--copper); color: #fff;
  font-family: var(--font-display); font-weight: 600; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; }
.a-titles { min-width: 0; }
.a-title { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-sub { display: block; font-size: .72rem; color: #aab2bd; }
.a-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.a-user { display: none; font-size: .82rem; color: #aab2bd; }

/* Menu: bottom bar on phones */
.a-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.a-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--nav-h); background: none; border: 0; font: inherit; font-size: .68rem;
  font-weight: 600; color: var(--ink-soft); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.a-tab svg { width: 24px; height: 24px; }
.a-tab[aria-selected="true"] { color: var(--copper); }

/* Content */
.a-main { padding: 22px 16px calc(var(--nav-h) + 36px + env(safe-area-inset-bottom, 0px)); }
.panel { display: flex; flex-direction: column; gap: 18px; }
.panel h2 { font-size: 1.5rem; }
.panel-note { color: var(--ink-soft); font-size: .92rem; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 10px; text-align: center; box-shadow: var(--shadow); }
.stat-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.stat-label { display: block; font-size: .72rem; font-weight: 700; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.soon-card { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; }
.soon-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.soon-card p { color: var(--ink-soft); }
.note-line { color: var(--ink-soft); font-size: .85rem; }

/* PC and tablet layout (768px and wider) */
@media (min-width: 768px) {
  .a-header-inner { height: 64px; min-height: 0;
    padding: 0 max(32px, calc((100% - 1100px) / 2 + 32px)); }
  .a-title { font-size: 1.2rem; }
  .a-user { display: block; }
  .a-nav { position: sticky; top: 64px; bottom: auto; z-index: 29; background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 4px;
    padding: 0 max(32px, calc((100% - 1100px) / 2 + 32px)); }
  .a-tab { flex-direction: row; gap: 8px; min-height: 52px; padding: 0 18px; font-size: .92rem;
    color: #aab2bd; border-bottom: 3px solid transparent; transition: color .15s ease; }
  .a-tab svg { width: 20px; height: 20px; }
  .a-tab:hover { color: #fff; }
  .a-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--copper); }
  .a-main { max-width: 1100px; margin: 0 auto; padding: 36px 32px 64px; }
  .panel h2 { font-size: 1.7rem; }
  .stats { gap: 18px; }
  .stat { padding: 26px 16px; }
  .stat-num { font-size: 2.6rem; }
  .stat-label { font-size: .8rem; }
  .soon-card { padding: 44px 24px; }
}
@media (prefers-reduced-motion: reduce) { .a-tab { transition: none; } }