[hidden] { display: none !important; }
:root {
  color-scheme: light;
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --line: #DCE1EA;
  --line-strong: #C3CBD8;
  --text: #1B2231;
  --muted: #5A6477;
  --accent: #2B4C8C;
  --accent-hover: #223D72;
  --accent-soft: #E8EEF8;
  --accent-text: #FFFFFF;
  --admin: #A8323E;
  --admin-soft: #FBE6E9;
  --admin-accent: #9A2A38;
  --admin-accent-hover: #7F212D;
  --admin-accent-text: #FFFFFF;
  --table-head: #ECEEF1;
  --neutral-soft: #ECEEF1;
  --header-bg: #1E3A6D;
  --header-bg-admin: #7B2331;
  --header-bg-neutral: #4A505A;
  --header-text: #FFFFFF;
  --header-muted: rgba(255, 255, 255, 0.82);
  --header-line: rgba(255, 255, 255, 0.28);
  --header-hover: rgba(255, 255, 255, 0.14);
  --focus: #4D7FE0;
  --danger: #B3263A;
  --danger-soft: #FCE8EA;
  --backdrop: rgba(17, 22, 32, 0.45);
  --shadow: 0 1px 2px rgba(27, 34, 49, 0.06), 0 8px 24px rgba(27, 34, 49, 0.08);
  --s-gray-fg: #4F5868; --s-gray-bg: #ECEFF4;
  --s-blue-fg: #1E5CA8; --s-blue-bg: #E3EDFA;
  --s-amber-fg: #7F4D00; --s-amber-bg: #FFF0CC;
  --s-rose-fg: #A32F3B; --s-rose-bg: #FBE5E8;
  --s-teal-fg: #0D6660; --s-teal-bg: #D9F1EE;
  --s-green-fg: #2B672D; --s-green-bg: #E0F1DE;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #11151D; --surface: #191F2A; --surface-2: #1F2633; --line: #2C3444; --line-strong: #3B4558;
    --text: #E5E9F1; --muted: #9DA6B8; --accent: #8FAEEB; --accent-hover: #A9C1F1; --accent-soft: #1F2A41;
    --admin: #F29DA7; --admin-soft: #3C2128; --admin-accent: #F29DA7; --admin-accent-hover: #F6B8C0; --admin-accent-text: #2A0E13; --table-head: #273041; --header-bg: #172D55; --header-bg-admin: #5E1B26; --header-bg-neutral: #2B3039; --neutral-soft: #262A31;
    --accent-text: #0F1729; --focus: #8FAEEB; --danger: #F08C98; --danger-soft: #3B1F25;
    --backdrop: rgba(0, 0, 0, 0.6); --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
    --s-gray-fg: #B8C0CD; --s-gray-bg: #262D3A; --s-blue-fg: #A0C3F4; --s-blue-bg: #1B2A41;
    --s-amber-fg: #F2C56E; --s-amber-bg: #3A2E14; --s-rose-fg: #F2A3AD; --s-rose-bg: #3D2128;
    --s-teal-fg: #82D5CB; --s-teal-bg: #133330; --s-green-fg: #9DD49B; --s-green-bg: #1A3320;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11151D; --surface: #191F2A; --surface-2: #1F2633; --line: #2C3444; --line-strong: #3B4558;
  --text: #E5E9F1; --muted: #9DA6B8; --accent: #8FAEEB; --accent-hover: #A9C1F1; --accent-soft: #1F2A41;
  --admin: #F29DA7; --admin-soft: #3C2128; --admin-accent: #F29DA7; --admin-accent-hover: #F6B8C0; --admin-accent-text: #2A0E13; --table-head: #273041; --header-bg: #172D55; --header-bg-admin: #5E1B26; --header-bg-neutral: #2B3039; --neutral-soft: #262A31;
    --accent-text: #0F1729; --focus: #8FAEEB; --danger: #F08C98; --danger-soft: #3B1F25;
  --backdrop: rgba(0, 0, 0, 0.6); --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
  --s-gray-fg: #B8C0CD; --s-gray-bg: #262D3A; --s-blue-fg: #A0C3F4; --s-blue-bg: #1B2A41;
  --s-amber-fg: #F2C56E; --s-amber-bg: #3A2E14; --s-rose-fg: #F2A3AD; --s-rose-bg: #3D2128;
  --s-teal-fg: #82D5CB; --s-teal-bg: #133330; --s-green-fg: #9DD49B; --s-green-bg: #1A3320;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: clamp(15px, 0.3vw + 11px, 17px); line-height: 1.7; }
h1, h2, h3 { margin: 0; line-height: 1.4; font-weight: 700; text-wrap: balance; }
h1 { font-size: 24px; }
h2 { font-size: 17px; }
p { margin: 0; }
ul { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.icon { flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
#app { height: 100%; }

/* 共通の枠 */
.shell { display: flex; flex-direction: column; min-height: 100%; }
.layout { flex: 1; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.shell-simple .layout { grid-template-columns: minmax(0, 1fr); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px 24px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); height: calc(100vh - 68px); overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.brand { font-size: 24px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 12px; display: flex; align-items: baseline; gap: 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--text); font-size: 17px; text-align: left; }
.nav-item:hover { background: var(--surface-2); }
.nav-item .icon { color: var(--muted); }
/* 選んでいる項目は，色の付かない灰色で示す．文字の色で，従業員と管理者のどちらのメニューかを分ける． */
.nav-item.is-active { background: var(--neutral-soft); color: var(--accent); font-weight: 700; }
.nav-item.is-active .icon { color: var(--accent); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 2px 12px 6px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; }
.nav-group-employee .nav-label { color: var(--accent); }
.nav-group-admin .nav-label { color: var(--admin); }
.nav-group-admin .nav-item.is-active { color: var(--admin); }
.nav-group-home .nav-item.is-active, .nav-group-home .nav-item.is-active .icon { color: var(--text); }
.nav-group-admin .nav-item.is-active .icon { color: var(--admin); }
.nav-sep { height: 1px; background: var(--line); margin: 10px 12px; }
@media (min-width: 761px) and (max-height: 900px) {
  .sidebar { padding-block: 12px; gap: 12px; }
  .nav-item { padding-block: 6px; }
  .nav-sep { margin-block: 6px; flex-shrink: 0; }
}

/* 本文の背景は，どの画面も白にする．従業員と管理者の画面の違いは，上の帯とボタンの色で示す． */
.main { display: flex; flex-direction: column; min-width: 0; background: var(--surface); }
.main.is-admin, .modal-backdrop.is-admin { --accent: var(--admin-accent); --accent-hover: var(--admin-accent-hover); --accent-soft: var(--admin-soft); --accent-text: var(--admin-accent-text); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 0 24px; background: var(--header-bg); color: var(--header-text); }
.topbar.is-admin { background: var(--header-bg-admin); }
/* ホームなど，従業員の画面でも管理者の画面でもないものは，上の帯を灰色にする． */
.topbar.is-neutral { background: var(--header-bg-neutral); }
.topbar :focus-visible { outline-color: var(--header-text); }
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-left .brand { padding: 0; }
.brand-link { border: 0; background: transparent; color: inherit; cursor: pointer; }
.sample-chip { font-size: 12px; color: var(--header-muted); border: 1px dashed var(--header-line); border-radius: 4px; padding: 1px 10px; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.top-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border: 0; border-radius: 4px; background: transparent; color: var(--header-muted); font-size: 13px; line-height: 1.2; }
.top-btn:hover { background: var(--header-hover); color: var(--header-text); }
.top-btn.is-active { background: var(--header-hover); color: var(--header-text); }
.top-sep { width: 1px; height: 32px; background: var(--header-line); margin: 0 10px; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--header-text); }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--header-hover); border-color: var(--header-line); }
.user-name { font-size: 16px; font-weight: 700; white-space: nowrap; }
.popover { position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 16px; z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.pop-head { display: flex; align-items: center; gap: 12px; }
.topbar .popover :focus-visible { outline-color: var(--focus); }
.pop-name { font-weight: 700; font-size: 16px; }
.pop-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pop-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pop-list div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.pop-list dt { color: var(--muted); }
.pop-list dd { margin: 0; }
.pop-actions { display: flex; flex-direction: column; gap: 6px; }

.content { width: 100%; padding: 28px 40px 64px; display: flex; flex-direction: column; gap: 20px; }
.shell-simple .content { max-width: 780px; margin: 0 auto; }
.card-form { width: 100%; max-width: 1000px; }

/* 見出しと面 */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .lead { margin-top: 4px; }
.lead { color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.head-select { min-height: 36px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); }
.card-body { padding: 18px 20px; }
/* 見出し（.card-head）は枠の上に出して枠の左端にそろえ，.table-card と同様に中身だけを枠で囲む．
   見出しの横の補足や操作（ボタン）は，見出しと同じ行の右端に置く．見出しの後の要素はそれぞれが枠になるので，中身は一つの要素にまとめる． */
.card:has(> .card-head) { display: flex; flex-direction: column; gap: 8px; background: none; border: 0; border-radius: 0; }
.card:has(> .card-head) > :not(.card-head) { flex-grow: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.count { color: var(--muted); font-size: 14px; }

/* やること */
/* ホームの見出しは枠の外に出し，枠の左端にそろえる．従業員は左の欄の従業員の青，管理者は赤にする． */
.home-role { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home-role + .home-role { margin-top: 8px; }
.home-role-title { font-size: 18px; font-weight: 800; }
.home-role-emp .home-role-title { color: var(--accent); }
.home-role-admin .home-role-title { color: var(--admin); }
.home-role.is-single .home-role-title { color: var(--text); }
.home-role-admin .tab.is-active { color: var(--admin); border-bottom-color: var(--admin); }
.task-list { list-style: none; padding: 0; }
.task-list li + li { border-top: 1px solid var(--line); }
.task { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; grid-template-areas: "text date go"; align-items: center; gap: 16px; padding: 16px 20px; border: 0; background: transparent; text-align: left; color: var(--text); font-size: 15px; }
.task:hover { background: var(--surface-2); }
.task-text { grid-area: text; }
.task-date { grid-area: date; color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.task-go { grid-area: go; color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--muted); }

.chip-row { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700; white-space: nowrap; text-align: center; }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; justify-content: flex-start; }
.btn-quiet { border: 0; background: transparent; color: var(--muted); padding: 4px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.btn-quiet:hover { color: var(--danger); }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-align: left; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* タブと絞り込み */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 10px 18px; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 4px; padding: 4px 14px; font-size: 14px; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); padding: 0 12px; min-height: 42px; width: 100%; max-width: 360px; color: var(--muted); }
.search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-size: 1em; color: var(--text); padding: 8px 0; }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }

