:root {
  --cream: #FBF6EA;
  --surface: #FFFFFF;
  --ink: #17211C;
  --sun: #F6C445;
  --forest: #0F3D2E;
  --mist: #5C6B62;
  --moss: #1F6F54;
  --coral: #F26B4E;
  --sky: #8CC9E8;
  --ok: #1E7B4D;
  --err: #B42318;
  --border: rgba(92, 107, 98, .25);
  --shadow: 0 8px 24px rgba(23, 33, 28, .08);
  --shadow-strong: 0 16px 40px rgba(23, 33, 28, .16);
  --radius: 16px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-slow: cubic-bezier(.2, .7, .2, 1);
  --font: Manrope, Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 800; }
h1 { font-size: clamp(32px, 4.6vw, 56px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 14px; }
a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--surface);
  color: var(--ink); padding: 10px 16px; border-radius: 10px;
}
.muted { color: var(--mist); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--moss); margin-bottom: 8px;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(251, 246, 234, .96);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.02em;
}
.brand span { white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.role-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mist); }
.role-switch select { max-width: 140px; }
.icon-button {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  transition: box-shadow 150ms ease-out, transform 150ms ease-out;
}
.icon-button:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.unread-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px;
  border-radius: 999px; background: var(--forest); color: var(--cream); font-size: 11px;
  font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
.session-chip {
  background: var(--forest); color: var(--cream); border-radius: 999px;
  padding: 7px 12px; font-size: 12px; font-weight: 700;
}
.tabbar {
  max-width: 1280px; margin: 0 auto; padding: 0 20px 10px; display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: thin;
}
.tab {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  padding: 8px 12px; color: var(--mist); font-size: 13px; font-weight: 700;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.tab img { opacity: .85; }
.tab:hover { background: var(--surface); color: var(--ink); }
.tab.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.tab.is-active img { filter: invert(1); opacity: 1; }

/* main / screens */
main { max-width: 1280px; margin: 0 auto; padding: 24px; }
.screen { display: none; }
.screen.is-active { display: block; animation: panelIn 180ms var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.screen-head, .section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.screen-head h1 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 4px; }
.screen-head p { margin: 0; }
.actions, .filters, .toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar { margin-bottom: 16px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; min-width: 0;
}
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.split > .panel { margin-bottom: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 150ms ease-out, transform 150ms ease-out;
}
.card:hover { box-shadow: var(--shadow-strong); transform: translateY(-2px); }
.card-media { width: 100%; height: 160px; object-fit: cover; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 19px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--mist); font-size: 13px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.price { font-weight: 800; font-size: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--cream);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
  font-size: 12px; font-weight: 700; color: var(--ink);
}
.chip.sun { background: var(--sun); border-color: var(--sun); }
.chip.moss { background: rgba(31, 111, 84, .12); border-color: transparent; color: var(--moss); }
.chip.coral { background: var(--surface); border-color: var(--coral); color: var(--ink); }
.chip.sky { background: rgba(140, 201, 232, .3); border-color: transparent; }
.chip.mist { color: var(--mist); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 10px 18px;
  font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none;
  transition: background 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #FFFFFF; font-size: 18px; }
.btn-primary:hover { background: var(--coral); color: #FFFFFF; box-shadow: var(--shadow); }
.btn-secondary { background: var(--forest); color: var(--cream); }
.btn-secondary:hover { background: var(--forest); color: var(--cream); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { background: var(--cream); color: var(--forest); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.link-button { background: none; border: 0; padding: 0; color: var(--moss); font-weight: 700; text-decoration: underline; }

/* forms */
input, select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; min-height: 42px; outline: none;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
input:focus, select:focus, textarea:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(31, 111, 84, .15); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--moss); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid.compact { gap: 10px; }
.form-grid .consent { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; color: var(--mist); }
.form-grid .consent a { color: var(--moss); }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mist); }
.inline-check input { flex: none; }
.file-label { border: 1px dashed var(--mist); border-radius: 12px; padding: 12px; background: var(--cream); }
.form-status { font-size: 13px; font-weight: 700; color: var(--moss); min-height: 18px; margin: 0; }
.form-status.is-error { color: var(--err); }
.notice {
  background: rgba(140, 201, 232, .18); border-left: 3px solid var(--sky);
  padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--ink);
}
.segmented { display: inline-flex; background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg { background: transparent; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--mist); }
.seg.is-active { background: var(--forest); color: var(--cream); }

