:root {
  --bg: #f6f7f3;
  --paper: #fff;
  --ink: #24382e;
  --muted: #788178;
  --green: #285640;
  --green-dark: #193c2b;
  --line: #e2e6df;
  --soft: #eaf0e8;
  --orange: #b57430;
  --danger: #b0453d;
  --shadow: 0 12px 45px #203e2d0b;
  font-family: 'BIZ UDPGothic', 'Yu Gothic UI', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.65;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 17px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #f0f3ec;
  text-decoration: none;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary,
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.primary:hover,
.button.primary:hover {
  background: var(--green-dark);
}
button.danger {
  color: var(--danger);
  border-color: #e9c7c3;
}
.quiet {
  background: transparent;
}
.large {
  padding: 16px 24px;
  font-size: 15px;
}
.wide {
  width: 100%;
}
.text-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  justify-content: flex-start;
  font-size: 12px;
}
.icon-button {
  padding: 5px 11px;
  font-size: 21px;
  border: 0;
  background: transparent;
}
.text-link {
  font-weight: 600;
  font-size: 13px;
}
input,
select,
textarea {
  border: 1px solid #d8ded5;
  border-radius: 7px;
  padding: 10px 11px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8eaf99;
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #95b79e;
  outline-offset: 3px;
}
input[type='checkbox'] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.check-label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: 0.035em;
  line-height: 1.45;
  margin-bottom: 9px;
}
h2 {
  font-size: 21px;
  line-height: 1.5;
}
h3 {
  font-size: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.fine {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand-en {
  font-size: 9px;
  letter-spacing: 0.16em;
  margin-left: 6px;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #789876;
  margin-right: 6px;
}
.badge {
  display: inline-flex;
  border-radius: 5px;
  padding: 3px 9px;
  background: var(--soft);
  color: #56745b;
  font-size: 11px;
  font-weight: 600;
}
.badge.amber {
  background: #fcf0dc;
  color: #987035;
}
.badge.red {
  background: #fbe9e6;
  color: #a4493e;
}
.notice {
  border: 1px solid #dbe5d9;
  background: #f0f5ed;
  border-radius: 8px;
  padding: 13px 16px;
  margin: 15px 0;
  font-size: 13px;
}
.notice.danger {
  background: #fff2ef;
  border-color: #efd5ce;
  color: #964239;
}
.notice.amber {
  background: #fffaee;
  border-color: #eee3c8;
  color: #8c6f32;
}
.public-nav {
  max-width: 1260px;
  margin: auto;
  padding: 29px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.public-nav nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}
.landing {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  min-height: 620px;
  padding: 55px 0 80px;
}
.hero h1 {
  font-size: 55px;
  line-height: 1.55;
  letter-spacing: 0.07em;
  font-weight: 600;
}
.handline {
  position: relative;
  white-space: nowrap;
}
.handline:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 7px;
  border-top: 2px solid #9bab6e;
  border-radius: 50%;
  transform: rotate(-3deg);
}
.hero-description {
  font-size: 16px;
  color: #647063;
  line-height: 2.2;
  margin: 30px 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
}
.hero-visual {
  position: relative;
  padding: 38px 0;
}
.paper-preview {
  background: #fffefa;
  border: 1px solid #e8e8db;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow:
    15px 20px 0 #e4e9dc,
    0 20px 60px #27452712;
  transform: rotate(-3deg);
}
.paper-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.paper-preview h2 {
  font-size: 25px;
  margin-bottom: 8px;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 7px;
  align-items: center;
  margin-top: 27px;
  font-size: 12px;
}
.preview-grid b {
  font-size: 10px;
  color: var(--muted);
  padding: 5px;
}
.preview-grid i {
  text-align: center;
  font-style: normal;
  padding: 13px 4px;
  background: #e4ede1;
  border-radius: 5px;
  color: #526f51;
}
.preview-grid .late {
  background: #e9e6f3;
  color: #7a6f95;
}
.preview-grid .off {
  background: #f3f3ed;
  color: #a1a298;
}
.paper-bottom {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 10px;
  color: var(--muted);
}
.floating-note {
  position: absolute;
  z-index: 2;
  right: -10px;
  top: 0;
  background: white;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 20px #00000009;
  font-size: 12px;
  transform: rotate(4deg);
}
.floating-note span {
  background: var(--green);
  color: white;
  border-radius: 50%;
  padding: 2px 5px;
  margin-right: 7px;
}
.visual-caption {
  text-align: right;
  margin-top: 42px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #7b8973;
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  gap: 50px;
}
.feature-strip span {
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #929b83;
}
.feature-strip h2 {
  font-size: 18px;
  margin: 15px 0 10px;
}
.feature-strip p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.closing {
  text-align: center;
  padding: 85px 0;
}
.closing h2 {
  font-size: 26px;
  margin-bottom: 30px;
}
.public-footer {
  display: flex;
  align-items: center;
  gap: 35px;
  border-top: 1px solid var(--line);
  padding: 25px 6%;
  font-size: 11px;
  color: var(--muted);
}
.public-footer .brand {
  font-size: 16px;
}
.public-footer p {
  margin: 0;
}
.public-footer nav {
  margin-left: auto;
  display: flex;
  gap: 25px;
}
.app-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fbfcf9;
  border-right: 1px solid var(--line);
  padding: 29px 21px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  font-size: 18px;
  gap: 8px;
}
.org-box {
  margin: 33px 0 20px;
  padding: 0 8px;
}
.org-box select {
  padding: 5px 0;
  width: 100%;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 13px;
}
.org-box .eyebrow {
  font-size: 9px;
}
.side-nav {
  display: grid;
  gap: 7px;
}
.side-nav button {
  justify-content: flex-start;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 13px;
  color: #788278;
  font-weight: 500;
  gap: 13px;
}
.side-nav button > span:first-child {
  font-size: 19px;
  line-height: 1;
  width: 20px;
}
.side-nav button.active {
  color: var(--green);
  background: #eaf0e5;
  font-weight: 700;
}
.nav-count {
  font-size: 10px !important;
  padding: 0 6px;
  border-radius: 4px;
  background: white;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 8px 0;
  display: grid;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
}
.free-note {
  background: #eef1e6;
  border-radius: 8px;
  padding: 17px;
  margin-bottom: 8px;
  color: #758163;
}
.free-note > span {
  font-size: 8px;
  letter-spacing: 0.18em;
}
.free-note p {
  font-size: 13px;
  line-height: 1.9;
  margin: 9px 0;
}
.free-note small {
  font-size: 9px;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.workspace-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  height: 72px;
  padding: 0 35px;
  background: #ffffffa0;
}
.breadcrumb,
.top-right {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb select {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}
.top-right {
  gap: 20px;
}
.avatar {
  display: inline-flex;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8edde;
  color: #738162;
  font-size: 10px;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 35px;
  background: #eef2e7;
  border-bottom: 1px solid #e1e7d8;
  font-size: 10px;
  color: #748467;
  gap: 15px;
}
.demo-banner b {
  font-weight: 600;
}
.demo-banner .text-button {
  font-size: 10px;
  color: var(--green);
}
#main-content {
  padding: 32px 35px;
  flex: 1;
  min-width: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 27px;
}
.page-heading .muted {
  font-size: 11px;
  margin-bottom: 0;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.heading-actions button {
  font-size: 11px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 26px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 18px 21px;
  min-height: 102px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.stat-value {
  font-size: 30px;
  letter-spacing: -0.03em;
  font-weight: 550;
  line-height: 1.6;
}
.stat-value small {
  font-size: 11px;
  letter-spacing: 0;
  margin-left: 5px;
  color: var(--muted);
  font-weight: 400;
}
.stat-note {
  font-size: 10px;
  color: #98a08e;
}
.stat .progress-track {
  height: 4px;
  background: #edf0e7;
  border-radius: 4px;
  margin-top: 5px;
}
.progress-track div {
  height: 100%;
  background: #8da980;
  border-radius: 4px;
}
.schedule-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule-toolbar {
  padding: 20px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.month-heading {
  display: flex;
  gap: 12px;
  align-items: center;
}
.month-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.month-heading h2 small {
  font-size: 12px;
  margin-left: 7px;
  font-weight: 400;
  color: var(--muted);
}
.month-heading input {
  font-size: 13px;
  padding: 6px;
  border: 0;
  max-width: 155px;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.toolbar-actions button {
  font-size: 11px;
  padding: 8px 12px;
}
.table-tools {
  border-top: 1px solid var(--line);
  padding: 10px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fcfdfb;
  gap: 12px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.legend-item {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.table-hint {
  font-size: 9px;
  color: #96a090;
}
.grid-scroll {
  overflow: auto;
  max-height: 570px;
  border-top: 1px solid var(--line);
}
.schedule-grid {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 11px;
  table-layout: fixed;
}
.schedule-grid th,
.schedule-grid td {
  border-right: 1px solid #edf0e9;
  border-bottom: 1px solid #edf0e9;
  text-align: center;
  min-width: 49px;
  width: 49px;
  padding: 0;
  height: 49px;
}
.schedule-grid thead th {
  background: #fbfcf9;
  position: sticky;
  top: 0;
  z-index: 2;
  height: 53px;
  font-weight: 500;
}
.schedule-grid thead small {
  font-size: 9px;
  color: #949c8e;
  display: block;
}
.schedule-grid .sat {
  color: #6e8f9f;
  background: #f6f9f9;
}
.schedule-grid .sun {
  color: #b78379;
  background: #fcf8f5;
}
.schedule-grid th.person {
  min-width: 152px;
  width: 152px;
  text-align: left;
  padding: 10px 14px;
  position: sticky;
  left: 0;
  background: white;
  z-index: 3;
  box-shadow: 2px 0 3px #223b1c03;
}
.schedule-grid thead th.person {
  z-index: 4;
  background: #fbfcf9;
  font-size: 10px;
  color: var(--muted);
}
.person-name {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 600;
}
.person-sub {
  font-size: 9px;
  color: #9ba28f;
  font-weight: 400;
  display: block;
  margin-top: 1px;
}
.cell-button {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 500;
  font-size: 10px;
}
.cell-button:hover {
  background: #f1f5ea;
}
.cell-button.selected {
  outline: 2px solid #719672;
  outline-offset: -2px;
  background: #f0f5e9;
}
.shift-chip {
  display: inline-block;
  max-width: 100%;
  min-width: 31px;
  padding: 3px 4px;
  border-radius: 4px;
  line-height: 1.5;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4b6551;
}
.shift-chip.fixed:after {
  content: ' •';
  font-size: 9px;
}
.cell-off {
  color: #b2b7ab;
  font-size: 10px;
}
.warning-dot {
  position: absolute;
  right: 3px;
  top: 2px;
  color: var(--danger);
  font-size: 10px;
}
.table-summary {
  font-size: 9px;
  background: #fafbf7;
  color: #91a084;
}
.table-summary .short {
  color: #aa7840;
  background: #fdf6e8;
}
.panel-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  font-size: 10px;
  color: var(--muted);
}
.below-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.insight-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
}
.insight-card h3 {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}
.insight-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
.insight-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 11px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f2ed;
}
.insight-row:last-child {
  border-bottom: 0;
}
.insight-icon {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fbf1de;
  border-radius: 50%;
  color: #b28a4f;
  flex-shrink: 0;
}
.workspace-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 35px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #9aa28f;
}
.workspace-footer > span:first-child {
  letter-spacing: 0.17em;
  font-size: 8px;
}
.workspace-footer a {
  margin-left: auto;
}
.empty-state {
  padding: 55px 25px;
  text-align: center;
  background: white;
  border: 1px dashed #d9e2d4;
  border-radius: 10px;
  color: var(--muted);
}
.empty-state h2 {
  color: var(--ink);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 12px;
}
.data-table th {
  text-align: left;
  background: #f5f7f0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.data-table td,
.data-table th {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.data-table button {
  font-size: 11px;
  padding: 6px 10px;
}
.section-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}
.section-top h2 {
  margin: 0;
  font-size: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.checkboxes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.checkboxes label {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 11px;
  gap: 5px;
  margin: 0;
  font-weight: 400;
}
.list-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.list-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.list-card h3 {
  margin-bottom: 6px;
}
.list-card .meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 17px;
}
.list-card button {
  font-size: 11px;
  padding: 6px 13px;
}
.role-pill {
  font-size: 10px;
  padding: 3px 7px;
  background: #eef1e7;
  border-radius: 5px;
  display: inline-block;
  margin-right: 5px;
}
.request-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.request-day {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.request-day label {
  font-size: 11px;
}
.request-day select {
  font-size: 10px;
  width: 100%;
  padding: 7px 3px;
}
.request-day b {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
dialog {
  border: 1px solid #e5e9df;
  border-radius: 14px;
  padding: 25px;
  width: min(650px, calc(100% - 30px));
  max-height: 90vh;
  box-shadow: 0 30px 100px #18332325;
  color: var(--ink);
}
dialog::backdrop {
  background: #12221955;
  backdrop-filter: blur(3px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.dialog-top h2 {
  margin: 0;
  font-size: 20px;
}
dialog p {
  font-size: 13px;
}
dialog textarea {
  width: 100%;
  min-height: 100px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 25px #0002;
  z-index: 100;
  font-size: 12px;
  transition: transform 0.2s;
  max-width: 90vw;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
#busy:not([hidden]) {
  position: fixed;
  inset: 0;
  background: #ffffffe0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 90;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #dce5d5;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 42% 58%;
}
.auth-aside {
  background: #254c3a;
  color: #eef2e8;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside h1 {
  font-size: 43px;
  line-height: 1.8;
  font-weight: 500;
}
.auth-aside .eyebrow {
  color: #adbfa6;
}
.auth-aside p {
  font-size: 14px;
  color: #bfcdba;
  line-height: 2;
}
.auth-aside > span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #92aa92;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card h2 {
  font-size: 27px;
  margin-bottom: 15px;
}
.auth-card form {
  margin-top: 28px;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 50px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 22px;
  color: var(--muted);
}
.narrow {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 25px;
}
.narrow > .brand {
  margin-bottom: 40px;
}
.prose h2 {
  margin-top: 32px;
}
.prose p,
.prose li {
  font-size: 14px;
  line-height: 2;
}
.access-header {
  padding: 25px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.access-main {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}
.day-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  background: white;
  margin: 8px 0;
}
.day-card strong {
  font-size: 13px;
}
.access-main .request-days {
  margin-top: 20px;
}
.selection-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.selection-tools button {
  font-size: 11px;
  padding: 6px 11px;
}
.diff-list {
  max-height: 280px;
  overflow: auto;
  font-size: 12px;
}
.diff-list > div {
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1600px) {
  #main-content {
    padding: 40px 50px;
  }
  .workspace-top {
    padding: 0 50px;
  }
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 26px;
  }
  .stats {
    gap: 20px;
  }
}
@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 14px;
  }
  .sidebar .brand {
    font-size: 15px;
  }
  .sidebar .brand img {
    width: 27px;
  }
  #main-content {
    padding: 25px 22px;
  }
  .workspace-top {
    padding: 0 22px;
  }
  .demo-banner {
    padding: 9px 22px;
  }
  .stat {
    padding: 14px;
  }
  .table-hint {
    display: none;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero {
    gap: 35px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 13px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .sidebar .brand {
    font-size: 17px;
  }
  .org-box,
  .sidebar-bottom {
    display: none;
  }
  .side-nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .side-nav button {
    padding: 8px 11px;
    font-size: 11px;
    gap: 6px;
  }
  .side-nav button > span:first-child {
    font-size: 15px;
    width: auto;
  }
  .workspace-top {
    height: 55px;
  }
  .demo-banner {
    font-size: 9px;
    padding: 9px 18px;
  }
  .demo-banner span {
    max-width: 75%;
  }
  #main-content {
    padding: 23px 16px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading .muted {
    font-size: 10px;
    max-width: 210px;
  }
  .heading-actions {
    gap: 6px;
  }
  .heading-actions button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 17px;
  }
  .stat {
    min-height: 95px;
  }
  .stat-value {
    font-size: 27px;
  }
  .schedule-toolbar {
    padding: 15px 12px;
    flex-wrap: wrap;
  }
  .table-tools {
    padding: 9px 12px;
  }
  .legend {
    gap: 10px;
    font-size: 9px;
  }
  .schedule-grid th.person {
    min-width: 115px;
    width: 115px;
    padding: 8px;
  }
  .person-name {
    font-size: 10px;
  }
  .below-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .workspace-footer {
    padding: 15px 18px;
  }
  .workspace-footer > span:nth-child(2) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0;
    gap: 15px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .hero-visual {
    max-width: 480px;
    margin: 10px auto 30px;
    width: 100%;
  }
  .public-nav {
    padding: 20px;
  }
  .public-nav .brand {
    font-size: 17px;
  }
  .brand-en {
    display: none;
  }
  .public-nav nav {
    gap: 12px;
  }
  .public-nav nav > a:not(.button) {
    display: none;
  }
  .public-nav .button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .landing {
    padding: 0 25px;
  }
  .feature-strip {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 0;
  }
  .closing {
    padding: 55px 0;
  }
  .closing h2 {
    font-size: 21px;
  }
  .public-footer {
    flex-wrap: wrap;
    padding: 22px;
  }
  .public-footer nav {
    margin-left: 0;
    gap: 18px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 20px;
    display: block;
  }
  .auth-aside > div,
  .auth-aside > span {
    display: none;
  }
  .auth-main {
    padding: 35px 25px;
  }
  .back-link {
    margin-bottom: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .request-days {
    grid-template-columns: repeat(3, 1fr);
  }
  .table-wrapper {
    overflow: auto;
  }
  .section-card {
    padding: 17px;
  }
  .section-top {
    align-items: flex-start;
  }
  .section-top h2 {
    font-size: 17px;
  }
  .toolbar-actions {
    flex-wrap: wrap;
  }
  .narrow {
    margin: 35px auto;
  }
  .top-right {
    font-size: 9px;
    gap: 10px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .sidebar,
  .workspace-top,
  .demo-banner,
  .heading-actions,
  .toolbar-actions,
  .workspace-footer,
  .below-grid,
  .table-tools {
    display: none;
  }
  .app-shell {
    display: block;
  }
  #main-content {
    padding: 0;
  }
  .grid-scroll {
    max-height: none;
    overflow: visible;
  }
  .schedule-grid {
    font-size: 7px;
  }
  .schedule-grid th.person {
    position: static;
  }
  .schedule-grid th,
  .schedule-grid td {
    min-width: 20px;
    width: auto;
  }
  .schedule-grid .cell-button {
    min-height: 28px;
  }
  .schedule-panel {
    border: 0;
    box-shadow: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#toast {
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
}
.sidebar,
.side-nav,
.section-card,
.insight-card {
  min-width: 0;
}
.legend {
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-nav {
    max-width: 100%;
  }
  .side-nav button {
    flex-shrink: 0;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading > div:first-child {
    min-width: 0;
  }
  .month-heading {
    gap: 5px;
  }
  .month-heading .badge {
    font-size: 9px;
  }
  .request-day {
    min-width: 0;
  }
  .demo-banner {
    align-items: flex-start;
  }
  .heading-actions {
    margin-top: 3px;
  }
  .stats {
    margin-top: 20px;
  }
}
[hidden] {
  display: none !important;
}
