:root {
  --font: "Inter", system-ui, sans-serif;
  --day-w: 52px;
  --ink: #1C1917;
  --muted: #78716C;
  --subtle: #A8A29E;
  --bg: #FDFAF7;
  --surface: #fff;
  --border: #E7E5E4;
  --border-lt: #F5F5F4;
  --accent: #C4622D;
  --accent-dk: #A34E23;
  --accent-lt: #FDF0E8;
  --accent-xlt: #FEF7F2;
  --green: #16A34A;
  --red: #DC2626;
}

* { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Hero — casual, small */
.hero {
  padding: 28px 20px 16px;
}

.hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Main */
main {
  padding: 0 0 120px;
  position: relative;
}

/* Month tabs */
.month-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 8px;
  gap: 8px;
}

.month-tab-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}

/* View toggle */
.view-toggle {
  display: flex;
  gap: 2px;
  background: var(--border-lt);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.vt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--subtle);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.vt-btn:hover { color: var(--muted); }
.vt-btn.active { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.month-tab {
  border: none;
  background: var(--border-lt);
  color: var(--muted);
  font: 600 0.9rem var(--font);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

.month-tab:hover, .month-tab.active {
  background: var(--accent);
  color: #fff;
}

/* Hint */
.hint {
  font-size: 0.9rem;
  color: var(--subtle);
  padding: 0 20px 12px;
  transition: color 0.2s;
}

.hint.active { color: var(--accent); font-weight: 600; }
.hint.success { color: var(--green); font-weight: 600; }

/* Timeline wrapper */
.tl-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.tl-scroll {
  position: relative;
  min-height: 200px;
  padding-left: 4px;
  cursor: pointer;
}

/* Month labels */
.tl-months {
  position: relative;
  height: 26px;
}

.tl-month {
  position: absolute;
  top: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 4px;
  border-left: 1px solid var(--border);
}

/* Day columns */
.tl-days {
  display: flex;
  position: relative;
  height: 52px;
  border-bottom: 1px solid var(--border);
}

.tl-day {
  width: var(--day-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.1s;
  border-radius: 6px;
  gap: 1px;
}

.tl-day:hover:not(.blk) {
  background: var(--accent-xlt);
}

.tl-day:active:not(.blk) {
  background: var(--accent-lt);
}

.tl-day.wknd {
  background: rgba(0,0,0,0.02);
}

.tl-day.blk {
  opacity: 0.3;
  cursor: not-allowed;
}

.tl-dow {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  line-height: 1;
}

.tl-num {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

/* Selection states */
.tl-day.sel-start, .tl-day.sel-end {
  background: var(--accent) !important;
  border-radius: 6px;
}

.tl-day.sel-start .tl-dow, .tl-day.sel-end .tl-dow,
.tl-day.sel-start .tl-num, .tl-day.sel-end .tl-num {
  color: #fff;
}

.tl-day.sel-start {
  animation: pulse 1.8s ease-in-out infinite;
}

.tl-day.sel-start.done { animation: none; }

@keyframes pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 4px rgba(196, 98, 45, 0.2); }
}

.tl-day.in-range {
  background: var(--accent-lt) !important;
}

.tl-day.preview {
  background: var(--accent-xlt) !important;
}

/* Events row */
.tl-events {
  position: relative;
  height: 22px;
  border-bottom: 1px solid var(--border-lt);
}

.tl-event {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: default;
}

.ev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.ev-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-dk);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bars area */
.tl-bars {
  position: relative;
  padding: 8px 0;
}

.tl-row {
  position: relative;
  height: 50px;
}

.tl-bar {
  position: absolute;
  top: 4px;
  height: 42px;
  border-radius: 21px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.tl-bar:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.bar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bar-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bar-color, var(--ink));
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-msg {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Blocked range bars */
.tl-blocked-bars {
  position: relative;
  padding: 4px 0 0;
}

.tl-blocked-bar {
  background: rgba(220, 38, 38, 0.08) !important;
  border: 1.5px dashed rgba(220, 38, 38, 0.3) !important;
  cursor: default;
}

.tl-blocked-bar:hover {
  box-shadow: none;
  transform: none;
}

.blocked-avatar {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  font-size: 0.7rem;
}

.blocked-name {
  color: #dc2626 !important;
  opacity: 0.7;
  font-weight: 600 !important;
}

/* Flight badge */
.flight-badge {
  font-size: 0.75rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.mg-flight-badge {
  font-size: 0.6rem;
  opacity: 0.5;
  margin-left: 2px;
}

/* Flight textarea */
#flight-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  background: var(--surface);
  color: var(--ink);
  box-sizing: border-box;
}

#flight-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-lt);
}

/* Selection bar */
.tl-select-bar {
  background: var(--accent-lt) !important;
  border: 2px dashed var(--accent) !important;
  display: none;
}

.tl-select-bar .bar-avatar {
  background: var(--accent);
}

.tl-select-bar .bar-name {
  color: var(--accent);
}

.tl-select-bar.visible {
  display: flex;
}

/* Bar tooltip */
.bar-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
  animation: fade-up 0.15s ease;
}

