:root {
  color-scheme: dark;
  --bg: #0b1017;
  --surface: #101720;
  --surface-raised: #151e29;
  --surface-soft: #192431;
  --line: #273342;
  --line-soft: #1d2835;
  --text: #f1f5f9;
  --muted: #8d9bad;
  --muted-strong: #b8c2cf;
  --accent: #4f8cff;
  --accent-strong: #3779f2;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --green: #43c082;
  --amber: #f1b84b;
  --red: #ff6b6b;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% -20%, rgba(79, 140, 255, 0.11), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.startup-notice-open {
  overflow: hidden;
}

.startup-notice {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.startup-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 13, 0.82);
  backdrop-filter: blur(9px);
  animation: notice-backdrop-in 0.24s ease both;
}

.startup-notice__panel {
  position: relative;
  width: min(100%, 520px);
  padding: 34px;
  border: 1px solid rgba(241, 184, 75, 0.32);
  border-radius: 18px;
  background: #111923;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  animation: notice-panel-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.startup-notice__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(241, 184, 75, 0.45);
  border-radius: 50%;
  background: rgba(241, 184, 75, 0.1);
  color: var(--amber);
  font-size: 20px;
  font-weight: 750;
}

.startup-notice__panel .section-kicker {
  color: var(--amber);
}