/* data */
.table-wrap { width: 100%; overflow-x: auto; border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.data-table th {
  text-align: left; padding: 10px 12px; color: var(--mist); font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border);
  background: var(--cream); white-space: nowrap;
}
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--cream); }
.money { font-weight: 800; white-space: nowrap; }
.empty { text-align: center; color: var(--mist); padding: 20px; display: grid; justify-items: center; gap: 8px; }
.empty img { max-width: 220px; height: auto; }

/* dashboard */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mist); font-weight: 700; }
.stat .stat-value { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 6px 0 2px; }
.stat .stat-note { font-size: 12px; color: var(--mist); }
.stat.accent { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.stat.accent .stat-label, .stat.accent .stat-note { color: rgba(251, 246, 234, .75); }
canvas { width: 100%; height: auto; display: block; }
.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-item { display: grid; gap: 5px; }
.bar-item .bar-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.bar-track { height: 10px; background: var(--cream); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--moss); border-radius: 999px; transition: width 320ms var(--ease-slow); }
.bar-fill.sun { background: var(--sun); }
.bar-fill.coral { background: var(--coral); }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-item { padding: 10px 12px; background: var(--cream); border-radius: 10px; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mini-item strong { display: block; }
.mini-item .muted { font-size: 12px; }

/* clients */
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.person { display: flex; align-items: center; gap: 10px; }
.person small { display: block; color: var(--mist); font-size: 12px; font-weight: 400; }
.contact-line { font-size: 12px; color: var(--mist); }

/* kanban */
.kanban {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr);
  gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start;
  min-height: 420px; scroll-snap-type: x proximity;
}
.kcol {
  background: var(--cream); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px; min-height: 400px; display: flex; flex-direction: column; gap: 8px;
  scroll-snap-align: start;
}
.kcol-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px 8px; }
.kcol-head h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 0; color: var(--mist); }
.kcount { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; }
.kcard {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--moss);
  border-radius: 12px; padding: 12px; cursor: grab; box-shadow: 0 2px 6px rgba(23, 33, 28, .05);
  transition: box-shadow 120ms var(--ease), transform 120ms var(--ease), opacity 120ms ease-out;
}
.kcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kcard.dragging { opacity: .55; transform: rotate(1deg); cursor: grabbing; }
.kcard.urgent { border-left-color: var(--coral); }
.kcard.vip { border-left-color: var(--sun); }
.kcard .knumber { font-size: 11px; color: var(--mist); font-weight: 700; letter-spacing: .04em; }
.kcard h4 { font-size: 14px; margin: 3px 0 4px; }
.kcard .kmeta { font-size: 12px; color: var(--mist); }
.kcard .kfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.kcol.dragover { background: rgba(246, 196, 69, .16); border-color: var(--sun); }
.kselect { font-size: 12px; min-height: 32px; padding: 4px 8px; width: auto; }

/* production */
.shift-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.shift-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.shift-card header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 8px; }
.progress-steps span { height: 8px; border-radius: 999px; background: var(--cream); border: 1px solid var(--border); }
.progress-steps span.done { background: var(--moss); border-color: var(--moss); }
.progress-steps span.now { background: var(--sun); border-color: var(--sun); }
.check-list { display: grid; gap: 6px; margin-top: 10px; }
.check-list label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.report-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--cream); }
.report-card img { width: 100%; height: 150px; object-fit: cover; }
.report-card .report-body { padding: 12px; font-size: 13px; }
.report-card strong { display: block; }
.report-photos { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 12px; }
.report-photos img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }

