:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2c2225;
  background: #f5f1ed;
  font-synthesis: none;
  --wine-950: #351019;
  --wine-900: #4b1422;
  --wine-800: #641c2c;
  --wine-700: #7d2638;
  --wine-100: #f4e8eb;
  --gold-500: #b67d31;
  --gold-200: #f2d9a6;
  --surface: #ffffff;
  --surface-soft: #faf7f5;
  --border: #e7ddd8;
  --muted: #786c70;
  --success: #21743d;
  --success-bg: #dff3e5;
  --danger: #a3323c;
  --danger-bg: #fbe7e8;
  --shadow: 0 14px 45px rgba(65, 35, 40, .08);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f1ed; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.boot-screen,
.full-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.boot-screen { color: var(--wine-900); font-weight: 800; }

.auth-shell {
  width: min(460px, 100%);
  display: grid;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 24px 75px rgba(65, 35, 40, .14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-copy strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1; }

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 900;
  color: #9c672f;
}

.auth-shell h1,
.page-heading h1,
.modal h2 {
  margin: 4px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--wine-900);
}

.auth-shell h1 { font-size: 38px; }
.auth-shell p { margin: 0; color: var(--muted); line-height: 1.5; }

.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 800; color: #65595d; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9ccc8;
  border-radius: 12px;
  padding: 12px 13px;
  color: #2d2426;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: #8f3649; box-shadow: 0 0 0 3px rgba(143, 54, 73, .10); }
