:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-soft: #fbfbf8;
  --ink: #1b2a1c;
  --muted: #758076;
  --muted-strong: #566259;
  --line: #e5e8df;
  --line-strong: #d5dbcf;
  --green: #3e7838;
  --green-dark: #2e612d;
  --green-soft: #eaf3e7;
  --stone: #f0f1ee;
  --saffron: #bd7617;
  --saffron-soft: #fff4df;
  --danger: #ad4337;
  --shadow-soft: 0 12px 30px rgba(38, 58, 40, 0.06);
  --shadow-card: 0 18px 50px rgba(38, 58, 40, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px rgba(62, 120, 56, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: none; box-shadow: var(--focus); }

.site-shell { min-height: 100vh; }

.topbar {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--green);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.quiet-link, .button-quiet {
  color: var(--muted-strong);
  font-size: 13px;
}

.quiet-link:hover, .button-quiet:hover { color: var(--green-dark); }

.public-main {
  width: min(620px, calc(100% - 32px));
  margin: 54px auto 90px;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.name-panel { padding: clamp(28px, 7vw, 56px); }

.intro-copy h1, .plan-header h1, .admin-topbar h1, .login-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.intro-copy p, .login-card > p:not(.eyebrow) {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.name-form { margin-top: 38px; }

label {
  display: block;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.input-with-action {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

input, select {
  min-height: 46px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--ink);
  background: #fff;
}

input::placeholder { color: #a2aba1; }
input:focus, select:focus { border-color: var(--green); box-shadow: var(--focus); }

.input-with-action input { min-width: 0; }

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); border-color: #b8cbb0; background: #f6faf4; }
.button-secondary:hover { border-color: var(--green); background: var(--green-soft); }
.button-quiet { min-height: 36px; padding: 0 10px; border-color: transparent; background: transparent; }
.button-danger { color: var(--danger); border-color: #e8c5bf; background: #fffafa; }
.button-danger:hover { background: #fff0ed; }
.full-width { width: 100%; }

.form-note, .field-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.plan-panel[hidden], .admin-shell[hidden], .admin-login[hidden] { display: none; }
.plan-panel { display: grid; gap: 18px; }

.plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.plan-person { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.plan-person strong { color: var(--ink); font-weight: 750; }

.deadline-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #f1d9af;
  border-radius: var(--radius-md);
  color: #9b6215;
  background: var(--saffron-soft);
  font-size: 13px;
}

.deadline-note strong { font-weight: 800; }
.deadline-icon { font-size: 18px; line-height: 1; }

.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 2px 0;
}

.save-status { color: var(--muted); font-size: 13px; }
.save-status.is-dirty { color: var(--saffron); font-weight: 700; }
.save-status.is-saved { color: var(--green-dark); font-weight: 700; }

.day-list { display: grid; gap: 10px; }

.day-row {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 4px 15px rgba(38, 58, 40, 0.025);
}

.day-row.is-locked { border-color: #e2e5df; background: #f1f2ef; }
.day-row.is-locked .day-label,
.day-row.is-locked .day-status,
.day-row.is-locked .day-cutoff,
.day-row.is-locked .default-hint { color: #98a099; }
.day-row.is-locked .choice-button,
.day-row.is-locked .choice-button.is-active.eat,
.day-row.is-locked .choice-button.is-active.no { border-color: #dfe3de; color: #8f9990; background: #e6e8e5; }
.day-row.is-locked .quantity-control { opacity: 0.55; }

.day-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.day-label { color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.day-cutoff { color: var(--muted); font-size: 12px; }
.day-status { color: var(--muted); font-size: 12px; }
.day-status.is-selected { color: var(--green-dark); font-weight: 700; }
.day-status.is-locked { color: var(--saffron); }

.day-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.choice-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--stone);
  font-size: 14px;
  font-weight: 750;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.choice-button:hover { border-color: #c5d1c1; background: #f7faf6; }
.choice-button.is-active.eat { border-color: var(--green); color: #fff; background: var(--green); }
.choice-button.is-active.no { border-color: #afb9b0; color: var(--muted-strong); background: #dfe4df; }
.choice-button:disabled { opacity: 0.6; }

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 11px;
}

.quantity-control[hidden] { display: none; }
.quantity-control span { color: var(--muted); font-size: 12px; }
.quantity-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--green-dark);
  background: #fff;
  font-size: 20px;
  line-height: 1;
}
.quantity-button:hover { background: var(--green-soft); }
.quantity-input { width: 58px; min-height: 34px; padding: 0 8px; text-align: center; }

.default-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.week-overview { padding: 18px 18px 17px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 19px; letter-spacing: -0.03em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.overview-count { color: var(--green-dark); font-size: 13px; font-weight: 800; }

.overview-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.overview-day { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.overview-day strong { font-size: 13px; font-weight: 700; }
.overview-dot { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); background: #fff; font-size: 13px; }
.overview-dot.is-eat { border-color: var(--green); color: #fff; background: var(--green); }
.overview-dot.is-no { background: var(--stone); }

.history-panel { padding: 18px; }
.history-list { display: grid; max-height: 430px; margin-top: 14px; overflow-y: auto; border-top: 1px solid var(--line); }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.history-row > div { display: grid; gap: 3px; }
.history-row strong { color: var(--ink); font-size: 13px; }
.history-row div span { color: var(--muted); font-size: 11px; }
.history-status { font-size: 12px; font-weight: 750; white-space: nowrap; }
.history-status.is-eat { color: var(--green-dark); }
.history-status.is-no { color: var(--muted-strong); }
.history-status.is-default { color: var(--muted); }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 13px;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { color: var(--danger); border-color: #e7c0b9; background: #fff8f7; }

/* Admin */
.admin-page { background: var(--bg); }
.admin-login { width: min(440px, calc(100% - 32px)); margin: 0 auto; padding: 78px 0 60px; }
.login-brand { margin-bottom: 24px; }
.login-card { padding: 34px; }
.login-card form { margin-top: 28px; }
.login-card form input { margin-top: 8px; }
.login-card form button { margin-top: 14px; }

.admin-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.admin-rail { display: flex; flex-direction: column; gap: 36px; padding: 28px 20px; border-right: 1px solid var(--line); background: #f2f3ed; }
.rail-nav { display: grid; gap: 6px; }
.rail-link { padding: 11px 12px; border-radius: 10px; color: var(--muted-strong); font-size: 14px; font-weight: 700; }
.rail-link:hover, .rail-link.active { color: var(--green-dark); background: #e6eee2; }
.rail-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; color: var(--muted); font-size: 11px; line-height: 1.45; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.admin-main { width: min(1280px, 100%); padding: 36px clamp(20px, 4vw, 58px) 80px; }
.admin-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.admin-topbar h1 { font-size: clamp(28px, 4vw, 36px); }
.admin-section { scroll-margin-top: 20px; margin-bottom: 26px; }
.summary-section { padding: 4px 0; }
.summary-actions { display: flex; align-items: flex-end; gap: 10px; }
.date-control { min-width: 164px; }
.date-control input { display: block; min-height: 40px; margin-top: 5px; padding: 0 10px; font-size: 13px; }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 14px; }
.metric-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 4px; color: var(--ink); font-size: 27px; font-weight: 800; letter-spacing: -0.04em; }
.metric-card.primary { border-color: #b9cdb2; background: #f5faf3; }
.metric-card.primary .metric-value { color: var(--green-dark); }
.metric-card.attention { border-color: #f1d9af; background: var(--saffron-soft); }
.metric-card.attention .metric-value { color: var(--saffron); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.summary-table-wrap { box-shadow: var(--shadow-soft); }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 750; }
.data-table td { color: var(--ink); font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .person-cell { font-size: 14px; font-weight: 750; }
.status-text { font-size: 12px; font-weight: 700; }
.status-eat { color: var(--green-dark); }
.status-no { color: var(--muted-strong); }
.status-default { color: var(--muted); }
.status-error { color: var(--danger); }
.admin-order-control { display: flex; align-items: center; gap: 7px; }
.admin-order-control input { width: 70px; min-height: 36px; padding: 0 8px; font-size: 13px; }
.mini-button { min-height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--green-dark); background: #fff; font-size: 12px; font-weight: 750; }
.mini-button:hover { background: var(--green-soft); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.admin-card { padding: 22px; }
.inline-form { display: flex; gap: 8px; margin: 18px 0 14px; }
.inline-form input { min-width: 0; }
.roster-list { display: grid; gap: 7px; }
.roster-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.roster-row:last-child { border-bottom: 0; }
.roster-name-input { min-height: 38px; padding: 0 10px; font-size: 13px; }
.roster-active { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.roster-active input { width: 16px; min-height: 16px; accent-color: var(--green); }
.workday-form { display: grid; grid-template-columns: 1fr 0.8fr; gap: 12px; margin-top: 18px; }
.workday-form input, .workday-form select { display: block; margin-top: 5px; min-height: 40px; font-size: 13px; }
.wide-field { grid-column: 1 / -1; }
.workday-form button { justify-self: start; }
.workday-card { padding: 22px; }
.calendar-range { color: var(--muted); font-size: 12px; white-space: nowrap; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--line-strong); }
.legend-dot.is-workday { background: var(--green); }
.legend-dot.is-closed { background: #aeb7ae; }
.legend-dot.is-override { background: var(--saffron); }
.workday-calendar { margin-top: 12px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays { margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 750; text-align: center; }
.calendar-day { position: relative; min-height: 78px; padding: 9px 7px 7px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; text-align: left; transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease; }
.calendar-day:hover { border-color: #a9c3a2; box-shadow: var(--shadow-card); }
.calendar-day.is-workday { border-color: #c8dcc1; background: #f7fbf5; }
.calendar-day.is-closed { color: var(--muted); background: #f2f3f0; }
.calendar-day.is-override { box-shadow: inset 0 3px 0 var(--saffron); }
.calendar-day.is-selected { border-color: var(--green); box-shadow: 0 0 0 2px rgba(74, 132, 70, 0.16); }
.calendar-day.is-placeholder { min-height: 0; border-color: transparent; background: transparent; pointer-events: none; }
.calendar-day-number { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.04em; }
.calendar-day-weekday { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.calendar-day-status { display: block; margin-top: 7px; color: var(--green-dark); font-size: 10px; font-weight: 750; }
.calendar-day.is-closed .calendar-day-status { color: var(--muted-strong); }
.calendar-day-note { display: block; max-width: 100%; margin-top: 4px; overflow: hidden; color: var(--saffron); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.workday-editor { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.editor-heading h3 { margin: 0; color: var(--ink); font-size: 20px; letter-spacing: -0.03em; }
.workday-choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 8px; margin-bottom: 13px; }
.workday-choice { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted-strong); background: #fff; font-size: 13px; font-weight: 750; }
.workday-choice:hover { border-color: #adc7a7; background: var(--green-soft); }
.workday-choice.is-active[data-workday-choice="1"] { border-color: var(--green); color: #fff; background: var(--green); }
.workday-choice.is-active[data-workday-choice="0"] { border-color: #aeb8af; color: var(--muted-strong); background: #dfe4df; }
.mail-settings-form { display: grid; gap: 12px; margin-top: 18px; }
.mail-settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-settings-actions button { justify-self: start; }
.mail-test-state { margin-top: -2px; }
.mini-button:disabled { cursor: not-allowed; opacity: 0.5; }
.override-list { display: grid; gap: 7px; margin-top: 19px; }
.override-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.override-row:last-child { border-bottom: 0; }
.override-row strong { font-weight: 750; }
.override-row span { color: var(--muted); text-align: right; }
.mail-section { padding: 22px; }
.mail-config-state { color: var(--muted); font-size: 12px; }
.compact-table { min-width: 740px; }
.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; }

@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-rail { display: block; padding: 17px 20px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-rail .brand { margin-bottom: 13px; }
  .rail-nav { display: flex; gap: 4px; overflow-x: auto; }
  .rail-link { flex: 0 0 auto; padding: 8px 10px; font-size: 12px; }
  .rail-footer { display: none; }
  .admin-main { padding-top: 26px; }
}

@media (max-width: 640px) {
  .topbar { width: calc(100% - 32px); min-height: 66px; }
  .public-main { width: calc(100% - 24px); margin-top: 20px; }
  .name-panel { padding: 27px 20px 25px; }
  .input-with-action { display: grid; grid-template-columns: 1fr; }
  .input-with-action .button { width: 100%; }
  .plan-header { align-items: center; }
  .plan-header h1 { font-size: 30px; }
  .plan-header .button { padding-inline: 4px; }
  .day-row { padding: 14px; }
  .day-row-head { align-items: flex-start; }
  .day-cutoff { display: none; }
  .day-controls { gap: 7px; }
  .week-overview { padding-inline: 14px; }
  .history-panel { padding: 15px 14px; }
  .history-list { max-height: 360px; }
  .overview-dots { gap: 4px; }
  .overview-day { font-size: 10px; }
  .overview-day strong { font-size: 12px; }
  .admin-main { padding: 25px 12px 60px; }
  .admin-topbar { margin-bottom: 25px; }
  .admin-topbar h1 { font-size: 29px; }
  .summary-actions { display: grid; grid-template-columns: 1fr; align-items: stretch; width: 140px; }
  .summary-actions .date-control { min-width: 0; }
  .metric-row { gap: 7px; }
  .metric-card { padding: 13px 10px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 22px; }
  .summary-table-wrap { overflow: visible; }
  .summary-table-wrap .data-table { min-width: 0; }
  .summary-table-wrap .data-table thead { display: none; }
  .summary-table-wrap .data-table,
  .summary-table-wrap .data-table tbody,
  .summary-table-wrap .data-table tr,
  .summary-table-wrap .data-table td { display: block; width: 100%; }
  .summary-table-wrap .data-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .summary-table-wrap .data-table tr:last-child { border-bottom: 0; }
  .summary-table-wrap .data-table td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 5px 0; border: 0; text-align: right; }
  .summary-table-wrap .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 700; text-align: left; }
  .summary-table-wrap .data-table td.person-cell { padding-top: 3px; font-size: 15px; text-align: left; }
  .summary-table-wrap .data-table td.person-cell::before { display: none; }
  .summary-table-wrap .admin-order-control { margin-left: auto; }
  .admin-grid { grid-template-columns: 1fr; gap: 18px; }
  .admin-card, .mail-section { padding: 17px 14px; }
  .workday-card { padding: 17px 14px; }
  .workday-form { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .workday-form button { width: 100%; }
  .calendar-weekdays, .calendar-grid { gap: 4px; }
  .calendar-day { min-height: 67px; padding: 7px 4px 6px; border-radius: 9px; text-align: center; }
  .calendar-day-number { font-size: 17px; }
  .calendar-day-weekday { font-size: 9px; }
  .calendar-day-status { margin-top: 5px; font-size: 9px; }
  .calendar-day-note { display: none; }
  .calendar-legend { gap: 9px; font-size: 11px; }
  .editor-heading { gap: 10px; }
  .editor-heading h3 { font-size: 18px; }
  .workday-choice-group { grid-template-columns: 1fr 1fr; }
  .mail-settings-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mail-settings-actions button { width: 100%; }
  .roster-row { grid-template-columns: minmax(0, 1fr) auto; }
  .roster-row .mini-button { grid-column: 2; grid-row: 1; }
  .roster-active { grid-column: 1; grid-row: 2; }
}

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