/* calendar */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar .dow { text-align: center; font-size: 11px; font-weight: 800; color: var(--mist); text-transform: uppercase; padding: 6px 0; }
.calday {
  min-height: 72px; background: var(--cream); border: 1px solid transparent; border-radius: 10px;
  padding: 6px; text-align: left; display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; transition: border-color 150ms ease-out, background 150ms ease-out;
}
.calday:hover { border-color: var(--moss); }
.calday.other { opacity: .4; }
.calday.today { background: var(--sun); }
.calday.selected { border-color: var(--forest); background: var(--surface); box-shadow: 0 0 0 2px var(--forest) inset; }
.calday .num { font-weight: 800; }
.calday .ev { background: var(--surface); border-left: 2px solid var(--moss); border-radius: 4px; padding: 1px 4px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calday .ev.report { border-left-color: var(--coral); }
.calday .ev.shift { border-left-color: var(--sky); }

/* notifications */
.notification-list, .doc-list, .diary-feed, .chat-messages { display: flex; flex-direction: column; gap: 10px; }
.notification {
  display: flex; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); align-items: flex-start;
}
.notification.unread { background: rgba(246, 196, 69, .1); border-color: var(--sun); }
.notification .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); margin-top: 7px; flex: none; }
.notification.unread .dot { background: var(--coral); }
.notification p { margin: 0; font-size: 13px; }
.notification time { font-size: 11px; color: var(--mist); }
.channel-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.channel-row strong { display: block; }
.channel-row .muted { font-size: 12px; }
.switch { position: relative; display: inline-flex; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background 150ms ease-out; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--surface); border-radius: 50%; transition: transform 150ms ease-out; }
.switch input:checked + span { background: var(--moss); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31, 111, 84, .25); }

/* documents */
.doc-list { gap: 8px; }
.doc-item { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--cream); }
.doc-item.approved { border-color: var(--ok); background: rgba(30, 123, 77, .06); }
.doc-item.rejected { border-color: var(--err); background: rgba(180, 35, 24, .05); }
.doc-item .doc-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.doc-item small { color: var(--mist); display: block; margin-top: 2px; }
.doc-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* diary */
.diary-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: center; background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; overflow: hidden; }
.diary-hero img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.diary-hero h2 { color: var(--cream); margin-bottom: 6px; }
.diary-hero p { margin: 0; color: rgba(251, 246, 234, .85); }
.diary-entry { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); }
.diary-entry h3 { margin-bottom: 4px; }
.diary-entry time { font-size: 12px; color: var(--mist); }
.diary-entry p { margin: 8px 0 0; }
.diary-photo { margin-top: 10px; border-radius: 10px; max-height: 220px; object-fit: cover; }
.chat-panel { display: flex; flex-direction: column; }
.chat-messages { background: var(--cream); border-radius: 12px; padding: 12px; min-height: 320px; max-height: 440px; overflow-y: auto; }
.msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 13px; }
.msg.parent { align-self: flex-end; background: var(--forest); color: var(--cream); border-bottom-right-radius: 3px; }
.msg.counselor { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.msg time { display: block; font-size: 10px; opacity: .7; margin-top: 3px; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 10px; }
.chat-form textarea { min-height: 58px; }

/* showcase */
.hero {
  position: relative; border-radius: 24px; overflow: hidden; min-height: 460px;
  display: flex; align-items: center; background: var(--forest); margin-bottom: 20px;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(15, 61, 46, .38); }
.hero-copy { position: relative; z-index: 1; margin: clamp(12px, 2vw, 24px); padding: clamp(20px, 3.4vw, 40px); max-width: 620px; color: var(--cream); background: rgba(15, 61, 46, .84); border-radius: 18px; }
.hero-copy h1 { color: var(--cream); font-size: clamp(34px, 5vw, 56px); margin-bottom: 14px; }
.hero-copy p { color: rgba(251, 246, 234, .9); font-size: 18px; max-width: 52ch; }
.hero-copy .eyebrow { color: var(--sun); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; padding: 0; margin: 18px 0 0; list-style: none; font-size: 13px; color: rgba(251, 246, 234, .85); }
.hero-facts strong { display: block; font-size: 22px; color: var(--sun); }
.feature-image { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; margin: 6px 0 14px; }
.feature-image.small { height: 170px; }
.news-list, .staff-list { display: flex; flex-direction: column; gap: 10px; }
.news-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; }
.news-item img { width: 76px; height: 64px; object-fit: cover; border-radius: 10px; }
.news-item h3 { font-size: 15px; margin-bottom: 2px; }
.news-item p { margin: 0; font-size: 13px; color: var(--mist); }
.staff-item { display: flex; gap: 10px; align-items: center; }
.staff-item img { width: 42px; height: 42px; border-radius: 50%; }
.staff-item strong { display: block; font-size: 14px; }
.staff-item span { font-size: 12px; color: var(--mist); }
.lead-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
.lead-panel h2 { margin-bottom: 10px; }

