/* KEEP shell v1.9 — the ONE definition of the product header and the button system for /app.
   The footer lives in shared/keep-footer.css (one footer for the whole site, incl. the landing).
   Page CSS may only position these components (width / margin).
   Reference scale: landing header (84px, logo 15px / .4em). */

:root{
  --keep-ink:#1c1a16; --keep-ink-soft:#57524c; --keep-muted:#77716a; --keep-faint:rgba(28,26,22,.28);
  --keep-bg:#f8f5ef; --keep-surface:#fbf9f5; --keep-line:rgba(28,26,22,.14); --keep-btn:#1b1b1a; --keep-btn-hover:#403831;
  --keep-sans:Arial,Helvetica,sans-serif; --keep-serif:Georgia,'Times New Roman',serif;
}

/* ------------------------------------------------------------------ header
   One scale for every signed-in context. Functional differences stay in the markup:
   product pages link to MY KEEP; on My KEEP itself the label is the current page and the
   profile control opens the Account panel. Auth pages keep the landing header (same scale). */
.product-header{box-sizing:border-box;height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 max(48px,calc((100vw - 1180px)/2));border-bottom:1px solid var(--keep-line);background:var(--keep-bg)}
.product-brand{color:var(--keep-ink);text-decoration:none;font:400 15px/1 var(--keep-sans);letter-spacing:.4em}
.product-actions{display:flex;align-items:center;gap:30px}
.my-keep-link{color:var(--keep-ink);text-decoration:none;font:400 11px/1 var(--keep-sans);letter-spacing:.16em;text-transform:uppercase}
.profile-link{box-sizing:border-box;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(28,26,22,.06);display:grid;place-items:center;color:var(--keep-ink);cursor:pointer}
.profile-link svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4}
.profile-link:focus-visible,.my-keep-link:focus-visible,.product-brand:focus-visible{outline:2px solid var(--keep-ink);outline-offset:3px}
/* Dashboard (My KEEP): same header, aligned to the wider dashboard column (max 1370px, 56px inset). */
.keep-dashboard-header{padding:0 max(56px,calc((100vw - 1370px)/2 + 56px))}
@media(max-width:700px){
  .product-header{height:68px;padding:0 18px}
  .product-brand{font-size:14px;letter-spacing:.38em}
  .product-actions{gap:16px}
  .my-keep-link{font-size:10px;letter-spacing:.14em}
  .profile-link{width:32px;height:32px}
  .profile-link svg{width:19px;height:19px}
  .keep-dashboard-header{padding:0 16px}
}

/* ------------------------------------------------------------------ buttons
   One system, three variants. Width is decided by the page; height, radius and type are not. */
.keep-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:space-between;gap:16px;height:58px;padding:0 24px;border:1px solid transparent;border-radius:13px;font:600 16px/1 var(--keep-sans);letter-spacing:0;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .2s,border-color .2s}
.keep-btn .keep-arrow{font:400 20px/1 var(--keep-sans)}
.keep-btn--center{justify-content:center}
.keep-btn--primary{background:var(--keep-btn);border-color:var(--keep-btn);color:#fff}
.keep-btn--primary:hover{background:var(--keep-btn-hover);border-color:var(--keep-btn-hover)}
.keep-btn--secondary{background:#fff;border-color:rgba(23,22,20,.16);color:var(--keep-ink)}
.keep-btn--secondary:hover{background:#f3efe8;border-color:rgba(23,22,20,.24)}
.keep-btn--compact{height:44px;padding:0 16px;border-radius:10px;font-size:14px;gap:10px}
.keep-btn--compact .keep-arrow{font-size:17px}
.keep-btn:focus-visible{outline:2px solid var(--keep-ink);outline-offset:3px}
.keep-btn:disabled,.keep-btn[aria-disabled="true"]{opacity:.55;cursor:default}
@media(max-width:700px){
  .keep-btn{height:54px;padding:0 20px;font-size:15px}
  .keep-btn .keep-arrow{font-size:18px}
  .keep-btn--compact{height:42px;padding:0 14px;font-size:14px}
}
