:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --surface-soft: #f4f6f8;
  --navy: #173a5e;
  --navy-deep: #102a43;
  --blue: #1e5f8f;
  --blue-soft: #e9f2f8;
  --green: #157f5b;
  --green-soft: #e6f7f0;
  --amber: #a56008;
  --amber-soft: #fff4db;
  --red: #b42318;
  --red-soft: #feeceb;
  --shadow: 0 18px 50px rgba(16, 42, 67, 0.09);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f8fa;
  font-family:
    "Microsoft YaHei UI",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--navy-deep);
}

button,
input,
select,
textarea {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

code {
  padding: 2px 6px;
  color: var(--navy-deep);
  background: var(--surface-soft);
  border-radius: 5px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h2 {
  letter-spacing: -0.02em;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 231, 236, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--navy-deep);
  border-radius: 11px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 16px;
}

.nav-links a {
  color: #475467;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  place-items: center;
  color: white;
  background: var(--red);
  border-radius: 999px;
  font-size: 10px;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.account-actions form {
  margin: 0;
}

.account-name {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.account-name small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.page-main {
  min-height: calc(100vh - 150px);
}

.site-footer {
  margin-top: 72px;
  color: #667085;
  background: #eef1f4;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding-block: 24px;
  font-size: 13px;
}

.flash-stack {
  position: relative;
  z-index: 10;
  padding-top: 18px;
}

.flash {
  padding: 13px 16px;
  margin-bottom: 10px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 14px;
}

.flash-success {
  color: #086345;
  background: var(--green-soft);
  border-color: #b7e4d3;
}

.flash-danger {
  color: #912018;
  background: var(--red-soft);
  border-color: #fecdc9;
}

.flash-warning {
  color: #8a4b08;
  background: var(--amber-soft);
  border-color: #f7dca8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  color: white;
  background: var(--navy);
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  color: white;
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.button-primary {
  background: var(--navy);
}

.button-ghost {
  color: var(--navy);
  background: white;
  border-color: #cbd5df;
}

.button-ghost:hover {
  color: var(--navy);
  background: var(--surface-soft);
  border-color: #9fb1c1;
}

.button-light {
  color: var(--navy-deep);
  background: white;
}

.button-light:hover {
  color: var(--navy-deep);
  background: #eff7fb;
}

.button-outline-light {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.button-danger {
  background: var(--red);
}

.button-danger:hover {
  background: #8f1d14;
}

.button-small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.button-block {
  width: 100%;
}

.home-overview {
  padding: 34px 0;
  background: white;
  border-bottom: 1px solid var(--line);
}

.home-overview-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-overview-main {
  display: flex;
  align-items: center;
  gap: 32px;
}

.home-overview h1 {
  margin: 0;
  font-size: 30px;
}

.home-summary {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.home-summary strong {
  color: var(--ink);
  font-size: 20px;
}

.home-actions {
  display: flex;
  gap: 10px;
}

.eyebrow {
  display: inline-block;
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

.section {
  padding-top: 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 30px;
}

.section-heading.tight {
  margin-bottom: 16px;
}

.text-link {
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.room-card {
  padding: 10px;
  box-shadow: 0 8px 26px rgba(16, 42, 67, 0.05);
}

.room-visual {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 112px;
  padding: 18px;
  color: white;
  background:
    linear-gradient(180deg, rgba(16, 42, 67, 0.05), rgba(16, 42, 67, 0.64)),
    linear-gradient(135deg, #5f8ea8, #244e6d);
  border-radius: 11px;
}

.room-visual span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.room-visual strong {
  font-size: 16px;
}

.card-body {
  padding: 17px 10px 7px;
}

.card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.card p {
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0;
}

.tag {
  padding: 4px 8px;
  color: #475467;
  background: var(--surface-soft);
  border-radius: 6px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-success {
  color: #086345;
  background: var(--green-soft);
}

.badge-warning {
  color: #8a4b08;
  background: var(--amber-soft);
}

.badge-neutral {
  color: #475467;
  background: #eef2f5;
}

.badge-large {
  padding: 7px 14px;
  font-size: 13px;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 54px;
}

.split-section .panel {
  padding: 24px;
}

.announcement-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.announcement-item:first-child {
  border-top: 0;
}

.announcement-item time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.announcement-item h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.announcement-item p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.schedule-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.schedule-item:first-child {
  border-top: 0;
}

.schedule-date {
  color: var(--blue);
  font-weight: 800;
}

.schedule-item strong,
.schedule-item small {
  display: block;
}

.schedule-item small {
  color: var(--muted);
}

.page-head {
  padding: 62px 0 50px;
  background: linear-gradient(180deg, #eef3f6, #f7f8fa);
}

.page-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
}

.page-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.compact-page-head {
  padding: 46px 0 38px;
}

.page-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.filter-panel,
.form-panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(16, 42, 67, 0.05);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #5f8fb3;
  box-shadow: 0 0 0 3px rgba(30, 95, 143, 0.12);
}

.field select[multiple] {
  min-height: 145px;
}

.field-error {
  color: var(--red);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.checkbox-row,
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 14px;
}

.checkbox-row input,
.checkbox-group input {
  width: 17px;
  height: 17px;
}

.checkbox-group {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 16px;
}

.results-heading h2 {
  margin: 0;
  font-size: 23px;
}

.room-list {
  display: grid;
  gap: 12px;
}

.room-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.room-row-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  height: 96px;
  padding: 12px;
  color: white;
  background: linear-gradient(135deg, #4d7895, #173a5e);
  border-radius: 10px;
}

.room-row-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.room-row-capacity {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2px;
}

.room-row-capacity strong {
  font-size: 31px;
  line-height: 0.9;
}

.room-row-capacity small {
  font-size: 11px;
}

.room-row-main h3 {
  margin-bottom: 4px;
  font-size: 19px;
}

.room-row-main h3 a {
  color: var(--ink);
}

.room-row-main p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.room-row-main .tag-row {
  margin: 10px 0 6px;
}

.room-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.empty-state {
  padding: 54px 24px;
  text-align: center;
  background: white;
  border: 1px dashed #c9d2db;
  border-radius: var(--radius);
}

.empty-state.compact {
  padding: 28px;
}

.empty-state h1,
.empty-state h2 {
  margin: 8px 0 10px;
}

.empty-state p {
  color: var(--muted);
}

.narrow-section {
  padding-top: 90px;
}

.auth-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 80px;
  padding-top: 75px;
}

.auth-section.wide {
  grid-template-columns: 0.65fr 1.35fr;
}

.auth-intro {
  padding-top: 25px;
}

.auth-intro h1 {
  margin: 8px 0 16px;
  font-size: 42px;
}

.auth-intro p {
  color: var(--muted);
}

.demo-account {
  padding: 18px;
  margin-top: 26px;
  background: #eef3f6;
  border-radius: 12px;
}

.demo-account p {
  margin: 6px 0;
  font-size: 13px;
}

.check-list {
  padding-left: 20px;
  color: var(--muted);
}

.check-list li {
  margin-bottom: 9px;
}

.form-footnote {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.room-detail-hero {
  padding: 50px 0;
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(128, 194, 225, 0.25), transparent 28%),
    linear-gradient(135deg, #102a43, #1e5f8f);
}

.room-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 50px;
  align-items: end;
}

.room-detail-hero h1 {
  margin: 8px 0 16px;
  font-size: clamp(38px, 5vw, 60px);
}

.room-detail-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.room-detail-hero .tag {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.back-link {
  display: block;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 700;
}

.light-link {
  color: rgba(255, 255, 255, 0.8);
}

.booking-callout {
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}

.booking-callout > span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.booking-callout > strong {
  display: block;
  margin: 6px 0 18px;
  font-size: 42px;
}

.booking-callout small {
  font-size: 15px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: start;
  gap: 20px;
  padding-top: 40px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 18px;
}

.detail-layout .panel {
  padding: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 0;
}

.info-grid div,
.stack-list div {
  padding: 14px;
  background: var(--surface-soft);
  border-radius: 10px;
}

.info-grid dt,
.stack-list dt {
  color: var(--muted);
  font-size: 12px;
}

.info-grid dd,
.stack-list dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.stack-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.text-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.text-block h3 {
  font-size: 15px;
}

.text-block p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: 0;
}

.timeline-item time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.timeline-item small {
  color: var(--muted);
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
}

.review-score {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #086345;
  background: var(--green-soft);
  border-radius: 12px;
  font-weight: 800;
}

.review-item p {
  margin-bottom: 3px;
}

.review-item small {
  color: var(--muted);
}

.panel.subtle {
  background: #eef3f6;
  border-color: #dfe7ec;
}

.status-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  margin-bottom: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.status-tabs a {
  padding: 8px 14px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-tabs a.active {
  color: white;
  background: var(--navy);
}

.reservation-list {
  display: grid;
  gap: 10px;
}

.reservation-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.reservation-row:hover {
  color: var(--ink);
  border-color: #aabccb;
  box-shadow: 0 8px 26px rgba(16, 42, 67, 0.06);
}

.reservation-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: var(--surface-soft);
  border-radius: 10px;
}

.reservation-date strong {
  font-size: 27px;
  line-height: 1;
}

.reservation-date span {
  color: var(--muted);
  font-size: 11px;
}

.reservation-main h3 {
  margin-bottom: 3px;
  font-size: 17px;
}

.reservation-main p,
.reservation-main small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  padding: 16px;
  border-radius: 10px;
}

.notice-success {
  background: var(--green-soft);
}

.notice-danger {
  background: var(--red-soft);
}

.notice p {
  margin: 5px 0;
}

.notice small {
  color: var(--muted);
}

.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.score-row span {
  padding: 6px 10px;
  background: var(--surface-soft);
  border-radius: 7px;
  font-size: 13px;
}

.stack-actions {
  display: grid;
  gap: 9px;
}

.form-page {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 56px;
  padding-top: 60px;
}

.wide-form-page {
  display: block;
  max-width: 980px;
}

.narrow-form {
  grid-template-columns: 0.8fr 1.2fr;
  max-width: 960px;
}

.form-page-intro {
  padding-top: 20px;
}

.form-page-intro h1 {
  margin: 8px 0 12px;
  font-size: 42px;
}

.form-page-intro p {
  color: var(--muted);
}

.rule-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.rule-summary span {
  padding: 6px 9px;
  color: #475467;
  background: #eef2f5;
  border-radius: 7px;
  font-size: 12px;
}

.wide-form-page .form-page-intro {
  margin-bottom: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.metric-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 35px;
  line-height: 1;
}

.metric-card.highlight {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.metric-card.highlight span,
.metric-card.highlight small,
.metric-card.highlight a {
  color: rgba(255, 255, 255, 0.78);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 18px;
}

.admin-grid .panel {
  padding: 22px;
}

.status-bars {
  display: grid;
  gap: 12px;
}

.status-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr 30px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.status-bar-row div {
  height: 8px;
  overflow: hidden;
  background: #eef1f4;
  border-radius: 999px;
}

.status-bar-row i {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.quick-links {
  display: grid;
  gap: 9px;
}

.quick-links a {
  display: block;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border-radius: 9px;
}

.quick-links strong,
.quick-links span {
  display: block;
}

.quick-links span {
  color: var(--muted);
  font-size: 12px;
}

.approval-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.approval-layout .panel {
  padding: 24px;
}

.data-table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  color: #475467;
  background: #f2f4f7;
  font-size: 12px;
}

.table-actions {
  display: flex;
  min-width: 130px;
  gap: 12px;
}

.admin-announcement-list .announcement-item:first-child {
  border-top: 1px solid var(--line);
}

.form-panel h2:not(:first-child) {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.room-hero-image {
  width: 100%;
  max-height: 360px;
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 12px;
}

.calendar-toolbar,
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.calendar-tabs {
  margin-bottom: 0;
}

.calendar-nav form {
  display: flex;
  gap: 8px;
}

.calendar-nav input {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.calendar-room-list {
  display: grid;
  gap: 12px;
}

.calendar-room-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.calendar-room-row small {
  display: block;
  color: var(--muted);
}

.calendar-events {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-event {
  display: grid;
  min-width: 150px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--green-soft);
  border-left: 3px solid var(--green);
  border-radius: 7px;
  font-size: 12px;
}

.calendar-event.is-pending {
  background: var(--amber-soft);
  border-left-color: var(--amber);
}

.calendar-event small {
  color: var(--muted);
}

.calendar-grid {
  display: grid;
  gap: 8px;
}

.calendar-grid-week {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-grid-month {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  min-height: 150px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.calendar-day header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.calendar-day header span {
  color: var(--muted);
  font-size: 11px;
}

.calendar-day .calendar-event {
  min-width: 0;
  margin-bottom: 6px;
}

.recommendation-box {
  padding: 14px;
  margin-bottom: 16px;
  background: var(--blue-soft);
  border-radius: 10px;
}

.notification-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
}

.notification-row h3 {
  margin: 8px 0 4px;
}

.notification-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.danger-text {
  color: var(--red);
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-detail-grid,
  .detail-layout,
  .auth-section,
  .auth-section.wide,
  .form-page,
  .approval-layout {
    grid-template-columns: 1fr;
  }

  .split-section,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    padding: 10px 0 13px;
    margin: 0;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand > span:last-child {
    display: none;
  }

  .account-name {
    display: none;
  }

  .home-overview-grid,
  .home-overview-main,
  .page-head-row {
    flex-direction: column;
    align-items: stretch;
  }

  .home-summary,
  .home-actions {
    gap: 10px;
  }

  .card-grid,
  .filter-grid,
  .form-grid,
  .info-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .room-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .room-row-visual {
    height: 88px;
    padding: 10px;
  }

  .room-row-code {
    font-size: 9px;
  }

  .room-row-capacity strong {
    font-size: 27px;
  }

  .room-row-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
  }

  .reservation-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .reservation-row > .badge,
  .reservation-row > .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .page-head-row > .badge {
    align-self: flex-start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .calendar-day {
    padding: 4px;
  }

  .calendar-day header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .calendar-day header span {
    font-size: 10px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}
