:root {
  --ink: #343a31;
  --muted: #646b5d;
  --olive: #4b5145;
  --on-olive: #fff;
  --gold: #a78b52;
  --ivory: #f5f2eb;
  --line: #e5e3da;
  --surface: #fffdf8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font:
    14px/1.55 Arial,
    Helvetica,
    sans-serif;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    400 clamp(32px, 4vw, 48px)/1.15 Georgia,
    serif;
  letter-spacing: -1.3px;
}
h2 {
  font:
    400 24px Georgia,
    serif;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 17px;
}
p {
  color: var(--muted);
}
small,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffefa;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: #ebe9e1;
}
button:disabled {
  opacity: 0.5;
}
.primary {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--on-olive);
}
.primary:hover {
  background: color-mix(in srgb, var(--olive), #000 12%);
}
a {
  color: var(--olive);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d5d7cc;
  border-radius: 10px;
  background: #fffdfa;
  padding: 10px 12px;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--olive);
}
input[type='color'] {
  padding: 4px;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  color: #4a5046;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  flex: none;
  margin-top: 2px;
}
.stack {
  display: grid;
  gap: 15px;
}
.row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.wrap {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.hidden {
  display: none !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font:
    23px Georgia,
    serif;
  text-decoration: none;
}
.brand small {
  display: block;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.brand-symbol {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #bdc1ad;
  border-radius: 50%;
  color: var(--olive);
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-card {
  width: min(490px, 100%);
  margin: auto;
  padding: 40px 28px;
}
.login-card .brand {
  margin-bottom: 65px;
}
.login-card h1 {
  margin-bottom: 11px;
}
.login-card p {
  margin-bottom: 25px;
}
.topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.language-switch {
  white-space: nowrap;
}
.login-art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 7vw;
  background: linear-gradient(145deg, #d5d6c9, #a5ad97 60%, #697662);
  color: #fff;
}
.login-art h2 {
  font:
    400 42px Georgia,
    serif;
  max-width: 380px;
}
.login-art p {
  color: #f4f3eb;
  max-width: 330px;
}
.art-mark {
  font-size: 160px;
  opacity: 0.55;
  margin: auto;
}
.text-button {
  border: 0;
  background: none;
  padding: 5px 0;
  color: var(--muted);
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 32px 22px 18px;
  background: #f9f7f1;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.nav-caption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #879080;
  margin: 38px 10px 11px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  text-align: left;
}
.nav button.selected {
  background: #e9e9df;
  color: var(--olive);
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: grid;
  gap: 10px;
}
.sidebar-bottom button {
  font-size: 12px;
}
.main {
  margin-left: 250px;
  width: calc(100% - 250px);
  padding: 32px clamp(22px, 5vw, 76px) 80px;
}
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 31px;
}
.app-header h1 {
  margin: 2px 0 0;
}
.header-actions select {
  min-width: 110px;
}
.message:empty {
  display: none;
}
.message {
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.message.success,
.notice {
  background: #e6efe7;
  color: #2d633e;
}
.message.error,
.error {
  background: #fce9e5;
  color: #92372c;
}
.hero {
  display: flex;
  justify-content: space-between;
  min-height: 205px;
  background: linear-gradient(120deg, #eef0e8, #d9dfd3);
  border-radius: 23px;
  padding: 32px 40px;
  margin-bottom: 25px;
  overflow: hidden;
}
.hero h2 {
  font:
    400 clamp(28px, 4vw, 40px) Georgia,
    serif;
  margin: 8px 0;
}
.hero p {
  max-width: 350px;
}
.hero-symbol {
  font-size: 135px;
  line-height: 1;
  color: #85917d;
  opacity: 0.6;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.card {
  padding: 25px;
  border: 1px solid rgba(220, 219, 208, 0.9);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 36px rgba(46, 49, 40, 0.045);
  margin-bottom: 20px;
}
.card h2 {
  margin-bottom: 10px;
}
.card .card {
  box-shadow: none;
  background: #f9f8f3;
  padding: 16px;
}
.section-head {
  display: flex;
  justify-content: space-between;
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
}
.calendar-head button {
  border: 0;
  font-size: 24px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.weekday {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 7px;
}
.day {
  min-height: 42px;
  padding: 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.day:hover {
  background: #e8e8dd;
}
.day.chosen {
  background: var(--olive);
  color: var(--on-olive);
}
.day.busy:not(.chosen):after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  margin: 24px 0 0 -8px;
}
.selected-day {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.selected-day p {
  margin: 5px 0;
}
.cards {
  display: grid;
  gap: 14px;
}
.cards .card {
  margin: 0;
}
.booking-card h3 {
  margin: 4px 0;
}
.badge {
  display: inline-block;
  border-radius: 100px;
  padding: 5px 10px;
  font-size: 11px;
  background: #ecebe6;
  white-space: nowrap;
}
.badge.approved {
  background: #e2eee4;
  color: #306a42;
}
.badge.pending {
  background: #f5ebd4;
  color: #806027;
}
.badge.rejected,
.badge.cancelled_by_admin,
.badge.cancelled_by_resident {
  background: #f4e5e2;
  color: #903f37;
}
.empty {
  text-align: center;
  padding: 26px;
}
.empty span {
  font-size: 35px;
  color: var(--gold);
}
.preline {
  white-space: pre-line;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
td.actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.list-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
}
.list-item button {
  justify-self: start;
}
.credential {
  font-family: monospace;
  font-size: 17px;
  word-break: break-all;
  color: var(--ink);
  background: #e8ede3;
  padding: 15px;
  border-radius: 9px;
}
.policy-day {
  display: grid;
  grid-template-columns: 105px 1fr 1fr auto;
  align-items: center;
  gap: 8px;
}
.policy-day label {
  font-size: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  .app-shell {
    display: block;
  }
  .main {
    margin: 0;
    width: 100%;
    padding: 25px 18px 60px;
  }
  .nav {
    display: flex;
    overflow: auto;
  }
  .nav button {
    white-space: nowrap;
    width: auto;
  }
  .sidebar-bottom {
    display: none;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
}
@media (max-width: 540px) {
  .sidebar {
    padding: 18px;
  }
  .app-header h1 {
    font-size: 32px;
  }
  .hero {
    padding: 25px;
  }
  .hero-symbol {
    display: none;
  }
  .card {
    padding: 19px;
  }
  .policy-day {
    grid-template-columns: 1fr 1fr;
  }
  .policy-day > span {
    grid-column: 1/-1;
  }
  .login-card {
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.brand-logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
  border-radius: 9px;
}
.room-update-form {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.template-editor {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--background) 45%, white);
}
.template-editor summary {
  cursor: pointer;
  font-weight: 700;
}
.template-editor[open] summary {
  margin-bottom: 12px;
}
.template-editor code {
  overflow-wrap: anywhere;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 16px;
  margin-top: 8px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
button.danger {
  color: #8b2d25;
  border-color: #d8a29d;
}
.badge.green {
  background: #e4f2e7;
  color: #27643a;
}
.badge.orange {
  background: #fff0d5;
  color: #8b4d00;
}
.badge.red {
  background: #f8dddd;
  color: #8b2d25;
}
.management-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(430px, 1.35fr);
  gap: 22px;
  align-items: start;
}
.management-index,
.management-detail .card {
  margin: 0;
}
.management-detail {
  position: sticky;
  top: 24px;
}
.management-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.management-row {
  width: 100%;
  min-height: 70px;
  padding: 13px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  justify-content: space-between;
}
.management-row:hover,
.management-row.selected {
  background: #f1f0e9;
}
.management-row.selected {
  box-shadow: inset 3px 0 var(--olive);
}
.management-row > span:first-child,
.linked-item > span:first-child {
  display: grid;
  gap: 3px;
}
.management-tools {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.management-tools > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--olive);
  padding: 6px 0;
}
.management-tools[open] > summary {
  margin-bottom: 18px;
}
.tool-panels {
  margin-top: 8px;
}
.narrow-form {
  max-width: 680px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
}
.detail-heading h2 {
  font-size: 34px;
  margin: 4px 0;
}
.detail-heading p {
  margin: 0;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.detail-section h3 {
  margin-bottom: 12px;
}
.section-note {
  margin-top: -6px;
  font-size: 12px;
}
.linked-list,
.reservation-list {
  display: grid;
  gap: 8px;
}
.linked-item,
.reservation-row {
  width: 100%;
  min-height: 60px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}
.reservation-row strong,
.reservation-row small {
  display: block;
}
.reservation-row small {
  margin-top: 3px;
}
.role-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #eeede7;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.muted-panel {
  background: #f3f2ec;
  border-radius: 10px;
  padding: 13px;
  margin: 0;
}
.empty.compact {
  padding: 18px;
}
@media (max-width: 1050px) {
  .management-layout {
    grid-template-columns: 1fr;
  }
  .management-detail {
    position: static;
  }
}

/* 2026 interface refresh: a calm workspace with clear, rounded actions. */
:root {
  --line: #dce5e9;
  --surface: #ffffff;
  --muted: #64747d;
  --ink: #213139;
  --panel: #eff5f8;
  --soft-panel: #f6f9fb;
}
body {
  background: #fff;
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
h1, h2, h3, .brand, .hero h2, .login-art h2 {
  font-family: inherit;
  letter-spacing: -0.035em;
}
h1 { font-size: clamp(30px, 3vw, 40px); font-weight: 720; }
h2 { font-size: 22px; font-weight: 710; }
h3 { font-size: 17px; font-weight: 700; }
p { color: var(--muted); }
small, .eyebrow { color: var(--muted); font-size: 12px; }
button, .button, input, select, textarea { font: inherit; }
button, .button {
  min-height: 42px;
  border-radius: 12px;
  padding: 9px 15px;
  border-color: var(--line);
  background: #fff;
  font-weight: 620;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
button:hover, .button:hover { background: #eef3f6; border-color: #c7d5dc; }
button:active, .button:active { transform: translateY(1px); }
.primary { background: var(--olive); color: var(--on-olive); border-color: var(--olive); }
.primary:hover { background: color-mix(in srgb, var(--olive) 88%, #000); color: var(--on-olive); }
input, select, textarea {
  background: #fff;
  border-color: #cfdce2;
  border-radius: 12px;
  min-height: 44px;
}
textarea { min-height: 96px; }
label { gap: 7px; color: #33454d; font-size: 13px; }
label.check { font-size: 14px; }
.stack { gap: 16px; }
.app-shell { display: grid; grid-template-columns: 220px minmax(0,1fr); }
.sidebar {
  position: sticky;
  inset: auto;
  top: 0;
  width: auto;
  height: 100vh;
  padding: 26px 16px 20px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.brand { font-size: 20px; font-weight: 740; gap: 11px; padding: 0 10px; }
.brand small { font-size: 10px; letter-spacing: .12em; margin-top: 2px; }
.brand-symbol, .brand-logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  background: var(--soft-panel);
}
.nav { margin-top: 22px; gap: 2px; }
.nav-caption { margin: 24px 11px 7px; color: #819098; }
.nav button { border-radius: 12px; padding: 10px 13px; min-height: 43px; color: #43535b; }
.nav button:hover { background: #f0f5f7; }
.nav button.selected {
  background: color-mix(in srgb, var(--olive) 9%, white);
  box-shadow: inset 3px 0 var(--olive);
  color: var(--olive);
}
.sidebar-bottom { padding: 16px 9px 0; font-size: 13px; }
.sidebar-bottom button { justify-content: flex-start; background: var(--soft-panel); }
.main {
  margin: 14px 14px 14px 0;
  width: auto;
  min-width: 0;
  min-height: calc(100vh - 28px);
  padding: clamp(24px, 3vw, 45px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--ivory) 30%, #edf4f8);
}
.main-inner { max-width: 1550px; margin: 0 auto; }
.app-header { margin-bottom: 28px; align-items: center; gap: 18px; }
.app-header small { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.app-header h1 { margin-top: 6px; }
.header-actions select { background: #fff; width: auto; min-width: 145px; }
.card {
  border: 1px solid #e1e8eb;
  border-radius: 22px;
  background: #fff;
  padding: clamp(20px, 2.2vw, 30px);
  box-shadow: 0 7px 28px rgba(33, 57, 70, .035);
  margin-bottom: 18px;
}
.card .card { background: var(--soft-panel); border-radius: 16px; }
.card h2 { margin-bottom: 8px; }
.section-head { align-items: start; gap: 16px; margin-bottom: 16px; }
.section-head p { margin: 4px 0 0; }
.message { border-radius: 14px; padding: 13px 16px; }
.message.error, .error { background: #fff0ed; }
.message.success, .notice { background: #edf7f1; }
.hero {
  min-height: 175px;
  border: 1px solid #dbe7e7;
  border-radius: 24px;
  background: linear-gradient(125deg, #f4fafb, #e5eff1);
  padding: clamp(24px, 3vw, 38px);
  margin-bottom: 20px;
}
.hero h2 { font-weight: 740; font-size: clamp(27px, 3vw, 39px); }
.hero-symbol { color: var(--olive); opacity: .2; }
.two-col { gap: 18px; }
.calendar-head button { border-radius: 10px; background: var(--soft-panel); }
.day { border-radius: 12px; }
.day.chosen { background: var(--olive); }
.table-wrap { border: 1px solid var(--line); border-radius: 15px; }
table { background: #fff; }
th { background: #f6f9fa; letter-spacing: .08em; padding: 13px 15px; }
td { padding: 14px 15px; }
tbody tr:hover { background: #f9fbfc; }
td.actions { min-width: 230px; }
td.actions button { min-height: 34px; padding: 5px 9px; font-size: 12px; }
.badge { font-size: 11px; font-weight: 700; padding: 6px 10px; }
.management-layout { grid-template-columns: minmax(310px,.85fr) minmax(420px,1.25fr); gap: 18px; }
.management-detail { top: 16px; }
.management-row { min-height: 74px; padding: 14px 12px; }
.management-row:hover, .management-row.selected { background: #f3f7f9; }
.linked-item, .reservation-row { border-radius: 14px; background: #fff; }
.linked-item:hover { background: #f5f9fb; }
.muted-panel { background: var(--soft-panel); color: var(--muted); }
.workspace-intro { margin-bottom: 24px; }
.workspace-intro p { margin: 0; max-width: 680px; }
.workspace-intro .eyebrow { text-transform: uppercase; font-weight: 750; letter-spacing: .1em; margin-bottom: 7px; }
.admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.admin-tile {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  text-align: left;
  padding: 25px;
  border: 1px solid #d8e4e9;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 7px 25px rgba(33,57,70,.035);
}
.admin-tile:hover { background: #f8fbfc; border-color: #b7cdd7; transform: translateY(-2px); }
.tile-number { color: var(--olive); font-size: 12px; font-weight: 760; letter-spacing: .1em; }
.tile-content { display: grid; gap: 6px; }
.tile-content strong { font-size: clamp(20px, 2vw, 27px); letter-spacing: -.035em; }
.tile-content small { font-size: 13px; }
.tile-footer { display: flex; justify-content: space-between; align-items: end; width: 100%; }
.tile-footer span:first-child { font-size: 32px; font-weight: 750; line-height: 1; }
.tile-footer span:last-child { font-size: 23px; color: var(--olive); }
.dashboard-activity { display: grid; }
.activity-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); }
.activity-row strong, .activity-row small { display: block; }
.activity-row small { margin-top: 2px; }
.action-panel > summary, .room-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}
.action-panel > summary::-webkit-details-marker, .room-panel > summary::-webkit-details-marker { display: none; }
.action-panel > summary strong, .room-panel > summary strong { display: block; font-size: 18px; }
.action-panel > summary small, .room-panel > summary small { display: block; margin-top: 4px; font-weight: 400; }
.action-panel > summary > span:last-child, .room-panel > summary > span:last-child { color: var(--olive); font-size: 24px; }
.action-panel[open] > summary, .room-panel[open] > summary { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.advanced-fields { border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; }
.advanced-fields summary { cursor: pointer; color: var(--olive); font-weight: 700; }
.advanced-fields[open] summary { margin-bottom: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-wide { grid-column: 1 / -1; }
.room-panels { display: grid; gap: 16px; }
.room-panels .card { margin: 0; }
.room-config-grid { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(450px,1.4fr); gap: 28px; }
.room-update-form { border-bottom: 0; padding-bottom: 0; }
.room-policy-form { border-left: 1px solid var(--line); padding-left: 28px; }
.weekly-hours { display: grid; gap: 7px; }
.policy-day {
  display: grid;
  grid-template-columns: 90px minmax(100px,1fr) minmax(100px,1fr) 75px;
  gap: 10px;
  padding: 9px;
  align-items: center;
  background: var(--soft-panel);
  border-radius: 12px;
}
.policy-day label { font-size: 11px; }
.policy-day .check { font-size: 12px; }
.room-rules-layout { display: grid; grid-template-columns: minmax(250px,1fr) minmax(320px,1fr); gap: 24px; }
.room-rules-list .list-item:first-child { border-top: 1px solid var(--line); }
.weekday-picker { display: grid; grid-template-columns: repeat(7,1fr); gap: 8px; }
.weekday-picker .check { align-items: center; justify-content: center; padding: 8px; border-radius: 10px; background: var(--soft-panel); }
.weekday-picker input { margin: 0; }
.room-rules-layout .action-panel { border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.settings-grid { display: grid; grid-template-columns: minmax(400px,1.2fr) minmax(300px,.8fr); gap: 18px; }
.account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.account-grid .card { margin: 0; }
.profile-card { background: linear-gradient(135deg,#fff,#f4f8fa); }
.profile-card h2 { font-size: 28px; margin: 9px 0; }
.color-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.color-grid input { height: 56px; }
#content-room-select { margin-bottom: 18px; }
.login-layout { background: var(--panel); gap: 20px; padding: 20px; }
.login-card { width: min(500px,100%); padding: clamp(30px,5vw,60px); background: #fff; border-radius: 25px; }
.login-art { border-radius: 25px; background: linear-gradient(140deg,#d8e6ed,#acc5d3 60%,#7ca0b3); }
.login-card .brand { padding: 0; }
.login-card h1 { font-weight: 750; }
.text-button { min-height: 36px; }
@media (max-width: 1150px) {
  .room-config-grid, .room-rules-layout { grid-template-columns: 1fr; }
  .room-policy-form { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
}
@media (max-width: 950px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; width: 100%; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { padding: 0 4px; }
  .nav { display: flex; flex-wrap: wrap; overflow: visible; margin-top: 12px; gap: 4px; }
  .nav-caption { display: none; }
  .nav button { flex: none; width: auto; white-space: nowrap; }
  .sidebar-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; margin-top: 10px; padding: 0 4px; }
  .sidebar-bottom button { width: auto; }
  .main { margin: 0; min-height: calc(100vh - 125px); border-radius: 0; padding: 24px 18px 50px; }
  .management-layout { grid-template-columns: 1fr; }
  .management-detail { position: static; }
}
@media (max-width: 680px) {
  .app-header { align-items: flex-start; }
  .app-header h1 { font-size: 28px; }
  .header-actions select { min-width: 112px; }
  .admin-grid, .settings-grid, .account-grid, .form-grid, .two-col { grid-template-columns: 1fr; }
  .admin-tile { min-height: 155px; }
  .form-wide { grid-column: auto; }
  .policy-day { grid-template-columns: 1fr 1fr; }
  .policy-day > span { grid-column: 1 / -1; }
  .weekday-picker { grid-template-columns: repeat(4,1fr); }
  .color-grid { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
  .login-layout { padding: 12px; }
  .login-art { display: none; }
}