/* modal / toast */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(23, 33, 28, .45); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: var(--surface); border-radius: var(--radius); padding: 22px; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-strong); position: relative; animation: modalIn 220ms var(--ease) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--mist); padding: 4px; }
.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.toast { background: var(--forest); color: var(--cream); border-radius: 12px; padding: 11px 14px; font-size: 13px; box-shadow: var(--shadow-strong); animation: toastIn 200ms ease-out both; }
.toast.error { background: var(--err); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut 150ms ease-out both; }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* footer */
.site-footer { max-width: 1280px; margin: 10px auto 0; padding: 24px; border-top: 1px solid var(--border); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--mist); font-size: 13px; }
.site-footer p { margin: 0; }

/* responsive */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .lead-panel { grid-template-columns: 1fr; }
  .diary-layout { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .hero::after { background: rgba(15, 61, 46, .42); }
}
@media (max-width: 720px) {
  .header-inner { padding: 10px 14px; }
  main { padding: 14px; }
  .brand { font-size: 17px; }
  .role-switch label { display: none; }
  .role-switch select { max-width: 118px; }
  .tabbar { padding: 0 10px 8px; }
  .tab { padding: 7px 10px; }
  .panel { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 500px; align-items: flex-end; }
  .hero::after { background: rgba(15, 61, 46, .35); }
  .hero-copy { padding: 22px; }
  .hero-copy p { font-size: 16px; }
  .feature-image { height: 190px; }
  .diary-hero { grid-template-columns: 1fr; }
  .diary-hero img { height: 130px; }
  .calendar-layout .panel:first-child { display: none; }
  .calendar-mobile-list { display: flex; flex-direction: column; gap: 8px; }
  .kcard { cursor: default; }
  .chat-messages { min-height: 260px; }
}
@media (max-width: 480px) {
  .header-tools { gap: 6px; }
  .btn { padding: 9px 14px; }
  .hero-facts { gap: 14px; }
  .screen-head { align-items: flex-start; }
  .data-table { min-width: 560px; }
}
.cart-panel { min-width: 0; }
.cart-actions { display: flex; justify-content: flex-end; margin: 14px 0; }
.booking-total { font-weight: 800; font-size: 18px; color: var(--forest); margin: 6px 0; }
#cartItems .mini-item, #cartExtras .mini-item { flex-wrap: wrap; gap: 10px; }
#cartExtras h3 { margin: 16px 0 8px; font-size: 15px; }
#checkoutSummary { margin-bottom: 10px; }
@media (max-width: 480px) {
  .cart-actions .btn, .cart-panel .btn { width: 100%; }
  #cartItems .mini-item .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .screen.is-active, .modal-card, .toast { animation: none; }
  .btn:hover, .card:hover, .kcard:hover, .icon-button:hover { transform: none; }
}