/* 表 */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 1em; min-width: 760px; }
.table th { text-align: left; font-size: 0.95em; color: var(--text); font-weight: 700; padding: 13px 18px; background: var(--table-head); border-bottom: 1px solid var(--line); white-space: nowrap; letter-spacing: 0.02em; }
.table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
/* 表の右側に余白が偏らないよう，見出しのある列で表の幅を等分する．
   中身が等分の幅に収まらない列だけ中身の幅まで広げ，ほかの列は等分に近い幅に縮める．列の数が 13 以上の表は，中身の幅に余りを等しく足す．
   見出しのない列（選ぶための印や操作のボタン）は中身の幅に縮め，余りはほかの列に回す．
   日付や金額が細い列で二行にならないよう，セルは折り返さない．最後の列（説明が多い）と .table-wrap-cell だけは折り返してよい．
   右寄せの列（.num）は右の余白を広げ，右隣の左寄せの列との間隔を確保する．
   最初の列は日付や番号が多いので，右寄せの列でも左に寄せ，表の左端をそろえる． */
.table td { white-space: nowrap; }
.table thead th { width: 1%; }
.table thead tr > :where(th:first-child:nth-last-child(2), th:first-child:nth-last-child(2) ~ th) { width: 50%; }
.table thead tr > :where(th:first-child:nth-last-child(3), th:first-child:nth-last-child(3) ~ th) { width: 33.333%; }
.table thead tr > :where(th:first-child:nth-last-child(4), th:first-child:nth-last-child(4) ~ th) { width: 25%; }
.table thead tr > :where(th:first-child:nth-last-child(5), th:first-child:nth-last-child(5) ~ th) { width: 20%; }
.table thead tr > :where(th:first-child:nth-last-child(6), th:first-child:nth-last-child(6) ~ th) { width: 16.666%; }
.table thead tr > :where(th:first-child:nth-last-child(7), th:first-child:nth-last-child(7) ~ th) { width: 14.285%; }
.table thead tr > :where(th:first-child:nth-last-child(8), th:first-child:nth-last-child(8) ~ th) { width: 12.5%; }
.table thead tr > :where(th:first-child:nth-last-child(9), th:first-child:nth-last-child(9) ~ th) { width: 11.111%; }
.table thead tr > :where(th:first-child:nth-last-child(10), th:first-child:nth-last-child(10) ~ th) { width: 10%; }
.table thead tr > :where(th:first-child:nth-last-child(11), th:first-child:nth-last-child(11) ~ th) { width: 9.09%; }
.table thead tr > :where(th:first-child:nth-last-child(12), th:first-child:nth-last-child(12) ~ th) { width: 8.333%; }
.table thead tr > th:empty, .table thead tr > th:has(> .sr-only) { width: 1%; }
.table td:last-child:not(.num):not(.nowrap), .table td.table-wrap-cell { white-space: normal; min-width: 160px; }
.table td .chip-row { flex-wrap: nowrap; }
/* 表の中の札とボタンは，幅が足りなくても縮めず，文字を折り返さない． */
.table td .chip-row > * { flex: none; white-space: nowrap; }
.table th.num:first-child, .table td.num:first-child { text-align: left; }
.table th.num:not(:first-child):not(:last-child), .table td.num:not(:first-child):not(:last-child) { padding-right: 36px; }
.table.table-compact th.num:not(:first-child):not(:last-child), .table.table-compact td.num:not(:first-child):not(:last-child) { padding-right: 28px; }
.table.table-att th.num:not(:first-child):not(:last-child), .table.table-att td.num:not(:first-child):not(:last-child) { padding-right: 24px; }
.table.table-row-actions { border-collapse: separate; border-spacing: 0; }
.table.table-row-actions :is(th, td),
.table.table-row-actions :is(th, td).num:not(:first-child):not(:last-child) { padding-inline: 10px; }
.table-row-actions th,
.table.si-filings td:nth-child(2), .table.si-filings td:nth-child(3), .table.si-filings td:nth-child(4), .table.si-filings td:nth-child(7),
.table.leave-balances td:nth-child(1), .table.leave-balances td:nth-child(6), .table.leave-balances td:nth-child(7) {
  white-space: normal;
  overflow-wrap: anywhere;
}
.table.table-row-actions :is(th, td):last-child:not([colspan]) {
  position: sticky;
  right: 0;
  z-index: 1;
  min-width: 0;
  white-space: nowrap;
}
.table.table-row-actions td:last-child:not([colspan]) { background: var(--surface); }
/* 表のカード．見出しを枠の上に出して枠の左端にそろえ，表だけを枠で囲む．
   見出しの横の補足や操作（ボタン）は，見出しと同じ行の右端に置く． */