.startup-notice__panel h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.startup-notice__panel > p:not(.section-kicker) {
  margin-bottom: 28px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.startup-notice__close {
  min-width: 112px;
}

.startup-notice.is-closing {
  pointer-events: none;
}

.startup-notice.is-closing .startup-notice__backdrop,
.startup-notice.is-closing .startup-notice__panel {
  opacity: 0;
  transition: opacity 0.18s ease;
}

@keyframes notice-backdrop-in {
  from { opacity: 0; }
}

@keyframes notice-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(39, 51, 66, 0.82);
  background: rgba(11, 16, 23, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(79, 140, 255, 0.42);
  border-radius: 11px;
  background: var(--accent-soft);
}

.brand-mark svg {
  width: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.login-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.login-badge.on::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(67, 192, 130, 0.1);
}

main {
  width: 100%;
}

.screen {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 80px;
  animation: screen-in 0.32s ease both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-intro {
  max-width: 720px;
  margin: 22px 0 56px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 670;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.home-intro > p:last-child,
.manager-head > p:last-child {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.city-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.city-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(220px, 1fr) minmax(210px, 0.6fr) 32px;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 108px;
  padding: 22px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  opacity: 0;
  animation: row-in 0.36s ease forwards;
  animation-delay: var(--delay);
  transition: background 0.18s ease, padding 0.18s ease;
}

@keyframes row-in {
  to { opacity: 1; }
}

.city-card:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.city-index {
  color: #657486;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.city-content strong,
.city-content small,
.city-last strong,
.city-last small {
  display: block;
}

.city-content strong {
  margin-bottom: 4px;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.city-content small,
.city-last small {
  color: var(--muted);
  font-size: 12px;
}

.city-last strong {
  margin-top: 4px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 550;
}

.city-arrow {
  color: var(--accent);
  font-size: 21px;
  transition: transform 0.18s ease;
}

.city-card:hover .city-arrow {
  transform: translateX(4px);
}

.manage-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0 auto;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 13px;
}

.manage-link:hover {
  color: var(--text);
}

.empty-state {
  padding: 70px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 25px;
}

.empty-state h2 {
  margin-bottom: 7px;
  font-size: 19px;
}

.empty-state p {
  margin-bottom: 22px;
  color: var(--muted);
}

.workspace-head {
  margin-bottom: 30px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.back-link:hover {
  color: var(--text);
}

.workspace-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.workspace-title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
}

.workspace-summary,
.count-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.panel {
  margin-top: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 32, 0.82);
}

.section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.result-head h2,
.editor-panel h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.section-heading > p {
  max-width: 390px;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.reading-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 110px 120px minmax(260px, auto);
  align-items: end;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 12px;
}

input,
select {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:hover,
select:hover {
  border-color: #3a495b;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

select:disabled {
  opacity: 0.6;
}

.presets {
  display: flex;
  gap: 7px;
  min-height: 43px;
  align-items: center;
  justify-content: flex-end;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
}

.chip:hover,
.chip.active {
  border-color: rgba(79, 140, 255, 0.48);
  background: var(--accent-soft);
  color: #b9d0ff;
}

.hotel-list {
  border-top: 1px solid var(--line);
}

.hotel-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(200px, 0.7fr) auto;
  align-items: center;
  gap: 26px;
  min-height: 112px;
  padding: 20px 2px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: row-in 0.32s ease forwards;
  animation-delay: var(--delay);
}

.hotel-row:last-child {
  border-bottom: 0;
}

.hotel-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.hotel-status {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(67, 192, 130, 0.08);
}

.hotel-status.error {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 107, 107, 0.08);
}

.hotel-main h3 {
  overflow: hidden;
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

a {
  color: #81aaff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hotel-meta a,
.snapshot-tag {
  font-size: 11px;
}

.snapshot-tag {
  padding: 2px 7px;
  border: 1px solid rgba(79, 140, 255, 0.24);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a9c5ff;
}

.last-reading small,
.last-reading strong,
.last-reading span {
  display: block;
}

.last-reading small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.last-reading strong {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 560;
}

.last-reading span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.hotel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.text-action {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
}

.text-action:hover {
  color: var(--text);
}

.muted-label {
  color: var(--muted);
  font-size: 11px;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 570;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.btn:hover:not(:disabled) {
  border-color: #405169;
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn.primary,
.btn.read {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: white;
}

.btn.primary:hover:not(:disabled),
.btn.read:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
}

.btn.ghost {
  background: transparent;
}

.btn.compact {
  min-height: 34px;
  padding: 0 11px;
  font-size: 11px;
}

.top-action {
  min-height: 38px;
  background: transparent;
}

.top-action svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.inline-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 2px 4px;
}

.inline-empty strong,
.inline-empty span {
  display: block;
}

.inline-empty strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.inline-empty span {
  color: var(--muted);
  font-size: 12px;
}

.result-panel {
  scroll-margin-top: 92px;
}

.history-panel {
  scroll-margin-top: 92px;
}

.history-intro {
  margin: -7px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.history-list {
  border-top: 1px solid var(--line);
}

.history-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.8fr) 110px 100px auto;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.history-snapshot,
.history-period {
  min-width: 0;
}

.history-snapshot strong,
.history-period small,
.history-period strong {
  display: block;
}

.history-snapshot .snapshot-tag {
  display: inline-flex;
  margin-bottom: 7px;
}

.history-snapshot strong,
.history-period strong {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-period small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-status {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 10px;
}

.history-status.done {
  background: rgba(67, 192, 130, 0.1);
  color: var(--green);
}

.history-status.error {
  background: rgba(255, 107, 107, 0.1);
  color: var(--red);
}

.history-status.running {
  background: var(--accent-soft);
  color: #aac6ff;
}

.result-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.progress-box {
  margin: 20px 0 4px;
}

.bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.4s ease;
}

#progressText {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.view-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}

.seg {
  display: inline-flex;
  overflow: hidden;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
}

.seg-btn {
  min-height: 29px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.seg-btn.active {
  background: var(--surface-soft);
  color: var(--text);
}

.result-subtitle {
  margin: 24px 0 12px;
  font-size: 14px;
  font-weight: 620;
}

.detail-title {
  margin-top: 30px;
}

.day-block {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.table-scroll {
  overflow-x: auto;
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.day-head .date {
  font-size: 13px;
  font-weight: 610;
}

.day-head .date small {
  margin-left: 5px;
  color: var(--muted);
  font-weight: 400;
}

.day-head .total {
  color: var(--muted);
  font-size: 11px;
}

.day-head .total strong {
  color: var(--green);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.summary-table th,
.summary-table td {
  white-space: nowrap;
}

.price,
.avail-pill {
  font-weight: 620;
}

.avail-low {
  color: var(--amber);
}

.avail-none,
.sold-out {
  color: var(--red);
}

.sold-out {
  padding: 12px 14px;
  font-style: italic;
}

.room-name {
  font-weight: 610;
}

.room-feat,
.cond {
  color: var(--muted);
  font-size: 11px;
}

.cond {
  max-width: 300px;
}

.cell-orig {
  color: var(--muted);
  font-size: 10px;
  text-decoration: line-through;
}

.cell-disc {
  color: var(--green);
}

.cell-main {
  font-weight: 620;
}

.cell-sub,
.grid-table .dow {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

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

.grid-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.grid-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.grid-table th,
.grid-table td {
  border-right: 1px solid var(--line-soft);
  text-align: center;
  white-space: nowrap;
}

.grid-table th:last-child,
.grid-table td:last-child {
  border-right: 0;
}

.grid-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-raised);
}

.grid-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 180px;
  background: var(--surface);
  text-align: left;
}

.grid-table thead .sticky-col {
  z-index: 3;
  background: var(--surface-raised);
}

.grid-table .group-row td {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 620;
  text-align: left;
}

.grid-table .group-row span {
  color: var(--muted);
  font-weight: 400;
}

.grid-table tfoot td {
  background: var(--surface-raised);
  font-weight: 620;
}

.grid-table .cell-empty {
  color: #526071;
}

.rt-rate {
  color: var(--muted-strong);
}

.manager-head {
  max-width: 720px;
  margin: 4px 0 36px;
}

.manager-head .back-link {
  margin-bottom: 34px;
}

.manager-head h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.manager-tabs {
  display: flex;
  gap: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.manager-tab {
  position: relative;
  min-height: 45px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
}

.manager-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.manager-tab.active {
  color: var(--text);
}

.manager-tab.active::after {
  background: var(--accent);
}

.management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 46px;
  align-items: start;
}

.management-list {
  min-width: 0;
}

.management-list .section-heading {
  margin-bottom: 16px;
}

.entity-list {
  border-top: 1px solid var(--line);
}

.entity-row {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.entity-row > div:first-child {
  min-width: 0;
}

.entity-row strong,
.entity-row span {
  display: block;
}

.entity-row strong {
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-row span {
  color: var(--muted);
  font-size: 11px;
}

.row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.icon-btn {
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 11px;
}

.icon-btn:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.icon-btn.danger:hover {
  background: rgba(255, 107, 107, 0.08);
  color: var(--red);
}

.editor-panel {
  position: sticky;
  top: 102px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.editor-panel h2 {
  margin-bottom: 22px;
}

.editor-panel form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.msg {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.msg.ok {
  color: var(--green);
}

.msg.err {
  color: var(--red);
}

.empty-copy {
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .reading-fields {
    grid-template-columns: 1fr 110px 120px;
  }

  .presets {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hotel-row {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .last-reading {
    display: none;
  }

  .management-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }

  .history-row {
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.8fr) 90px auto;
  }

  .history-row .history-period:nth-of-type(3) {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 68px;
    padding: 0 18px;
  }

  .brand small,
  .login-badge {
    display: none;
  }

  .top-action {
    width: 40px;
    min-height: 40px;
    overflow: hidden;
    padding: 0;
    color: transparent;
    gap: 0;
  }

  .top-action svg {
    width: 18px;
    color: var(--text);
  }

  .screen {
    width: min(100% - 32px, 1180px);
    padding: 38px 0 64px;
  }

  .home-intro {
    margin: 10px 0 38px;
  }

  h1 {
    font-size: 38px;
  }

  .city-card {
    grid-template-columns: 38px 1fr 24px;
    min-height: 94px;
    gap: 10px;
  }

  .city-last {
    display: none;
  }

  .city-content strong {
    font-size: 18px;
  }

  .workspace-title {
    display: block;
  }

  .workspace-summary {
    display: block;
    margin-top: 10px;
  }

  .panel {
    padding: 20px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 7px;
    text-align: left;
  }

  .reading-fields {
    grid-template-columns: 1fr 1fr;
  }

  .reading-fields label:first-child {
    grid-column: 1 / -1;
  }

  .hotel-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 0;
  }

  .hotel-actions {
    justify-content: space-between;
  }

  .management-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
  }

  .history-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px 0;
  }

  .history-period {
    display: none;
  }

  .history-status {
    grid-column: 1;
  }

  .history-row .btn {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .management-list,
  .editor-panel {
    width: 100%;
  }

  .editor-panel {
    position: static;
  }

  .inline-empty {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 470px) {
  .startup-notice {
    align-items: end;
    padding: 12px;
  }

  .startup-notice__panel {
    padding: 28px 24px 24px;
    border-radius: 18px;
  }

  .startup-notice__close {
    width: 100%;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .reading-fields {
    grid-template-columns: 1fr;
  }

  .reading-fields label:first-child,
  .presets {
    grid-column: auto;
  }

  .presets {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 3px;
  }

  .hotel-actions {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .btn.read {
    width: 100%;
  }

  .day-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .entity-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

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