:root {
  color-scheme: light;
  --forest: #17452f;
  --orange: #e8752c;
  --paper: #fffdf8;
  --ink: #20382b;
  --muted: #667368;
  --line: #e8e8df;
  --soft: #f5f5ef;
  --error: #a33225;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--forest); font-size: 19px; font-weight: 750; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand em { font-style: italic; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-link, .header-login, .header-logout {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.header-link { color: var(--forest); background: var(--soft); }
.header-login, .header-logout { color: #a94d1e; background: #fbe6d5; }
.header-link:hover { background: #e9eee7; }
.header-login:hover, .header-logout:hover { background: #f5d7bd; }
.header-logout-form { margin: 0; }
.header-logout { border: 0; cursor: pointer; font-family: inherit; }
.auth-main { width: min(100% - 40px, 440px); margin: 64px auto; }
.auth-main-wide { width: min(100% - 48px, 1200px); }
.auth-card { padding: 34px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.eyebrow { margin: 0 0 10px; color: var(--orange); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; color: var(--forest); font-size: 32px; letter-spacing: -.045em; line-height: 1.15; }
.description { margin: 12px 0 26px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.field { margin: 0 0 17px; }
label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 650; }
input {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #cfd7cf; border-radius: 7px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px;
}
input:focus { outline: 3px solid #e8752c44; border-color: var(--orange); }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.button { width: 100%; min-height: 47px; border: 0; border-radius: 7px; background: var(--orange); color: white; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.button:hover { background: #c85d20; }
.message { margin: 0 0 18px; padding: 11px 13px; border-radius: 7px; background: #fff0ec; color: var(--error); font-size: 14px; line-height: 1.5; }
.message.success { background: #eaf4ec; color: var(--forest); }
.switch-link { margin: 20px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.switch-link a { color: var(--forest); font-weight: 700; }
.site-footer { padding: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.dashboard { width: 100%; margin: 54px auto; }
.dashboard-top { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.dashboard p { color: var(--muted); line-height: 1.6; }
.dashboard-account { margin: 10px 0 0; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.dashboard-card { display: flex; min-height: 270px; flex-direction: column; align-items: flex-start; padding: 30px; border: 6px solid var(--forest); border-radius: 12px; background: #456451; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.dashboard-card:hover { background: #3e5e4a; }
.dashboard-card:focus-visible, .dashboard-back:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.dashboard-number { display: inline-flex; margin-bottom: 30px; color: #fff; font-size: 14px; font-weight: 750; letter-spacing: .04em; }
.dashboard-card-title { margin: 0 0 12px; color: #fff; font-size: 23px; font-weight: 750; letter-spacing: -.025em; }
.dashboard-card-copy { margin: 0; color: #fff; font-size: 16px; line-height: 1.6; }
.dashboard-section { margin-top: 38px; }
.dashboard-back { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); color: var(--forest); font: inherit; font-weight: 700; cursor: pointer; }
.dashboard-section h2 { margin: 28px 0 8px; color: var(--forest); font-size: 30px; letter-spacing: -.04em; }
.dashboard-section > p { margin: 0; }
.dashboard-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.dashboard-menu li { min-height: 90px; display: flex; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--forest); font-size: 17px; font-weight: 700; }
.logout { border: 1px solid var(--line); border-radius: 7px; padding: 10px 14px; background: white; color: var(--forest); font: inherit; font-weight: 650; cursor: pointer; }
.notice { margin-top: 30px; padding: 22px; border-left: 4px solid var(--orange); background: #f5f5ef; }
.notice h2 { margin: 0 0 8px; color: var(--forest); font-size: 18px; }
.notice p { margin: 0; }
@media (max-width: 850px) { .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dashboard-menu { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .site-header { padding-inline: 20px; } .auth-main { margin: 34px auto; } .auth-main-wide { width: min(100% - 32px, 1200px); } .auth-card { padding: 25px 20px; } .dashboard { margin: 34px auto; } .dashboard-top { align-items: flex-start; flex-direction: column; } .dashboard-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; } .dashboard-card { min-height: 190px; padding: 21px; } .dashboard-number { margin-bottom: 18px; } }
