:root {
  --ink: #1d2421;
  --muted: #707873;
  --paper: #f4f3ef;
  --white: #fffefa;
  --line: #dedfd9;
  --olive: #557363;
  --olive-dark: #344b40;
  --olive-soft: #dfe8e1;
  --coral: #ec765f;
  --coral-dark: #c85540;
  --coral-soft: #fbe3dd;
  --sand: #e8d6b3;
  --mint: #b9d9c9;
  --yellow: #f3c85b;
  --shadow: 0 20px 60px rgba(40, 52, 46, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(236, 118, 95, 0.35); outline-offset: 2px; }
[hidden] { display: none !important; }
.is-hidden { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(4px); pointer-events: none; z-index: 0; }
.ambient-one { width: 440px; height: 440px; background: rgba(185, 217, 201, 0.22); top: -180px; right: -120px; }
.ambient-two { width: 360px; height: 360px; background: rgba(236, 118, 95, 0.09); bottom: -170px; left: 8%; }

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 38px clamp(22px, 5vw, 84px) 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand, .sidebar-brand { display: flex; align-items: center; gap: 13px; font-weight: 700; letter-spacing: 0.13em; }
.beta-safety-banner { width: min(1160px, 100%); margin: 22px auto -24px; padding: 10px 16px; border: 1px solid #e5cdb1; border-radius: 12px; background: #fff7eb; color: #684d31; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; font-size: 12px; line-height: 1.5; }
.beta-safety-banner strong { color: #8a4f22; }
.brand-mark { width: 35px; height: 35px; position: relative; transform: rotate(-12deg); }
.brand-mark span { position: absolute; display: block; width: 16px; height: 25px; background: var(--olive); border-radius: 100% 0 100% 0; transform-origin: bottom right; }
.brand-mark span:nth-child(1) { left: 0; top: 7px; transform: rotate(-25deg); }
.brand-mark span:nth-child(2) { left: 9px; top: 0; transform: rotate(12deg); }
.brand-mark span:nth-child(3) { right: 0; top: 10px; transform: rotate(48deg); }
.brand-mark.small { transform: scale(0.8) rotate(-12deg); margin-left: -3px; }
.login-card { width: min(1160px, 100%); margin: 48px auto; display: grid; grid-template-columns: 1.08fr 0.92fr; background: rgba(255,254,250,0.88); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.8); border-radius: 30px; overflow: hidden; backdrop-filter: blur(18px); }
.login-copy { padding: clamp(42px, 6vw, 82px); background: var(--olive-dark); color: white; position: relative; overflow: hidden; }
.login-copy::after { content: ""; position: absolute; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; right: -110px; top: -100px; box-shadow: 0 0 0 55px rgba(255,255,255,0.025), 0 0 0 110px rgba(255,255,255,0.018); }
.eyebrow, .card-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: #c9ddd1; margin-bottom: 20px; }
.eyebrow.dark { color: var(--olive); margin-bottom: 9px; }
.login-copy h1 { font-family: "Noto Sans JP", sans-serif; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.25; letter-spacing: -.04em; margin: 0 0 24px; }
.login-copy h1 em { font-family: Georgia, serif; color: #f0b3a5; font-weight: 600; }
.login-motto-only { color: #c9ddd1; font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; font-weight: 600; letter-spacing: .08em !important; }
.login-copy > p { color: rgba(255,255,255,.72); line-height: 1.9; max-width: 480px; margin-bottom: 42px; }
.login-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px; }
.login-features li { display: flex; align-items: center; gap: 15px; color: rgba(255,255,255,.86); }
.login-features span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 10px; color: #c9ddd1; }
.login-panel { padding: clamp(42px, 6vw, 82px); display: flex; flex-direction: column; justify-content: center; }
.security-badge { align-self: flex-start; padding: 8px 12px; border-radius: 999px; background: var(--olive-soft); color: var(--olive-dark); font-size: 12px; font-weight: 600; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: #4aa875; border-radius: 50%; box-shadow: 0 0 0 4px rgba(74,168,117,.13); }
.login-panel h2 { font-size: 32px; margin: 28px 0 10px; }
.login-panel > p { color: var(--muted); line-height: 1.7; margin: 0 0 30px; }
.google-button, .secondary-login { width: 100%; border-radius: 14px; padding: 17px 20px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; transition: .2s ease; }
.google-button { border: 0; color: white; background: var(--olive-dark); box-shadow: 0 10px 25px rgba(52,75,64,.2); }
.google-button:hover { transform: translateY(-2px); background: #293f35; }
.google-button span:last-child, .secondary-login span:last-child { margin-left: auto; }
.google-g { width: 27px; height: 27px; border-radius: 50%; background: white; color: #4285f4; display: grid; place-items: center; font-weight: 700; }
.secondary-login { margin-top: 12px; border: 1px solid var(--line); background: transparent; }
.secondary-login:hover { border-color: var(--olive); background: #fafbf8; }
.role-demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 12px; }
.role-demo-grid .secondary-login { margin: 0; padding: 12px 10px; justify-content: center; font-size: 11px; }
.login-note { display: flex; gap: 10px; color: #8a918d; font-size: 11px; line-height: 1.55; margin-top: 28px; }
.poc-label { text-align: center; color: #9aa09c; letter-spacing: .18em; font-size: 10px; margin: 0; }
/* ログイン失敗画面に「入れなかったアカウント」を出す箱(2026-10-15 会長指示)。マニュアルアプリの
   見せ方(ラベル→値→理由)に揃える。値は省略(ellipsis)・改行禁止(nowrap)・はみ出し隠し(overflow:hidden)
   にしない。長いアドレスでも折り返して全部読める大きさで出す。 */
.gacct-box { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--coral-soft); border: 1px solid rgba(200, 85, 64, .25); }
.gacct-label { font-size: 12px; font-weight: 700; color: var(--coral-dark); }
.gacct-value { display: block; font-size: 19px; font-weight: 700; line-height: 1.35; word-break: break-all; overflow-wrap: anywhere; white-space: normal; color: var(--ink); margin: 3px 0; }
.gacct-reason { font-size: 12px; color: var(--muted); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 98px 1fr; position: relative; z-index: 1; }
.sidebar { background: var(--olive-dark); color: white; min-height: 100vh; position: fixed; inset: 0 auto 0 0; width: 98px; display: flex; flex-direction: column; align-items: center; z-index: 20; }
.sidebar-brand { height: 104px; color: white; text-decoration: none; font-size: 10px; line-height: 1.25; letter-spacing: .11em; border-bottom: 1px solid rgba(255,255,255,.08); width: 100%; justify-content: center; gap: 5px; }
.sidebar-brand .brand-mark span { background: #c9ddd1; }
.sidebar-nav { flex: 1; width: 100%; padding: 22px 11px; display: flex; flex-direction: column; gap: 7px; }
.nav-item { width: 100%; border: 0; background: transparent; color: rgba(255,255,255,.54); padding: 12px 4px; border-radius: 12px; cursor: pointer; display: grid; gap: 5px; place-items: center; font-size: 10px; transition: .18s ease; }
.nav-item span { font-size: 20px; font-weight: 400; }
.nav-item b { font-weight: 500; }
.nav-item:hover, .nav-item.is-active { color: white; background: rgba(255,255,255,.1); }
.sidebar-bottom { padding: 15px 8px 22px; display: grid; gap: 13px; place-items: center; }
.demo-pill { font-size: 9px; letter-spacing: .15em; padding: 5px 7px; border-radius: 4px; color: var(--sand); border: 1px solid rgba(232,214,179,.35); }
.help-link { border: 0; background: transparent; color: rgba(255,255,255,.55); font-size: 11px; cursor: pointer; }

.main-content { grid-column: 2; min-width: 0; }
.topbar { height: 104px; background: rgba(255,254,250,.82); border-bottom: 1px solid var(--line); padding: 0 clamp(24px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 15; backdrop-filter: blur(16px); }
.topbar-kicker { color: var(--muted); font-size: 11px; letter-spacing: .07em; margin: 0 0 3px; }
.topbar h1 { font-size: 21px; margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
/* 社内アプリ一覧（manual.lashrush.jp/#/apps）へ同じタブで戻る小さなリンク。 */
.olive-apps-link { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--olive-dark); font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; letter-spacing: 0; }
.olive-apps-link:hover { background: #eeeee9; }
.olive-apps-link:focus-visible { outline: 3px solid rgba(236, 118, 95, 0.35); outline-offset: 2px; }
.login-brand { flex-wrap: wrap; row-gap: 8px; }
.login-olive-apps-link { margin-left: auto; }
.action-store-picker { min-width: 190px; display: grid; grid-template-columns: auto minmax(100px,1fr); align-items: center; gap: 2px 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.action-store-picker[hidden] { display: none !important; }
.action-store-picker > span { color: var(--muted); font-size: 9px; font-weight: 700; }
.action-store-picker select { min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.action-store-picker small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; line-height: 1.35; }
.runtime-bar { min-height: 38px; padding: 8px clamp(24px, 4vw, 64px); display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); background: #f4f1e8; color: #59635e; font-size: 11px; }
.runtime-bar strong { color: #26352e; font-size: 11px; white-space: nowrap; }
.runtime-indicator { width: 8px; height: 8px; border-radius: 50%; background: #b08a4d; box-shadow: 0 0 0 4px rgba(176,138,77,.12); flex: 0 0 auto; }
.runtime-bar.is-remote { background: #edf5ef; color: #4e6858; }
.runtime-bar.is-remote .runtime-indicator { background: #4c7c5d; box-shadow: 0 0 0 4px rgba(76,124,93,.12); }
.runtime-bar.is-local { background: #f6f2e8; }
.runtime-bar.is-blocked { background: #fff0ec; color: #89564b; border-color: #eed2ca; }
.runtime-bar.is-blocked .runtime-indicator { background: #c7614e; box-shadow: 0 0 0 4px rgba(199,97,78,.12); }
.runtime-bar button { margin-left: auto; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; min-height: 30px; padding: 4px 12px; font: inherit; cursor: pointer; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: white; position: relative; cursor: pointer; }
.icon-button i { position: absolute; top: -3px; right: -2px; width: 18px; height: 18px; display: grid; place-items: center; background: var(--coral); color: white; border-radius: 50%; font-size: 9px; font-style: normal; }
.profile-button { border: 0; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; padding: 5px 7px; border-radius: 12px; }
.profile-button:hover { background: #eeeee9; }
.profile-button > span:nth-child(2) { display: grid; gap: 2px; }
.profile-button b { font-size: 12px; }
.profile-button small { color: var(--muted); font-size: 10px; }
.avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--coral); font-size: 12px; font-weight: 700; }
.content-wrap { padding: clamp(28px, 4vw, 58px) clamp(22px, 5vw, 72px) 80px; max-width: 1480px; margin: 0 auto; }
.view { animation: reveal .28s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.welcome-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 22px; }
.home-context-grid { display: grid; grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr); gap: 18px; align-items: stretch; }
.manager-home-context { margin-bottom: 18px; }
.home-identity-card, .home-next-action-card { min-width: 0; border-radius: 20px; }
.home-identity-card { padding: 24px; background: var(--white); border: 1px solid var(--line); }
.home-identity-heading { display: flex; align-items: center; gap: 14px; }
.home-identity-heading .eyebrow { margin-bottom: 3px; }
.home-identity-heading h2 { margin: 0; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.3; }
.home-identity-avatar { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; background: var(--olive-dark); color: white; font-size: 16px; font-weight: 700; }
.home-identity-details { display: grid; gap: 0; margin: 18px 0 0; }
.home-identity-details > div { min-width: 0; padding: 10px 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); }
.home-identity-details dt { color: var(--muted); font-size: 10px; }
.home-identity-details dd { min-width: 0; margin: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.home-next-action-card { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .8fr); gap: 22px; color: white; background: var(--coral); box-shadow: 0 16px 35px rgba(236,118,95,.14); }
.home-action-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.home-action-heading { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-action-heading .eyebrow { margin: 0; color: rgba(255,255,255,.76); }
.home-action-heading .status-badge { flex: 0 0 auto; }
.home-action-copy h2 { margin: 17px 0 9px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; letter-spacing: -.035em; }
.home-action-copy > p { margin: 0 0 20px; color: rgba(255,255,255,.84); font-size: 12px; line-height: 1.7; }
.home-action-copy .light-button { min-height: 44px; }
.home-task-panel { min-width: 0; padding: 18px; border-radius: 15px; background: rgba(255,254,250,.96); color: var(--ink); }
.home-task-panel > strong { display: block; margin: 13px 0 2px; font-size: 23px; }
.home-task-panel > p { margin: 0 0 14px; color: var(--muted); font-size: 10px; }
.task-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.task-list-heading b { font-size: 11px; }
.task-list-heading small { color: var(--muted); font-size: 9px; }
.home-task-list { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 7px; }
.home-task-list li { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; }
.home-task-list li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--olive-soft); color: var(--olive-dark); font-size: 9px; font-weight: 700; }
.home-task-list li.task-priority > span { background: var(--coral-soft); color: var(--coral-dark); }
.home-task-list li.task-done > span { background: #dcefe4; color: #2f6b4d; }
.home-task-list p { min-width: 0; margin: 0; display: grid; gap: 1px; }
.home-task-list b { font-size: 10px; }
.home-task-list small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.work-profile-card { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.work-profile-card[hidden] { display: none !important; }
.nav-item[hidden] { display: none !important; }
.work-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.work-profile-heading .eyebrow { margin-bottom: 5px; }
.work-profile-heading h2 { margin: 0; font-size: 22px; }
.work-profile-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.work-profile-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(310px, 1.1fr); gap: 18px; }
.work-profile-data { min-width: 0; display: grid; align-content: start; gap: 10px; }
.work-profile-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px; }
.work-profile-facts > div { min-width: 0; min-height: 69px; padding: 13px 14px; border-radius: 12px; background: #f1f3ef; }
.work-profile-facts > .work-profile-wide { grid-column: 1 / -1; min-height: auto; }
.work-profile-facts dt { color: var(--muted); font-size: 9px; }
.work-profile-facts dd { margin: 6px 0 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.work-profile-disclosure { min-width: 0; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.work-profile-disclosure > summary { min-height: 52px; padding: 12px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.work-profile-disclosure > summary::-webkit-details-marker { display: none; }
.work-profile-disclosure > summary span { min-width: 0; font-size: 12px; font-weight: 700; }
.work-profile-disclosure > summary small { color: var(--muted); font-size: 9px; text-align: right; }
.work-profile-disclosure > summary::after { content: "+"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--olive-soft); color: var(--olive-dark); font-size: 15px; font-weight: 700; }
.work-profile-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.work-profile-disclosure[open] > summary::after { content: "−"; }
.work-profile-contract-facts { padding: 10px; }
.work-preference-form { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; display: grid; gap: 13px; }
.work-preference-disclosure .work-preference-form { border: 0; border-radius: 0; }
.work-preference-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.work-preference-heading h3 { margin: 0; font-size: 17px; }
.work-preference-heading p { margin: 3px 0 0; color: var(--coral-dark); font-size: 9px; font-weight: 700; }
.work-preference-heading > span { padding: 5px 8px; border-radius: 99px; background: #eceeeb; color: var(--muted); font-size: 8px; font-weight: 700; }
.work-preference-form > label, .work-preference-time-grid label { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); font-size: 10px; font-weight: 700; }
.work-preference-form select { width: min(230px, 55%); min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
.work-preference-form label > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.work-preference-form input { width: 90px; min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); text-align: right; }
.work-preference-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.work-preference-time-grid label { min-width: 0; padding: 11px; border-radius: 11px; background: #f7f7f3; }
.work-preference-day-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.work-preference-day-grid > label { min-width: 0; padding: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 11px; background: #f2f4ef; color: var(--ink); font-size: 10px; font-weight: 700; }
.work-preference-day-grid select { width: min(160px, 52%); }
.weekday-preference-disclosure { border: 1px solid var(--line); border-radius: 11px; background: #fafaf7; }
.weekday-preference-disclosure > summary { min-height: 44px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; font-size: 10px; font-weight: 800; }
.weekday-preference-disclosure > summary small { color: var(--muted); font-size: 8px; }
.weekday-preference-disclosure > p { margin: 0; padding: 0 12px 10px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.weekday-preference-grid { padding: 0 10px 10px; display: grid; gap: 7px; }
.weekday-preference-row { padding: 8px; display: grid; grid-template-columns: 34px minmax(120px, 1fr) minmax(110px, .8fr) repeat(2, minmax(86px, .65fr)) minmax(110px, .8fr); align-items: center; gap: 6px; border-radius: 9px; background: white; }
.weekday-preference-row > b { font-size: 10px; }
.weekday-preference-row select, .weekday-preference-row input { width: 100%; min-height: 38px; font-size: 11px; }
.weekday-preference-row input { text-align: left; }
.work-preference-form > .work-preference-recurring { padding: 12px; justify-content: flex-start; border: 1px solid #cfd8cb; border-radius: 11px; background: #f2f7f0; cursor: pointer; }
.work-preference-form > .work-preference-recurring input { flex: 0 0 auto; width: 20px; min-height: 20px; margin: 0; padding: 0; accent-color: var(--olive); }
.work-preference-form > .work-preference-recurring span { display: grid; justify-content: start; gap: 2px; white-space: normal; }
.work-preference-form > .work-preference-recurring small { color: var(--muted); font-size: 9px; font-weight: 600; line-height: 1.45; }
.pay-date-note { padding: 12px 13px; border-radius: 11px; background: #fff7eb; color: #684d31; }
.pay-date-note b { display: block; font-size: 10px; }
.pay-date-note p { margin: 5px 0 0; font-size: 9px; line-height: 1.55; }
.work-preference-status { margin: -5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.hero-card { min-height: 310px; border-radius: 24px; padding: 40px 44px; position: relative; overflow: hidden; box-shadow: 0 16px 35px rgba(236,118,95,.18); }
.coral-card { color: white; background: var(--coral); }
.coral-card::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; right: -70px; bottom: -130px; border: 1px solid rgba(255,255,255,.19); box-shadow: 0 0 0 55px rgba(255,255,255,.04), 0 0 0 110px rgba(255,255,255,.025); }
.hero-card h2, .manager-hero h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.35; letter-spacing: -.035em; margin: 0 0 14px; }
.hero-card p { color: rgba(255,255,255,.82); margin: 0 0 30px; }
.light-button { background: white; color: var(--coral-dark); border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 700; cursor: pointer; }
.light-button span { margin-left: 24px; }
.hero-orbit { position: absolute; right: 9%; top: 50%; transform: translateY(-50%); width: 134px; height: 134px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.23); display: grid; place-content: center; text-align: center; }
.hero-orbit span { font-family: Georgia, serif; font-size: 62px; line-height: .8; }
.hero-orbit small { margin-top: 13px; letter-spacing: .2em; font-size: 10px; }
.deadline-card { padding: 32px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.deadline-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.status-badge { padding: 5px 9px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.status-badge.pending { color: #a66a10; background: #fff0ca; }
.status-badge.done { color: #327153; background: #dcefe4; }
.status-badge.review { color: #a14836; background: var(--coral-soft); }
.deadline-card > strong { font-size: 35px; margin: 30px 0 0; }
.deadline-card > strong small { font-size: 12px; color: var(--muted); }
.deadline-card > p { font-size: 14px; color: var(--muted); margin: 3px 0 25px; }
.progress-line { height: 6px; border-radius: 9px; background: #e8e9e5; overflow: hidden; }
.progress-line i { display: block; height: 100%; border-radius: 9px; background: var(--olive); }
.deadline-card > small { color: var(--muted); margin-top: 10px; }
.section-heading, .panel-heading { margin: 44px 0 18px; display: flex; align-items: end; justify-content: space-between; }
.section-heading h2, .panel-heading h3 { margin: 0; font-size: 23px; }
.text-button { border: 0; background: transparent; color: var(--olive); font-size: 12px; font-weight: 600; cursor: pointer; }
.week-strip { display: grid; grid-template-columns: repeat(7,1fr); border: 1px solid var(--line); background: var(--white); border-radius: 18px; overflow: hidden; }
.week-day { padding: 19px 12px; text-align: center; border-right: 1px solid var(--line); min-height: 125px; }
.week-day:last-child { border-right: 0; }
.week-day span { display: block; color: var(--muted); font-size: 10px; }
.week-day strong { display: block; font-size: 22px; margin: 5px 0 14px; }
.week-day i { display: inline-block; padding: 5px 8px; border-radius: 7px; background: var(--olive-soft); color: var(--olive-dark); font-style: normal; font-size: 10px; }
.week-day.off i { background: #f0efeb; color: #999; }
.week-day.today { background: var(--olive-dark); color: white; }
.week-day.today span { color: rgba(255,255,255,.65); }
.week-day.today i { background: rgba(255,255,255,.13); color: white; }
.month-heading { margin-top: 34px; }
.month-status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.month-status-card { border: 1px solid var(--line); border-radius: 17px; padding: 21px; background: var(--white); }
.month-status-card.planning { background: #fff5ee; border-color: #f1c9be; }
.month-status-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.month-status-card > div i { font-style: normal; }
.month-status-card > strong { display: block; font-size: 19px; margin: 15px 0 5px; }
.month-status-card p { color: var(--muted); font-size: 10px; line-height: 1.65; margin: 0 0 15px; }
.month-status-card button { border: 0; background: transparent; color: var(--olive); padding: 0; font-size: 10px; font-weight: 700; cursor: pointer; }
.two-column { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.info-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; }
.info-icon.mint { background: var(--olive-soft); color: var(--olive); }
.info-icon.sand { background: #f6ecd8; color: #99712f; }
.info-card div:last-child { display: grid; gap: 2px; }
.info-card span, .info-card small { color: var(--muted); font-size: 10px; }
.info-card b { font-size: 13px; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 20px; }
.page-intro h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 7px; letter-spacing: -.035em; }
.page-intro p { color: var(--muted); margin: 0; font-size: 13px; }
.orientation-guide { display: none; align-items: center; gap: 10px; margin: -12px 0 16px; padding: 11px 13px; border: 1px solid #e2d2b3; border-radius: 12px; background: #f6ecd8; color: #6f624b; }
.orientation-guide > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.65); font-size: 17px; }
.orientation-guide p { margin: 0; font-size: 10px; line-height: 1.55; }
.orientation-guide b { margin-right: .45em; }
.deadline-chip { padding: 12px 16px; background: var(--coral-soft); border-radius: 12px; display: grid; gap: 3px; }
.deadline-chip span { font-size: 9px; color: var(--coral-dark); }
.deadline-chip b { font-size: 13px; }
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.calendar-card, .request-summary, .panel-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.calendar-card { padding: 30px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: center; gap: 28px; }
.calendar-toolbar h3 { margin: 0; font-size: 20px; }
.round-button { border: 1px solid var(--line); background: white; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 20px; }
.calendar-legend { display: flex; justify-content: center; gap: 22px; margin: 23px 0; color: var(--muted); font-size: 10px; }
.calendar-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.legend-off { background: var(--coral); }.legend-prefer { background: var(--olive); }.legend-holiday { border: 2px solid var(--coral); background: transparent; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); padding-bottom: 9px; margin-bottom: 5px; text-align: center; font-size: 10px; color: var(--muted); }
.calendar-weekdays .sat { color: #567ba0; }.calendar-weekdays .sun { color: var(--coral); }
.calendar-blank { min-height: 76px; }
.calendar-day { min-height: 76px; border: 0; background: transparent; border-radius: 11px; margin: 2px; padding: 8px; cursor: pointer; position: relative; text-align: left; transition: .15s ease; }
.calendar-day:hover { background: #f0f1ed; }
.calendar-day .day-number { display: block; font-weight: 600; font-size: 13px; }
.calendar-day .holiday-name { display: block; color: var(--coral-dark); font-size: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 2px; }
.calendar-day .request-label { position: absolute; inset: auto 6px 6px; padding: 4px 5px; text-align: center; border-radius: 5px; font-size: 8px; font-weight: 700; }
.calendar-day.is-off { background: var(--coral-soft); color: var(--coral-dark); }
.calendar-day.is-off .request-label { background: var(--coral); color: white; }
.calendar-day.is-prefer { background: var(--olive-soft); color: var(--olive-dark); }
.calendar-day.is-prefer .request-label { background: var(--olive); color: white; }
.calendar-day.weekend:not(.is-off):not(.is-prefer) .day-number { color: var(--coral-dark); }
.request-summary { padding: 27px; position: sticky; top: 126px; }
.request-summary h3 { margin: 0 0 25px; font-size: 22px; }
.quota-item { margin-bottom: 19px; }
.quota-item > div:first-child { display: flex; justify-content: space-between; font-size: 12px; }
.request-limit-message { margin: -8px 0 12px; padding: 9px 11px; border: 1px solid #e9aaa0; border-radius: 9px; background: var(--coral-soft); color: var(--coral-dark); font-size: 11px; font-weight: 700; line-height: 1.5; }
.quota-track { height: 6px; background: #e8e9e5; border-radius: 8px; margin-top: 9px; overflow: hidden; }
.quota-track i { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 8px; transition: width .2s ease; }
.rule-box { background: #f1f3ef; padding: 14px; border-radius: 11px; margin: 25px 0 18px; }
.rule-box b { font-size: 11px; }.rule-box p { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 5px 0 0; }
.selected-list { max-height: 165px; overflow: auto; margin-bottom: 18px; }
.selected-request { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 11px; }
.selected-request span { color: var(--coral-dark); font-weight: 600; }
.comment-field { display: grid; gap: 7px; margin: 18px 0 14px; color: var(--ink); font-size: 10px; }
.comment-field > span { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.comment-field small { color: var(--muted); font-weight: 400; }
.comment-field textarea { width: 100%; resize: vertical; min-height: 90px; border: 1px solid var(--line); border-radius: 10px; padding: 11px; color: var(--ink); background: white; line-height: 1.6; }
.comment-field textarea:focus-visible { outline: 3px solid rgba(236,118,95,.24); border-color: var(--coral); }
.request-optional-disclosure { margin: 0 0 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.request-optional-disclosure > summary { min-height: 44px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.request-optional-disclosure > summary::-webkit-details-marker { display: none; }
.request-optional-disclosure > summary span, .request-optional-disclosure > summary h3 { min-width: 0; margin: 0; font-size: 11px; font-weight: 700; }
.request-optional-disclosure > summary small { color: var(--muted); font-size: 9px; font-weight: 400; }
.request-optional-disclosure > summary small b { color: var(--olive-dark); }
.request-optional-disclosure > summary::after { content: "+"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--olive-soft); color: var(--olive-dark); font-size: 15px; font-weight: 700; }
.request-optional-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.request-optional-disclosure[open] > summary::after { content: "−"; }
.request-optional-body { padding: 12px; }
.request-identity { margin: -8px 0 18px; padding: 16px 18px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.request-identity > div { min-width: 0; display: grid; gap: 4px; }.request-identity span { color: var(--muted); font-size: 9px; }.request-identity b { overflow-wrap: anywhere; font-size: 12px; }.request-identity p { grid-column: 1/-1; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.request-contract-note { margin-bottom: 18px; padding: 13px 15px; border-radius: 12px; background: var(--olive-soft); color: var(--olive-dark); font-size: 11px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.academy-field, .off-request-declaration { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }.academy-field legend, .off-request-declaration legend { padding: 0 5px; font-size: 11px; font-weight: 700; }.academy-field legend small, .off-request-declaration legend small { color: var(--muted); font-weight: 400; }.academy-field > p, .off-request-declaration > p { margin: 0 0 8px; color: var(--muted); font-size: 9px; }.academy-field > div, .off-request-declaration > div { display: grid; gap: 6px; }.off-request-declaration > div { grid-template-columns: repeat(2,minmax(0,1fr)); }.academy-field label, .off-request-declaration label { min-height: 44px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border-radius: 9px; background: #f5f6f3; font-size: 11px; cursor: pointer; }.academy-field input, .off-request-declaration input { width: 20px; height: 20px; accent-color: var(--olive); }.off-request-declaration[aria-invalid="true"] { border-color: var(--coral); background: var(--coral-soft); }.off-request-declaration[hidden] { display: none; }
.annual-events-panel { margin: 18px 0 0; border-inline: 0; border-bottom: 0; border-radius: 0; }.annual-events-panel > summary { padding-inline: 8px; }.annual-events-panel > summary h3 { font-size: 16px; }.annual-events-panel .request-optional-body { padding: 10px 8px 0; }.annual-events-panel .request-optional-body > p { margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.55; }.annual-event { min-height: 44px; padding: 9px 10px; display: grid; grid-template-columns: 78px 1fr auto; gap: 8px; align-items: center; border-radius: 8px; background: #f5f6f3; font-size: 10px; }.annual-event + .annual-event { margin-top: 6px; }.annual-event time, .annual-event small { color: var(--muted); }
.annual-event.is-operational { border-left: 3px solid var(--olive); }.annual-event.is-blocking { border-left-color: var(--coral); background: var(--coral-soft); }
.request-constraint-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }.request-constraint-fields label, .request-constraint-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }.request-constraint-fields select, .request-constraint-controls select, .request-constraint-controls input { min-height: 40px; width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }.request-constraint-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 10px 6px 0; }.request-constraint-controls p { grid-column: 1 / -1; margin: 0; padding: 8px 10px; border-radius: 8px; background: #f5f6f3; color: var(--muted); font-size: 9px; line-height: 1.5; }
.operational-event-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; }.operational-event-form label { display: grid; gap: 5px; font-size: 10px; color: var(--muted); }.operational-event-form input, .operational-event-form select { min-height: 42px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }.operational-event-form button { align-self: end; }#operational-event-manager-list { display: grid; gap: 6px; width: 100%; margin-top: 12px; }
#academy-disclosure .academy-field { margin: 0; border: 0; border-radius: 0; }
#request-comment-disclosure .comment-field { margin: 0; padding: 12px; }
.selected-request.request-detail { padding: 12px 0; display: grid; gap: 9px; align-items: stretch; }.request-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.request-detail-heading button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--coral-dark); font-weight: 700; cursor: pointer; }.request-detail > label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }.request-detail select, .booking-time-fields input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--white); color: var(--ink); font-size: 16px; }.booking-time-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.booking-time-fields > span { grid-column: 1/-1; color: var(--ink); font-size: 10px; font-weight: 700; }.booking-time-fields > span small { color: var(--muted); font-weight: 400; }.booking-time-fields label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }.request-warning { padding: 8px 9px; border-radius: 8px; background: var(--coral-soft); color: var(--coral-dark); line-height: 1.5; }.request-submit-status { margin: 0 0 10px; color: var(--muted); font-size: 9px; line-height: 1.5; }.request-detail-preview { display: block; min-width: 180px; max-width: 300px; white-space: normal; line-height: 1.55; }
.booking-time-preset-disclosure { margin: 0 0 12px; }
.booking-time-preset-body { display: grid; gap: 9px; padding: 10px 12px 12px; }
.booking-time-preset-body > p, .booking-time-preset-status, .booking-time-preset-empty, .booking-time-preset-hint { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.booking-time-preset-list { display: grid; gap: 6px; }
.booking-time-preset-row { min-height: 44px; padding: 6px 8px 6px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 8px; background: #f5f6f3; }
.booking-time-preset-row > span { min-width: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 700; }
.booking-time-preset-row .ghost-button { min-height: 44px; padding: 7px 9px; font-size: 10px; }
.booking-time-preset-form { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, .8fr)) auto; gap: 7px; align-items: end; }
.booking-time-preset-form label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }
.booking-time-preset-form input { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 16px; }
.booking-time-preset-form button { min-height: 44px; white-space: nowrap; }
.booking-time-preset-actions { grid-column: 1 / -1; display: grid; gap: 5px; }
.booking-time-preset-actions > span { color: var(--muted); font-size: 9px; }
.booking-time-preset-actions > div { display: flex; flex-wrap: wrap; gap: 6px; }
.booking-time-preset-button { min-height: 44px; padding: 8px 10px; border: 1px solid var(--olive); border-radius: 9px; background: var(--white); color: var(--olive-dark); font-size: 10px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.booking-time-preset-button[aria-pressed="true"] { background: var(--olive-soft); box-shadow: inset 0 0 0 1px var(--olive); }
.booking-time-preset-button:disabled { opacity: .5; cursor: not-allowed; }
.calendar-day.is-preferred_work .request-label, .calendar-day.is-available .request-label { background: var(--olive); color: white; }.calendar-day.is-off .request-label, .calendar-day.is-special_leave .request-label, .calendar-day.is-paid_leave .request-label { background: var(--coral); color: white; }.calendar-day.has-warning { outline: 2px solid #e9a04f; outline-offset: -2px; }
.empty-state { color: #9aa09c; text-align: center; font-size: 11px; padding: 18px 0; }
.primary-button, .outline-button, .ghost-button { border-radius: 11px; padding: 13px 17px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.primary-button { border: 0; background: var(--olive-dark); color: white; }
.primary-button:hover { background: #283d34; transform: translateY(-1px); }
.primary-button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.primary-button span { margin-left: 14px; }
.outline-button { background: var(--white); border: 1px solid var(--line); }
.outline-button:hover { border-color: var(--olive); }
.ghost-button { background: transparent; border: 0; color: var(--muted); }
.full { width: 100%; }

.manager-hero { background: var(--olive-dark); color: white; border-radius: 24px; padding: 42px 48px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; }
.manager-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -90px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018); }
.manager-hero > div:first-child { min-width: 0; max-width: 780px; position: relative; z-index: 1; }
.manager-hero h2 { margin: 9px 0 10px; text-wrap: balance; }
.manager-hero p { color: rgba(255,255,255,.65); margin: 0; }
.completion-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1; background: conic-gradient(var(--coral) 83%, rgba(255,255,255,.13) 0); }
.completion-ring::before { content: ""; position: absolute; width: 118px; height: 118px; border-radius: 50%; background: var(--olive-dark); }
.completion-ring div { position: relative; text-align: center; }.completion-ring strong { font-size: 38px; }.completion-ring span { color: #c8d8cf; }.completion-ring small { display: block; color: rgba(255,255,255,.55); font-size: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 18px; }
.metric-grid article { padding: 23px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.metric-label { display: block; color: var(--muted); font-size: 10px; margin-bottom: 15px; }
.metric-grid strong { font-size: 29px; }.metric-grid strong small { font-size: 11px; color: var(--muted); }.metric-grid p { color: var(--muted); font-size: 9px; margin: 6px 0 0; }.metric-grid .positive { color: #438163; }.metric-grid .warning { color: #b37323; }.metric-grid .date-metric { font-size: 22px; }
.manager-columns { display: grid; grid-template-columns: 1.45fr .75fr; gap: 18px; margin-top: 18px; }
.panel-card { padding: 27px; }
.panel-card .panel-heading { margin: 0 0 17px; }
.mini-member { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.mini-member:first-child { border-top: 0; }.mini-member .avatar { width: 34px; height: 34px; }.mini-member > span:nth-child(2) { display: grid; font-size: 11px; }.mini-member small { color: var(--muted); font-size: 9px; }
.next-step-card { background: #efe5d2; border-color: #e2d2b3; position: relative; overflow: hidden; }
.next-step-card .step-number { position: absolute; right: 22px; top: 16px; font-family: Georgia, serif; font-size: 72px; color: rgba(111,89,48,.1); }
.next-step-card h3 { margin: 58px 0 9px; font-size: 22px; }.next-step-card p { color: #786c57; font-size: 11px; line-height: 1.7; margin-bottom: 20px; }.next-step-card > small { display: block; color: #897b64; font-size: 8px; text-align: center; margin-top: 10px; }

.member-table-card { padding: 0; overflow: hidden; }
.table-toolbar { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.filter-pills { display: flex; gap: 6px; }.filter-pills button { border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 10px; cursor: pointer; }.filter-pills button.is-active { background: var(--olive-soft); color: var(--olive-dark); font-weight: 700; }
.member-row { display: grid; grid-template-columns: minmax(180px,1.2fr) .7fr .7fr .8fr 34px; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 11px; }
.member-row.header { background: #f4f4f0; color: var(--muted); font-size: 9px; border-top: 0; padding-block: 10px; }.member-row .person { display: flex; align-items: center; gap: 11px; }.member-row .avatar { width: 34px; height: 34px; }.member-row small { color: var(--muted); }.more-button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }

.generation-card { background: var(--olive-dark); color: white; border-radius: 18px; padding: 25px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.generation-actions, .draft-collaboration-bar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.generation-actions .outline-button { color: white; border-color: rgba(255,255,255,.45); }
.late-approval-card { margin-top: 14px; }
.late-approval-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.late-approval-item:first-child { border-top: 0; }
.late-approval-item p { margin: 4px 0 0; color: var(--muted); }
.late-approval-actions { display: flex; gap: 8px; align-items: center; }
.draft-collaboration-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.draft-collaboration-bar p { display: grid; gap: 2px; margin: 0; }
.draft-collaboration-bar span { color: var(--muted); font-size: 12px; }
.spark-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.11); display: grid; place-items: center; color: var(--sand); font-size: 23px; }.generation-card h3 { margin: 0 0 4px; }.generation-card p { margin: 0; font-size: 11px; color: rgba(255,255,255,.62); }
.pattern-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
.pattern-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; animation: reveal .35s ease both; }
.pattern-card:nth-child(2) { animation-delay: .08s; }.pattern-card:nth-child(3) { animation-delay: .16s; }
.pattern-top { padding: 23px 23px 17px; border-bottom: 1px solid var(--line); position: relative; }.pattern-letter { display: inline-grid; place-items: center; width: 29px; height: 29px; background: var(--olive-soft); color: var(--olive-dark); border-radius: 8px; font-weight: 700; }.pattern-card:nth-child(2) .pattern-letter { background: #f5e7cb; color: #8c6729; }.pattern-card:nth-child(3) .pattern-letter { background: var(--coral-soft); color: var(--coral-dark); }.pattern-score { position: absolute; right: 21px; top: 20px; text-align: right; }.pattern-score strong { font-size: 26px; }.pattern-score small { color: var(--muted); font-size: 9px; }.pattern-top h3 { margin: 16px 0 4px; font-size: 19px; }.pattern-top p { margin: 0; min-height: 36px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.pattern-metrics { padding: 18px 23px; display: grid; gap: 13px; }.pattern-metric > div { display: flex; justify-content: space-between; font-size: 10px; }.pattern-metric b { font-size: 11px; }.tiny-track { height: 4px; background: #e9eae6; border-radius: 4px; margin-top: 6px; }.tiny-track i { display: block; height: 100%; background: var(--olive); border-radius: 4px; }.pattern-warning { color: var(--coral-dark); font-size: 9px; min-height: 14px; }.pattern-card button { margin: 0 23px 23px; width: calc(100% - 46px); }
.comparison-note { margin-top: 16px; padding: 16px 20px; background: #eee9dd; border-radius: 12px; display: flex; gap: 12px; align-items: baseline; font-size: 10px; }.comparison-note p { color: var(--muted); margin: 0; }

.editor-actions { display: flex; gap: 9px; }
.editor-work-times { margin-bottom: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.editor-work-times > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.editor-work-times h3 { margin: 0; font-size: 15px; }
.editor-work-times > div:first-child p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
#editor-work-time-list { display: grid; gap: 7px; }
.editor-work-time-row { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(3, minmax(108px, .65fr)) minmax(145px, .8fr); gap: 8px; align-items: end; padding: 10px; border-radius: 11px; background: #f7f7f3; }
.editor-work-time-person { align-self: center; display: grid; gap: 2px; }
.editor-work-time-person b { font-size: 10px; }
.editor-work-time-person small { color: var(--muted); font-size: 8px; }
.editor-work-time-row label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; }
.editor-work-time-row input { width: 100%; min-height: 40px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.editor-work-time-check { align-self: center; color: var(--muted); font-size: 8px; line-height: 1.45; }
.editor-work-time-check.is-error { color: var(--coral-dark); font-weight: 700; }
.editor-work-time-check.is-ok { color: #2f6b4d; }
.editor-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }.editor-stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 17px; }.editor-stat span { display: block; font-size: 9px; color: var(--muted); }.editor-stat strong { font-size: 20px; }
.schedule-table-wrap { padding: 0; overflow: auto; }
.schedule-table { min-width: 810px; }
.schedule-row { display: grid; grid-template-columns: 145px repeat(var(--day-count, 7),minmax(88px,1fr)); border-top: 1px solid var(--line); }.schedule-row:first-child { border-top: 0; }.schedule-cell { min-height: 60px; border-left: 1px solid var(--line); padding: 8px; display: grid; place-items: center; text-align: center; }.schedule-cell:first-child { position: sticky; left: 0; z-index: 2; border-left: 0; justify-items: start; text-align: left; padding-left: 19px; background: var(--white); box-shadow: 1px 0 0 var(--line); }.schedule-cell.schedule-head:first-child { z-index: 4; background: #f0f1ed; }.schedule-head { background: #f0f1ed; font-size: 9px; color: var(--muted); }.schedule-head b { display: block; color: var(--ink); font-size: 12px; }.schedule-name { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; }.schedule-name .avatar { width: 27px; height: 27px; }.shift-toggle { width: 100%; min-height: 44px; border: 1px solid transparent; background: #f0f1ed; color: #9a9f9b; border-radius: 8px; padding: 9px 4px; font-size: 9px; cursor: pointer; }.shift-toggle.assigned { background: var(--olive-soft); color: var(--olive-dark); font-weight: 700; }.shift-toggle.request-off.assigned { background: var(--coral-soft); color: var(--coral-dark); border-color: #efb7aa; }.shift-toggle:hover { border-color: var(--olive); }.coverage-cell { font-size: 9px; color: var(--muted); }.coverage-cell.good { color: #347655; font-weight: 700; }.coverage-cell.bad { color: var(--coral-dark); font-weight: 700; }
.shift-toggle.unavailable { background: #eee7e4; color: #9b7168; cursor: not-allowed; text-decoration: line-through; }
.violation-panel { margin-top: 14px; }.violation-panel .all-good, .violation-panel .has-errors { border-radius: 12px; padding: 14px 17px; font-size: 11px; }.all-good { background: #ddece3; color: #32694d; }.has-errors { background: var(--coral-soft); color: var(--coral-dark); }.has-errors ul { margin: 6px 0 0; padding-left: 18px; }
.transfer-panel { margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.transfer-safety-message { margin: 12px 0; padding: 10px 12px; border: 1px solid #e9aaa0; border-radius: 10px; background: var(--coral-soft); color: var(--coral-dark); font-size: 11px; font-weight: 700; line-height: 1.5; }
.transfer-progress { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px 0 8px; font-size: 11px; }
.transfer-progress span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.transfer-row-list { display: grid; gap: 10px; max-height: 420px; overflow: auto; overscroll-behavior: contain; }
.transfer-staff-card { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.transfer-staff-heading { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.transfer-staff-heading small { color: var(--muted); }
.transfer-staff-heading button { min-height: 40px; border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; background: var(--white); color: var(--ink); font-weight: 700; cursor: pointer; }
.transfer-staff-heading button:disabled { opacity: .45; cursor: not-allowed; }
.transfer-assignment-list { display: grid; }
.transfer-assignment-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.transfer-assignment-row:last-child { border-bottom: 0; }
.transfer-assignment-row input { width: 20px; height: 20px; }
.transfer-assignment-row span { display: grid; gap: 2px; }
.transfer-assignment-row small { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.transfer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.transfer-heading h3 { margin: 0 0 6px; font-size: 19px; }
.transfer-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.transfer-status { flex: 0 0 auto; padding: 6px 10px; border-radius: 99px; background: #eceeeb; color: var(--muted); font-size: 9px; font-weight: 700; }
.transfer-status.is-copied { background: #dcefe4; color: #2f6b4d; }
.transfer-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.transfer-meta > div { padding: 12px 14px; border-radius: 11px; background: #f1f3ef; }
.transfer-meta dt { color: var(--muted); font-size: 9px; }
.transfer-meta dd { margin: 4px 0 0; font-size: 12px; font-weight: 700; }
.transfer-checklist { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.transfer-checklist legend { padding: 0 6px; font-size: 10px; font-weight: 700; }
.transfer-checklist label { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px; border-radius: 9px; background: #f7f7f3; font-size: 10px; cursor: pointer; }
.transfer-checklist input { width: 17px; height: 17px; accent-color: var(--olive); }
.transfer-actions { display: flex; align-items: center; gap: 15px; margin-top: 16px; }
.transfer-actions p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }

.rules-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.rule-section-title { display: flex; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 7px; }.rule-section-title > span { width: 33px; height: 33px; border-radius: 10px; background: var(--olive-soft); color: var(--olive); display: grid; place-items: center; font-size: 10px; font-weight: 700; }.rule-section-title h3 { margin: 0; font-size: 17px; }.rule-section-title p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.rule-section label { min-height: 53px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 11px; gap: 20px; }.rule-section label:last-child { border-bottom: 0; }.rule-section input[type="number"] { width: 54px; border: 1px solid var(--line); border-radius: 7px; padding: 7px; text-align: center; background: white; }.rule-section input[type="time"], .rule-section select { min-width: 132px; max-width: 220px; border: 1px solid var(--line); border-radius: 7px; padding: 7px; color: var(--ink); background: white; }.rule-section select { width: min(220px, 52vw); }.rule-section #rule-deadline-day { width: 82px; }.rule-input-with-unit { display: inline-flex; align-items: center; gap: 6px; }.deadline-rule-note { margin: 12px 0 2px; padding: 11px 12px; border-radius: 9px; background: #f1f3ef; color: var(--muted); font-size: 9px; line-height: 1.6; }.toggle-row input { display: none; }.toggle-row i { width: 38px; height: 21px; border-radius: 20px; background: #ccc; position: relative; transition: .2s; }.toggle-row i::after { content: ""; width: 15px; height: 15px; border-radius: 50%; background: white; position: absolute; top: 3px; left: 3px; transition: .2s; }.toggle-row input:checked + i { background: var(--olive); }.toggle-row input:checked + i::after { transform: translateX(17px); }.soft-panel { background: #efe5d2; }.soft-panel ul { list-style: none; padding: 5px 0 0; margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }.soft-panel li { color: #6e634f; font-size: 10px; padding: 9px; background: rgba(255,255,255,.45); border-radius: 7px; }

.hero-scope { display: inline-block; margin-top: 18px; padding: 7px 10px; border-radius: 99px; background: rgba(255,255,255,.1); color: #d6e4dc; font-size: 9px; }
.scope-chip { padding: 9px 12px; border-radius: 99px; background: var(--olive-soft); color: var(--olive-dark); font-size: 10px; font-weight: 700; }
.monthly-audience-switcher { margin-bottom: 11px; padding: 8px 8px 8px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.monthly-audience-switcher > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.monthly-audience-switcher > div { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; padding: 3px; border-radius: 11px; background: #eceeea; }
.monthly-audience-switcher button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.monthly-audience-switcher button.is-active { color: white; background: var(--olive-dark); box-shadow: 0 4px 10px rgba(52,75,64,.16); }
.month-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.month-switcher button { border: 1px solid var(--line); border-radius: 15px; background: var(--white); padding: 15px 18px; text-align: left; cursor: pointer; transition: .18s ease; }
.month-switcher button small { display: block; color: var(--muted); font-size: 9px; margin-bottom: 4px; }
.month-switcher button b { font-size: 16px; }
.month-switcher button.is-active { border-color: var(--olive); background: var(--olive-dark); color: white; box-shadow: 0 10px 25px rgba(52,75,64,.15); }
.month-switcher button.is-active small { color: #c4d6cc; }
.monthly-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 16px; }
.monthly-summary article { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.monthly-summary span, .monthly-summary small { display: block; color: var(--muted); font-size: 9px; }
.monthly-summary b { display: block; font-size: 18px; margin: 5px 0 2px; }
.monthly-table-card { padding: 0; overflow: hidden; }
.monthly-toolbar { padding: 22px 24px 16px; display: flex; align-items: end; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.monthly-toolbar h3 { margin: 0; font-size: 19px; }
.symbol-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 13px; }
.symbol-legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.symbol { width: 25px; height: 25px; display: inline-grid; place-items: center; border-radius: 7px; font-style: normal; font-weight: 700; }
.grid-help { margin: 0; padding: 11px 24px; background: #f2f2ee; color: var(--muted); font-size: 9px; }
.monthly-table-scroll { max-height: 610px; overflow: auto; background: var(--white); scrollbar-color: #aeb9b2 #eef0ec; }
.monthly-grid { min-width: max-content; }
.monthly-row { display: grid; grid-template-columns: 175px repeat(var(--day-count), 42px); min-width: max-content; border-bottom: 1px solid var(--line); }
.monthly-row:last-child { border-bottom: 0; }
.monthly-name-cell { position: sticky; left: 0; z-index: 2; min-height: 48px; padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; background: var(--white); border-right: 1px solid var(--line); }
.monthly-name-cell b { font-size: 10px; }
.monthly-name-cell small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.monthly-head { position: sticky; top: 0; z-index: 4; }
.monthly-head .monthly-name-cell { z-index: 5; background: #e8ece7; color: var(--olive-dark); font-size: 9px; font-weight: 700; }
.monthly-day, .monthly-cell { width: 42px; min-height: 48px; display: grid; place-items: center; text-align: center; border-right: 1px solid #ecece8; background: var(--white); }
.monthly-day { background: #e8ece7; color: var(--muted); }
.monthly-day b { font-size: 10px; }.monthly-day small { font-size: 8px; }
.monthly-day.weekend, .monthly-cell.weekend { background: #fff7f3; }
.symbol-cell { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 7px; font-size: 10px; font-weight: 700; }
button.symbol-cell { cursor: pointer; transition: .14s ease; }
button.symbol-cell:not(:disabled):hover { transform: scale(1.08); box-shadow: 0 4px 11px rgba(37,54,46,.16); }
button.symbol-cell:disabled { cursor: not-allowed; opacity: .72; }
.symbol-cell.positive, .symbol.positive { color: #2f6b4d; background: #dcefe4; }
.symbol-cell.conditional, .symbol.conditional { color: #89651e; background: #fff0ca; }
.symbol-cell.late, .symbol.late { color: #5d5f91; background: #e8e8f5; }
.symbol-cell.off, .symbol.off { color: var(--coral-dark); background: var(--coral-soft); }
.symbol-cell.empty, .symbol.empty { color: #a1a7a3; background: #f1f2ef; }

.ledger-table-scroll { width: 100%; overflow: auto; }
.ledger-table { width: 100%; min-width: 1840px; border-collapse: collapse; text-align: left; }
.ledger-table th { padding: 11px 15px; background: #f0f1ed; color: var(--muted); font-size: 9px; font-weight: 600; white-space: nowrap; }
.ledger-table td { padding: 14px 15px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 10px; }
.ledger-table td > b, .ledger-table td > small { display: block; }
.ledger-table td > small { max-width: 190px; color: var(--muted); font-size: 8px; line-height: 1.45; margin-top: 4px; }
.ledger-person { display: flex; align-items: center; gap: 9px; }
.ledger-person .avatar { width: 32px; height: 32px; flex: 0 0 auto; }
.ledger-person > span { display: grid; gap: 2px; }
.ledger-person small { color: var(--muted); font-size: 8px; }
.employment-tag { display: inline-block; padding: 5px 7px; border-radius: 7px; font-size: 9px; font-weight: 700; }
.employment-tag.done { color: #2f6b4d; background: #dcefe4; }
.employment-tag.review { color: #a14836; background: var(--coral-soft); }
.employment-tag.neutral { color: #666f6a; background: #eceeeb; }
.comment-preview { display: block; max-width: 170px; color: #9aa09c; font-size: 9px; line-height: 1.45; }
.comment-preview.has-comment { color: var(--ink); }
.review-resolution-button { display: block; margin-top: 7px; min-height: 32px; padding: 6px 9px; border: 1px solid #d98976; border-radius: 8px; background: #fff7f4; color: #9c4b38; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.review-resolution-button:disabled { cursor: wait; opacity: .62; }
.employment-disclaimer { margin-top: 14px; padding: 15px 18px; border-radius: 12px; background: #eee9dd; font-size: 10px; }
.employment-disclaimer p { display: inline; margin: 0 0 0 8px; color: var(--muted); line-height: 1.6; }
.rule-wide { grid-column: 1 / -1; }

.simulation-banner { position: sticky; top: 104px; z-index: 14; padding: 9px clamp(16px,4vw,64px); display: flex; align-items: center; gap: 10px; background: #382c25; color: #fff; font-size: 11px; box-shadow: 0 7px 20px rgba(36,27,23,.16); }
.simulation-banner[hidden] { display: none; }
.simulation-banner span { flex: 1; color: #f1ded5; }
.simulation-banner button { min-height: 34px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; padding: 6px 11px; background: transparent; color: #fff; cursor: pointer; }
.submission-history-card { margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfaf6; }
.submission-history-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.submission-history-card h3 { margin: 0; font-size: 12px; }
.submission-history-card button { min-height: 36px; border: 0; background: transparent; color: var(--coral-dark); font-weight: 700; cursor: pointer; }
.submission-history-card > p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.submission-history-card ol { max-height: 250px; margin: 10px 0 0; padding: 0; list-style: none; overflow: auto; display: grid; gap: 8px; }
.submission-history-card li { padding: 10px; border-radius: 9px; background: #fff; font-size: 10px; line-height: 1.55; }
.submission-history-card li b, .submission-history-card li span { display: block; }
.submission-history-card li span { color: var(--muted); }
.learning-summary { margin: 14px 0; padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #d8dfd8; border-radius: 13px; background: #f4f7f3; }
.learning-summary h3 { margin: 3px 0 0; font-size: 15px; }
.learning-summary p { max-width: 650px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.notification-dialog, .simulation-dialog, .pilot-enrollment-dialog, .adjustment-intent-dialog { width: min(560px, calc(100% - 28px)); max-height: min(760px, calc(100dvh - 30px)); border: 0; border-radius: 20px; padding: 28px; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.notification-dialog::backdrop, .simulation-dialog::backdrop, .pilot-enrollment-dialog::backdrop, .adjustment-intent-dialog::backdrop { background: rgba(29,36,33,.62); backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.dialog-heading .dialog-close { position: static; flex: 0 0 auto; }
.notification-dialog h2, .simulation-dialog h2, .pilot-enrollment-dialog h2, .adjustment-intent-dialog h2 { margin: 4px 0 16px; }
#notification-list { display: grid; gap: 9px; max-height: 60dvh; overflow: auto; }
.notification-item { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; }
.notification-item.is-unread { border-color: #efb3a7; background: #fff7f3; }
.notification-item button { width: 100%; border: 0; padding: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.notification-item b, .notification-item span { display: block; }
.notification-item p { margin: 5px 0; color: var(--muted); line-height: 1.55; }
.notification-item small { color: var(--muted); }
.simulation-dialog > label, .pilot-enrollment-dialog label, .adjustment-intent-dialog label { margin: 13px 0; display: grid; gap: 6px; font-size: 11px; font-weight: 700; }
.simulation-dialog select, .pilot-enrollment-dialog input, .pilot-enrollment-dialog select, .pilot-enrollment-dialog textarea, .adjustment-intent-dialog select, .adjustment-intent-dialog textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.pilot-enrollment-dialog { overflow: auto; }
.pilot-enrollment-dialog form > p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.pilot-enrollment-dialog .pilot-scheduling-row { grid-template-columns: auto 1fr; align-items: center; padding: 11px 12px; border-radius: 9px; background: #edf3ee; }
.pilot-enrollment-dialog .pilot-scheduling-row input { width: 20px; min-height: 20px; height: 20px; }
.pilot-enrollment-dialog .pilot-enrollment-note { padding: 10px 12px; border-radius: 8px; background: #f3efe5; }
.simulation-reference { margin: 14px 0; padding: 13px; border-radius: 10px; background: #f3efe5; font-size: 10px; line-height: 1.65; }
.simulation-reference dl { margin: 0; display: grid; gap: 4px; }
.simulation-reference div { display: flex; justify-content: space-between; gap: 12px; }
.simulation-reference dt { color: var(--muted); }
.simulation-reference dd { margin: 0; font-weight: 700; text-align: right; }
.adjustment-intent-dialog form > p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.adjustment-intent-dialog .learning-approval { grid-template-columns: auto 1fr; align-items: center; padding: 12px; border-radius: 9px; background: #edf3ee; }
.adjustment-intent-dialog .learning-approval input { width: 20px; height: 20px; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 13px 19px; border-radius: 10px; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 11px; opacity: 0; pointer-events: none; transition: .25s ease; }.toast.show { transform: translate(-50%,0); opacity: 1; }
.alpha-tour-entry { margin: 0 0 14px; padding: 13px 15px; display: none; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #cfd9cd; border-radius: 14px; background: linear-gradient(105deg, #f5f8f2, #fffdf7); }
body[data-active-view="staff-home"] .alpha-tour-entry, body[data-active-view="manager-home"] .alpha-tour-entry { display: flex; }
.alpha-tour-entry > .alpha-tour-copy { min-width: 0; display: grid; gap: 2px; }
.alpha-tour-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.alpha-tour-simulation-launch { display: none; }
.alpha-tour-simulation-launch[hidden] { display: none !important; }
.alpha-tour-entry b { font-size: 13px; }
.alpha-tour-entry small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.alpha-tour-entry button { flex: 0 0 auto; min-height: 42px; }
.guide-icon-button { display: inline-grid; place-items: center; color: var(--olive-dark); font-weight: 800; }
.help-dialog { position: relative; width: min(690px, calc(100% - 34px)); max-height: min(840px, calc(100dvh - 30px)); overflow-y: auto; border: 0; border-radius: 20px; padding: 31px; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.help-dialog::backdrop { background: rgba(29,36,33,.6); backdrop-filter: blur(4px); }
.help-dialog h2 { max-width: calc(100% - 36px); margin: 3px 0 8px; font-size: 24px; line-height: 1.35; }
.help-dialog .guide-lead { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.help-dialog .guide-safety { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #edf3ee; color: var(--olive-dark); font-size: 11px; line-height: 1.55; }
.guide-flow { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; counter-reset: guide-step; }
.guide-flow li { padding: 11px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.guide-flow li > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--olive-dark); color: white; font-size: 12px; font-weight: 800; }
.guide-flow li > div { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px; }
.guide-flow b { font-size: 12px; }
.guide-flow small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.guide-flow button { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; align-self: center; white-space: nowrap; }
.guide-variants { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf7; }
.guide-variants summary { min-height: 46px; padding: 12px 14px; display: flex; align-items: center; cursor: pointer; font-size: 11px; font-weight: 800; }
.guide-action-grid { padding: 0 12px 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.guide-action-grid button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.guide-variants p { margin: 0 12px 12px; padding: 10px; border-radius: 9px; background: #f0f1ed; font-size: 11px; line-height: 1.6; }
.guide-basics { margin-top: 12px; padding: 11px 12px; display: grid; gap: 3px; border-radius: 10px; background: #f3efe5; }
.guide-basics b { font-size: 11px; }
.guide-basics span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.help-dialog .guide-login-note { margin: 10px 0 0; padding: 0; color: var(--muted); background: none; font-size: 11px; line-height: 1.55; }
.dialog-close { position: absolute; top: 15px; right: 15px; width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer; }

@media (max-width: 1050px) {
  .topbar .olive-apps-link { width: 42px; height: 42px; min-height: 0; padding: 0; justify-content: center; font-size: 18px; }
  .topbar .olive-apps-link-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .login-card { grid-template-columns: 1fr; max-width: 700px; }.login-copy { padding-block: 55px; }.login-panel { padding-block: 50px; }
  .welcome-grid, .home-context-grid, .manager-columns, .work-profile-layout { grid-template-columns: 1fr; }.home-next-action-card { grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr); }.deadline-card { min-height: 240px; }.pattern-grid { grid-template-columns: 1fr; }.request-layout { grid-template-columns: 1fr; }.request-summary { position: static; }.metric-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .operational-event-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-constraint-fields, .request-constraint-controls { grid-template-columns: 1fr; }
  .request-constraint-controls p { grid-column: auto; }
  .app-shell { display: block; }.sidebar { inset: auto 0 0; width: 100%; height: calc(70px + env(safe-area-inset-bottom)); min-height: 0; padding-bottom: env(safe-area-inset-bottom); flex-direction: row; border-radius: 18px 18px 0 0; }.sidebar-brand, .sidebar-bottom { display: none; }.sidebar-nav { padding: 7px 10px; flex-direction: row; justify-content: flex-start; gap: 2px; overflow-x: auto; }.nav-item { min-width: 62px; padding: 7px 3px; }.nav-item span { font-size: 17px; }
  .main-content { padding-bottom: 0; }
  .topbar { height: auto; min-height: 64px; padding: 7px 10px; gap: 7px; }
  .topbar > div:first-child { min-width: 0; }
  .topbar h1 { max-width: 40vw; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-kicker { display: none; }
  .topbar-actions { gap: 5px; }
  .action-store-picker { width: min(132px, 31vw); min-width: 0; padding: 5px 7px; }
  .action-store-picker > span { display: none; }
  .action-store-picker select { grid-column: 1 / -1; width: 100%; min-height: 32px; font-size: 16px; }
  .action-store-picker small { display: none; }
  .profile-button > span:nth-child(2), .profile-button > span:last-child { display: none; }
  .profile-button { padding-inline: 3px; }
  .icon-button { display: inline-flex; }
  .content-wrap { padding: 12px 10px calc(84px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .runtime-bar { min-height: 34px; padding: 6px 10px; align-items: center; flex-wrap: wrap; line-height: 1.35; }
  .simulation-banner { top: 82px; padding: 8px 14px; flex-wrap: wrap; }
  .runtime-bar:not(.is-blocked) [data-runtime-description] { display: none; }
  .runtime-bar.is-blocked [data-runtime-description] { flex: 1 1 calc(100% - 130px); }
  .runtime-bar button { min-height: 38px; }
  .home-context-grid { gap: 10px; }
  .home-identity-card, .home-next-action-card { border-radius: 15px; }
  .home-identity-card { padding: 14px; }
  .home-identity-heading { gap: 10px; }
  .home-identity-avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 14px; }
  .home-identity-heading h2 { font-size: 20px; }
  .home-identity-details { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; margin-top: 10px; }
  .home-identity-details > div { padding: 7px 8px; display: block; border: 0; border-radius: 9px; background: #f1f3ef; }
  .home-identity-details dt { margin-bottom: 2px; }
  .home-next-action-card { padding: 16px; grid-template-columns: 1fr; gap: 10px; }
  .home-action-copy h2 { margin: 10px 0 6px; font-size: 23px; line-height: 1.3; text-wrap: balance; }
  .home-action-copy > p { margin-bottom: 12px; line-height: 1.55; }
  .home-task-panel { padding: 12px; }
  .home-task-panel > strong { margin-top: 9px; font-size: 20px; }
  .home-task-panel > p { margin-bottom: 9px; }
  .task-list-heading { padding-top: 9px; }
  .home-task-list { margin-top: 7px; gap: 5px; }
  .home-task-list small { display: none; }
  .hero-card { padding: 29px 25px; min-height: 285px; }
  .hero-orbit { width: 94px; height: 94px; right: 5%; top: 24%; }
  .hero-orbit span { font-size: 42px; }
  .hero-card h2 { margin-top: 72px; font-size: 29px; }
  .week-strip { overflow-x: auto; grid-template-columns: repeat(7, 96px); }
  .week-day { min-height: 108px; padding: 14px 9px; }
  .two-column, .rules-grid, .month-status-grid { grid-template-columns: 1fr; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .calendar-card { padding: 16px 9px; }
  .calendar-legend { gap: 9px; flex-wrap: wrap; }
  .calendar-day { min-height: 63px; padding: 5px; }
  .calendar-day .request-label { inset-inline: 3px; font-size: 7px; }
  .manager-hero { padding: 21px 17px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; border-radius: 17px; }
  .manager-hero h2 { margin: 8px 0; font-size: 23px; line-height: 1.3; }
  .manager-hero p { font-size: 10px; line-height: 1.55; }
  .completion-ring { width: 68px; height: 68px; flex: 0 0 auto; }
  .completion-ring::before { width: 52px; height: 52px; }
  .completion-ring strong { font-size: 19px; }
  .completion-ring small { font-size: 7px; }
  .hero-scope { margin-top: 11px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 10px; }
  .metric-grid article { padding: 13px; }
  .metric-grid strong { font-size: 21px; }
  .generation-card { grid-template-columns: auto 1fr; }
  .generation-card .generation-actions { grid-column: 1/-1; }
  .generation-card .generation-actions button { flex: 1; }
  .late-approval-item, .draft-collaboration-bar { grid-template-columns: 1fr; display: grid; }
  .late-approval-actions button, .draft-collaboration-bar button { flex: 1; min-height: 42px; }
  .member-row { grid-template-columns: 1fr auto; }
  .member-row > *:nth-child(2), .member-row > *:nth-child(3), .member-row > *:nth-child(5), .member-row.header { display: none; }
  .editor-summary { grid-template-columns: repeat(2,1fr); }
  .section-heading, .panel-heading { margin: 26px 0 12px; }
  .month-heading { margin-top: 22px; }
  .section-heading h2, .panel-heading h3 { font-size: 19px; }
  .month-status-grid { gap: 9px; }
  .month-status-card { padding: 14px; border-radius: 13px; }
  .month-status-card > strong { margin: 10px 0 4px; font-size: 16px; }
  .month-status-card p { margin-bottom: 10px; line-height: 1.5; }
  .two-column { margin-top: 10px; gap: 9px; }
  .info-card { padding: 13px; gap: 11px; }
  .work-profile-card { margin-top: 10px; padding: 14px; border-radius: 15px; }
  .work-profile-heading { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 12px; }
  .work-profile-heading h2 { font-size: 18px; line-height: 1.35; text-wrap: balance; }
  .work-profile-heading p { display: none; }
  #work-profile-source { max-width: 100%; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .work-profile-layout { gap: 10px; }
  .work-profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .work-profile-summary-facts > div:last-child { grid-column: 1 / -1; }
  .work-profile-facts > div { min-height: 52px; padding: 9px 10px; }
  .work-profile-facts dd { margin-top: 4px; line-height: 1.4; }
  .work-profile-disclosure { border-radius: 12px; }
  .work-profile-disclosure > summary { min-height: 46px; padding: 10px 11px; gap: 6px; }
  .work-profile-disclosure > summary small { font-size: 8px; }
  .work-profile-contract-facts { padding: 7px; }
  .work-preference-form { padding: 12px; gap: 10px; }
  .work-preference-form > label, .work-preference-time-grid label { align-items: flex-start; flex-direction: column; gap: 6px; }
  .work-preference-form select { width: 100%; font-size: 16px; }
  .work-preference-time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .work-preference-time-grid label { padding: 9px; }
  .work-preference-day-grid { grid-template-columns: 1fr; gap: 7px; }
  .work-preference-day-grid > label { align-items: flex-start; flex-direction: column; }
  .work-preference-day-grid select { width: 100%; font-size: 16px; }
  .weekday-preference-row { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr); }
  .weekday-preference-row > [data-weekday-start], .weekday-preference-row > [data-weekday-end], .weekday-preference-row > [data-weekday-reason] { grid-column: span 1; }
  .weekday-preference-row select, .weekday-preference-row input { font-size: 16px; }
  .work-preference-form label > span { width: 100%; justify-content: space-between; }
  .work-preference-form input { flex: 1; width: 100%; font-size: 16px; }
  .work-preference-form > .work-preference-recurring { align-items: center; flex-direction: row; }
  .work-preference-form > .work-preference-recurring input { flex: 0 0 auto; width: 22px; }
  .work-preference-form > .work-preference-recurring span { width: auto; }
  .work-preference-form .primary-button { min-height: 46px; }
  .editor-work-times > div:first-child { align-items: flex-start; flex-direction: column; gap: 5px; }.editor-work-time-row { grid-template-columns: repeat(2, minmax(0,1fr)); }.editor-work-time-person, .editor-work-time-check { grid-column: 1 / -1; }.editor-work-time-row input { font-size: 16px; }
  #monthly-view > .page-intro { margin-bottom: 10px; align-items: center; flex-direction: row; }
  #monthly-view > .page-intro .eyebrow, #monthly-view > .page-intro p { display: none; }
  #monthly-view > .page-intro h2 { margin: 0; font-size: 24px; }
  #monthly-view .orientation-guide { margin: 0 0 10px; padding: 8px 10px; }
  .monthly-audience-switcher { padding: 5px 5px 5px 10px; align-items: center; flex-direction: row; gap: 6px; }
  .monthly-audience-switcher > span { padding: 0; white-space: nowrap; }
  .monthly-audience-switcher > div { width: auto; flex: 1; }
  .monthly-audience-switcher button { min-height: 40px; padding-inline: 7px; }
  .month-switcher { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-bottom: 8px; }
  .month-switcher button { min-height: 54px; padding: 8px 7px; border-radius: 10px; }
  .month-switcher button small { font-size: 7px; }
  .month-switcher button b { font-size: 11px; }
  .monthly-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
  .monthly-summary article { min-width: 0; padding: 8px; }
  .monthly-summary b { margin: 3px 0 1px; font-size: 15px; }
  .monthly-toolbar { padding: 10px 11px 8px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
  .monthly-toolbar .eyebrow { display: none; }
  .monthly-toolbar h3 { font-size: 16px; white-space: nowrap; }
  .symbol-legend { justify-content: flex-end; gap: 5px 8px; }
  .monthly-name-cell { width: 145px; }
  .monthly-row { grid-template-columns: 145px repeat(var(--day-count), 40px); }
  .monthly-day, .monthly-cell { width: 40px; }
  .employment-disclaimer p { display: block; margin: 7px 0 0; }
  .login-shell { min-height: 100dvh; padding: 10px; justify-content: flex-start; gap: 8px; }
  .login-olive-apps-link { min-height: 34px; padding: 5px 10px; font-size: 11px; }
  .beta-safety-banner { margin: 4px auto 0; padding: 7px 9px; align-items: flex-start; text-align: left; font-size: 11px; }
  .login-card { margin: 0 auto; border-radius: 18px; }
  .login-copy, .login-panel { padding: 19px 18px; }
  .login-copy .eyebrow { margin-bottom: 10px; }
  .login-copy h1 { margin-bottom: 10px; font-size: 33px; line-height: 1.15; }
  .login-copy > p { margin: 0; font-size: 12px; line-height: 1.6; }
  .login-features { display: none; }
  .login-panel h2 { margin: 12px 0 5px; font-size: 24px; }
  .login-panel > p { margin-bottom: 12px; font-size: 11px; line-height: 1.5; }
  .google-button { padding-block: 12px; }
  .role-demo-grid { margin-top: 9px; gap: 7px; }
  .login-note { margin-top: 11px; }
  .poc-label { margin-top: 1px; }
  .learning-summary { align-items: flex-start; flex-direction: column; }
  .notification-dialog, .simulation-dialog, .pilot-enrollment-dialog, .adjustment-intent-dialog { padding: 23px 18px; }
  .help-dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); padding: 22px 13px 16px; border-radius: 16px; }
  .help-dialog h2 { margin-top: 2px; font-size: 20px; }
  .alpha-tour-entry { margin-bottom: 10px; padding: 10px 11px; gap: 9px; align-items: stretch; flex-direction: column; }
  .alpha-tour-entry small { display: none; }
  .alpha-tour-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .alpha-tour-entry button { width: 100%; min-height: 44px; padding-inline: 10px; font-size: 11px; }
  .alpha-tour-simulation-launch { display: inline-flex; }
  .guide-flow li { padding: 9px; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
  .guide-flow li > span { width: 28px; height: 28px; border-radius: 8px; }
  .guide-flow li > div { grid-template-columns: 1fr; }
  .guide-flow button { grid-column: 1; grid-row: auto; width: 100%; margin-top: 5px; }
  .guide-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (orientation: portrait) and (max-width: 760px) {
  .orientation-guide { display: flex; }
  #request-view .page-intro { margin-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(104px, auto); align-items: center; gap: 8px; }
  #request-view .page-intro .eyebrow, #request-view .page-intro p { display: none; }
  #request-view .page-intro h2 { margin: 0; font-size: 21px; line-height: 1.25; text-wrap: balance; }
  #request-view .deadline-chip { width: auto; padding: 8px 9px; gap: 1px; }
  #request-view .deadline-chip b { font-size: 11px; text-align: left; }
  #request-view .request-layout { display: block; }
  #request-view .request-identity { margin: 0 0 8px; padding: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  #request-view .request-identity > div { padding: 6px 7px; border-radius: 8px; background: #f5f6f3; }
  #request-view .request-identity > div:nth-child(3), #request-view .request-identity p { grid-column: 1 / -1; }
  #request-view .request-identity p { display: none; }
  #request-view .request-contract-note { margin-bottom: 8px; padding: 8px 10px; font-size: 9px; line-height: 1.45; }
  #request-view .calendar-card { padding: 12px 6px; border-radius: 16px; }
  #request-view .calendar-toolbar { gap: 14px; }
  #request-view .calendar-toolbar h3 { font-size: 17px; }
  #request-view .round-button { width: 44px; height: 44px; }
  #request-view .calendar-legend { margin: 9px 0 8px; display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 6px 10px; }
  #request-view .calendar-legend > span { white-space: nowrap; }
  #request-view .calendar-legend > span:nth-child(3) { grid-column: 1 / -1; justify-self: center; }
  #request-view .calendar-day, #request-view .calendar-blank { min-height: clamp(48px, 13.2vw, 55px); }
  #request-view .calendar-day { margin: 1px; padding: 4px; touch-action: manipulation; }
  #request-view .calendar-day .day-number { font-size: 12px; }
  #request-view .request-summary { margin-top: 8px; padding: 12px; border-radius: 15px; }
  #request-view .request-summary h3 { margin-bottom: 9px; font-size: 18px; }
  #request-view .academy-field, #request-view .off-request-declaration { margin-bottom: 10px; padding: 10px; }
  #request-view #academy-disclosure .academy-field { margin: 0; }
  #request-view .academy-field > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #request-view .academy-field label { min-width: 0; padding-inline: 8px; font-size: 10px; }
  #request-view .quota-item { margin-bottom: 10px; }
  #request-view .quota-track { margin-top: 6px; }
  #request-view .rule-box { margin: 11px 0 10px; padding: 10px; }
  #request-view .selected-list { max-height: 55vh; }
  #request-view .selected-list:has(> .empty-state:only-child) { margin-bottom: 6px; }
  #request-view .selected-list > .empty-state:only-child { padding-block: 10px; }
  #request-view .request-optional-disclosure { margin-bottom: 9px; }
  #request-view .request-optional-disclosure > summary { padding: 8px 10px; }
  #request-view .annual-events-panel { margin-top: 9px; }
  #request-view .annual-events-panel .request-optional-body { padding: 9px 6px 0; }
  #request-view .annual-event { grid-template-columns: 1fr; gap: 3px; }
  #request-view .booking-time-preset-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #request-view .booking-time-preset-form label:first-child, #request-view .booking-time-preset-form button { grid-column: 1 / -1; }
  #request-view .booking-time-preset-button { flex: 1 1 128px; }
  #request-view .booking-time-fields { grid-template-columns: 1fr; }
  #request-view .request-detail select, #request-view .booking-time-fields input { min-height: 44px; font-size: 16px; }
  #request-view .academy-field label, #request-view .request-detail-heading button { min-height: 44px; }
  #request-view #request-comment-disclosure .comment-field { padding: 10px; }
  #request-view .comment-field textarea { min-height: 96px; font-size: 16px; }
  #request-view .primary-button, #request-view .ghost-button { min-height: 46px; }
  #monthly-view .monthly-table-scroll, #editor-view .schedule-table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
  #editor-view .editor-actions { width: 100%; }
  #editor-view .editor-actions button { flex: 1; min-height: 44px; }
  .transfer-heading, .transfer-actions { align-items: stretch; flex-direction: column; }
  .transfer-panel { padding: 14px 12px; border-radius: 15px; }
  .transfer-status { align-self: flex-start; }
  .transfer-meta { grid-template-columns: 1fr; }
  .transfer-checklist { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .transfer-progress { align-items: flex-start; flex-direction: column; gap: 4px; }
  .transfer-row-list { max-height: 56vh; }
  .transfer-staff-heading { grid-template-columns: minmax(0,1fr) auto; }
  .transfer-staff-heading button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .transfer-assignment-row { grid-template-columns: auto minmax(0,1fr); }
  .transfer-assignment-row > strong { grid-column: 2; }
  .transfer-actions button { width: 100%; min-height: 44px; }
  .rule-section label { align-items: flex-start; flex-direction: column; gap: 7px; padding: 11px 0; }
  .rule-section input[type="time"], .rule-section select { width: 100%; max-width: none; min-height: 44px; }
}
@media (orientation: landscape) and (max-width: 1180px) {
  .content-wrap { max-width: none; padding-inline: 18px; }
  #monthly-view .monthly-table-card, #editor-view .schedule-table-wrap { border-radius: 14px; }
  #monthly-view .monthly-table-scroll, #editor-view .schedule-table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
  #monthly-view .monthly-name-cell { width: 140px; }
  #monthly-view .monthly-row { grid-template-columns: 140px repeat(var(--day-count), 40px); }
  #monthly-view .monthly-day, #monthly-view .monthly-cell { width: 40px; }
  #editor-view .schedule-table { min-width: 760px; }
}
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1024px) {
  .app-shell { display: block; }
  .topbar .olive-apps-link { width: 38px; height: 38px; font-size: 16px; }
  .sidebar { inset: auto 0 0; width: 100%; height: calc(56px + env(safe-area-inset-bottom)); min-height: 0; padding-bottom: env(safe-area-inset-bottom); flex-direction: row; border-radius: 15px 15px 0 0; }
  .sidebar-brand, .sidebar-bottom { display: none; }
  .sidebar-nav { padding: 5px 9px; flex-direction: row; justify-content: flex-start; gap: 3px; overflow-x: auto; }
  .nav-item { min-width: 62px; height: 46px; padding: 4px 3px; }
  .nav-item span { font-size: 15px; }
  .main-content { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .topbar { height: 52px; min-height: 52px; padding-inline: 13px; }
  .topbar h1 { font-size: 16px; }
  .topbar-kicker { font-size: 8px; }
  .runtime-bar { min-height: 24px; padding: 2px 13px; font-size: 9px; }
  body[data-active-view="monthly"] .runtime-bar [data-runtime-description], body[data-active-view="editor"] .runtime-bar [data-runtime-description] { display: none; }
  .profile-button > span:nth-child(2), .profile-button > span:last-child { display: none; }
  .icon-button { display: inline-flex; }
  .content-wrap { padding: 6px 10px calc(66px + env(safe-area-inset-bottom)); }
  #monthly-view > .page-intro { display: none; }
  #editor-view > .page-intro { align-items: center; flex-direction: row; margin-bottom: 9px; }
  #monthly-view .page-intro .eyebrow, #monthly-view .page-intro p, #editor-view .page-intro .eyebrow, #editor-view #editor-subtitle { display: none; }
  #monthly-view .page-intro h2, #editor-view .page-intro h2 { margin: 0; font-size: 23px; }
  #monthly-view .monthly-audience-switcher { padding: 1px 3px 1px 9px; margin-bottom: 4px; flex-direction: row; align-items: center; }
  #monthly-view .monthly-audience-switcher > div { width: auto; padding: 1px; }
  #monthly-view .monthly-audience-switcher button { min-height: 38px; padding: 6px 12px; }
  #monthly-view .month-switcher { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-bottom: 4px; }
  #monthly-view .month-switcher button { padding: 8px 11px; border-radius: 10px; }
  #monthly-view .month-switcher button small { display: inline; margin-right: 7px; }
  #monthly-view .month-switcher button b { font-size: 13px; }
  #monthly-view .monthly-summary { height: 34px; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; margin-bottom: 4px; overflow: hidden; }
  #monthly-view .monthly-summary article { min-width: 0; height: 34px; padding: 5px 8px; display: flex; align-items: center; gap: 5px; overflow: hidden; }
  #monthly-view .monthly-summary span { flex: 0 0 auto; font-size: 8px; white-space: nowrap; }
  #monthly-view .monthly-summary b { min-width: 0; display: block; margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  #monthly-view .monthly-summary small { display: none; }
  #monthly-view .monthly-toolbar { min-height: 29px; align-items: center; flex-direction: row; padding: 5px 10px 4px; }
  #monthly-view .monthly-toolbar .eyebrow { display: none; }
  #monthly-view .monthly-toolbar h3 { font-size: 15px; }
  #monthly-view .symbol-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #monthly-view .grid-help { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; clip-path: inset(50%); white-space: nowrap; }
  #monthly-view .monthly-head .monthly-name-cell, #monthly-view .monthly-head .monthly-day { min-height: 40px; }
  #monthly-view .monthly-table-scroll { max-height: 58dvh; }
  #editor-view .editor-actions button { min-height: 44px; padding-block: 9px; }
  #editor-view .editor-summary { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin-bottom: 8px; }
  #editor-view .editor-stat { padding: 8px 11px; }
  #editor-view .editor-stat strong { font-size: 16px; }
  #editor-view .schedule-table-wrap { max-height: 61dvh; }
}
@media (hover: none) and (pointer: coarse) {
  .nav-item, .round-button, .primary-button, .outline-button, .ghost-button, .filter-pills button { min-height: 44px; }
  button.symbol-cell { width: 38px; height: 38px; touch-action: manipulation; }
  #monthly-view .monthly-name-cell { width: 145px; }
  #monthly-view .monthly-row { grid-template-columns: 145px repeat(var(--day-count), 44px); }
  #monthly-view .monthly-day, #monthly-view .monthly-cell { width: 44px; min-height: 52px; }
  .shift-toggle { min-height: 44px; touch-action: manipulation; }
  .schedule-cell { min-height: 68px; }
  .monthly-table-scroll, .schedule-table-wrap { scroll-padding-inline-start: 145px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* 全画面共通の改善メッセージ。閉じている間は固定の小さな1行だけにする。 */
.app-feedback-launch {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 45;
  min-width: 78px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--olive-dark);
  border-radius: 999px;
  background: var(--olive-dark);
  color: white;
  font: 700 13px/1 system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(25, 47, 38, .24);
  cursor: pointer;
}
.app-feedback-launch:disabled { opacity: .65; cursor: wait; }
body.app-feedback-open .app-feedback-launch,
body:has(dialog[open]) .app-feedback-launch { display: none; }
.app-feedback-launch:focus-visible,
.app-feedback-dialog button:focus-visible,
.app-feedback-dialog textarea:focus-visible {
  outline: 3px solid #e3ad46;
  outline-offset: 2px;
}
.app-feedback-dialog {
  width: min(520px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  margin: auto;
  overflow: auto;
  overflow-x: hidden;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 54px rgba(23, 34, 29, .28);
}
.app-feedback-dialog::backdrop { background: rgba(24, 35, 30, .55); }
.app-feedback-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-feedback-heading h2 { margin: 0; font-size: 19px; line-height: 1.35; }
.app-feedback-close { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 13px; }
.app-feedback-help { margin: 7px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.app-feedback-tabs { margin-bottom: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.app-feedback-tabs button { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 13px; }
.app-feedback-tabs button.is-active { border-color: var(--olive-dark); background: var(--olive-dark); color: white; }
.app-feedback-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.app-feedback-count { color: var(--muted); font-size: 12px; font-weight: 500; }
.app-feedback-message {
  display: block;
  width: 100%;
  min-height: 112px;
  max-height: 40dvh;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: 16px/1.55 "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
}
.app-feedback-submit { width: 100%; min-height: 44px; margin-top: 8px; }
.app-feedback-status { min-height: 1.5em; margin: 6px 0 0; color: var(--olive-dark); font-size: 13px; line-height: 1.5; }
.app-feedback-items { display: grid; gap: 8px; }
.app-feedback-item { padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #f7f7f3; }
.app-feedback-item-meta { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.5; }
.app-feedback-item-message { margin: 7px 0 9px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.app-feedback-item button, .app-feedback-more { min-height: 44px; }
.app-feedback-more { width: 100%; margin-top: 9px; }
@media (max-width: 760px) {
  .app-feedback-launch { bottom: max(82px, calc(82px + env(safe-area-inset-bottom))); }
  .app-feedback-dialog { margin: auto auto max(82px, calc(82px + env(safe-area-inset-bottom))); border-radius: 16px; }
}
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1024px) {
  .app-feedback-launch { bottom: max(66px, calc(66px + env(safe-area-inset-bottom))); }
  .app-feedback-dialog { margin: 8px auto max(66px, calc(66px + env(safe-area-inset-bottom))); max-height: calc(100dvh - 78px - env(safe-area-inset-bottom)); }
}
.feedback-photo-picker { min-width: 0; margin: 12px 0; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px; }
.feedback-photo-picker p { font-size: 14px; line-height: 1.7; }
.feedback-photo-picker button, .feedback-photo-preview button { min-height: 44px; padding: 8px 12px; margin: 4px; }
.feedback-photo-preview { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.feedback-photo-preview figure { margin: 0; display: flex; flex-direction: column; max-width: 100%; }
.feedback-photo-preview img { display: block; width: 180px; max-width: 100%; height: auto; object-fit: contain; border-radius: 6px; }
