/* Windmill Crew Base — quiet, game-inspired workspace. */
:root {
  --bg: #080b10;
  --panel: #10151e;
  --panel2: #181f2b;
  --border: #28303e;
  --text: #edf1f8;
  --muted: #a1adbf;
  --accent: #9bc5ff;
  --radius: 20px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body { background: var(--bg); }
.icon { width: 22px; height: 22px; }
.icon svg { display: block; width: 100%; height: 100%; }
.notice-button .icon { transform: none; width: 20px; height: 20px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #a9ceff;
  outline-offset: 4px;
}
.sidebar { width: 224px; padding: 28px 16px 19px; background: #0b0e14; border-color: #242b37; }
.brand { padding-left: 7px; gap: 10px; font-size: 18px; letter-spacing: .045em; }
.brand small { margin-top: 1px; font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: #909cb0; }
.base-tag { margin: 29px 9px 32px; font-size: 11px; color: #bac6d8; gap: 7px; }
.base-tag > span:last-child { font-size: 8px; letter-spacing: .08em; color: #788598; }
.online-dot { width: 5px; height: 5px; background: #9ab9ef; }
.nav-label { display: flex; align-items: center; justify-content: space-between; margin: 0 11px 12px; font-size: 10px; letter-spacing: .04em; color: #8995a8; }
.nav-label > span { font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: #637084; }
.nav-item { position: relative; min-height: 49px; margin-bottom: 5px; padding: 12px; gap: 12px; border-radius: 6px; color: #9ca9bb; font-size: 14px; transition: color .16s, background .16s; }
.nav-item:hover { background: #161c27; color: #e6edfa; }
.nav-item.active { background: #192438; color: #c4dbff; font-weight: 600; }
.nav-item.active::before { position: absolute; content: ''; width: 2px; height: 20px; left: 0; top: calc(50% - 10px); background: #9bc5ff; border-radius: 2px; }
.nav-item .icon { width: 20px; height: 20px; }
.nav-index { margin-left: auto; font-family: var(--mono); font-size: 10px; color: #66758b; }
.nav-item.active .nav-index { color: #9bb6dd; }
.nav-count { font-family: var(--mono); font-size: 10px; border-color: #384154; border-radius: 4px; min-width: 20px; }
.sidebar-footer { padding-top: 28px; }
.demo-card { background: transparent; border: 1px dashed #313a4b; border-radius: 7px; padding: 15px 13px; }
.demo-card .micro-label { display: flex; align-items: center; gap: 7px; color: #93a8c9; font-size: 9px; letter-spacing: .09em; }
.demo-card .micro-label .icon { width: 14px; height: 14px; }
.demo-card strong { color: #cbd4e3; font-weight: 500; font-size: 12px; margin-top: 10px; }
.demo-card p { color: #8996a9; font-size: 11px; line-height: 1.85; }
.sidebar-user { margin: 18px 6px 0; gap: 10px; }
.sidebar-user strong { font-size: 13px; }
.sidebar-user small { font-size: 10px; margin-top: 1px; }
.avatar { --crew-suit: #8eaad1; --crew-accent: #a7c8fb; background: #1a2435; border: 1px solid #35435b; border-radius: 9px; overflow: hidden; }
.avatar.lime { --crew-suit: #899ece; --crew-accent: #b4c6ff; background: #1f253d; border-color: #3a4260; }
.avatar.orange { --crew-suit: #bcacc2; --crew-accent: #e3c3e0; background: #302635; border-color: #4f4055; }
.avatar.pink { --crew-suit: #ab9ace; --crew-accent: #d4c3fa; background: #2c263d; border-color: #49405d; }
.avatar.blue { --crew-suit: #80b5ca; --crew-accent: #a9dcf0; background: #1b2b37; border-color: #344d5d; }
.avatar.small { border-radius: 8px; }
.crew-avatar-art { display: block; width: 100%; height: 100%; }
.content-shell { width: calc(100% - 224px); margin-left: 224px; }
.topbar { height: 72px; padding: 0 34px; border-color: #242b37; background: #0a0d13; }
.breadcrumb { font-size: 12px; color: #8190a6; }
.breadcrumb strong { color: #c4cede; }
.topbar-right { gap: 16px; }
.account-switch select { background: #111722; border-color: #303a4b; border-radius: 5px; min-height: 36px; font-size: 11px; }
.account-switch > span { font-size: 11px; }
.demo-label { padding: 3px 8px; background: transparent; border-color: #354258; color: #a3b9d8; font-size: 10px; border-radius: 4px; }
.icon-button { border-radius: 6px; }
main { padding: 29px 34px 30px; max-width: 1450px; }
.page-heading { margin-bottom: 25px; }
.eyebrow { color: #92a3bd; font-size: 10px; letter-spacing: .17em; margin-bottom: 6px; }
h1 { font-size: 29px; letter-spacing: .01em; font-weight: 650; }
.home-greeting { margin-top: 8px; font-size: 12px; color: #8f9db1; letter-spacing: .04em; }
.page-date { font-size: 12px; color: #b5c1d2; }
.page-date span { color: #76849b; font-size: 10px; }
.page-footer { margin: 0 34px; padding: 19px 0; color: #6f7f97; border-color: #242b37; }
.page-footer b { color: #9fb5db; }
.btn, input, select, textarea { border-radius: 6px; }
.btn { min-height: 44px; border-color: #3b4658; }
.btn.primary { color: #0b172b; border-color: #8ab9fb; background: #9bc5ff; box-shadow: none; }
.btn.primary:hover { background: #b3d5ff; box-shadow: 0 3px 18px #759ee51a; }
.btn:hover { background: #202b3d; }
.btn.text:hover { background: transparent; color: #cee2ff; }
.table-scroll {
  scrollbar-width: thin;
  scrollbar-color: #899eb452 transparent;
}
.table-scroll::-webkit-scrollbar { height: 6px; width: 6px; background: transparent; }
.table-scroll::-webkit-scrollbar-track { background: transparent; border: 0; }
.table-scroll::-webkit-scrollbar-thumb { background: #899eb452; border: 0; border-radius: 999px; }
.table-scroll:hover::-webkit-scrollbar-thumb { background: #aac6e980; }
.table-scroll::-webkit-scrollbar-corner { background: transparent; }
@supports selector(::-webkit-scrollbar) {
  .table-scroll { scrollbar-width: auto; scrollbar-color: auto; }
}
.table-scroll:focus-visible { outline: 1px solid #9bc5ff88; outline-offset: -2px; }
.panel { border-color: #2a3342; }
.salary-summary, .callout, .poll-option, .payment-block, .bonus-block, .settings-formula, .calc-preview { border-radius: 9px; }
.modal { border-radius: 12px; border-color: #3c4b63; background: #111824; }
.modal-head { background: #111824; }
.game-card { position: relative; }
.game-card::before { content: ''; position: absolute; top: 0; left: 26px; width: 52px; height: 2px; background: #8ebbf7; }
.game-card.wheel-card::before { background: #b3a4ed; }
.game-kind { letter-spacing: .13em; color: #a8bddf; }
.crew-card .avatar.large { border-radius: 10px; }

/* Home has just four jobs: identity, balance, leave, and payslips. */
@property --border-phase {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes border-orbit {
  to { --border-phase: 360deg; }
}
.base-console { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.crew-identity, .leave-reserve { position: relative; min-width: 0; border: 1px solid #303c51; border-radius: 10px; padding: 23px 26px; overflow: hidden; }
.edge-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(from var(--border-phase), transparent 0deg 270deg, #9b91e900 285deg, #afa5f759 313deg, #a1c7ffcf 333deg, transparent 345deg 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .6;
  animation: border-orbit 14s linear infinite;
  transition: opacity .3s;
}
.leave-reserve .edge-glow { animation-delay: -6s; }
.crew-identity:hover .edge-glow, .leave-reserve:hover .edge-glow { opacity: .95; }
.crew-identity { background: linear-gradient(115deg, #152139 0%, #121b2b 50%, #101720 100%); }
.crew-identity::before { content: ''; pointer-events: none; position: absolute; inset: 0; background-image: radial-gradient(#91b4e729 .65px, transparent .65px); background-size: 12px 12px; mask-image: linear-gradient(90deg, #0007, transparent 65%); }
.crew-identity::after { content: ''; position: absolute; right: -18px; top: -18px; width: 39px; height: 39px; background: var(--bg); border-bottom: 1px solid #46516a; transform: rotate(45deg); }
.module-caption { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: .13em; color: #97abc9; }
.crew-serial { font-size: 10px; letter-spacing: .1em; color: #9dabc1; padding-right: 5px; }
.identity-body { display: flex; align-items: center; gap: 24px; margin: 18px 0 20px; position: relative; }
.portrait-stage { position: relative; width: 154px; height: 159px; flex: 0 0 154px; display: grid; place-items: center; isolation: isolate; }
.portrait-stage::before, .portrait-stage::after { content: ''; position: absolute; width: 18px; height: 18px; border-color: #5d7aab; border-style: solid; opacity: .7; }
.portrait-stage::before { left: 0; top: 7px; border-width: 1px 0 0 1px; }
.portrait-stage::after { right: 0; bottom: 7px; border-width: 0 1px 1px 0; }
.portrait-orbit { position: absolute; width: 130px; height: 130px; border: 1px solid #5e7fb24a; border-radius: 50%; background: radial-gradient(circle, #699ee524, transparent 70%); z-index: -1; }
.portrait-orbit::after { content: ''; position: absolute; width: 144px; height: 144px; top: -8px; left: -8px; border: 1px dashed #5e7fb22b; border-radius: 50%; }
.portrait-cross { position: absolute; top: 0; right: 2px; font: 14px var(--mono); color: #7f96b6; }
.portrait-coordinate { position: absolute; bottom: 0; left: 9px; font: 8px var(--mono); letter-spacing: .12em; color: #849bc0; }
.avatar.identity-avatar { width: 137px; height: 137px; border: 0; border-radius: 0; overflow: visible; background: transparent; transition: transform .25s ease; filter: drop-shadow(0 10px 13px #050a1440); }
.crew-identity:hover .identity-avatar { transform: translateY(-3px) rotate(-1deg); }
.identity-copy { min-width: 0; }
.identity-team { font-size: 11px; color: #a1b9de; letter-spacing: .08em; }
.identity-copy h2 { margin-top: 7px; font-size: 29px; font-weight: 650; letter-spacing: .055em; line-height: 1.35; }
.identity-copy > p { margin-top: 7px; font-size: 12px; color: #a5b2c8; }
.identity-job { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
.identity-job > span { font-size: 10px; color: #94a5bd; flex-shrink: 0; }
.identity-job > strong { font-size: 12px; font-weight: 500; color: #d0daeb; overflow-wrap: anywhere; }
.identity-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #c7dbff27;
  border-radius: 9px;
  background: #aacbff09;
  padding: 8px 10px;
  text-align: left;
  transition: background .18s, border-color .18s;
}
.identity-title:hover { background: #b4ceff13; border-color: #c7dbff4f; }
.identity-title .title-label { font-size: 9px; color: #99abc5; flex-shrink: 0; }
.identity-title strong { font-size: 11px; font-weight: 500; color: #d0dafa; overflow-wrap: anywhere; min-width: 0; }
.identity-title .icon { width: 13px; height: 13px; margin-left: auto; color: #a9bedc; }
.crew-card-title { display: flex; align-items: baseline; gap: 9px; overflow-wrap: anywhere; color: #c3cff1; font-size: 12px; }
.crew-card-title > span { font-size: 10px; color: #8ea1be; flex-shrink: 0; }
.title-profile-context { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.title-profile-context strong { display: block; font-size: 14px; }
.title-profile-context span:not(.avatar) { display: block; color: #94a7c3; font-size: 12px; margin-top: 3px; }
.title-field-meta { display: flex; justify-content: space-between; gap: 12px; color: #9eafc7; font-size: 11px; margin-top: -8px; }
#crew-title-count { font-family: var(--mono); white-space: nowrap; }
#crew-title-form .btn.text { margin-top: 8px; min-height: 44px; }
.employee-title-note { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; padding: 13px 0 18px; margin-top: -10px; font-size: 12px; }
.employee-title-note > span, .employee-title-note > small { color: #97a9c2; font-size: 11px; }
.employee-title-note > strong { color: #c5d3ed; font-size: 12px; overflow-wrap: anywhere; }
.identity-role { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; padding: 3px 8px; border: 1px solid #405371; border-radius: 4px; color: #b5c9e9; background: #182840; font-size: 10px; }
.identity-role .icon { width: 12px; height: 12px; }
.identity-details { position: relative; display: grid; grid-template-columns: .8fr 1.5fr; gap: 20px; margin: 0; padding-top: 17px; border-top: 1px solid #34445c; }
.identity-details > div { min-width: 0; }
.identity-details dt { font-size: 10px; color: #869bb9; }
.identity-details dd { margin: 5px 0 0; font-size: 12px; color: #d0dbed; overflow-wrap: anywhere; }
.identity-details > div:last-child dd { font-family: var(--mono); font-size: 11px; line-height: 1.75; }
.identity-edge { position: absolute; bottom: 0; left: 26px; width: 54px; height: 2px; background: #8ab5f1; }
.leave-reserve { background: #101620; border-color: #2c3749; }
.module-indicator { width: 15px; height: 4px; background: repeating-linear-gradient(90deg, #7088b1 0 2px, transparent 2px 5px); }
.leave-reserve > h2 { margin-top: 19px; font-size: 15px; font-weight: 500; letter-spacing: .035em; }
.reserve-display { display: flex; align-items: center; gap: 19px; margin: 5px 0 11px; }
.reserve-gauge { position: relative; width: 170px; height: 170px; flex: 0 0 170px; }
.reserve-gauge > svg { display: block; width: 100%; height: 100%; fill: none; }
.gauge-ticks { stroke: #4b5c76; stroke-width: 3px; stroke-dasharray: .25 2.25; opacity: .7; }
.gauge-track { stroke: #25334a; stroke-width: 7px; }
.gauge-value { stroke: #a8caff; stroke-width: 7px; stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 50% 50%; }
.reserve-number { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.reserve-number strong { font-family: var(--mono); font-size: 46px; line-height: 1.3; letter-spacing: -.06em; font-weight: 500; }
.reserve-number > span { font-size: 11px; color: #9daec7; margin-top: 1px; letter-spacing: .05em; }
.reserve-facts { flex: 1; min-width: 0; }
.reserve-hours { display: block; font-family: var(--mono); font-size: 23px; letter-spacing: -.015em; color: #dce7fb; line-height: 1.3; }
.reserve-hours small { display: block; font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', sans-serif; font-size: 10px; color: #9baac1; letter-spacing: .03em; margin-top: 6px; }
.reserve-rule { width: 26px; height: 1px; display: block; background: #4a5c7a; margin: 16px 0 12px; }
.reserve-facts p { font-size: 10px; color: #8b9db7; display: flex; flex-direction: column; gap: 2px; margin-top: 8px; line-height: 1.5; }
.reserve-facts p b { font-size: 11px; font-weight: 400; color: #c5d2e6; }
.reserve-caption { display: flex; align-items: center; gap: 7px; border-top: 1px solid #2d384b; padding-top: 13px; color: #91a4c0; font-size: 10px; letter-spacing: .035em; }
.reserve-caption i { width: 4px; height: 4px; background: #abc7f4; transform: rotate(45deg); }
.base-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.base-action { display: flex; align-items: center; position: relative; gap: 18px; padding: 23px 25px; min-height: 116px; width: 100%; text-align: left; border: 1px solid #354666; border-radius: 9px; background: #17253c; transition: border-color .2s, background .2s, transform .15s; }
.base-action.salary-entry { background: #131923; border-color: #354054; }
.entry-symbol { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 45px; border: 1px solid #46618a; border-radius: 9px; background: #233653; color: #b4d1fb; }
.salary-entry .entry-symbol { background: #212739; border-color: #4a4866; color: #c2bbed; }
.entry-symbol .icon { width: 25px; height: 25px; }
.entry-copy { min-width: 0; }
.entry-code { display: block; font: 8px var(--mono); letter-spacing: .13em; color: #a0b7d8; margin-bottom: 5px; }
.salary-entry .entry-code { color: #a29eba; }
.entry-copy strong { display: block; font-size: 17px; font-weight: 550; letter-spacing: .015em; }
.entry-copy small { display: block; margin-top: 4px; font-size: 11px; color: #91a6c4; }
.salary-entry .entry-copy small { color: #909db5; }
.entry-arrow { display: grid; place-items: center; margin-left: auto; color: #b2c7e9; transition: transform .2s; }
.entry-arrow .icon { width: 21px; height: 21px; }
.base-action:hover { background: #1e304d; border-color: #85abe4; }
.base-action.salary-entry:hover { background: #1c2434; border-color: #8c8ab7; }
.base-action:hover .entry-arrow { transform: translateX(4px); }
.base-action:active { transform: translateY(2px); }
#toast { left: calc(50% + 112px); }

/* Frosted notification glass: the light sits behind the material. */
.content-shell {
  background:
    radial-gradient(ellipse 560px 430px at 14% 310px, #6685bd12, transparent 75%),
    radial-gradient(ellipse 460px 430px at 96% 550px, #7d74ac0d, transparent 75%);
}
.app-shell[data-page='home'] main { position: relative; isolation: isolate; }
.app-shell[data-page='home'] main::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 124px 25px 16px;
  filter: blur(30px);
  background:
    radial-gradient(ellipse 270px 210px at 8% 19%, #789dd234, transparent 80%),
    radial-gradient(ellipse 220px 190px at 69% 46%, #9b99c529, transparent 78%),
    radial-gradient(ellipse 330px 90px at 27% 86%, #678ecb20, transparent 80%);
}
.crew-identity, .leave-reserve, .base-action, .base-action.salary-entry,
.panel, .salary-summary, .leave-summary {
  border: 1px solid #d3e3ff24;
  border-top-color: #e6efff40;
  border-left-color: #dbe8ff30;
  background: linear-gradient(135deg, #e5eeff0c, #d7e6ff02 52%, #bccbff06), #20293891;
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: inset 0 1px 0 #ffffff09, inset 0 -1px 0 #bfd5ff06, 0 14px 35px #03060b26;
  border-radius: 20px;
}
.crew-identity { background-color: #25304388; }
.crew-identity::before { opacity: .35; }
.crew-identity::after, .leave-reserve::after, .base-action::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  padding: 1px;
  border-radius: inherit;
  transform: none;
  background: linear-gradient(135deg, #f1f6ff38, #e2ecff0b 24%, transparent 43%, #c9d6ff07 64%, #e4eaff27);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.identity-edge { display: none; }
.identity-details, .reserve-caption { border-color: #d4e4ff1e; }
.identity-role {
  background: #b3d0ff0b;
  border-color: #d1e0ff2e;
  box-shadow: inset 0 1px 0 #ffffff06;
  border-radius: 6px;
}
.edge-glow { opacity: .34; }
.crew-identity:hover .edge-glow, .leave-reserve:hover .edge-glow { opacity: .56; }
.base-action, .base-action.salary-entry { transition: border-color .25s, background-color .25s, box-shadow .25s, transform .15s; }
.base-action.leave-entry { background-color: #293b5a80; }
.base-action.salary-entry { background-color: #292d4280; }
.base-action:hover, .base-action.salary-entry:hover {
  background: linear-gradient(135deg, #f0f5ff11, #e1ebff03 52%, #c1ccff08), #2e3b519c;
  border-color: #d3e3ff3d;
  border-top-color: #eaf2ff61;
  box-shadow: inset 0 1px 0 #ffffff0c, 0 14px 35px #03060b26;
}
.entry-symbol, .salary-entry .entry-symbol {
  background: #c0d6ff0b;
  border-color: #d5e3ff29;
  box-shadow: inset 0 1px 0 #f2f6ff09;
  border-radius: 12px;
}
.panel, .salary-summary, .leave-summary { background-color: #1c2534b8; }
.game-card::before { height: 1px; background: linear-gradient(90deg, transparent, #c6ddff88, transparent); }
.game-card.wheel-card::before { background: linear-gradient(90deg, transparent, #d3cafa88, transparent); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .crew-identity, .leave-reserve, .base-action, .base-action.salary-entry,
  .panel, .salary-summary, .leave-summary { background-color: #222d40; }
}

@media (min-width: 1440px) {
  .base-console { grid-template-columns: 1.25fr 1fr; }
  .crew-identity, .leave-reserve { padding: 27px 32px; }
  .identity-body { gap: 36px; margin-top: 19px; margin-bottom: 23px; }
  .portrait-stage { width: 175px; height: 175px; flex-basis: 175px; }
  .avatar.identity-avatar { width: 153px; height: 153px; }
  .reserve-display { gap: 30px; }
  .reserve-gauge { width: 187px; height: 187px; flex-basis: 187px; }
  .reserve-facts p { flex-direction: row; justify-content: space-between; gap: 9px; }
}
@media (max-width: 1180px) and (min-width: 761px) {
  .sidebar { width: 210px; padding-inline: 13px; }
  .content-shell { width: calc(100% - 210px); margin-left: 210px; }
  main { padding: 28px; }
  .topbar { padding-inline: 28px; }
  .base-console { gap: 16px; grid-template-columns: 1.1fr 1fr; }
  .crew-identity, .leave-reserve { padding: 21px; }
  .identity-body { gap: 17px; }
  .portrait-stage { width: 118px; height: 152px; flex-basis: 118px; }
  .portrait-orbit { width: 106px; height: 106px; }
  .portrait-orbit::after { width: 120px; height: 120px; }
  .avatar.identity-avatar { width: 120px; height: 120px; }
  .identity-copy h2 { font-size: 26px; }
  .identity-details { grid-template-columns: 1fr; gap: 8px; }
  .identity-details > div { display: flex; align-items: center; gap: 14px; }
  .identity-details dd { margin: 0; }
  .identity-details dt { flex-shrink: 0; }
  .reserve-display { gap: 12px; }
  .reserve-gauge { width: 145px; height: 145px; flex-basis: 145px; }
  .reserve-number strong { font-size: 39px; }
  .reserve-caption { margin-top: 18px; }
  .base-actions { gap: 16px; }
  .base-action { gap: 13px; padding: 22px 19px; }
  .entry-symbol { width: 39px; height: 39px; flex-basis: 39px; }
  .entry-copy strong { font-size: 16px; }
  .page-footer { margin-inline: 28px; }
  #toast { left: calc(50% + 105px); }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .base-console { grid-template-columns: 1fr; }
  .crew-identity { padding: 23px 26px; }
  .identity-body { margin-block: 14px; gap: 26px; }
  .portrait-stage { height: 133px; width: 145px; flex-basis: 145px; }
  .identity-details { grid-template-columns: .8fr 1.5fr; }
  .identity-details > div { display: block; }
  .identity-details dd { margin-top: 5px; }
  .leave-reserve { display: grid; grid-template-columns: 1fr 1.55fr; column-gap: 20px; padding: 22px 26px; }
  .leave-reserve .module-caption { grid-column: 1 / -1; }
  .leave-reserve > h2 { grid-column: 1; margin-top: 23px; align-self: start; }
  .reserve-display { grid-column: 2; grid-row: 2 / 4; margin: 5px 0 0; justify-content: flex-end; gap: 20px; }
  .reserve-caption { grid-column: 1; align-self: end; line-height: 1.8; margin-bottom: 12px; }
  .reserve-gauge { width: 137px; height: 137px; flex-basis: 137px; }
  .entry-copy small { display: none; }
  .entry-symbol { width: 34px; height: 38px; flex-basis: 34px; background: transparent; border: 0; }
  .salary-entry .entry-symbol { background: transparent; border: 0; }
}
@media (max-width: 760px) {
  .sidebar { width: 244px; padding: 28px 17px 20px; }
  .sidebar.mobile-open { width: 244px; }
  .sidebar .brand { font-size: 16px; gap: 8px; }
  .sidebar .brand-mark, .sidebar .brand-mark img { width: 37px; }
  .mobile-close { top: 27px; right: 9px; width: 32px; height: 32px; }
  .content-shell { width: 100%; margin: 0; }
  .topbar { height: 66px; padding: 0 16px; gap: 8px; background: #0a0d13f5; }
  .topbar-left { gap: 8px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb strong { margin-left: 3px; }
  .topbar-right { gap: 7px; }
  .mobile-toggle { width: 38px; height: 40px; border-color: #303b4e; }
  .notice-button { width: 38px; height: 40px; border-color: transparent; }
  .account-switch select { width: 166px; font-size: 10px; min-height: 40px; padding-left: 9px; }
  main { padding: 24px 18px 25px; }
  h1 { font-size: 26px; }
  .page-heading { margin-bottom: 21px; gap: 10px; align-items: flex-start; }
  .eyebrow { font-size: 9px; letter-spacing: .14em; }
  .home-greeting { font-size: 11px; margin-top: 7px; }
  .page-date { font-size: 10px; padding-top: 2px; line-height: 1.8; }
  .page-date span { display: none; }
  .app-shell[data-page='home'] .page-date { max-width: 66px; }
  .base-console { grid-template-columns: 1fr; gap: 14px; }
  .crew-identity, .leave-reserve { padding: 18px 21px; border-radius: 20px; }
  .app-shell[data-page='home'] main::before {
    inset: 112px 8px 10px;
    background:
      radial-gradient(ellipse 190px 220px at 8% 17%, #789dd230, transparent 80%),
      radial-gradient(ellipse 190px 200px at 97% 62%, #9b99c529, transparent 80%);
  }
  .module-caption { font-size: 8px; }
  .crew-serial { font-size: 9px; }
  .identity-body { gap: 22px; margin: 14px 0 17px; }
  .portrait-stage { width: 112px; height: 118px; flex-basis: 112px; }
  .portrait-orbit { width: 99px; height: 99px; }
  .portrait-orbit::after { width: 111px; height: 111px; left: -7px; top: -7px; }
  .portrait-coordinate { font-size: 7px; bottom: -3px; }
  .avatar.identity-avatar { width: 106px; height: 106px; }
  .identity-team { font-size: 10px; }
  .identity-copy h2 { font-size: 26px; margin-top: 5px; }
  .identity-copy > p { font-size: 11px; margin-top: 5px; }
  .identity-title { padding: 7px 8px; gap: 7px; }
  .identity-title strong { font-size: 11px; }
  .identity-role { margin-top: 9px; padding: 2px 7px; font-size: 9px; }
  .identity-details { grid-template-columns: .8fr 1.6fr; gap: 15px; padding-top: 12px; }
  .identity-details dt { font-size: 9px; }
  .identity-details dd { font-size: 11px; margin-top: 4px; }
  .identity-details > div:last-child dd { font-size: 10px; }
  .leave-reserve { display: grid; grid-template-columns: 1fr; padding-bottom: 15px; }
  .leave-reserve > h2 { font-size: 13px; margin-top: 13px; }
  .reserve-display { gap: 27px; margin: 4px 0 10px; justify-content: center; }
  .reserve-gauge { width: 140px; height: 140px; flex-basis: 140px; }
  .reserve-number strong { font-size: 39px; }
  .reserve-number > span { font-size: 10px; }
  .reserve-facts { flex: 0 1 140px; }
  .reserve-hours { font-size: 21px; }
  .reserve-hours small { font-size: 10px; margin-top: 3px; }
  .reserve-rule { margin: 12px 0 8px; }
  .reserve-facts p { flex-direction: row; flex-wrap: wrap; justify-content: space-between; font-size: 9px; gap: 6px; margin-top: 7px; }
  .reserve-facts p b { font-size: 10px; }
  .reserve-caption { font-size: 9px; padding-top: 10px; }
  .base-actions { gap: 12px; margin-top: 14px; }
  .base-action, .base-action.salary-entry { min-height: 82px; padding: 15px 13px; gap: 10px; border-radius: 17px; }
  .entry-symbol, .salary-entry .entry-symbol { width: 23px; height: 28px; flex-basis: 23px; border: 0; background: transparent; box-shadow: none; }
  .entry-symbol .icon { width: 23px; height: 23px; }
  .entry-code, .entry-copy small, .entry-arrow { display: none; }
  .entry-copy strong { font-size: 13px; letter-spacing: 0; }
  .page-footer { margin: 0 18px; padding-block: 17px; font-size: 9px; }
  #toast { left: 50%; }
}
@media (max-width: 370px) {
  main { padding-inline: 14px; }
  .topbar { padding-inline: 12px; }
  .account-switch select { width: 177px; }
  .crew-identity, .leave-reserve { padding-inline: 18px; }
  .identity-body { gap: 15px; }
  .portrait-stage { width: 94px; height: 113px; flex-basis: 94px; }
  .portrait-orbit { width: 88px; height: 88px; }
  .portrait-orbit::after { width: 100px; height: 100px; }
  .avatar.identity-avatar { width: 96px; height: 96px; }
  .identity-copy h2 { font-size: 24px; }
  .identity-title { gap: 5px; padding-inline: 6px; }
  .identity-title strong { font-size: 10px; }
  .identity-details { gap: 12px; grid-template-columns: .6fr 1.6fr; }
  .identity-details > div:last-child dd { font-size: 9px; }
  .reserve-display { gap: 18px; }
  .reserve-gauge { width: 126px; height: 126px; flex-basis: 126px; }
  .reserve-number strong { font-size: 35px; }
  .reserve-facts p { flex-direction: column; gap: 0; }
  .reserve-rule { margin: 9px 0 7px; }
  .base-action { justify-content: center; padding-inline: 9px; gap: 8px; }
  .entry-copy strong { font-size: 12px; }
  .entry-symbol, .salary-entry .entry-symbol { width: 20px; flex-basis: 20px; }
  .entry-symbol .icon { width: 20px; height: 20px; }
  .page-footer { margin-inline: 14px; }
}
@media (hover: none) {
  .crew-identity:hover .identity-avatar, .base-action:hover .entry-arrow { transform: none; }
  .crew-identity:hover .edge-glow, .leave-reserve:hover .edge-glow { opacity: .34; }
}
@media (prefers-reduced-motion: reduce) {
  .identity-avatar, .base-action, .entry-arrow, .nav-item { transition: none; }
  .crew-identity:hover .identity-avatar, .base-action:hover .entry-arrow { transform: none; }
  .edge-glow { animation: none; transition: none; opacity: .24; }
}
@media (prefers-reduced-transparency: reduce) {
  .crew-identity, .leave-reserve, .base-action, .base-action.salary-entry,
  .panel, .salary-summary, .leave-summary {
    background-color: #222d40;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media print {
  .crew-identity::before, .crew-identity::after, .leave-reserve::after, .base-action::after,
  .app-shell[data-page='home'] main::before, .identity-edge, .game-card::before, .edge-glow { display: none; }
  .content-shell { background: white; }
  .crew-identity, .leave-reserve, .base-action, .base-action.salary-entry,
  .panel, .salary-summary, .leave-summary {
    background: white;
    color: #111;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .content-shell { width: 100%; margin: 0; }
  main { padding: 0; }
  .modal { background: white; border: 0; }
}
