:root {
  color-scheme: light;
  --ink: #163a3f;
  --text: #33393a;
  --muted: #697879;
  --paper: #f7f8f7;
  --white: #fff;
  --teal: #0a5f6a;
  --teal-bright: #0f8e9f;
  --magenta: #bf1364;
  --line: #dfe7e5;
  --shadow: 0 18px 45px rgba(22, 58, 63, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 142, 159, .10), transparent 26rem),
    var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.environment-notice {
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #f8edcf;
  color: #624a13;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(22, 58, 63, .11);
}

main { padding-top: 46px; }

.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.logout-button { border: 1px solid rgba(22, 58, 63, .16); border-radius: 999px; background: rgba(255,255,255,.75); color: var(--ink); padding: .72rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.logout-button:hover { background: #fff; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 270px; height: auto; display: block; object-fit: contain; object-position: left center; }

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 650;
}

.date-pill svg, .icon-box svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow, .section-kicker, .card-label { margin: 0; color: var(--teal); font-size: .82rem; font-weight: 800; letter-spacing: .13em; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading.compact { align-items: flex-start; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 1.35rem; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: .8rem; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #31a36f; box-shadow: 0 0 0 4px rgba(49,163,111,.12); }

.hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 210px;
  padding: 42px;
  border-radius: 24px;
  background: linear-gradient(125deg, var(--ink), var(--teal) 68%, var(--teal-bright));
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 22px 55px rgba(10,95,106,.22);
  transition: transform .22s ease, box-shadow .22s ease;
}

.hero-card::after { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -170px; border: 55px solid rgba(255,255,255,.07); border-radius: 50%; }
.hero-card:hover { transform: translateY(-3px); box-shadow: 0 28px 65px rgba(10,95,106,.28); }
.hero-card:focus-visible, .app-card:focus-visible { outline: 3px solid var(--magenta); outline-offset: 4px; }
.hero-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; }
.hero-copy .card-label { color: #9adce3; }
.hero-copy h3 { margin: 6px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 4vw, 2.45rem); font-weight: 500; }
.hero-copy p:last-child { max-width: 590px; margin: 0; color: rgba(255,255,255,.78); }
.open-action { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: .88rem; font-weight: 800; }

.icon-box { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.icon-box-light { width: 62px; height: 62px; background: rgba(255,255,255,.12); }
.icon-box-light svg { width: 28px; }
.teal { background: #dceff0; color: #08717e; }
.gold { background: #f6ead1; color: #9b6b12; }
.blue { background: #e0eaf7; color: #3769a2; }
.magenta { background: #f6dce8; color: var(--magenta); }
.violet { background: #eae3f5; color: #76529b; }

.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 66px 0 74px; }
.wide-section { grid-column: 1 / -1; }
.app-grid { display: grid; gap: 13px; }
.app-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 105px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(22,58,63,.025);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-2px); border-color: #b7cfcb; box-shadow: var(--shadow); }
.unavailable { cursor: default; filter: grayscale(.8); opacity: .52; }
.card-content { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-content strong { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 600; }
.card-content small { overflow: hidden; color: var(--muted); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.arrow { margin-left: auto; color: #8aa1a0; font-size: 1.15rem; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 38px; border-top: 1px solid rgba(22,58,63,.11); color: var(--muted); font-size: .78rem; }

.login-page { min-height: 100vh; background: radial-gradient(circle at 80% 5%, rgba(15,142,159,.18), transparent 34%), var(--paper); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(100%, 31rem); border: 1px solid rgba(22,58,63,.12); border-radius: 1.5rem; background: rgba(255,255,255,.94); box-shadow: 0 2rem 5rem rgba(22,58,63,.14); padding: clamp(2rem, 5vw, 3.5rem); }
.login-logo { width: 12rem; height: auto; margin-bottom: 2.5rem; }
.login-card h1 { margin: .4rem 0 .8rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 500; line-height: .98; color: var(--ink); }
.login-intro, .login-note { color: var(--muted); line-height: 1.55; }
.login-card form { display: grid; gap: .55rem; margin-top: 2rem; }
.form-field { display: grid; gap: .55rem; }
.form-field[hidden] { display: none; }
.login-card label { margin-top: .6rem; color: var(--ink); font-weight: 750; }
.login-card input { width: 100%; border: 1px solid rgba(22,58,63,.2); border-radius: .8rem; padding: .9rem 1rem; background: #fff; color: var(--text); font: inherit; }
.login-card input:focus { outline: 3px solid rgba(15,142,159,.2); border-color: var(--teal-bright); }
.login-button { margin-top: 1rem; border: 0; border-radius: 999px; padding: 1rem 1.3rem; background: linear-gradient(135deg, var(--ink), var(--teal-bright)); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.login-button:disabled { opacity: .55; cursor: wait; }
.form-error { margin: .7rem 0 0; border-radius: .7rem; padding: .75rem .9rem; background: rgba(191,19,100,.1); color: #8b0e49; }
.login-note { margin: 1.5rem 0 0; font-size: .85rem; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 86px; }
  .topbar-actions { align-items: flex-end; flex-direction: column; }
  .logout-button { padding: .55rem .8rem; }
  .brand-logo { width: 205px; }
  .date-pill { padding: 9px 11px; }
  main { padding-top: 34px; }
  .hero-card { align-items: flex-start; flex-direction: column; padding: 28px; }
  .hero-copy { align-items: flex-start; flex-direction: column; }
  .open-action { align-self: stretch; justify-content: space-between; }
  .workspace-grid { grid-template-columns: 1fr; gap: 44px; padding: 52px 0; }
  .app-grid-two, .app-grid-three { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
