:root {
  --bg: #1e272e;
  --card: #2f3640;
  --card-2: #353b48;
  --ink: #f5f6fa;
  --muted: #a4b0be;
  --accent: #74b9ff;
  --line: rgba(255, 255, 255, 0.08);
  --px: 92px;
  --who: 168px;
  --hours: 10;
  --lane: 78px;
  --queue-h: 260px;
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body, #app {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

.screen {
  min-height: 100%;
}

.session,
.stores {
  min-height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 420px at 50% 18%, rgba(116, 185, 255, 0.16), transparent 60%),
    #16324a;
  padding: 24px;
}

.panel {
  width: min(480px, 100%);
  background: #10283a;
  border: 2px solid #d7f3ff;
  border-radius: 18px;
  padding: 28px 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h1 { margin: 0; font-size: 28px; }

.head-tools { display: flex; align-items: center; gap: 8px; }

.bell {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #18364c;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 42px;
}

.mail-btn {
  width: 42px;
  padding: 0;
  background: #18364c;
  font-size: 18px;
}

.chat {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  padding: 0 18px 18px;
}

.chat-people, .chat-thread {
  background: var(--card);
  border-radius: 12px;
  min-height: 0;
  min-width: 0;
}

.chat-people { overflow: auto; padding: 8px; }

.chat-person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  padding: 10px 12px;
}
.chat-person strong { font-size: 15px; }
.chat-person span {
  color: var(--muted);
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-person.active { background: var(--card-2); }
.chat-person .bell-badge { top: 10px; right: 10px; }

.chat-thread {
  display: flex;
  flex-direction: column;
}
.chat-with {
  flex: none;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 16px;
  font-weight: 700;
}
.chat-thread > .empty { margin: auto; }

.chat-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(70%, 420px);
}
.msg.mine { align-self: flex-end; align-items: flex-end; }
.bubble {
  max-width: 100%;
  background: var(--card-2);
  border-radius: 16px 16px 16px 4px;
  padding: 8px 12px;
}
.bubble.mine {
  background: #1a6b8a;
  border-radius: 16px 16px 4px 16px;
}
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble time { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.72); font-size: 11px; }
.bubble .vu {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #9fd6ea;
}
.bubble-del {
  display: block;
  margin-top: 4px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
}
.bubble-del:hover { color: #fff; }

.chat-compose {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-compose input[name="message"] {
  flex: 1;
  min-width: 120px;
  background: var(--card-2);
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
}
.chat-compose .file-name { flex-basis: 100%; min-height: 0; color: var(--muted); font-size: 12px; }
.clip-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--card-2);
  cursor: pointer;
}
.clip-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.attach-wrap { display: block; margin-top: 6px; }
.attach { display: inline-block; margin-top: 6px; color: #9fd6ea; word-break: break-word; }
.attach img { display: block; max-width: 220px; max-height: 160px; border-radius: 10px; background: #fff; }
.attach-pdf { display: block; width: min(100%, 280px); height: 180px; border: 0; border-radius: 10px; background: #fff; }
.file-link { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; }
.attach.pending { font-style: italic; }
.bubble-name {
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 4px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  position: static;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #9fd6ea;
}
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.field .check {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.field .check input {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}
.member-list { max-height: 220px; overflow: auto; margin-bottom: 12px; }
.new-group { color: #e67e22; font-weight: 700; }

@media (max-width: 800px) {
  .chat { grid-template-columns: 1fr; }
}

.plan .bell { background: var(--card-2); }
.bell.has-unread { box-shadow: 0 0 0 2px #e74c3c; }

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-notice { position: relative; background: #1a6b8a; }
.btn-badge {
  display: inline-grid;
  place-items: center;
  margin-left: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: #e74c3c;
  color: white;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: #e74c3c;
  color: white;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.admin-panels {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.2fr);
  gap: 16px;
  padding: 0 18px 18px;
  align-content: start;
}

.admin-panel {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}

.manage-grid {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 16px;
  padding: 8px 18px 18px;
  align-content: start;
}

.manage-wide { grid-column: 1 / -1; }

.company-card {
  border: 1px solid #3a4150;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
}

.company-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 18px 0;
}
.company-tab {
  border: 0;
  background: var(--card);
  border-radius: 999px;
  padding: 8px 16px;
}
.company-tab.on {
  background: var(--accent);
  color: #1e272e;
  font-weight: 600;
}
.tab-create {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.tab-create input {
  width: 190px;
  background: var(--card);
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
}
.company-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.company-head h2 { margin: 0; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
}
.dash-card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.dash-card h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.dash-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}
.dash-card p { margin: 4px 0; color: var(--muted); }
.meter {
  height: 8px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 99px;
  background: #1e272e;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.meter.warn i { background: #e17055; }

.company-card h3 { margin: 0; font-size: 16px; }
.company-card .row { margin-top: 8px; }
.company-card .row > .btn,
.admin-panel > .row > .btn { flex: 0 0 auto; }

.ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #2c3340;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #3ddc84;
}

.log-filters {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin: 8px 0 12px;
}
.log-filters .field { margin: 0; }
.log-list { max-height: 280px; overflow: auto; }
.log-line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #2c3340;
  font-size: 14px;
}

.admin-panel h2 { margin: 0; font-size: 18px; }
.admin-panel form + h2 { margin-top: 18px; }
.admin-panel .notice-list { max-height: none; }
.admin-panel .hint { margin: 8px 0 12px; }
.panel-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-tools h2 { margin-right: auto; }

.send-notice {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
}

.mem-table .clip {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .admin-panels { grid-template-columns: 1fr; }
  .manage-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .log-filters { grid-template-columns: 1fr; }
  .manage-wide { grid-column: auto; }
}

.notice-list { max-height: 360px; overflow: auto; }

.notice {
  background: var(--card-2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.notice strong { display: block; margin-bottom: 4px; }
.notice p { margin: 0 0 6px; white-space: pre-wrap; }
.notice span { color: var(--muted); font-size: 12px; }
.notice.unread { outline: 1px solid #e74c3c; }

.lead {
  margin: 8px 0 18px;
  color: #d5e8f2;
  line-height: 1.4;
}

.trial {
  margin: 0 0 16px;
  color: #9fd6ea;
  font-size: 13px;
}

.login-error { color: #ff7675; margin: 0 0 12px; font-size: 14px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
  background: #18364c;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 15px;
}

.plan .field input,
.plan .field select,
.plan .field textarea,
.modal .field input,
.modal .field select,
.modal .field textarea {
  background: var(--card-2);
}
.modal .field .check input {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
}

.field textarea { min-height: 92px; resize: vertical; }

.row {
  display: flex;
  gap: 8px;
}

.row > * { flex: 1; }

.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--card-2);
  font-weight: 700;
}

.btn:hover { filter: brightness(1.08); }

.btn-green { background: #27ae60; }
.btn-blue { background: #1a6b8a; }
.btn-accent { background: #1a7f9c; }
.btn-orange { background: #e67e22; }
.btn-grey { background: #57606f; }
.btn-red { background: #c0392b; }
.btn-orange { background: #e67e22; }
.btn-ghost { background: transparent; color: var(--muted); }

.store-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.store-actions { display: flex; flex-direction: column; gap: 8px; }
.store-actions .btn { width: 100%; }

.store {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #18364c;
  border-radius: 10px;
  padding: 4px 4px 4px 8px;
}

.store button.open {
  flex: 1;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 12px;
  font-size: 18px;
  font-weight: 700;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d5e8f2;
}

.plan {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.plan-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 10px;
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand strong { font-size: 18px; }
.brand span { color: var(--muted); font-size: 13px; }

.spacer { flex: 1; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 18px 10px;
  padding: 12px;
  background: var(--card);
  border-radius: 12px;
}

.views { display: flex; gap: 4px; background: #1e272e; padding: 4px; border-radius: 10px; }

.views button {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
}

.views button[aria-pressed="true"] { background: var(--accent); color: #10283a; }

.date-nav strong { text-transform: capitalize; min-width: 12ch; text-align: center; }

.date-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.date-nav input[type="date"] {
  background: var(--card-2);
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
}

.time-scroll {
  flex: 1;
  min-height: 140px;
  overflow: auto;
  margin: 0 18px;
  border-radius: 12px 12px 0 0;
  background: #2f3640;
  display: flex;
  flex-direction: column;
}

.time-head, .band {
  display: flex;
  width: 100%;
  min-width: calc(var(--who) + var(--hours) * 72px);
  flex-shrink: 0;
}

.band { flex: 1 0 auto; }

.who {
  position: sticky;
  left: 0;
  z-index: 3;
  width: var(--who);
  flex: 0 0 var(--who);
  background: #3d4451;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 12px 0;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.who-head { z-index: 4; color: var(--muted); font-size: 12px; align-items: flex-end; padding: 0 12px 8px; }

.hours, .track {
  position: relative;
  flex: 1 1 auto;
  width: auto;
  min-width: calc(var(--hours) * 72px);
}

.hours { height: 48px; display: flex; }

.hour {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 0 8px 6px;
  color: var(--muted);
  font-size: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hour-end {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  flex: none;
  width: max-content;
  justify-content: flex-end;
  padding: 0 4px 8px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.band .who { background: #2c343d; }

.track {
  align-self: stretch;
  height: auto;
  min-height: 128px;
  background-color: #2f3640;
  border-bottom: 1px solid var(--line);
}

.vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.track.drop, .queue.drop { outline: 2px solid var(--accent); outline-offset: -2px; }

.now {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e74c3c;
  z-index: 1;
  pointer-events: none;
}

.block {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  padding: 6px 10px 6px 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  touch-action: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.block strong, .block span, .block em {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block strong { font-size: 14px; }
.block span, .block em, .qcard span, .qcard em { font-size: 12px; font-style: normal; opacity: 0.9; }
.block em, .qcard em { margin-top: auto; font-size: 11px; }
.or { font-weight: 400; letter-spacing: 0.01em; font-style: normal; }

.block { cursor: pointer; }

.block.recurring {
  cursor: default;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(0, 0, 0, 0.05) 6px,
    rgba(0, 0, 0, 0.05) 12px
  );
}

.block.dragging, .qcard.dragging { opacity: 0.35; }

.resize {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  cursor: ew-resize;
}

.resize::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 3px;
  width: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.45;
}

.ghost {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  opacity: 0.92;
}

.queue-split {
  flex: 0 0 14px;
  margin: 0 18px;
  cursor: ns-resize;
  background: #353b48;
  position: relative;
  touch-action: none;
}

.queue-split::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: #a4b0be;
  transform: translate(-50%, -50%);
}

.queue {
  flex: 0 0 var(--queue-h);
  height: var(--queue-h);
  margin: 0 18px 14px;
  background: var(--card);
  border-radius: 0 0 12px 12px;
  min-height: 0;
  overflow: auto;
}

.queue h2 {
  margin: 0;
  padding: 10px 12px;
  background: var(--card-2);
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  position: sticky;
  top: 0;
}

.qlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  align-items: flex-start;
  align-content: flex-start;
}

.qcard {
  flex: 0 1 auto;
  width: max-content;
  max-width: min(420px, 100%);
  min-width: 160px;
  height: auto;
  min-height: 74px;
  border-radius: 8px;
  padding: 8px 10px 6px 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
  touch-action: none;
}

.qcard strong, .qcard span, .qcard em {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.qcard strong { font-size: 14px; margin: 0; }
.qcard span { font-size: 12px; opacity: 0.9; line-height: 1.25; }
.qcard .qmeta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  white-space: nowrap;
}
.qcard .qmeta span {
  display: inline;
  width: auto;
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
}
.qcard .qkind { margin-left: auto; font-weight: 700; }

.site {
  height: 100%;
  overflow: auto;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(14, 138, 125, 0.16), transparent 60%),
    #e7eef2;
  color: #12202b;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: #123044;
  color: #f4f7f8;
}

.site-brand {
  border: 0;
  background: transparent;
  color: #f4f7f8;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav { display: flex; gap: 4px; }
.site-nav button {
  border: 0;
  background: transparent;
  color: #d5e2ea;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
}
.site-nav button.on { background: rgba(255, 255, 255, 0.12); color: #fff; }

.site-back {
  margin-left: auto;
  color: #d5e2ea;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.site-enter {
  margin-left: 12px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: #0e8a7d;
  color: #f4fffc;
  font-weight: 700;
}

.site-enter.on { background: #f4f7f8; color: #123044; }

.site-body { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 36px; }

.site-legal {
  margin-top: 28px;
  padding: 28px 24px 32px;
  background: #123044;
  color: #d5e2ea;
  text-align: center;
}
.site-legal p { margin: 0 auto; max-width: 680px; font-size: 14px; line-height: 1.5; }
.site-legal p + p { margin-top: 6px; }
.site-legal strong { color: #f4f7f8; }

.site-kicker {
  margin: 0 0 10px;
  color: #0e8a7d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-hero h1 { margin: 0 0 14px; max-width: 16em; font-size: 44px; line-height: 1.08; color: #12202b; }
.site-hero p { margin: 0; max-width: 640px; color: #4d6270; line-height: 1.55; font-size: 18px; }

.site-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.site-cta, .site-ghost {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}
.site-cta { background: #0e8a7d; color: #f4fffc; }
.site-ghost { background: transparent; color: #123044; box-shadow: inset 0 0 0 1.5px #123044; }

.site-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.site-points li {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 28px rgba(18, 48, 68, 0.06);
}
.site-points strong { display: block; margin-bottom: 6px; color: #12202b; }
.site-points span { color: #4d6270; line-height: 1.45; }

.site-shot {
  margin: 22px 0 0;
  padding: 12px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(18, 48, 68, 0.08);
}

.site-shot img { display: block; width: 100%; height: auto; border-radius: 14px; }
.site-shot figcaption { margin: 10px 6px 2px; color: #4d6270; font-size: 14px; }

.site-show { margin-top: 52px; }
.site-show header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 16px;
}
.site-show h2 { margin: 0; font-size: 32px; line-height: 1.15; color: #12202b; }
.site-show header > p { margin: 0; color: #4d6270; line-height: 1.55; }
.site-show .site-shot { margin-top: 0; }

.site-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
}
.site-split .site-shot { margin: 0; }
.site-split h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; color: #12202b; }
.site-split p { margin: 0; color: #4d6270; line-height: 1.55; }

.site-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.site-steps li {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 28px rgba(18, 48, 68, 0.06);
}
.site-steps b {
  display: block;
  margin-bottom: 10px;
  color: #0e8a7d;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.site-steps strong { display: block; margin-bottom: 6px; color: #12202b; }
.site-steps span { color: #4d6270; line-height: 1.45; }

.site-note { margin: 28px 0 0; color: #4d6270; line-height: 1.5; }

.site-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.site-features article {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 28px rgba(18, 48, 68, 0.06);
}
.site-features h2 { margin: 0 0 8px; font-size: 18px; color: #12202b; }
.site-features p { margin: 0; color: #4d6270; line-height: 1.5; }

.site-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(18, 48, 68, 0.06);
}
.offer.featured { background: #123044; color: #f4f7f8; }
.offer.featured p { color: #d5e2ea; }
.offer h2 { margin: 0; font-size: 32px; }
.offer p { margin: 0; color: #4d6270; line-height: 1.5; }
.offer .site-cta { margin-top: 8px; }
.offer.featured .site-cta { background: #0e8a7d; color: #f4fffc; }
.offer.on { outline: 2px solid #0e8a7d; }
.offer-badge {
  margin: 0;
  color: #0e8a7d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.offer.featured .offer-badge { color: #8ee0d4; }
.offer-badge.quiet { color: #4d6270; }

.site-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.site-order {
  position: relative;
  width: min(520px, 100%);
  margin: 22px auto 0;
  padding: 22px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(18, 48, 68, 0.08);
}
.site-order h2 { margin: 0 0 6px; color: #12202b; }
.site-order > p { margin: 0 0 14px; color: #4d6270; }
.site-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.site-ok {
  margin: 22px 0 0;
  padding: 18px 20px;
  background: #fff;
  border-radius: 16px;
  color: #0e8a7d;
  font-weight: 700;
}

.site-login { display: grid; place-items: center; padding-top: 24px; }

.site .panel {
  background: #fff;
  border: 1px solid #d5e2ea;
  box-shadow: 0 18px 40px rgba(18, 48, 68, 0.08);
  color: #12202b;
}

.site .panel h1 { color: #12202b; }
.site .lead { color: #4d6270; }
.site .field { color: #4d6270; }
.site .field input, .site .field textarea {
  background: #e7eef2;
  color: #12202b;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
}
.site .field textarea { resize: vertical; min-height: 72px; }
.site .btn-accent { background: #0e8a7d; }
.site .login-error { color: #b42318; }

.dash-demandes { grid-column: 1 / -1; }
.demande-row { padding: 10px 0; border-top: 1px solid var(--line); }
.demande-row strong { display: inline; margin-right: 8px; font-size: 16px; }
.demande-row span { color: var(--muted); font-size: 13px; margin-right: 10px; }
.demande-row p { margin: 6px 0 0; white-space: pre-wrap; }

@media (max-width: 800px) {
  .site-bar { flex-wrap: wrap; padding: 12px 16px; }
  .site-nav { order: 3; width: 100%; }
  .site-hero h1 { font-size: 32px; }
  .site-points, .site-features, .site-offers, .site-show header, .site-split, .site-steps { grid-template-columns: 1fr; }
}

.empty {
  color: var(--muted);
  padding: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  flex: 0 0 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 16, 0.62);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 30;
}

.modal-card {
  width: min(560px, 100%);
  max-height: min(860px, 100%);
  overflow: auto;
  background: var(--card);
  border-radius: 14px;
  padding: 18px 18px 14px;
  border-top: 3px solid var(--accent);
}

.modal-card.wide { width: min(880px, 100%); }

.modal-card h2 { margin: 0 0 6px; color: var(--accent); }

.hint { margin: 0 0 14px; color: var(--muted); font-size: 13px; }

.checks { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.checks label { display: flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ink); letter-spacing: 0; font-size: 14px; }

.actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.person-row, .type-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.person-row strong, .type-row strong { flex: 1; min-width: 0; }

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  padding: 0;
  flex: 0 0 22px;
}

.palette {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0 2px;
}

.swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid transparent;
  padding: 0;
}

.swatch.on { border-color: white; }

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 18px 18px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

.cal .dow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px;
}

.daycell {
  min-height: 92px;
  background: var(--card);
  border: 0;
  border-radius: 10px;
  text-align: left;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.daycell time { color: var(--muted); font-size: 12px; }
.daycell.off { opacity: 0.4; }
.daycell.today { outline: 1px solid var(--accent); }

.chip {
  display: block;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.year {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  align-content: start;
}

.month-card {
  background: var(--card);
  border: 0;
  border-radius: 12px;
  min-height: 110px;
  text-align: left;
  padding: 14px;
}

.month-card strong { display: block; font-size: 18px; text-transform: capitalize; }
.month-card span { color: var(--muted); }

.mem-search {
  background: var(--card-2);
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  min-width: min(280px, 100%);
}

.mem-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 18px 18px;
  gap: 8px;
}

.mem-count { margin: 0; color: var(--muted); font-size: 13px; }

.mem-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--card);
  border-radius: 12px;
}

.mem-table { width: 100%; border-collapse: collapse; }

.mem-table th, .mem-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.mem-table th {
  position: sticky;
  top: 0;
  background: #353b48;
  color: var(--muted);
  font-size: 12px;
  z-index: 1;
}

.mem-row { cursor: pointer; }
.mem-row:hover td, .mem-row:focus td { background: rgba(116, 185, 255, 0.14); }

.memo-notes {
  white-space: pre-wrap;
  background: var(--card-2);
  border-radius: 8px;
  padding: 12px;
  min-height: 96px;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .split, .year { grid-template-columns: 1fr 1fr; }
  .date-nav { margin-left: 0; }
  .cal { gap: 4px; }
  .daycell { min-height: 64px; }
}