.bar-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}

/* Anchored hint */
.anchored-hint {
  position: absolute;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
  animation: fade-up 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anchored-hint::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--ink);
  border-top: 0;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Apartment note */
.apt-note {
  font-size: 0.75rem;
  color: var(--subtle);
  padding: 12px 20px 0;
}

/* Booking panel */
.panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  padding: 20px 20px max(24px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
}

.panel.open { transform: translateY(0); }

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.panel-dates {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.panel-x {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--subtle);
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}

.panel-x:hover { background: var(--border-lt); }

/* Form */
#book-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#book-form input[type="text"],
#book-form input[type="email"] {
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

#book-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.1);
}

#book-form input::placeholder { color: var(--subtle); }

.btn-primary {
  border: none;
  background: var(--accent);
  color: #fff;
  font: 600 1rem var(--font);
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 48px;
}

.btn-primary:hover { background: var(--accent-dk); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.form-err {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
}

.form-err.visible { display: block; }

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Success panel overlay */
.panel.success-mode {
  text-align: center;
}

.success-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.success-msg { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.success-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: 600 0.85rem var(--font);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
}

.btn-ghost:hover { background: var(--border-lt); }

/* Month grid view */
.mg-wrap {
  padding: 0 16px 16px;
}

.mg-month {
  margin-bottom: 24px;
}

.mg-month-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding-left: 2px;
}

.mg-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 2px;
}

.mg-hcell {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--subtle);
  text-transform: uppercase;
  padding: 4px 0;
}

.mg-week {
  margin-bottom: 2px;
}

.mg-week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  position: relative;
}

.mg-week-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  column-gap: 2px;
  row-gap: 2px;
  padding: 2px 0;
}

.mg-bar {
  height: 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  overflow: hidden;
  white-space: nowrap;
}

.mg-bar.cont-l {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 4px;
}