.field input:disabled,
.field select:disabled,
.field textarea:disabled { background: #f2efed; color: #82777a; }

.field-hint { font-size: 11px; color: #8a7e81; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field.wide { grid-column: 1 / -1; }

.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.icon-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .12s, opacity .12s, background .12s;
}
.primary-button:active,
.secondary-button:active,
.danger-button:active,
.ghost-button:active,
.icon-button:active { transform: translateY(1px); }
.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled,
.ghost-button:disabled,
.icon-button:disabled { cursor: wait; opacity: .55; }

.primary-button { background: var(--wine-800); color: #fff; padding: 13px 18px; }
.primary-button:hover { background: var(--wine-700); }
.secondary-button { background: #eee7e3; color: #4c4044; padding: 12px 16px; }
.secondary-button:hover { background: #e4dad5; }
.danger-button { background: var(--danger-bg); color: var(--danger); padding: 12px 16px; }
.danger-button:hover { background: #f7d9dc; }
.ghost-button { background: transparent; color: #6f6266; padding: 10px 12px; }
.ghost-button:hover { background: rgba(255,255,255,.08); color: #fff; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; background: #f1ebe8; color: #5d5054; font-size: 18px; }
.icon-button:hover { background: #e7ddda; }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button-row.right { justify-content: flex-end; }
.button-row.between { justify-content: space-between; }

.form-message,
.error-banner,
.info-banner {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.form-message,
.info-banner { background: #f5eee8; color: #665343; }
.form-message.error,
.error-banner { background: var(--danger-bg); color: #8e2933; }
.form-message.success { background: var(--success-bg); color: var(--success); }

.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 24px 17px 18px;
  color: #fff;
  background: linear-gradient(180deg, var(--wine-900), var(--wine-950));
}
.sidebar .brand { padding: 0 8px 27px; }
.sidebar .brand-copy strong { color: #fff; }
.sidebar-nav { display: grid; gap: 8px; }
.nav-button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  color: #e7d9dd;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}
.nav-button:hover,
.nav-button.active { background: #6a1e31; color: #fff; }
.nav-icon { width: 22px; text-align: center; font-size: 17px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 8px; }
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #d7c3c9;
}
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #b9aeb1; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.connection.online .connection-dot { background: #63d584; }
.connection.syncing .connection-dot { background: #f0c765; }
.connection.offline .connection-dot { background: #ef777e; }
.role-chip {
  margin: 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
  color: #eadde0;
}

.main-content { padding: 32px; min-width: 0; }
.page-stack { width: 100%; max-width: 1480px; margin: 0 auto; display: grid; gap: 21px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading h1 { font-size: 39px; }
.page-heading p { margin: 0; color: var(--muted); }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 19px; box-shadow: var(--shadow); }
.panel-title { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid #efe6e2; }
.panel-title h2 { margin: 0; font-size: 17px; }
.count-badge { margin-left: auto; min-width: 27px; padding: 4px 8px; border-radius: 999px; background: #f2ece9; text-align: center; font-size: 12px; }

.today-summary { display: flex; flex-wrap: wrap; gap: 9px; }
.summary-chip { display: flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 13px; }
.today-list { display: grid; }
.today-card {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  border: 0;
  border-bottom: 1px solid #f0e9e6;
  background: transparent;
  text-align: left;
}
.today-card:last-child { border-bottom: 0; }
.today-card-main { display: contents; }
.booking-open { cursor: pointer; }
.booking-open:hover { background: #fcf9f7; }
.room-badge { width: 58px; min-height: 46px; padding: 7px; border-radius: 12px; display: grid; place-items: center; background: #f8eee2; color: #7b4d17; font-size: 13px; font-weight: 900; text-align: center; }
.guest-info { min-width: 0; display: grid; gap: 4px; }
.guest-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-info span,
.guest-info small { color: var(--muted); }
.guest-info span { font-size: 13px; }
.guest-info small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payment-view { font-size: 12px; font-weight: 800; color: #786c70; }
.payment-view.paid { color: var(--success); }
.payment-toggle { border: 0; border-radius: 999px; padding: 7px 11px 7px 7px; display: flex; align-items: center; gap: 8px; background: #eee7e4; color: #75696c; cursor: pointer; font-size: 12px; font-weight: 800; }
.payment-toggle.paid { background: var(--success-bg); color: var(--success); }
.payment-knob { width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.empty-state { padding: 32px; color: #887b7f; text-align: center; }

.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calendar-range { font-weight: 800; color: #5a4d51; }
.calendar-shell { overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 19px; box-shadow: var(--shadow); }
.calendar-grid { min-width: 1500px; display: grid; grid-template-columns: 76px repeat(14, minmax(98px, 1fr)); }
.calendar-corner,
.calendar-day,
.calendar-room,
.calendar-cell { border-right: 1px solid #eee6e2; border-bottom: 1px solid #eee6e2; }
.calendar-corner { position: sticky; left: 0; top: 0; z-index: 5; padding: 14px 10px; background: #faf7f5; font-size: 11px; color: #74686b; }
.calendar-day { position: sticky; top: 0; z-index: 4; padding: 9px 4px; background: #faf7f5; text-align: center; }
.calendar-day.today { background: #f4e8eb; color: var(--wine-800); }
.calendar-day strong,
.calendar-day span { display: block; }
.calendar-day span { margin-top: 2px; font-size: 10px; color: #8e8083; text-transform: uppercase; }
.calendar-room { position: sticky; left: 0; z-index: 3; padding: 19px 11px; background: #fff; color: #521524; font-weight: 900; }
.calendar-room.manual { color: #9b672e; }
.calendar-cell { min-height: 62px; padding: 5px; background: #fff; }
.calendar-cell.today { background: #fdf9fa; }
.booking-block { width: 100%; min-height: 50px; border: 0; border-radius: 9px; padding: 7px; color: #fff; background: #7a1d2d; text-align: left; cursor: pointer; overflow: hidden; }
.booking-block:hover { filter: brightness(1.06); }
.booking-block strong,
.booking-block span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-block strong { font-size: 11px; }
.booking-block span { margin-top: 4px; font-size: 10px; opacity: .84; }
.source-whatsapp { background: #28744a; }
.source-direct { background: #96602d; }
.source-other { background: #56516f; }
.source-booking { background: #7a1d2d; }

.booking-form { padding: 24px; }
.assignment-box { margin-top: 20px; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 13px; background: #f4f0e7; color: #5e4d31; }
.assignment-box.error { background: var(--danger-bg); color: #962f36; }
.assignment-box.success { background: var(--success-bg); color: var(--success); }
.assignment-icon { font-size: 20px; }
.assignment-copy { display: grid; gap: 4px; }
.assignment-copy span { font-size: 13px; line-height: 1.45; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); padding: 4px; border-radius: 12px; background: #f0e9e6; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 9px 10px; border-radius: 9px; text-align: center; cursor: pointer; font-size: 12px; font-weight: 800; }
.segmented input:checked + span { background: #fff; color: var(--wine-800); box-shadow: 0 2px 8px rgba(70, 40, 45, .08); }

.modal-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(35, 17, 22, .50); }
.modal { position: relative; width: min(680px, 100%); max-height: min(88vh, 900px); overflow: auto; padding: 27px; border-radius: 21px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal.wide { width: min(820px, 100%); }
.modal h2 { margin-right: 48px; font-size: 30px; }
.modal-close { position: absolute; top: 17px; right: 17px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.detail-grid div { min-width: 0; display: grid; gap: 5px; padding: 12px; border-radius: 12px; background: #faf6f4; }
.detail-grid span { font-size: 11px; color: #8b7b7f; }
.detail-grid strong { overflow-wrap: anywhere; }
.notes-box { margin-top: 15px; padding: 13px; border-left: 3px solid #a16b32; background: #fbf6ed; white-space: pre-wrap; }
.modal-actions { margin-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.settings-card { padding: 24px; }
.settings-card h2 { margin-top: 0; color: var(--wine-900); }
.settings-card p { color: var(--muted); line-height: 1.55; }
.readonly-banner { padding: 12px 14px; border: 1px solid #e6d4a9; border-radius: 12px; background: #fff8e8; color: #795820; font-size: 13px; }

.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; pointer-events: none; }
.toast { width: min(390px, calc(100vw - 40px)); padding: 13px 15px; border-radius: 13px; background: #30282a; color: #fff; box-shadow: 0 16px 45px rgba(0,0,0,.2); font-size: 13px; line-height: 1.45; animation: toast-in .18s ease-out; }
.toast.success { background: #23633a; }
.toast.error { background: #8f2e37; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.loading-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(245, 241, 237, .68); backdrop-filter: blur(2px); }
.loading-card { padding: 14px 18px; border-radius: 13px; background: #fff; color: var(--wine-900); box-shadow: var(--shadow); font-weight: 800; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { height: auto; position: sticky; padding: 9px 11px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .sidebar .brand { padding: 0; }
  .sidebar .brand-mark { width: 37px; height: 37px; border-radius: 12px; font-size: 17px; }
  .sidebar .brand-copy strong { font-size: 17px; }
  .sidebar .brand-copy span { display: none; }
  .sidebar-nav { display: flex; justify-content: flex-end; gap: 4px; overflow-x: auto; }
  .nav-button { width: auto; padding: 10px 11px; }
  .nav-button .nav-label { display: none; }
  .nav-icon { width: auto; }
  .sidebar-bottom { margin: 0; display: flex; }
  .connection, .role-chip, .sidebar-bottom .settings-label, .sidebar-bottom .logout-label { display: none; }
  .ghost-button { padding: 8px; font-size: 0; }
  .main-content { padding: 20px 14px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 32px; }
  .heading-actions { width: 100%; justify-content: flex-start; }
  .today-card { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .today-card .payment-toggle, .today-card .payment-view { grid-column: 2 / -1; justify-self: end; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .auth-shell { padding: 23px 19px; border-radius: 20px; }
  .auth-shell h1 { font-size: 32px; }
  .today-summary { width: 100%; }
  .summary-chip { flex: 1 1 auto; justify-content: center; }
  .booking-form, .settings-card { padding: 18px; }
  .modal { padding: 23px 18px; }
  .modal-actions, .button-row.between { flex-direction: column; align-items: stretch; }
  .modal-actions > *, .button-row.between > * { width: 100%; }
}

/* SUNWINE staff dashboard refinements */
.day-page-heading { align-items: center; }
.date-navigator {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(65, 35, 40, .05);
}
.date-picker {
  display: grid;
  gap: 4px;
  min-width: 158px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.date-picker input {
  width: 100%;
  height: 40px;
  border: 1px solid #d9ccc8;
  border-radius: 11px;
  padding: 7px 10px;
  color: #3f3236;
  background: #fff;
  font-weight: 750;
  outline: none;
}
.date-picker input:focus { border-color: #8f3649; box-shadow: 0 0 0 3px rgba(143,54,73,.10); }
.calendar-picker { min-width: 175px; }

.overview-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.overview-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(65,35,40,.045);
}
.overview-card.arrivals { background: linear-gradient(145deg, #fff, #f3faf5); }
.overview-card.departures { background: linear-gradient(145deg, #fff, #fff8ef); }
.overview-card.staying { background: linear-gradient(145deg, #fff, #f8f1f4); }
.overview-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--wine-100);
  color: var(--wine-800);
  font-size: 20px;
}
.overview-card > div { display: grid; gap: 1px; }
.overview-card strong { color: var(--wine-900); font-size: 26px; line-height: 1; }
.overview-card > div > span { color: var(--muted); font-size: 12px; font-weight: 750; }

.guest-section { overflow: hidden; }
.panel-title-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--wine-100);
  color: var(--wine-800);
  font-size: 14px;
}
.today-card {
  grid-template-columns: 46px 64px minmax(190px, 1fr) minmax(210px, auto) auto;
  gap: 13px;
  min-height: 92px;
  padding: 15px 18px;
  transition: background .15s, transform .15s;
}
.today-card:hover { background: #fcf8f6; }
.guest-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7ecef, #f2e2e6);
  font-size: 19px;
}
.room-badge {
  width: 58px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.room-badge small { font-size: 9px; opacity: .68; }
.guest-info strong { color: #34292c; font-size: 15px; }
.guest-info small { max-width: 540px; }
.stay-period {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid #eee5e1;
  border-radius: 13px;
  background: #fbf8f6;
}
.stay-period > div { display: grid; gap: 2px; min-width: 66px; }
.stay-period small { color: #8b7e82; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.stay-period strong { color: #54474b; font-size: 12px; }
.stay-arrow { color: #af9ea3; font-size: 14px; }
.today-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.card-chevron {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1ebe8;
  color: #6a5d61;
  font-size: 20px;
}
.empty-state { display: grid; justify-items: center; gap: 7px; }
.empty-state > span { color: #b7a9ad; font-size: 22px; }

.calendar-toolbar {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}
.calendar-day {
  appearance: none;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid #eee6e2;
  border-bottom: 1px solid #eee6e2;
  cursor: pointer;
  font-family: inherit;
}
.calendar-day:hover { background: #f2e9ec; color: var(--wine-800); }
.calendar-day:focus-visible { outline: 3px solid rgba(125,38,56,.18); outline-offset: -3px; }
.calendar-room { font-variant-numeric: tabular-nums; }
.booking-block span { opacity: .9; }

@media (max-width: 1100px) {
  .today-card { grid-template-columns: 46px 62px minmax(180px, 1fr) auto; }
  .stay-period { grid-column: 3 / 4; justify-self: start; }
  .today-card-actions { grid-column: 4; grid-row: 1 / span 2; }
}

@media (max-width: 860px) {
  .date-navigator { width: 100%; }
  .overview-cards { grid-template-columns: repeat(3, minmax(110px, 1fr)); overflow-x: auto; }
  .overview-card { min-width: 130px; padding: 14px; }
  .today-card { grid-template-columns: 42px 58px minmax(0, 1fr) auto; }
  .guest-avatar { width: 38px; height: 38px; border-radius: 12px; }
  .stay-period { grid-column: 2 / 4; justify-self: stretch; justify-content: flex-start; }
  .today-card-actions { grid-column: 4; grid-row: 1 / span 2; flex-direction: column-reverse; }
  .calendar-toolbar { align-items: flex-end; }
}

@media (max-width: 560px) {
  .date-navigator { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .date-navigator .day-today { grid-column: 1 / -1; }
  .date-picker { min-width: 0; }
  .overview-cards { grid-template-columns: repeat(3, 132px); }
  .overview-card { min-height: 76px; }
  .overview-icon { width: 38px; height: 38px; }
  .today-card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .guest-avatar { grid-row: 1; }
  .room-badge { grid-column: 1; grid-row: 2; width: 40px; min-height: 38px; border-radius: 10px; }
  .guest-info { grid-column: 2; grid-row: 1; }
  .stay-period { grid-column: 2 / 4; grid-row: 2; padding: 8px 10px; }
  .today-card-actions { grid-column: 3; grid-row: 1; flex-direction: column-reverse; }
  .today-card .payment-toggle { grid-column: auto; }
  .payment-toggle { padding-right: 7px; }
  .payment-toggle > span:last-child { display: none; }
  .calendar-picker { width: 100%; }
  .calendar-range { width: 100%; text-align: center; }
}

/* ============================================================
   SUNWINE — PREMIUM RECEPTION UI · 2026-07-25
   ============================================================ */
:root {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wine-950: #2b0b14;
  --wine-900: #43111f;
  --wine-800: #611b2d;
  --wine-700: #7d2a3e;
  --wine-100: #f7eaee;
  --gold-500: #b98235;
  --surface-soft: #fbf8f6;
  --border: #eadfdb;
  --muted: #796d71;
  --shadow: 0 18px 55px rgba(67, 17, 31, .075);
}

body {
  background:
    radial-gradient(circle at 90% 0%, rgba(185,130,53,.075), transparent 27rem),
    linear-gradient(180deg, #f8f4f1 0%, #f5f1ed 100%);
  color: #2f2528;
  letter-spacing: -.005em;
}

.ui-icon { display: block; flex: 0 0 auto; }
button { transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
button:active { transform: scale(.97); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo-wrap {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: linear-gradient(145deg, #f7e5b8, #e8c47d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 8px 24px rgba(34,7,14,.18);
}
.brand-logo { width: 35px; height: 35px; object-fit: contain; }
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-copy strong { font-size: 17px; font-weight: 800; letter-spacing: .11em; }
.brand-copy span { color: rgba(255,255,255,.58); font-size: 9px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.auth-shell .brand-copy span { color: #9b858b; }

.sidebar {
  padding: 25px 17px 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(190,126,57,.17), transparent 18rem),
    linear-gradient(180deg, #4a1323 0%, #2c0b15 100%);
  box-shadow: 10px 0 45px rgba(50,10,21,.10);
}
.sidebar .brand { padding: 0 8px 29px; }
.sidebar-nav { gap: 7px; }
.nav-button,
.sidebar-bottom .ghost-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-weight: 720;
}
.nav-button { color: rgba(255,255,255,.72); }
.nav-button:hover,
.nav-button.active {
  background: rgba(255,255,255,.105);
  border-color: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.nav-button.active { color: #fff; }
.nav-button.active .nav-icon { color: #f1c979; }
.nav-icon { display: grid; place-items: center; color: currentColor; }
.sidebar-bottom .ghost-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  color: rgba(255,255,255,.72);
}
.sidebar-bottom .ghost-button:hover { background: rgba(255,255,255,.10); color: #fff; }
.role-chip { border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.055); }

.main-content { padding: 34px clamp(20px, 3vw, 46px); }
.page-stack { gap: 22px; }
.page-heading { align-items: center; }
.heading-copy { min-width: 0; }
.page-heading h1 {
  margin: 4px 0 5px;
  color: #3a1020;
  font-size: clamp(32px, 3vw, 43px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.page-heading p { font-size: 13px; line-height: 1.55; }
.eyebrow { color: #9a6a38 !important; font-size: 10px !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.heading-actions { align-items: center; }

.date-panel-toggle,
.icon-text-button {
  min-height: 44px;
  border: 1px solid #dfd2ce;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 13px;
  color: #59484e;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 25px rgba(67,17,31,.045);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}
.date-panel-toggle:hover,
.date-panel-toggle.active,
.icon-text-button:hover {
  border-color: #b9939d;
  color: var(--wine-800);
  background: #fff;
  box-shadow: 0 10px 30px rgba(67,17,31,.08);
}
.date-panel-toggle > .ui-icon:last-child { transition: transform .2s ease; }
.date-panel-toggle.active > .ui-icon:last-child { transform: rotate(180deg); }

.date-drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 17px;
  border: 1px solid #e4d8d4;
  border-radius: 19px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 42px rgba(67,17,31,.055);
  animation: date-drawer-in .18s ease-out;
}
@keyframes date-drawer-in { from { opacity: 0; transform: translateY(-5px); } }
.date-drawer-copy { display: grid; gap: 4px; min-width: 180px; }
.date-drawer-copy strong { color: #4a333a; font-size: 14px; }
.date-drawer-copy span { color: var(--muted); font-size: 11px; }
.date-navigator,
.calendar-toolbar {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.date-navigator { justify-content: flex-end; }
.date-picker span { font-size: 9px; }
.date-picker input { height: 42px; border-radius: 12px; }

.panel { border-color: rgba(219,204,199,.78); box-shadow: var(--shadow); }
.overview-cards { gap: 14px; }
.overview-card {
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 21px;
  border-color: rgba(225,211,207,.78);
  box-shadow: 0 14px 40px rgba(67,17,31,.045);
}
.overview-card.arrivals { background: linear-gradient(145deg, #fff 15%, #edf8f1 100%); }
.overview-card.departures { background: linear-gradient(145deg, #fff 15%, #fff4e8 100%); }
.overview-card.staying { background: linear-gradient(145deg, #fff 15%, #f7eaf0 100%); }
.overview-icon {
  width: 47px;
  height: 47px;
  border-radius: 16px;
  background: rgba(97,27,45,.08);
}
.overview-card.arrivals .overview-icon { color: #28754b; background: rgba(40,117,75,.10); }
.overview-card.departures .overview-icon { color: #9c662b; background: rgba(156,102,43,.11); }
.overview-card strong { font-size: 29px; font-weight: 800; letter-spacing: -.04em; }
.overview-card > div > span { font-size: 11px; font-weight: 700; letter-spacing: .01em; }

.panel-title { min-height: 62px; padding: 17px 20px; }
.panel-title h2 { font-size: 16px; font-weight: 790; letter-spacing: -.015em; }
.panel-title-icon { width: 32px; height: 32px; border-radius: 11px; }

.today-card {
  grid-template-columns: 46px 66px minmax(210px, 1fr) minmax(270px, auto) auto;
  min-height: 104px;
  gap: 16px;
  padding: 17px 20px;
}
.guest-avatar {
  color: var(--wine-700);
  background: linear-gradient(145deg, #f8ecef, #f1dfe4);
}
.room-badge {
  width: 62px;
  min-height: 54px;
  border: 1px solid #ead8bd;
  background: linear-gradient(145deg, #fff9ed, #f7e8ce);
  color: #7b511f;
  font-size: 14px;
}
.guest-info { gap: 6px; }
.guest-info strong { font-size: 16px; font-weight: 780; letter-spacing: -.015em; }
.guest-info span { font-size: 12px; }
.guest-info small { font-size: 11px; }
.stay-period {
  gap: 12px;
  padding: 7px;
  border: 1px solid #eadfdb;
  border-radius: 17px;
  background: #f8f4f2;
}
.stay-period > div {
  min-width: 100px;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(67,17,31,.035);
}
.stay-period > div:first-child { border-left: 3px solid #4b9a69; }
.stay-period > div:last-child { border-left: 3px solid #c48a43; }
.stay-period small { font-size: 8px; letter-spacing: .11em; }
.stay-period strong { color: #44363a; font-size: 13px; font-weight: 780; }
.stay-arrow {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eee5e2;
  color: #8f7e83;
  font-size: 12px;
}
.card-chevron { border-radius: 12px; }

.calendar-shell { border-radius: 22px; }
.calendar-grid { grid-template-columns: 82px repeat(14, minmax(100px, 1fr)); }
.calendar-corner,
.calendar-day { background: #fbf8f6; }
.calendar-day { min-height: 58px; }
.calendar-day strong { color: #4c3940; font-size: 15px; }
.calendar-day span { font-size: 9px; font-weight: 750; }
.calendar-day.today { background: #f5e6eb; }
.calendar-room { padding: 20px 12px; font-size: 13px; }
.calendar-cell { min-height: 67px; }
.booking-block { min-height: 54px; border-radius: 11px; padding: 8px; box-shadow: 0 5px 14px rgba(67,17,31,.12); }
.booking-block strong { font-size: 11px; }
.booking-block span { font-size: 9px; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-card-featured {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  padding: 24px;
}
.settings-card-featured > div { flex: 1; }
.settings-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--wine-800);
  background: var(--wine-100);
}
.settings-card h2 { margin: 0 0 8px; font-size: 19px; }
.settings-card p { margin: 0; font-size: 13px; }

.auth-shell { border-radius: 28px; box-shadow: 0 28px 90px rgba(50,10,21,.14); }
.auth-shell h1 { font-weight: 800; letter-spacing: -.045em; }

@media (max-width: 1100px) {
  .today-card { grid-template-columns: 44px 62px minmax(170px, 1fr) auto; }
  .stay-period { grid-column: 3 / 4; justify-self: start; }
}

@media (max-width: 860px) {
  body { padding-bottom: 94px; }
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    inset: auto 10px 10px 10px;
    z-index: 60;
    width: auto;
    height: 74px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 23px;
    display: flex;
    align-items: stretch;
    gap: 4px;
    background: rgba(53,12,23,.96);
    box-shadow: 0 18px 55px rgba(35,7,14,.32);
    backdrop-filter: blur(18px);
  }
  .sidebar .brand,
  .connection,
  .role-chip { display: none; }
  .sidebar-nav {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    justify-content: space-around;
    gap: 3px;
    overflow: visible;
  }
  .sidebar-bottom {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    gap: 3px;
  }
  .nav-button,
  .sidebar-bottom .ghost-button {
    width: auto;
    min-width: 52px;
    height: 60px;
    min-height: 60px;
    margin: 0;
    padding: 6px 7px;
    border-radius: 17px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    line-height: 1;
  }
  .nav-button.active { background: rgba(255,255,255,.12); color: #fff; }
  .nav-label,
  .sidebar-bottom .settings-label,
  .sidebar-bottom .logout-label {
    display: block !important;
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-size: 8.5px;
    font-weight: 700;
  }
  .sidebar-bottom .ghost-button { font-size: 10px; }
  .sidebar-bottom .logout-button { color: #f1c5cc; }
  .main-content { padding: 22px 14px 10px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .heading-actions { width: 100%; justify-content: flex-start; }
  .date-panel-toggle { max-width: 100%; }
  .date-panel-toggle span { overflow: hidden; text-overflow: ellipsis; }
  .date-drawer { align-items: stretch; flex-direction: column; }
  .date-drawer-copy { min-width: 0; }
  .date-navigator,
  .calendar-toolbar { width: 100%; justify-content: flex-start; }
  .overview-cards { grid-template-columns: repeat(3, minmax(132px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .overview-card { min-width: 132px; }
  .today-card { grid-template-columns: 42px 58px minmax(0,1fr) auto; }
  .stay-period { grid-column: 2 / 4; justify-self: stretch; }
  .today-card-actions { grid-column: 4; grid-row: 1 / span 2; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .page-heading h1 { font-size: 34px; }
  .heading-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .heading-actions .date-panel-toggle { width: 100%; }
  .heading-actions .icon-text-button { width: 44px; padding: 10px; }
  .heading-actions .icon-text-button span { display: none; }
  .date-navigator,
  .calendar-toolbar { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 8px; }
  .date-navigator .secondary-button,
  .calendar-toolbar .secondary-button { grid-column: 1 / -1; }
  .date-picker { min-width: 0; }
  .overview-cards { grid-template-columns: repeat(3, 138px); }
  .overview-card { min-height: 82px; padding: 14px; border-radius: 18px; }
  .overview-icon { width: 39px; height: 39px; border-radius: 13px; }
  .overview-card strong { font-size: 25px; }
  .today-card {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 0;
    gap: 10px;
    padding: 15px 13px;
  }
  .guest-avatar { grid-column: 1; grid-row: 1; }
  .room-badge { grid-column: 1; grid-row: 2; width: 40px; min-height: 40px; font-size: 11px; }
  .guest-info { grid-column: 2; grid-row: 1; }
  .guest-info strong { font-size: 14px; }
  .guest-info span { font-size: 11px; }
  .stay-period { grid-column: 2 / 4; grid-row: 2; gap: 7px; padding: 6px; }
  .stay-period > div { min-width: 0; flex: 1 1 0; padding: 8px 9px; }
  .stay-period strong { font-size: 11px; }
  .stay-arrow { width: 22px; height: 22px; }
  .today-card-actions { grid-column: 3; grid-row: 1; }
  .payment-toggle > span:last-child { display: none; }
  .calendar-picker { width: auto; }
  .settings-card-featured { min-height: 0; }
  .modal { border-radius: 24px 24px 0 0; width: 100%; max-height: 92vh; align-self: end; }
  .modal-backdrop { align-items: end; padding: 0; }
}

@media (max-width: 360px) {
  .sidebar { inset-inline: 6px; bottom: 6px; }
  .nav-button,
  .sidebar-bottom .ghost-button { min-width: 48px; padding-inline: 5px; }
  .nav-label,
  .sidebar-bottom .settings-label,
  .sidebar-bottom .logout-label { font-size: 8px; max-width: 50px; }
}


/* Official SunWine Hotel logo */
.auth-brand {
  display: grid;
  place-items: center;
  padding: 2px 0 8px;
}
.auth-brand-logo {
  display: block;
  width: min(285px, 82vw);
  height: auto;
  border-radius: 22px;
  filter: drop-shadow(0 16px 30px rgba(72, 36, 12, .10));
}
.brand-logo-wrap {
  overflow: hidden;
  background: #fcf4e7;
  border: 1px solid rgba(207, 150, 59, .42);
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.sidebar .brand-logo-wrap {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 22px rgba(28,5,11,.20);
}
.auth-shell .eyebrow { text-align: center; }
.auth-shell > div:not(.auth-brand) { text-align: center; }
.auth-shell .form-stack { text-align: left; }

@media (max-width: 560px) {
  .auth-shell { padding: 24px 20px; }
  .auth-brand-logo { width: min(245px, 78vw); border-radius: 18px; }
}

/* Calendar drag-and-drop */
.calendar-move-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(122, 29, 45, .14);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf8, #f8eef1);
  color: var(--wine-800);
}
.calendar-move-hint > .ui-icon {
  flex: 0 0 auto;
  margin-top: 2px;
}
.calendar-move-hint div {
  display: grid;
  gap: 3px;
}
.calendar-move-hint strong {
  font-size: 13px;
}
.calendar-move-hint span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.calendar-cell {
  position: relative;
  transition: background-color .14s ease, box-shadow .14s ease;
}
.calendar-cell.calendar-drop-target {
  z-index: 2;
  background: #e8f6ee;
  box-shadow: inset 0 0 0 3px rgba(35, 128, 78, .42);
}
.calendar-cell.calendar-drop-target::after {
  content: attr(data-drop-message);
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(35, 128, 78, .54);
  border-radius: 9px;
  color: #236b47;
  background: rgba(232, 246, 238, .88);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}
.calendar-cell.calendar-drop-invalid {
  z-index: 2;
  background: #fff0f0;
  box-shadow: inset 0 0 0 3px rgba(170, 54, 62, .42);
}
.calendar-cell.calendar-drop-invalid::after {
  content: attr(data-drop-message);
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(170, 54, 62, .52);
  border-radius: 9px;
  color: #9a2f37;
  background: rgba(255, 240, 240, .9);
  padding: 4px;
  font-size: 9px;
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.booking-block[data-calendar-booking="true"] {
  position: relative;
  padding-right: 28px;
  user-select: none;
  -webkit-user-select: none;
}
.booking-block[data-calendar-booking="true"] {
  cursor: grab;
}
.booking-block[draggable="true"]:active,
body.calendar-dragging .booking-block[data-calendar-booking="true"] {
  cursor: grabbing;
}
.booking-block.is-dragging {
  opacity: .34;
  filter: saturate(.55);
}
.booking-drag-handle {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 21px;
  height: 21px;
  display: grid !important;
  place-items: center;
  margin: 0 !important;
  border-radius: 7px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  opacity: .82 !important;
  touch-action: none;
  cursor: grab;
}
.booking-block:hover .booking-drag-handle {
  background: rgba(255, 255, 255, .28);
  opacity: 1 !important;
}
.calendar-drag-ghost {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 200;
  min-height: 52px;
  margin: 0;
  pointer-events: none;
  opacity: .94;
  box-shadow: 0 18px 38px rgba(31, 8, 15, .30);
  transform-origin: top left;
}
body.calendar-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
body.calendar-dragging .calendar-shell {
  scroll-behavior: auto;
}
.calendar-undo {
  border-color: rgba(122, 29, 45, .18);
  background: #fff7f8;
  color: var(--wine-800);
}

@media (max-width: 760px) {
  .calendar-move-hint {
    padding: 11px 12px;
  }
  .calendar-move-hint strong {
    font-size: 12px;
  }
  .calendar-move-hint span {
    font-size: 11px;
  }
  .booking-drag-handle {
    width: 25px;
    height: 25px;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, .25);
    opacity: 1 !important;
  }
  .booking-block[data-calendar-booking="true"] {
    padding-right: 34px;
  }
}



/* Calendar guest search */
.calendar-search-wrap {
  position: relative;
  z-index: 12;
}
.calendar-search-box {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--muted);
}
.calendar-search-box:focus-within {
  border-color: rgba(122, 29, 45, .42);
  box-shadow: 0 0 0 4px rgba(122, 29, 45, .08), var(--shadow);
  color: var(--wine-800);
}
.calendar-search-input {
  min-width: 0;
  flex: 1;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.calendar-search-input::placeholder {
  color: #9a8d91;
  font-weight: 600;
}
.calendar-search-input::-webkit-search-cancel-button {
  display: none;
}
.calendar-search-clear {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f4edef;
  color: var(--wine-800);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}
.calendar-search-results {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 360px;
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(54, 16, 27, .18);
}
.calendar-search-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.calendar-search-result:hover,
.calendar-search-result:focus-visible {
  background: #f8f0f2;
  outline: none;
}
.calendar-search-result-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.calendar-search-result-main strong,
.calendar-search-result-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-search-result-main strong {
  font-size: 13px;
}
.calendar-search-result-main small {
  color: var(--muted);
  font-size: 11px;
}
.calendar-search-result-source {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4edef;
  color: var(--wine-800);
  font-size: 10px;
  font-weight: 800;
}
.calendar-search-empty {
  padding: 18px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.calendar-search-active .booking-block.calendar-search-dim {
  opacity: .18;
  filter: grayscale(.75);
}
.booking-block.calendar-search-match {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(212, 164, 61, .95), 0 8px 20px rgba(73, 17, 31, .28);
}
.booking-block.calendar-search-focused {
  animation: calendar-search-pulse 1.15s ease-in-out 3;
}
@keyframes calendar-search-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.055); }
}

@media (max-width: 760px) {
  .calendar-search-results {
    max-height: 300px;
  }
  .calendar-search-result-source {
    display: none;
  }
}


/* ============================================================
   SUNWINE — language switcher (RU / EN / KA)
   ============================================================ */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.08);
}

.language-option {
  min-width: 0;
  border: 0;
  border-radius: 9px;
  padding: 7px 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.language-option:hover {
  background: rgba(255,255,255,.09);
}

.language-option.active {
  background: #fff;
  color: var(--wine-900);
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
}

.language-short { display: none; }
.language-full { display: inline; white-space: nowrap; }

.language-switcher-sidebar {
  margin: 0 12px 2px;
  color: #eadde0;
}

.language-switcher-sidebar .language-option {
  flex: 1 1 0;
}

.language-switcher-auth {
  justify-self: center;
  border-color: var(--border);
  background: #f7f1ee;
  color: #6a5b60;
}

.language-switcher-auth .language-option:hover {
  background: rgba(122,29,45,.07);
}

html[data-language="ka"] body,
html[data-language="ka"] button,
html[data-language="ka"] input,
html[data-language="ka"] select,
html[data-language="ka"] textarea {
  font-family: "Noto Sans Georgian", Manrope, Arial, sans-serif;
}

html[data-language="ka"] .auth-shell h1,
html[data-language="ka"] .page-heading h1,
html[data-language="ka"] .modal h2,
html[data-language="ka"] .brand-copy strong {
  font-family: "Noto Sans Georgian", Manrope, Arial, sans-serif;
  letter-spacing: -.02em;
}

@media (max-width: 860px) {
  .language-switcher-sidebar {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    z-index: 90;
    margin: 0;
    border-color: rgba(122,29,45,.15);
    background: rgba(255,255,255,.96);
    color: var(--wine-900);
    box-shadow: 0 10px 30px rgba(53,12,23,.16);
    backdrop-filter: blur(14px);
  }

  .language-switcher-sidebar .language-option {
    flex: 0 0 auto;
    min-width: 35px;
    padding: 8px 7px;
  }

  .language-switcher-sidebar .language-option.active {
    background: var(--wine-800);
    color: #fff;
  }

  .language-switcher-sidebar .language-full { display: none; }
  .language-switcher-sidebar .language-short { display: inline; }
}

@media (max-width: 520px) {
  .language-switcher-auth {
    width: 100%;
  }

  .language-switcher-auth .language-option {
    flex: 1 1 0;
    padding: 9px 6px;
  }

  .language-switcher-auth .language-full { display: none; }
  .language-switcher-auth .language-short { display: inline; }
}