.table-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.table-card > .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
/* 表示件数の欄（ui.js の pageSizeHtml）．表の上の右端に置く． */
.page-size { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.page-size select { min-height: 36px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); }
.row-link { cursor: pointer; }
.row-link:hover td { background: var(--surface-2); }
.cell-strong { font-weight: 700; }
.cell-sub { display: block; font-size: 12.5px; color: var(--muted); }
.table.table-master { min-width: 0; }
.table.table-master th, .table.table-master td { padding: 12px 16px; border: 1px solid var(--line); white-space: nowrap; }
.table.table-master tbody tr:hover td { background: var(--surface-2); }
.th-sort { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; color: inherit; white-space: nowrap; cursor: pointer; }
.th-sort:hover { color: var(--accent); }
.th-sort.is-active { color: var(--accent); }
.sort-icon { display: inline-flex; flex-direction: column; font-size: 9px; line-height: 1.05; color: var(--line-strong); }
.sort-icon .on { color: var(--accent); }
/* 絞り込み（検索）の欄．飾りの枠は付けない決まりの例外として，線を引かずに薄い灰色で塗りつぶした箱にまとめる． */
.filter-card { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; background: var(--neutral-soft); border-radius: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; }
.filter { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; }
.filter-wide { flex: 4 1 320px; }
.filter-fit { flex: 0 0 auto; }
.btn-clear, .btn-clear:hover { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.filter label, .filter-label { font-size: 0.9em; font-weight: 700; color: var(--muted); }
.filter select, .filter input[type="date"] { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); font-size: 1em; }
.filter .search { max-width: none; min-height: 44px; }
.range { display: flex; align-items: center; gap: 8px; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* 手続きの詳細 */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb .link { font-weight: 400; font-size: 14px; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-meta { color: var(--muted); margin-top: 2px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; grid-template-areas: "main side"; gap: 20px; align-items: start; }
.detail-main { grid-area: main; }
.detail-side { grid-area: side; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.detail-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
.actions { display: flex; flex-direction: column; gap: 8px; }
.actions-row { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.dl dt { color: var(--muted); font-size: 14px; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.subhead { font-size: 14px; font-weight: 700; color: var(--muted); margin: 20px 0 10px; }
.decision { margin-top: 18px; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.decision.is-returned { background: var(--s-rose-bg); color: var(--s-rose-fg); }
.decision.is-approved { background: var(--s-teal-bg); color: var(--s-teal-fg); }
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-by { color: var(--muted); }
details.older { margin-top: 16px; }
details.older summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 14px; }
.older-item { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.bullets { padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }

/* 入力 */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section + .form-section { padding-top: 20px; border-top: 1px solid var(--line); }
.form-section h2 { font-size: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.field-half { grid-column: auto; }
.field label { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.req { font-size: 11.5px; font-weight: 700; padding: 0 6px; border-radius: 4px; line-height: 18px; }
.req { color: var(--danger); background: var(--danger-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font-size: 16px; }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 13px; color: var(--muted); }
.error { font-size: 13.5px; color: var(--danger); font-weight: 700; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 6px; font-size: 14.5px; }
.banner .icon { margin-top: 3px; }
.banner strong { display: block; }
.banner-rose { background: var(--s-rose-bg); color: var(--s-rose-fg); }
.banner-blue { background: var(--s-blue-bg); color: var(--s-blue-fg); }
.banner-teal { background: var(--s-teal-bg); color: var(--s-teal-fg); }
.banner-amber { background: var(--s-amber-bg); color: var(--s-amber-fg); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.log { list-style: none; padding: 0; display: flex; flex-direction: column; }
.log li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 10px 20px; font-size: 14px; }
.log li + li { border-top: 1px solid var(--line); }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.note { font-size: 13.5px; color: var(--muted); }

/* ポップアップ */
.modal-backdrop { position: fixed; inset: 0; background: var(--backdrop); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-body { padding: 14px 20px 6px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px 20px; flex-wrap: wrap; }
.check-list { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.check:hover { background: var(--surface-2); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.check-title { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check-desc { display: block; font-size: 13.5px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 6px; font-size: 14.5px; box-shadow: var(--shadow); z-index: 60; width: max-content; max-width: calc(100vw - 32px); }

/* ログイン */
.login { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; }
.login-wrap { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 20px; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.login-brand .brand { font-size: 26px; padding: 0; }
.login-box { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.demo-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-btn { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; color: var(--text); }
.demo-btn:hover { border-color: var(--accent); background: var(--surface-2); }
.demo-name { font-weight: 700; }
.demo-note { display: block; font-size: 13px; color: var(--muted); }
.login-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--muted); }

/* 勤怠 */
.nowrap { white-space: nowrap; }
.punch-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 4px 0; border: 0; background: transparent; }
.punch-now { display: flex; flex-direction: column; gap: 4px; }
.punch-date { font-size: 21px; font-weight: 700; }
.punch-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.punch-btn { min-width: 100px; min-height: 50px; font-size: 16px; }
.punch-btn-out, .punch-btn-out:hover { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); padding: 6px 0 10px; }
.stat { padding: 8px 20px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-value.is-small { font-size: 15px; }
.table.table-att { min-width: 900px; font-size: 14.5px; }
.table.table-att th, .table.table-att td { padding: 9px 12px; }
.table-att .num, .table-att th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-att tr.is-off td { background: var(--surface-2); }
.table-att tr.is-future td { color: var(--muted); }
.table-wrap-cell { white-space: normal; min-width: 160px; }
.day-kind { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dl-compact { grid-template-columns: 92px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.dl-compact dt { font-size: 13px; }
.modal.modal-wide { max-width: 640px; }
.punch-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.punch-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.punch-list .num { font-weight: 700; min-width: 48px; }
.punch-list li.struck .num { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.radio-field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.radio-field legend { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 6px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer; flex: 1 1 150px; min-width: 0; }
.radio:hover { background: var(--surface-2); }
.radio input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio.is-disabled { opacity: 0.55; cursor: default; }
.radio-label { font-weight: 700; display: block; }
.radio-desc { display: block; font-size: 12.5px; color: var(--muted); }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--accent); }
.guide { font-size: 13.5px; }
.guide summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.guide table { border-collapse: collapse; margin-top: 8px; }
.guide td { padding: 2px 16px 2px 0; }

@media (max-width: 960px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "main"; }
  .detail-side { position: static; order: -1; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 8px; }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav-group { flex-direction: row; }
  .nav-label { display: none; }
  .nav-item { width: auto; white-space: nowrap; }
  .nav-sep { width: 1px; height: auto; margin: 6px 4px; }
  .sample-chip { display: none; }
  .punch-card { grid-template-columns: minmax(0, 1fr); }
  .punch-buttons { justify-content: flex-start; }
  .topbar { position: static; padding: 0 16px; }
  .content { padding: 20px 16px 48px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .field-half { grid-column: 1 / -1; }
  .task { grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "text go" "date go"; gap: 4px 12px; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dl dd { margin-bottom: 10px; }
  .timeline li, .log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- 本物の画面で足した分 ---------- */
.login-wrap-wide { max-width: 720px; }
.loading-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 20; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: loading-slide 1.1s linear infinite; }
@keyframes loading-slide { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.table-pay .num, .table-pay th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table.table-compact { min-width: 0; }
.table.table-compact th, .table.table-compact td { padding: 8px 14px; }
.table .num, .table th.num { text-align: right; }
.row-total td { background: var(--surface-2); }
.row-check { width: 18px; height: 18px; accent-color: var(--accent); }
.dev-clock { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 6px; background: var(--surface); border: 1px dashed var(--line-strong); box-shadow: var(--shadow); font-size: 14px; }
.dev-clock.is-shifted { border: 2px solid var(--s-amber-fg); background: var(--s-amber-bg); }
.dev-clock-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.dev-clock.is-shifted .dev-clock-label { color: var(--s-amber-fg); }
.dev-clock-now { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .loading-bar { animation: none; background: var(--accent); } }
a.brand-link { text-decoration: none; }
.table .cell-name, .table .cell-name + .cell-sub { white-space: nowrap; }
.payslip-meta { display: flex; flex-wrap: wrap; padding-bottom: 10px; }
#att-dyn { display: flex; flex-direction: column; gap: 12px; }
.option-add { display: flex; align-items: center; gap: 8px; }
.field .option-add input { flex: 1; width: auto; min-width: 0; }
.section-title { font-size: 18px; margin-top: 8px; }
.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-third { grid-column: auto; }
.field-check { justify-content: flex-end; padding-bottom: 10px; }
.decl-row { padding: 12px 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.decl-row:first-of-type { border-top: 0; padding-top: 0; }
.decl-row-head { display: flex; align-items: center; justify-content: space-between; }
.dl-3 { grid-template-columns: 180px minmax(0, 1fr); }
.sticky-actions { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }
.log-compact li { padding: 6px 0; }
.table td select, .table td input[type="number"] { min-height: 36px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); max-width: 220px; }
@media (max-width: 960px) { .fields-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.table-history td { white-space: nowrap; }
.plain-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.task-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mn-reveal { margin: 14px 0; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 6px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mn-docs { display: grid; gap: 10px; width: 100%; }
.mn-docs figure { margin: 0; }
.mn-docs img { max-width: 100%; max-height: 420px; border: 1px solid var(--line-strong); border-radius: 4px; }
.mn-docs iframe { width: 100%; height: 420px; border: 1px solid var(--line-strong); border-radius: 4px; }
/* 書類一覧のPDFのポップアップ */
.modal.modal-wide:has(.doc-viewer) { max-width: min(1100px, 96vw); }
.doc-viewer iframe { width: 100%; height: 72vh; border: 1px solid var(--line-strong); border-radius: 4px; }
/* CSVの取り込みの結果の表は列が多いので，ポップアップを広げる． */
.modal.modal-wide:has(.csv-rows) { max-width: min(1100px, 96vw); }
/* 届書を直すポップアップの表（報酬月額，離職証明書の賃金の欄）．列が多いので，広げて余白を詰める． */
.modal.modal-wide:has(.table-edit) { max-width: min(1200px, 96vw); }
.table.table-edit { min-width: 0; }
.table-edit th, .table-edit td { padding: 8px 6px; }
.table-edit input { width: 100%; }
.mn-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-number span + span { margin-left: 0.6em; }
.mn-pick { max-height: 45vh; overflow: auto; }
/* 本人のマイナンバー画面（.mn-me）に使うスタイル． */
.mn-me { --mn-purple-fg: #6A2BB8; --mn-purple-bg: #F1E9FB; display: flex; flex-direction: column; gap: 16px; max-width: 1120px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mn-me { --mn-purple-fg: #CDB3F2; --mn-purple-bg: #2C2140; } }
:root[data-theme="dark"] .mn-me { --mn-purple-fg: #CDB3F2; --mn-purple-bg: #2C2140; }
.mn-me .is-gray { --tone-fg: var(--s-gray-fg); --tone-bg: var(--s-gray-bg); }
.mn-me .is-amber { --tone-fg: var(--s-amber-fg); --tone-bg: var(--s-amber-bg); }
.mn-me .is-purple { --tone-fg: var(--mn-purple-fg); --tone-bg: var(--mn-purple-bg); }
.mn-me .is-rose { --tone-fg: var(--s-rose-fg); --tone-bg: var(--s-rose-bg); }
.mn-me .is-green { --tone-fg: var(--s-green-fg); --tone-bg: var(--s-green-bg); }
.mn-me-box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(27, 34, 49, 0.04), 0 4px 14px rgba(27, 34, 49, 0.05); min-width: 0; }
.mn-me-circle { display: grid; place-items: center; flex: none; border-radius: 50%; }
.mn-me-safe { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.mn-me-safe .mn-me-circle { width: 60px; height: 60px; background: var(--s-blue-bg); color: var(--s-blue-fg); }
.mn-me-lock { fill: var(--surface); }
.mn-me-lock-arc { fill: none; stroke: var(--surface); stroke-width: 1.5; }
.mn-me-safe strong { display: block; font-size: 16.5px; }
.mn-me-safe p { color: var(--muted); font-size: 14px; }
.mn-me .tab { display: inline-flex; align-items: center; gap: 8px; }
.mn-me-status { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 22px 26px; }
.mn-me-status .mn-me-circle { width: 88px; height: 88px; background: var(--tone-bg); color: var(--tone-fg); }
.mn-me-status-label { font-size: 13.5px; color: var(--muted); }
.mn-me-status-value { font-size: 30px; font-weight: 800; line-height: 1.3; color: var(--tone-fg); }
.mn-me-status-note { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.mn-me-status-actions { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
/* 提出情報と注意事項の枠は，中身の量にかかわらず高いほうに高さをそろえる． */
.mn-me-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.mn-me-panel { padding: 18px 20px 10px; }
.mn-me-panel h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 10px; }
.mn-me-empty { color: var(--muted); padding: 8px 0 12px; }
.mn-me-rows { list-style: none; padding: 0; }
.mn-me-rows li { display: grid; grid-template-columns: 40px 140px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line); }
.mn-me-rows .mn-me-circle { width: 40px; height: 40px; background: var(--surface-2); color: var(--muted); }
.mn-me-row-label { font-weight: 700; font-size: 14.5px; }
.mn-me-row-value { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; overflow-wrap: anywhere; }
.mn-me-row-sub { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.mn-me-mask { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; }
.mn-me-tag { display: inline-block; padding: 0 10px; border-radius: 4px; font-size: 12.5px; font-weight: 700; line-height: 22px; white-space: nowrap; background: var(--tone-bg); color: var(--tone-fg); }
.mn-me-alert { width: 30px; height: 30px; background: var(--s-amber-bg); color: var(--s-amber-fg); font-size: 16px; font-weight: 800; }
.mn-me-notes { list-style: none; margin: 0; padding: 0 0 10px; display: flex; flex-direction: column; gap: 18px; }
.mn-me-notes li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.mn-me-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--s-blue-bg); color: var(--s-blue-fg); font-size: 14px; font-weight: 700; }
.mn-me-notes strong { display: block; font-size: 15px; }
.mn-me-notes p { font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) { .mn-me-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .mn-me-status { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .mn-me-status .mn-me-circle { width: 64px; height: 64px; }
  .mn-me-status-actions { grid-column: 1 / -1; min-width: 0; }
  .mn-me-rows li { grid-template-columns: 40px minmax(0, 1fr); }
  .mn-me-row-value { grid-column: 2; }
}
/* 角の丸み．入力欄やボタンなど操作するもの，札，画像は 4px，枠で囲んだ箱（カード，ポップアップ，お知らせの帯，通知など）は 6px の，どちらも小さな角丸にする．上の行の指定を上書きする． */
.user-btn, .demo-btn, .field input, .field select, .field textarea { border-radius: 4px; }
/* 従業員の年末調整画面（year_end.js）に使うスタイル． */
.ye-tone-rose { background: var(--s-rose-bg); color: var(--s-rose-fg); }
.ye-tone-amber { background: var(--s-amber-bg); color: var(--s-amber-fg); }
.ye-tone-blue { background: var(--s-blue-bg); color: var(--s-blue-fg); }
.ye-tone-teal { background: var(--s-teal-bg); color: var(--s-teal-fg); }
.ye-tone-green { background: var(--s-green-bg); color: var(--s-green-fg); }
.ye-tone-gray { background: var(--s-gray-bg); color: var(--s-gray-fg); }
.ye-chip { display: inline-block; padding: 1px 10px; border-radius: 4px; font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.ye-chip-lg { margin-top: 4px; padding: 3px 28px; font-size: 16px; }
.ye-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; flex: none; }
.ye-icon-sm { width: 44px; height: 44px; }
.ye-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.ye-sum-item { display: flex; align-items: center; gap: 16px; padding: 0 24px; min-width: 0; }
.ye-sum-item:first-child { padding-left: 0; }
.ye-sum-item + .ye-sum-item, .ye-sum-actions { border-left: 1px solid var(--line); }
.ye-sum-label { font-size: 14px; font-weight: 700; }
.ye-sum-value { font-size: 26px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ye-sum-value.is-urgent { color: var(--danger); }
.ye-sum-actions { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; }
.ye-start { justify-content: space-between; gap: 16px; min-width: 240px; min-height: 56px; padding: 0 18px; font-size: 16px; }
.ye-start-label { display: inline-flex; align-items: center; gap: 10px; }
.ye-steps { list-style: none; margin: 0; padding: 20px 8px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.ye-step { position: relative; min-width: 0; }
.ye-step + .ye-step::before { content: ""; position: absolute; top: 18px; left: calc(-50% + 26px); right: calc(50% + 26px); height: 2px; background: var(--line-strong); }
.ye-step.is-done::before, .ye-step.is-current::before { background: var(--accent); }
.ye-step-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: center; }
button.ye-step-btn:hover .ye-step-title { text-decoration: underline; text-underline-offset: 3px; }
.ye-step-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface-2); color: var(--muted); font-weight: 700; }
.ye-step.is-current .ye-step-num { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.ye-step.is-done .ye-step-num { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ye-step-title { margin-top: 6px; font-weight: 700; }
.ye-step.is-current .ye-step-title { color: var(--accent); }
.ye-step-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ye-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.ye-grid-single { grid-template-columns: minmax(0, 1fr); }
.ye-panel { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.ye-panel h2 { font-size: 18px; }
.ye-panel-lead { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.ye-docs, .ye-prep { list-style: none; padding: 0; display: flex; flex-direction: column; }
.ye-docs li + li { border-top: 1px solid var(--line); }
.ye-doc { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; padding: 12px 6px; border: 0; background: transparent; color: var(--text); text-align: left; }
.ye-doc:hover { background: var(--surface-2); }
.ye-doc-text { display: flex; flex-direction: column; min-width: 0; }
.ye-doc-name { font-weight: 700; }
.ye-doc-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.ye-doc-go { color: var(--muted); }
.ye-prep li { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; }
.ye-table { margin-top: 8px; border: 1px solid var(--line); border-radius: 4px; }
.ye-ops { display: flex; gap: 8px; }
.ye-actions { justify-content: space-between; }
.ye-actions-right { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 960px) {
  .ye-summary { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ye-sum-item, .ye-sum-actions { padding: 0; }
  .ye-sum-item + .ye-sum-item, .ye-sum-actions { border-left: 0; }
  .ye-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ye-step-desc { display: none; }
  .ye-start { width: 100%; min-width: 0; }
}
