:root {
  --ink: #1a2c29;
  --muted: #6f7e7b;
  --line: #dfe7e4;
  --paper: #fff;
  --canvas: #f3f6f4;
  --green-900: #173f3a;
  --green-700: #27665e;
  --green-100: #dceae6;
  --coral: #d96848;
  --coral-soft: #fae7e1;
  --amber: #b77a20;
  --amber-soft: #faefd9;
  --blue: #416ea2;
  --blue-soft: #e5edf7;
  --shadow: 0 12px 30px rgba(22, 61, 56, .07);
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 99; left: 12px; top: -80px; padding: 10px 14px; background: #fff; color: var(--green-900); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 27px 18px 20px; background: var(--green-900); color: #fff; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 9px 35px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; background: #e9f1ee; color: var(--green-900); border-radius: 11px; }
.brand-mark svg { width: 27px; height: 27px; fill: currentColor; stroke: none; }
.brand-mark .cutout { fill: #e78b5f; }
.brand strong, .brand span { display: block; }
.brand strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.05rem; letter-spacing: .08em; }
.brand span { margin-top: 1px; color: #aec4c0; font-size: .72rem; letter-spacing: .12em; }
.nav-list { display: flex; flex-direction: column; gap: 7px; }
.nav-item { min-height: 46px; display: flex; align-items: center; gap: 13px; padding: 0 13px; color: #c7d7d4; text-decoration: none; border-radius: 10px; font-size: .9rem; font-weight: 650; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: #f4f7f5; color: var(--green-900); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.nav-item svg { width: 19px; height: 19px; }
.nav-count { margin-left: auto; display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.14); color: inherit; font-size: .72rem; }
.active .nav-count { background: var(--coral-soft); color: var(--coral); }
.sidebar-bottom { margin-top: auto; }
.support-button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; color: #bdd0cc; background: transparent; border-bottom: 1px solid rgba(255,255,255,.11); cursor: pointer; font-size: .84rem; }
.support-icon { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #76928d; border-radius: 50%; font-weight: 700; }
.profile-mini { display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 10px; margin-top: 17px; padding: 0 3px; }
.profile-mini strong, .profile-mini span { display: block; }
.profile-mini strong { font-size: .84rem; }
.profile-mini span { color: #9eb8b3; font-size: .72rem; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e7b06c; color: #523a1e; font-size: .78rem; font-weight: 800; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.search-wrap { position: relative; width: min(400px, 45vw); }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #7b8a87; }
.search-wrap input { width: 100%; height: 42px; padding: 0 58px 0 42px; border: 1px solid #dfe6e3; outline: none; border-radius: 10px; background: #f7f9f8; color: var(--ink); font-size: .88rem; }
.search-wrap input:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(39,102,94,.1); background: #fff; }
.search-wrap kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 2px 7px; border: 1px solid #d8dfdc; border-radius: 5px; background: #fff; color: #8a9694; font-size: .68rem; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.icon-button:hover { background: #f4f7f5; }
.icon-button svg { width: 19px; height: 19px; }
.icon-button.small { width: 30px; height: 30px; border: 0; background: transparent; color: inherit; }
.notification-button { position: relative; }
.notification-button span { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--coral); }
.primary-button, .secondary-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border-radius: 9px; font-weight: 750; font-size: .86rem; cursor: pointer; }
.primary-button { border: 1px solid var(--green-900); background: var(--green-900); color: #fff; box-shadow: 0 6px 14px rgba(23,63,58,.14); }
.primary-button:hover { background: #0f332f; }
.primary-button svg { width: 17px; height: 17px; }
.secondary-button { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.menu-button { display: none; }

main { max-width: 1480px; margin: 0 auto; padding: 34px 36px 56px; }
.welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.eyebrow { margin: 0 0 5px; color: var(--green-700); font-size: .68rem; line-height: 1.3; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.55rem, 2.3vw, 2.25rem); line-height: 1.3; font-weight: 700; letter-spacing: .03em; }
.welcome-copy { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.welcome-copy strong { color: var(--coral); }
.status-legend { display: flex; align-items: center; gap: 18px; padding: 9px 13px; border-radius: 999px; background: #e9efec; color: #5f706c; font-size: .76rem; }
.status-legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.coral { background: var(--coral); }.dot.amber { background: #dda542; }.dot.green { background: #4e957a; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 17px; }
.metric-card { position: relative; min-height: 158px; padding: 20px 20px 17px; overflow: hidden; border: 1px solid #e2e8e5; border-radius: 13px; background: var(--paper); box-shadow: 0 5px 18px rgba(22,61,56,.035); }
.metric-card.priority { border-top: 3px solid var(--coral); padding-top: 18px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #52635f; font-size: .8rem; font-weight: 750; }
.metric-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; }
.metric-icon svg { width: 17px; height: 17px; }
.coral-bg { color: var(--coral); background: var(--coral-soft); }.amber-bg { color: var(--amber); background: var(--amber-soft); }.green-bg { color: var(--green-700); background: var(--green-100); }.blue-bg { color: var(--blue); background: var(--blue-soft); }
.metric-value { margin: 13px 0 5px; font-family: ui-serif, Georgia, serif; font-size: 2.05rem; line-height: 1; font-weight: 750; letter-spacing: -.04em; }
.metric-value span { margin-left: 3px; font-family: inherit; font-size: .8rem; letter-spacing: 0; }
.metric-value.money { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.metric-card p { margin: 0; color: #889491; font-size: .7rem; }
.metric-card p strong { color: var(--coral); }.metric-card p strong.positive { color: #3c866e; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(310px, .78fr); gap: 17px; align-items: start; }
.panel { border: 1px solid #e2e8e5; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 21px; border-bottom: 1px solid #edf1ef; }
.panel-header.compact { border-bottom: 0; }
.panel-header h2 { margin: 0; font-size: 1.05rem; line-height: 1.3; letter-spacing: .01em; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--green-700); font-size: .75rem; font-weight: 800; cursor: pointer; }
.text-button span { padding-left: 4px; }
.task-list { padding: 0 21px; }
.task-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 76px 28px; align-items: center; gap: 13px; min-height: 77px; border-bottom: 1px solid #edf1ef; transition: .18s ease; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { transform: translateX(2px); }
.task-row.completed { opacity: .55; }
.task-row.completed h3 { text-decoration: line-through; }
.check-button { width: 20px; height: 20px; border: 1.5px solid #b8c5c2; border-radius: 6px; background: #fff; cursor: pointer; }
.check-button:hover { border-color: var(--green-700); background: #eff5f2; }
.completed .check-button { position: relative; border-color: var(--green-700); background: var(--green-700); }
.completed .check-button::after { content: ""; position: absolute; left: 5px; top: 2px; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.task-main { min-width: 0; }
.task-title-line { display: flex; align-items: center; gap: 9px; min-width: 0; }
.task-title-line h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.task-main p { display: flex; gap: 0; margin: 5px 0 0; color: #8a9693; font-size: .69rem; }
.task-main p span + span::before { content: "·"; margin: 0 7px; }
.badge { flex: none; padding: 2px 7px; border-radius: 999px; font-size: .62rem; font-weight: 800; }
.badge.urgent { background: var(--coral-soft); color: #b64e34; }.badge.soon { background: var(--amber-soft); color: #986318; }
.task-owner { display: flex; align-items: center; gap: 6px; color: #6f7d7a; font-size: .7rem; }
.avatar-sm { width: 27px; height: 27px; font-size: .65rem; }.avatar-sm.purple { color: #5c487e; background: #e8e1f2; }.avatar-sm.blue { color: #315f8a; background: #dce9f4; }.avatar-sm.amber { color: #815a1e; background: #f4e5c9; }.avatar-sm.green { color: #316b58; background: #d9ebe4; }
.row-menu { border: 0; background: transparent; color: #8e9b98; cursor: pointer; letter-spacing: 2px; }

.schedule-panel { min-height: 386px; }
.timeline { padding: 2px 21px 8px; }
.timeline-item { display: grid; grid-template-columns: 49px 1fr; gap: 12px; min-height: 74px; }
.timeline-item time { padding-top: 3px; color: #677672; font-size: .73rem; font-weight: 800; }
.timeline-item > div { position: relative; padding: 0 0 18px 21px; border-left: 1px solid #dce5e2; }
.timeline-item:last-child > div { border-left-color: transparent; }
.timeline-line { position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #91aaa5; box-shadow: 0 0 0 1px #91aaa5; }
.timeline-item.active .timeline-line { background: var(--coral); box-shadow: 0 0 0 1px var(--coral), 0 0 0 5px var(--coral-soft); }
.timeline-item strong { display: block; font-size: .8rem; }
.timeline-item p { margin: 4px 0 0; color: #8a9693; font-size: .66rem; }
.calendar-button { width: calc(100% - 42px); height: 39px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 1px 21px 18px; border: 1px solid #dbe4e1; border-radius: 9px; background: #f5f8f6; color: var(--green-700); font-size: .73rem; font-weight: 800; cursor: pointer; }
.calendar-button svg { width: 15px; height: 15px; }
.calendar-button:hover { background: #edf3f0; }

.progress-panel { min-height: 302px; }
.segmented { display: flex; padding: 3px; border-radius: 8px; background: #eef2f0; }
.segmented button { padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: #84918e; font-size: .67rem; font-weight: 750; cursor: pointer; }
.segmented button.active { background: #fff; color: var(--green-900); box-shadow: 0 2px 6px rgba(23,63,58,.09); }
.progress-summary { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 28px; padding: 23px 29px 26px; }
.donut { --progress: 72; position: relative; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green-700) calc(var(--progress) * 1%), #e8eeeb 0); }
.donut::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.donut div { position: relative; text-align: center; }
.donut strong, .donut span { display: block; }
.donut strong { font-family: ui-serif, Georgia, serif; font-size: 1.55rem; line-height: 1.1; }
.donut span { margin-top: 3px; color: #8b9794; font-size: .61rem; }
.progress-bars { display: grid; gap: 15px; }
.progress-item > div:first-child { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 6px; color: #586864; font-size: .69rem; }
.progress-item strong { color: #364944; }
.bar { height: 6px; overflow: hidden; border-radius: 999px; background: #e8eeeb; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3d7f73, #69a492); }

.activity-panel { min-height: 302px; }
.activity-list { padding: 3px 21px 12px; }
.activity-item { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; min-height: 63px; border-bottom: 1px solid #edf1ef; }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; }
.activity-icon svg { width: 15px; height: 15px; }.activity-icon.upload { color: #416ea2; background: var(--blue-soft); }.activity-icon.message { color: #9c6b22; background: var(--amber-soft); }.activity-icon.complete { color: #2c765f; background: var(--green-100); }
.activity-item p { margin: 0; font-size: .73rem; }
.activity-item span { color: #8b9794; font-size: .63rem; }
.activity-item time { color: #94a09d; font-size: .61rem; white-space: nowrap; }

.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 12px 16px; border-radius: 10px; background: var(--green-900); color: #fff; box-shadow: 0 15px 35px rgba(10,40,36,.25); font-size: .82rem; opacity: 0; transform: translateY(16px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.drawer-backdrop { display: none; }
.task-dialog { width: min(520px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 25px 80px rgba(10,40,36,.25); }
.task-dialog::backdrop { background: rgba(10,34,31,.52); backdrop-filter: blur(2px); }
.task-dialog form { padding: 24px; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.dialog-header h2 { margin: 0; font-size: 1.25rem; }
.task-dialog label { display: grid; gap: 7px; margin-bottom: 15px; color: #4c5d59; font-size: .77rem; font-weight: 750; }
.task-dialog input, .task-dialog select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dbe4e1; border-radius: 8px; outline: none; background: #fff; color: var(--ink); font-size: .83rem; }
.task-dialog input:focus, .task-dialog select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(39,102,94,.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 7px; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .schedule-panel { order: 3; min-height: auto; }
  .activity-panel { order: 4; }
}

@media (max-width: 780px) {
  :root { --sidebar: 264px; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 12px 0 35px rgba(8,35,31,.2); }
  body.menu-open .sidebar { transform: translateX(0); }
  .drawer-backdrop { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(9,31,28,.42); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .workspace { margin-left: 0; }
  .topbar { height: 64px; padding: 0 16px; gap: 10px; }
  .menu-button { display: grid; flex: none; }
  .search-wrap { width: auto; flex: 1; }
  .search-wrap kbd { display: none; }
  .search-wrap input { padding-right: 10px; }
  .notification-button { display: none; }
  .primary-button { padding: 0 12px; }
  .primary-button svg { display: none; }
  main { padding: 25px 16px 42px; }
  .welcome { align-items: flex-start; flex-direction: column; gap: 16px; }
  .status-legend { max-width: 100%; overflow-x: auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 145px; }
  .task-row { grid-template-columns: 23px 1fr 28px; min-height: 86px; }
  .task-owner { display: none; }
  .progress-summary { grid-template-columns: 125px 1fr; gap: 18px; padding: 21px; }
}

@media (max-width: 540px) {
  .topbar .primary-button { font-size: 0; width: 40px; padding: 0; }
  .topbar .primary-button::after { content: "+"; font-size: 1.3rem; }
  .search-wrap input::placeholder { color: transparent; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 132px; }
  .panel-header { min-height: 72px; padding: 15px 16px; }
  .task-list, .timeline, .activity-list { padding-left: 16px; padding-right: 16px; }
  .task-title-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .task-title-line h3 { max-width: 100%; }
  .task-main p { flex-direction: column; }
  .task-main p span + span::before { content: none; }
  .progress-summary { grid-template-columns: 1fr; justify-items: center; }
  .progress-bars { width: 100%; }
  .activity-item { grid-template-columns: 34px 1fr; padding: 8px 0; }
  .activity-item time { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

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

/* Authentication and SaaS foundation */
.auth-page { min-height: 100vh; background: radial-gradient(circle at top left, #e2eee9 0, transparent 38%), var(--canvas); }
.auth-shell { width: min(100% - 32px, 470px); margin: 0 auto; padding: 64px 0 32px; }
.auth-card { padding: 34px; border: 1px solid #dfe7e4; border-radius: 18px; background: #fff; box-shadow: 0 24px 65px rgba(22,61,56,.11); }
.auth-brand { display: flex; align-items: center; gap: 12px; width: fit-content; color: var(--green-900); text-decoration: none; }
.auth-brand > span:last-child, .auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1rem; letter-spacing: .03em; }
.auth-brand small { margin-top: 2px; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.auth-heading { margin: 30px 0 24px; }
.auth-heading h1 { margin-bottom: 8px; font-size: 1.65rem; }
.auth-heading > p:last-child { margin: 0; color: var(--muted); font-size: .83rem; }
.auth-form { display: grid; gap: 16px; }
.auth-form > label:not(.check-label) { display: grid; gap: 7px; color: #435650; font-size: .78rem; font-weight: 750; }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form select, .auth-form textarea { width: 100%; border: 1px solid #d8e2de; border-radius: 9px; outline: 0; background: #fff; color: var(--ink); font: inherit; }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form select { height: 46px; padding: 0 13px; }
.auth-form textarea { min-height: 92px; padding: 11px 13px; resize: vertical; }
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(39,102,94,.11); }
.check-label { display: flex; align-items: center; gap: 9px; color: #61716d; font-size: .75rem; }
.check-label input { width: 17px; height: 17px; accent-color: var(--green-700); }
.auth-submit { width: 100%; margin-top: 2px; }
.auth-links { margin: 21px 0 0; text-align: center; font-size: .77rem; }
.auth-links a, .link-button { border: 0; background: transparent; color: var(--green-700); text-decoration: none; cursor: pointer; font: inherit; font-weight: 750; }
.auth-links a:hover, .link-button:hover { text-decoration: underline; }
.auth-security-note { margin: 15px 0 0; color: #81908c; text-align: center; font-size: .67rem; }
.alert { margin: 0 0 18px; padding: 11px 13px; border: 1px solid; border-radius: 9px; font-size: .76rem; }
.alert.error { border-color: #efc7bd; background: #fff2ee; color: #9c402a; }
.alert.success { border-color: #bfdacf; background: #eef8f3; color: #286650; }
.tenant-choice-list { display: grid; gap: 10px; }
.tenant-choice { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 10px; padding: 13px; border: 1px solid #dbe4e1; border-radius: 10px; cursor: pointer; }
.tenant-choice:has(input:checked) { border-color: var(--green-700); background: #f0f7f4; box-shadow: 0 0 0 2px rgba(39,102,94,.08); }
.tenant-choice input { accent-color: var(--green-700); }
.tenant-choice strong, .tenant-choice small { display: block; }
.tenant-choice strong { font-size: .83rem; }
.tenant-choice small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.support-mode-banner { position: relative; z-index: 50; padding: 8px 18px; background: #8d5317; color: #fff; text-align: center; font-size: .75rem; font-weight: 750; }
.sidebar-logout-form { margin-top: 10px; }
.sidebar-logout-form .support-button { justify-content: center; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; }
.secondary-button { text-decoration: none; }
.foundation-value { margin: 19px 0 8px; overflow: hidden; color: var(--ink); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.15rem; line-height: 1.3; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.foundation-value.status-ok { color: #2f775f; }
.foundation-panel { max-width: 920px; }
.foundation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #edf1ef; }
.foundation-list > div { min-height: 92px; padding: 20px 21px; background: #fff; }
.foundation-list strong, .foundation-list span { display: block; }
.foundation-list strong { margin-bottom: 6px; font-size: .82rem; }
.foundation-list span { color: var(--muted); font-size: .71rem; }

@media (max-width: 540px) {
  .auth-shell { width: min(100% - 22px, 470px); padding-top: 22px; }
  .auth-card { padding: 25px 20px; border-radius: 14px; }
  .foundation-list { grid-template-columns: 1fr; }
}