.mg-bar.cont-r {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.mg-bar-blocked {
  border-style: dashed;
}

.mg-bar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mg-bar-name {
  font-size: 0.7rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-empty {
  min-height: 44px;
}

.mg-day {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.1s;
  gap: 2px;
  padding: 2px;
}

.mg-day:hover:not(.blk) {
  background: var(--accent-xlt);
}

.mg-day:active:not(.blk) {
  background: var(--accent-lt);
}

.mg-day.wknd {
  background: rgba(0,0,0,0.02);
}

.mg-day.blk {
  opacity: 0.3;
  cursor: not-allowed;
}

.mg-num {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.mg-dots {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.mg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mg-dot-ev {
  background: var(--accent);
}

/* Month grid selection states */
.mg-day.sel-start, .mg-day.sel-end {
  background: var(--accent) !important;
  border-radius: 8px;
}

.mg-day.sel-start .mg-num, .mg-day.sel-end .mg-num {
  color: #fff;
}

.mg-day.sel-start .mg-dot, .mg-day.sel-end .mg-dot {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.5);
}

.mg-day.sel-start {
  animation: pulse 1.8s ease-in-out infinite;
}

.mg-day.sel-start.done { animation: none; }

.mg-day.in-range {
  background: var(--accent-lt) !important;
}

.mg-day.preview {
  background: var(--accent-xlt) !important;
}

/* Admin styles */
.admin-hero { padding: 28px 20px 20px; background: linear-gradient(160deg, #fef3c7 0%, var(--bg) 55%); }
.admin-hero h1 { font-size: 1.3rem; }

.admin-section { padding: 0 20px; margin-bottom: 32px; }
.admin-section h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }

.stat-row { display: flex; gap: 24px; margin: 12px 0 0; }
.stat-num { font-size: 1.5rem; font-weight: 700; display: block; }
.stat-label { font-size: 0.7rem; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.06em; }

.admin-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.admin-form input { font: inherit; font-size: 0.85rem; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; outline: none; }
.admin-form input:focus { border-color: var(--accent); }
.admin-form button { font: 600 0.8rem var(--font); padding: 8px 14px; border: none; background: var(--accent); color: #fff; border-radius: 8px; cursor: pointer; }

.admin-list { display: grid; gap: 6px; }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border-lt); border-radius: 10px; font-size: 0.85rem; flex-wrap: wrap; }
.admin-row .name { font-weight: 700; min-width: 80px; }
.admin-row .dates { color: var(--accent); font-weight: 600; font-size: 0.8rem; }
.admin-row .email { color: var(--subtle); font-size: 0.8rem; }
.admin-row .msg { color: var(--muted); font-style: italic; font-size: 0.8rem; width: 100%; }
.admin-row .rm { margin-left: auto; background: none; border: none; color: var(--red); font-size: 1rem; cursor: pointer; padding: 4px 8px; }
.admin-blocked { background: #fef2f2; }
.admin-event { background: #fef7ed; }

.flight-status { font-weight: 500; font-size: 0.75rem; }
.flight-status.confirmed { color: #059669; }
.flight-status.pending { color: var(--subtle); }
.flight-details { color: #059669 !important; font-style: normal !important; }

.admin-cal-link { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.admin-cal-link:hover { text-decoration: underline; }

.btn-connect { margin-left: auto; padding: 6px 14px; font: 600 0.8rem var(--font); background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; }
.btn-connect:hover { background: var(--accent-dk); }

.btn-save { margin-top: 0.75rem; padding: 8px 16px; font: 600 0.8rem var(--font); background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.btn-save:hover { background: var(--accent-dk); }

.google-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border-lt); border-radius: 10px; font-size: 0.85rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); display: inline-block; }
.status-dot.connected { background: #059669; }

.back-link { color: var(--subtle); font-size: 0.8rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.hint { color: var(--subtle); font-size: 0.8rem; }

.calendar-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-radius: 10px; cursor: pointer; margin-bottom: 6px; }
.calendar-check:hover { background: var(--border-lt); }
.calendar-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cal-name { font-weight: 500; font-size: 0.85rem; }
.cal-badge { margin-left: auto; background: #dbeafe; color: #1d4ed8; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }

.filter-btns { display: flex; gap: 6px; margin-bottom: 12px; }
.filter-btn { padding: 6px 14px; border-radius: 10px; background: var(--surface); color: var(--muted); font: 600 0.8rem var(--font); border: none; cursor: pointer; }
.filter-btn.active { background: var(--accent); color: #fff; }
.filter-btn:hover:not(.active) { background: var(--border-lt); }

.event-date-group { margin-bottom: 16px; }
.event-date-label { font-weight: 700; font-size: 0.8rem; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.event-card { display: flex; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border-lt); border-radius: 10px; margin-bottom: 6px; }
.event-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.event-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.event-summary { font-weight: 600; font-size: 0.85rem; }
.event-time { font-size: 0.8rem; color: var(--subtle); }
.event-cal { font-size: 0.75rem; font-weight: 600; }
.event-location { font-size: 0.8rem; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-login-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 20px; text-align: center; }
.admin-login-page h1 { font-size: 1.3rem; margin-bottom: 8px; }
.admin-login-page p { color: var(--subtle); font-size: 0.85rem; margin-bottom: 24px; }
.btn-google { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; font: 600 0.9rem var(--font); background: #fff; color: #333; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; text-decoration: none; transition: box-shadow 0.15s; }
.btn-google:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.btn-google svg { width: 20px; height: 20px; }

.admin-topbar { display: flex; justify-content: flex-end; padding: 8px 20px 0; }
.btn-logout { background: none; border: 1px solid var(--border); color: var(--subtle); font: 500 0.75rem var(--font); padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.btn-logout:hover { background: var(--border-lt); color: var(--text); }

/* Suggestion cards */
.admin-suggestion {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  flex-direction: column;
  gap: 8px;
}

.suggestion-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.suggestion-edit {
  flex: 1;
  font: inherit;
  font-size: 0.8rem;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  min-width: 0;
}

.suggestion-edit:focus {
  border-color: var(--accent);
}

.btn-approve {
  font: 600 0.75rem var(--font);
  padding: 6px 12px;
  border: none;
  background: #059669;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-approve:hover {
  background: #047857;
}

.btn-dismiss {
  font: 600 0.75rem var(--font);
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-dismiss:hover {
  background: var(--border-lt);
  color: var(--red);
}

.suggestion-count {
  font-size: 0.75rem;
  background: #3b82f6;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.site-footer { text-align: center; padding: 24px 20px; color: var(--subtle); font-size: 0.8rem; }
.site-footer p { margin: 0; }

/* Mobile */
@media (max-width: 640px) {
  :root { --day-w: 38px; }
  .hero h1 { font-size: 1.3rem; }
  .panel { max-width: 100%; border-radius: 14px 14px 0 0; }
  .admin-form { flex-direction: column; align-items: stretch; }
  .mg-day { min-height: 36px; }
  .mg-num { font-size: 0.8rem; }
  .mg-dot { width: 5px; height: 5px; }
  .mg-wrap { padding: 0 10px 16px; }
  .mg-bar { height: 18px; }
  .mg-bar-name { font-size: 0.65rem; }
  .mg-bar-dot { width: 5px; height: 5px; }
}
