@charset "UTF-8";

:root {
  --ink: #20342c;
  --muted: #6a7971;
  --green: #376a33;
  --green-dark: #244e29;
  --lime: #bfdc62;
  --canvas: #f5f7f3;
  --line: #e3e9e1;
  --white: #fff;
  --radius: 16px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button, summary, input[type="submit"] { cursor: pointer; }
button { color: inherit; }
button svg, a svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #477d38; outline-offset: 4px; }
main:focus { outline: none; }
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 12px 20px; background: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.shell-width { width: min(100% - 80px, 1360px); margin-inline: auto; }
.app-shell { min-height: 100svh; display: flex; flex-direction: column; }
.workspace-header { background: linear-gradient(110deg, #d6e996, #b4d34e); border-top: 4px solid #325331; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 110px; }
.brand { display: inline-flex; gap: 13px; align-items: center; color: var(--green-dark); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 180px; max-width: 100%; height: auto; }
.brand-logo--light { width: 171px; }
.primary-nav { display: flex; gap: 8px; align-items: end; }
.primary-tab { display: flex; align-items: center; gap: 10px; padding: 14px 24px; color: #2e4825; font-weight: 700; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; border-radius: 9px 9px 0 0; }
.primary-tab:hover { background: #ffffff55; text-decoration: none; }
.primary-tab.is-active { color: var(--green); background: white; }
.primary-tab .icon { width: 17px; height: 17px; }
.workspace { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.workspace-main { padding: 34px 0 24px; flex: 1; }
.workspace-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; margin-top: 12px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.account-menu { position: relative; z-index: 5; }
.account-menu > summary { display: flex; align-items: center; gap: 12px; list-style: none; border-radius: 8px; padding: 8px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { background: #ffffff4d; }
.avatar { display: inline-flex; align-items: center; justify-content: center; background: #ffffffaa; border: 1px solid #ffffff99; width: 40px; height: 40px; border-radius: 50%; color: #31522c; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.account-menu-label { font-size: 12px; font-weight: 700; line-height: 1.5; }
.account-menu-label > span { display: block; font-size: 11px; font-weight: 450; color: #354c29; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.account-menu > summary > .icon { width: 14px; }
.account-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 35px #183a2026; padding: 8px; min-width: 240px; max-width: calc(100vw - 32px); }
.account-dropdown > p { padding: 9px 12px 12px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-dropdown strong { display: block; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.account-dropdown > a, .menu-signout { display: flex; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: white; text-align: left; font-size: 12px; align-items: center; gap: 9px; }
.account-dropdown a:hover, .menu-signout:hover { background: var(--canvas); text-decoration: none; }
.menu-signout { color: #a63d37; }
.menu-signout .icon { width: 16px; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; font-weight: 750; color: var(--green); margin-bottom: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; padding: 11px 16px; font-size: 12px; font-weight: 650; line-height: 1.6; transition: background .15s ease; }
.button:hover { text-decoration: none; }
.button .icon { width: 16px; height: 16px; }
.button--primary { color: white; background: var(--green); }
.button--primary:hover { background: var(--green-dark); }
.button--secondary { color: var(--green-dark); background: white; border-color: #dbe4d1; }
.button--secondary:hover { background: #eff4e8; }
.button--full { display: flex; width: 100%; justify-content: space-between; margin-top: 28px; padding: 13px 17px; }
.flash-message { padding: 13px 16px; border-radius: 9px; border: 1px solid; margin-bottom: 22px; font-size: 12px; }
.flash-message--notice { color: #2d6038; background: #edf6e9; border-color: #d1e6c6; }
.flash-message--alert { color: #993e32; background: #fff0ec; border-color: #f1d2c8; }
.auth-shell { min-height: 100svh; display: grid; grid-template-columns: 44% 56%; background: #fdfefa; }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100svh; overflow: hidden; padding: 44px 12% 32px; color: white; background: radial-gradient(ellipse at 110% 100%, #63874b, transparent 60%), #203c31; }
.auth-story::after { content: ""; position: absolute; width: 450px; height: 450px; border: 1px solid #b5d17c22; border-radius: 50%; bottom: -240px; right: -150px; box-shadow: 0 0 0 55px #b5d17c08, 0 0 0 110px #b5d17c06; }
.auth-story .brand { color: white; align-self: flex-start; position: relative; z-index: 1; }
.auth-story-copy { position: relative; z-index: 1; margin: 70px 0 110px; }
.auth-story-copy .eyebrow { color: #c1d99a; font-size: 9px; letter-spacing: 2px; margin-bottom: 22px; }
.auth-story h1 { font-weight: 500; font-size: clamp(34px, 3.7vw, 56px); line-height: 1.2; letter-spacing: -1.7px; }
.auth-story-copy > p:last-child { color: #bacdbf; font-size: 11px; margin-top: 24px; }
.auth-story-footer { position: relative; z-index: 1; color: #d5e0d1; display: flex; flex-direction: column; gap: 4px; font-size: 9px; }
.auth-story-footer span:first-child { letter-spacing: 2px; font-weight: 700; }
.auth-story-footer span:last-child { opacity: .7; }
.auth-kanji { position: absolute; bottom: 90px; right: 35px; font-size: 150px; color: #c2d6a5; opacity: .09; }
.auth-main { position: relative; display: flex; align-items: center; justify-content: center; padding: 70px 40px; min-width: 0; }
.auth-card { width: 100%; max-width: 370px; }
.auth-heading { margin-bottom: 30px; }
.auth-heading .eyebrow { font-size: 10px; }
.auth-heading h2 { font-size: 29px; font-weight: 650; letter-spacing: -1px; line-height: 1.3; margin-bottom: 12px; }
.auth-heading > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.8; }
.auth-form { width: 100%; }
.form-field { margin-bottom: 21px; }
.form-field label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.form-field input { border: 1px solid #dce4d9; border-radius: 8px; width: 100%; padding: 12px 14px; background: white; color: var(--ink); font-size: 13px; box-shadow: 0 1px 2px #20342c03; }
.form-field input::placeholder { color: #96a095; }
.form-field input:focus { border-color: #739c54; outline: 3px solid #bfdc6233; outline-offset: 1px; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-label-row a { font-size: 11px; font-weight: 550; }
.auth-assurance { display: flex; justify-content: center; gap: 7px; color: #7d8979; font-size: 10px; margin-top: 21px; }
.auth-assurance .icon { width: 14px; height: 14px; }
.auth-help { padding-top: 26px; margin-top: 30px; border-top: 1px solid var(--line); font-size: 10px; color: #8c9587; text-align: center; }
.auth-back-link { display: block; text-align: center; font-size: 12px; font-weight: 550; margin-top: 22px; }
.auth-footer { position: absolute; bottom: 22px; color: #8c9587; font-size: 10px; }
.auth-mobile-brand { display: none; }

@media (min-width: 1600px) {
  .workspace-main { padding-top: 42px; }
}
@media (max-width: 1000px) {
  .shell-width { width: calc(100% - 48px); }
  .auth-story { padding-inline: 10%; }
}
@media (max-width: 760px) {
  .shell-width { width: calc(100% - 32px); }
  .header-main { min-height: 90px; }
  .primary-tab { padding: 12px 18px; font-size: 11px; }
  .account-menu-label { display: none; }
  .account-menu > summary { gap: 6px; padding-right: 0; }
  .account-menu > summary > .icon { display: none; }
  .workspace-main { padding-top: 26px; }
  .workspace-footer { font-size: 10px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-main { min-height: 100svh; padding: 50px 25px 85px; }
  .auth-mobile-brand { display: inline-block; margin-bottom: 32px; }
  .auth-heading h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
