:root {
  color-scheme: light;
  --ink: #243126;
  --muted: #6a746b;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --line: #e5e0d5;
  --green: #256b4d;
  --green-dark: #174d37;
  --gold: #c79035;
  --shadow: 0 20px 60px rgba(35, 48, 39, 0.1);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at top right, #eee6d3 0, transparent 34rem), var(--paper); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; min-height: 100vh; }
.view { min-height: 100vh; display: grid; align-content: center; }
.hidden { display: none !important; }
.login-view { justify-items: center; text-align: center; }
.brand-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; color: #fffdf8; background: var(--green); font-weight: 800; letter-spacing: .08em; box-shadow: 0 12px 24px rgba(37, 107, 77, .22); }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.muted, .form-note { color: var(--muted); }
.login-card { width: min(100%, 420px); margin-top: 28px; text-align: left; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 253, 248, .84); box-shadow: var(--shadow); }
label { display: block; margin: 0 0 7px; color: var(--ink); font-size: .86rem; font-weight: 700; }
input { width: 100%; margin-bottom: 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; outline: none; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(37, 107, 77, .13); }
.primary-button, .ghost-button { border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 750; }
.primary-button { width: 100%; color: #fff; background: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.form-note { margin: 16px 0 0; font-size: .78rem; }
.portal-view { align-content: start; padding: 46px 0 72px; }
.topbar, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.topbar { margin-bottom: 26px; }
.topbar h1 { font-size: clamp(2rem, 4vw, 3rem); }
.ghost-button { color: var(--green-dark); background: transparent; border: 1px solid var(--line); }
.notice { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid #d5e3d8; border-radius: 14px; color: #375642; background: #eff7f0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #49a46e; box-shadow: 0 0 0 4px rgba(73, 164, 110, .14); }
.catalog-section { margin-top: 54px; }
.catalog-count { color: var(--muted); font-size: .9rem; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.app-card { display: flex; min-height: 205px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 26px rgba(35, 48, 39, .05); }
.app-card h3 { margin: 18px 0 8px; font-size: 1.2rem; }
.app-card p { min-height: 50px; margin-bottom: 18px; color: var(--muted); font-size: .9rem; }
.app-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: var(--green); font-weight: 800; }
.app-card.future .app-icon { color: var(--gold); background: #fbf3e2; }
.app-card.pending .app-icon { color: #6a6d69; background: #ecebe6; }
.app-state { margin-top: auto; color: var(--green); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.future .app-state { color: var(--gold); }
.pending .app-state { color: #777a75; }
@media (max-width: 620px) { .app-shell { width: min(100% - 28px, 1120px); } .topbar, .section-heading { align-items: flex-start; } .topbar { gap: 10px; } .ghost-button { padding: 10px 12px; } }
