:root {
  --primary: #526c5c;
  --primary-dark: #3f5548;
  --on-primary: #ffffff;
  --secondary: #73351f;
  --ink: #342a27;
  --muted: #80746f;
  --line: #ded6ca;
  --paper: #fffdf8;
  --canvas: #f3ecdf;
  --soft: #ebe3d6;
  --success: #47745b;
  --warning: #b77b33;
  --radius: 8px;
  --shadow: 0 12px 35px rgba(70, 48, 34, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--canvas); }
body { min-height: 100%; margin: 0; min-width: 320px; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent); outline-offset: 2px; }

.auth-gate { min-height: 100vh; padding: 36px; display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(360px, .95fr); background: #292724; }
.auth-gate[hidden] { display: none; }
.auth-brand { position:relative;isolation:isolate;overflow:hidden;padding:clamp(34px,5vw,72px);display:flex;flex-direction:column;justify-content:space-between;color:#fffaf1;background:radial-gradient(circle at 76% 18%,rgba(155,177,159,.32),transparent 34%),linear-gradient(145deg,#262724,#37362f 58%,#49352b);border-radius:8px 0 0 8px; }
.auth-brand::before { content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,black,transparent 72%); }
.auth-brand-copy { position:relative;z-index:4; }
.auth-brand-copy > span { color:#e5c89f;font-size:10px;font-weight:800;letter-spacing:1.6px; }
.auth-brand-copy strong { display:block;margin-top:10px;font:800 clamp(36px,6vw,72px)/1 "Manrope"; }
.auth-brand-copy p { max-width:440px;margin:18px 0 0;color:#ddd4c9;font-size:14px; }
.auth-motion { position:relative;z-index:2;width:min(100%,680px);min-height:430px;margin:auto;display:grid;place-items:center;perspective:1100px; }
.auth-glow { position:absolute;width:68%;aspect-ratio:1;border-radius:50%;background:rgba(150,174,155,.23);filter:blur(55px);animation:authGlow 6s ease-in-out infinite; }
.auth-app-window { position:relative;width:min(88%,560px);aspect-ratio:1.42;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:13px;background:#f4eee4;box-shadow:0 34px 90px rgba(0,0,0,.34);transform:rotateY(-7deg) rotateX(3deg);animation:authWindowFloat 7s ease-in-out infinite; }
.auth-app-bar { height:34px;padding:0 12px;display:flex;align-items:center;gap:6px;background:#fffaf8;border-bottom:1px solid #ded6ca; }
.auth-app-bar span { width:6px;height:6px;border-radius:50%;background:#c7bdb2; }
.auth-app-bar span:first-child { background:#8a442c; }.auth-app-bar span:nth-child(2) { background:#c7a66f; }.auth-app-bar span:nth-child(3) { background:#637c69; }
.auth-app-bar b { margin-left:8px;color:#574c47;font-size:8px;letter-spacing:0; }
.auth-app-body { height:calc(100% - 34px);display:grid;grid-template-columns:58px 1fr; }
.auth-mini-nav { padding:17px 11px;display:grid;align-content:start;gap:13px;background:#292724; }
.auth-mini-nav i { height:7px;border-radius:4px;background:#59534d; }.auth-mini-nav i.active { background:#72907b; }
.auth-mini-main { min-width:0;padding:22px;background:linear-gradient(145deg,#f5eee4,#eee5d8); }
.auth-mini-heading { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
.auth-mini-heading span { width:40%;height:12px;border-radius:5px;background:#4a3e39; }.auth-mini-heading b { width:22%;height:18px;border-radius:4px;background:#526c5c; }
.auth-mini-stats { display:grid;grid-template-columns:repeat(3,1fr);gap:9px; }
.auth-mini-stats i { height:58px;border:1px solid #e1d7ca;border-radius:6px;background:#fffdf8;box-shadow:0 5px 14px rgba(63,45,33,.06); }.auth-mini-stats i:first-child { background:#743d27; }
.auth-mini-chart { height:112px;margin-top:11px;padding:18px 18px 0;display:flex;align-items:flex-end;gap:8px;border:1px solid #e1d7ca;border-radius:6px;background:#fffdf8; }
.auth-mini-chart span { flex:1;height:var(--h);border-radius:3px 3px 0 0;background:#819886;animation:authBars 3.8s ease-in-out infinite alternate; }.auth-mini-chart span:nth-child(2n) { animation-delay:-1.2s;background:#c5aa7d; }
.auth-mini-rows { display:grid;gap:6px;margin-top:11px; }.auth-mini-rows i { height:18px;border-radius:4px;background:rgba(255,253,248,.82);border:1px solid #e1d7ca; }
.auth-float-card { position:absolute;z-index:4;min-width:178px;padding:12px 14px;display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.35);border-radius:10px;color:#3f3631;background:rgba(255,250,241,.88);box-shadow:0 18px 44px rgba(0,0,0,.22);backdrop-filter:blur(16px); }
.auth-float-card > span { width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:white;background:#73351f;font:800 13px "Manrope"; }
.auth-float-card b,.auth-float-card small { display:block; }.auth-float-card b { font-size:9px; }.auth-float-card small { margin-top:3px;color:#80746f;font-size:7px; }
.auth-float-calendar { left:0;bottom:17%;animation:authCardLeft 6.4s ease-in-out infinite; }.auth-float-quote { right:0;top:16%;animation:authCardRight 5.8s ease-in-out infinite; }.auth-float-quote > span { background:#526c5c; }
@keyframes authWindowFloat { 0%,100% { transform:rotateY(-7deg) rotateX(3deg) translateY(0) } 50% { transform:rotateY(-3deg) rotateX(1deg) translateY(-12px) } }
@keyframes authCardLeft { 0%,100% { transform:translate3d(0,0,0) rotate(-2deg) } 50% { transform:translate3d(8px,-14px,0) rotate(1deg) } }
@keyframes authCardRight { 0%,100% { transform:translate3d(0,0,0) rotate(2deg) } 50% { transform:translate3d(-7px,12px,0) rotate(-1deg) } }
@keyframes authBars { from { transform:scaleY(.72);transform-origin:bottom } to { transform:scaleY(1.04);transform-origin:bottom } }
@keyframes authGlow { 0%,100% { opacity:.65;transform:scale(.92) } 50% { opacity:1;transform:scale(1.08) } }
.auth-panel { padding: clamp(36px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; background: var(--paper); border-radius: 0 8px 8px 0; }
.auth-heading h1 { font-size: clamp(28px, 4vw, 42px); }
.auth-heading p { margin: 10px 0 28px; color: var(--muted); font-size: 13px; }
#authForm, #signupFields { display: grid; gap: 14px; }
#authForm label { display: grid; gap: 7px; color: #6f6560; font-size: 10px; font-weight: 700; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-links { margin: 16px 0 28px; display: flex; justify-content: space-between; gap: 14px; }
.auth-links button { padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 10px; font-weight: 700; }
.auth-panel > small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.auth-error { min-height: 16px; margin: 0; color: #a5483a; font-size: 10px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; height: 100vh; height: 100dvh; padding: 24px 16px 16px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #514c47 transparent; background: #292724; color: #f8f3eb; display: flex; flex-direction: column; z-index: 20; }
.sidebar::-webkit-scrollbar { width: 5px; }.sidebar::-webkit-scrollbar-track { background: transparent; }.sidebar::-webkit-scrollbar-thumb { border-radius: 5px; background: #514c47; }
.brand { height: 48px; flex: 0 0 48px; display: flex; align-items: center; gap: 11px; padding: 0 8px; margin-bottom: 28px; }
.brand-mark, .profile-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: white; font: 800 13px "Manrope"; overflow: hidden; flex: none; }
.brand-mark img, #logoPreview img, .paper-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand strong, .profile strong { display: block; font-size: 14px; }
.brand span, .profile span { display: block; color: #aaa39b; font-size: 10px; margin-top: 2px; }
.nav-list { flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; }
.nav-item { width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #c8c1ba; display: flex; align-items: center; gap: 10px; text-align: left; font-size: 13px; }
.nav-item:hover { background: #35322f; color: white; }
.nav-item.active { background: var(--primary); color: white; font-weight: 600; }
.nav-icon { width: 21px; font-size: 17px; text-align: center; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: #efe4d6; color: var(--secondary); font-size: 10px; font-weight: 700; }
.nav-label { margin: 23px 12px 8px; color: #77716a; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.sidebar-bottom { flex: 0 0 auto; margin-top: auto; padding-top: 10px; }
.plan-card { margin: 12px 0; padding: 14px; border: 1px solid #45413d; border-radius: 8px; background: #32302d; }
.plan-pill { display: inline-block; padding: 4px 7px; border-radius: 3px; background: #54493e; color: #e5c89f; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.plan-card strong { display: block; margin: 10px 0 3px; font: 700 13px "Manrope"; }
.plan-card small { display: block; color: #aaa39b; font-size: 10px; }
.plan-card button { margin-top: 12px; padding: 0; border: 0; background: transparent; color: #e5c89f; font-size: 10px; font-weight: 600; }
.profile { padding: 14px 5px 0; border-top: 1px solid #3b3835; display: flex; align-items: center; gap: 9px; }
.profile-avatar { width: 32px; height: 32px; background: #6e5145; }
.profile div:nth-child(2) { min-width: 0; flex: 1; }
.profile button { border: 0; background: transparent; color: #aaa39b; }

.main { grid-column: 2; width: 100%; min-width: 0; }
.topbar { height: 72px; padding: 0 34px; background: rgba(255,253,248,.9); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.breadcrumb { display: flex; gap: 9px; font-size: 12px; align-items: center; }.breadcrumb span, .breadcrumb b { color: #aaa098; }.breadcrumb b { font-weight: 400; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .mobile-menu { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; display: grid; place-items: center; }
.notification { position: relative; }.notification span { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #ba5540; }
.primary-button, .secondary-button { min-height: 39px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--primary); color: white; font-size: 12px; font-weight: 700; box-shadow: 0 6px 15px color-mix(in srgb, var(--primary) 20%, transparent); }
.primary-button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.secondary-button { background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.secondary-button span { margin-left: 12px; }
.mobile-menu { display: none; }

.content { width: 100%; max-width: 1440px; margin: auto; padding: 35px 38px 60px; overflow-x: clip; }
.view { display: none; animation: viewIn .35s ease both; }.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.page-heading.compact { align-items: center; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--secondary); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.1; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric-card, .panel { background: rgba(255,253,248,.88); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-card { min-height: 152px; padding: 19px; position: relative; overflow: hidden; }
.metric-featured { background: var(--primary); color: white; border-color: var(--primary); }
.metric-top, .metric-footer { display: flex; justify-content: space-between; align-items: center; }
.metric-top > span:first-child { font-size: 11px; font-weight: 600; opacity: .78; }
.metric-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(82,108,92,.1); color: var(--primary); font-weight: 700; }
.metric-featured .metric-icon { background: rgba(255,255,255,.15); color: white; }
.metric-card > strong { display: block; margin: 16px 0 10px; font: 800 28px "Manrope"; }
.metric-footer { justify-content: flex-start; gap: 6px; }.metric-footer small { color: inherit; opacity: .58; font-size: 9px; }
.trend { padding: 3px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; }.trend.positive { background: rgba(89,143,108,.13); color: #4f8562; }.metric-featured .trend { background: rgba(255,255,255,.14); color: white; }.trend.warning { background: #f3e6d1; color: #9a6528; }
.progress { height: 4px; border-radius: 4px; background: #e8e0d5; overflow: hidden; margin: -1px 0 13px; }.progress i { display: block; height: 100%; background: var(--primary); }
.sparkline { position: absolute; right: 0; bottom: 0; left: 0; height: 38px; display: flex; align-items: flex-end; gap: 4px; padding: 0 15px; opacity: .16; }
.sparkline i { flex: 1; background: white; border-radius: 2px 2px 0 0; }.sparkline i:nth-child(1){height:20%}.sparkline i:nth-child(2){height:40%}.sparkline i:nth-child(3){height:32%}.sparkline i:nth-child(4){height:58%}.sparkline i:nth-child(5){height:48%}.sparkline i:nth-child(6){height:72%}.sparkline i:nth-child(7){height:64%}.sparkline i:nth-child(8){height:92%}

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 18px; margin-bottom: 18px; }
.panel { padding: 21px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; font-size: 17px; }.panel-heading .eyebrow { margin-bottom: 4px; }
.text-button { border: 0; background: transparent; color: var(--primary); font-size: 10px; font-weight: 700; }
.upcoming-list { display: flex; flex-direction: column; }
.upcoming-item { display: grid; grid-template-columns: 49px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid #e8e0d5; }
.date-tile { width: 46px; height: 49px; border-radius: 6px; background: #efe7da; display: grid; place-items: center; align-content: center; color: var(--secondary); }.date-tile b { font: 800 18px "Manrope"; line-height: 1; }.date-tile span { font-size: 8px; font-weight: 700; margin-top: 3px; }
.upcoming-info strong { display: block; font-size: 12px; }.upcoming-info span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 12px; font-size: 8px; font-weight: 700; }.status.confirmed, .status.accepted { color: #47745b; background: #dfebe2; }.status.option, .status.sent { color: #9b682c; background: #f5ead7; }.status.draft { color: #766e69; background: #ebe7e1; }.status.cancelled { color: #985348; background: #f3dfdc; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-grid button { min-height: 92px; padding: 13px; border: 1px solid #e2d9ce; border-radius: 6px; background: #faf6ef; text-align: left; }.quick-grid button:hover { border-color: var(--primary); transform: translateY(-2px); }.quick-grid button > span { display: block; color: var(--primary); font-size: 18px; }.quick-grid strong { display: block; margin: 7px 0 3px; font-size: 10px; }.quick-grid small { color: var(--muted); font-size: 8px; }
.tip { margin-top: 12px; padding: 12px; display: flex; gap: 10px; border-radius: 6px; background: #e9e1d4; }.tip > span { color: var(--secondary); }.tip strong { font-size: 9px; }.tip p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }

.activity-panel { padding-bottom: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }
th { color: #9b918a; font-size: 8px; letter-spacing: .7px; text-align: left; text-transform: uppercase; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e8e0d5; }
td strong { display: block; font-size: 10px; } td small { color: var(--muted); font-size: 8px; }
.table-action { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; }.table-action:hover { background: var(--soft); }

.calendar-panel { padding: 0; overflow: hidden; }
.calendar-toolbar { min-height: 68px; padding: 0 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.calendar-toolbar button { width: 31px; height: 31px; border: 1px solid var(--line); background: white; border-radius: 5px; }.calendar-toolbar h2 { min-width: 170px; margin: 0 10px; font-size: 17px; text-transform: capitalize; }
.calendar-toolbar .today-button { width: auto; padding: 0 12px; }.calendar-legend { margin-left: auto; display: flex; gap: 15px; font-size: 9px; }.calendar-legend span { display: flex; align-items: center; gap: 5px; }.calendar-legend i { width: 7px; height: 7px; border-radius: 50%; }.confirmed-dot { background: var(--primary); }.option-dot { background: #c18b4e; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-week { padding: 10px 0; background: #f9f5ee; border-bottom: 1px solid var(--line); }.calendar-week span { text-align: center; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.calendar-day { min-height: 112px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.35); }.calendar-day:nth-child(7n){border-right:0}.calendar-day.muted{opacity:.35}.calendar-day.today .day-number { background: var(--secondary); color:white; }.day-number { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; }
.calendar-event { width:100%; margin-top: 5px; padding: 6px; border:0; border-left: 3px solid var(--primary); border-radius: 3px; background: #e6ece7; color:var(--ink); font-size: 8px; text-align:left; overflow: hidden; }.calendar-event:hover { filter:brightness(.97); transform:translateY(-1px); }.calendar-event.option { border-color: #c18b4e; background: #f4eadb; }.calendar-event.cancelled { border-color:#a96a60;background:#f2e4e2;opacity:.72;text-decoration:line-through; }.calendar-event b, .calendar-event span { display:block; overflow:hidden; text-overflow:ellipsis; }.calendar-event span { margin-top: 2px; color: var(--muted); }

.data-panel { padding-top: 0; }.filterbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }.filterbar input { width: min(360px, 100%); }.filterbar span { color: var(--muted); font-size: 10px; }
input, select, textarea { min-height: 40px; padding: 8px 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; background: #fffefb; }
textarea { resize: vertical; }
.booking-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding-top: 18px; }
.booking-card { padding: 17px; border: 1px solid var(--line); border-radius: 7px; background: #fffdfa; }.booking-card header { display:flex; justify-content:space-between; align-items:start; }.booking-card h3 { margin: 12px 0 5px; font-size:14px; }.booking-card p { margin:0; color:var(--muted); font-size:10px; }.booking-meta { margin-top:15px; display:grid; gap:7px; }.booking-meta span { font-size:9px; }.booking-meta b { color:var(--secondary); }.booking-card footer { margin-top:15px; padding-top:12px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; }.booking-card footer button { border:0; background:transparent; color:var(--primary); font-size:9px; font-weight:700; }
.quote-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:15px; }.quote-stats div { padding:15px 18px; background:var(--paper); border:1px solid var(--line); border-radius:7px; }.quote-stats span { color:var(--muted); font-size:9px; }.quote-stats strong { display:block; margin-top:5px; font:800 20px "Manrope"; }

.equipment-grid, .resource-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:15px; }
.equipment-card, .resource-grid article { min-height:210px; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); box-shadow:var(--shadow); }
.equipment-visual { height:120px; border-radius:6px; background:#e9e2d7; display:grid; place-items:center; color:var(--primary); font-size:36px; overflow:hidden; }.equipment-visual.has-photo { background:#f4eee5; }.equipment-visual img { width:100%;height:100%;object-fit:cover; }.equipment-card-head { display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start; }.equipment-card h2 { margin:15px 0 4px; font-size:14px; }.equipment-card p { margin:0; color:var(--muted); font-size:9px; }.equipment-card footer { display:flex; justify-content:space-between; margin-top:14px; padding-top:11px; border-top:1px solid var(--line); font-size:9px; }
.resource-grid article > span { width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e5ebe6;color:var(--primary);font-size:18px; }.resource-grid article small { display:block;margin-top:22px;color:var(--secondary);font-size:8px;font-weight:700;letter-spacing:1px; }.resource-grid h2 { margin:7px 0;font-size:15px; }.resource-grid p { color:var(--muted);font-size:10px;line-height:1.5; }.resource-grid button { padding:0;border:0;background:transparent;color:var(--primary);font-size:9px;font-weight:700; }

.calculator-layout { display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:18px;align-items:start; }.calculator-form h2 { margin:0 0 6px;font-size:18px; }.calculator-note { margin:0 0 20px;color:var(--muted);font-size:10px;line-height:1.55; }.calculator-form label,.settings-form label,.modal label { display:grid;gap:7px;color:#6f6560;font-size:9px;font-weight:700; }.field-row { display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:14px; }.calculator-form > label { margin-top:14px; }
.profit-card { padding:26px;border-radius:8px;background:var(--primary);color:white;text-align:center;box-shadow:var(--shadow); }.profit-card > span { font-size:9px;letter-spacing:1px;text-transform:uppercase;opacity:.7; }.profit-card > strong { display:block;margin:10px 0 2px;font:800 36px "Manrope"; }.profit-card > small { opacity:.7;font-size:9px; }.profit-ring { width:150px;height:150px;margin:25px auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#dfc49b 0 51%,rgba(255,255,255,.14) 51%);position:relative; }.profit-ring:after { content:"";position:absolute;inset:12px;border-radius:50%;background:var(--primary); }.profit-ring div { position:relative;z-index:1; }.profit-ring b { display:block;font:800 25px "Manrope"; }.profit-ring span { font-size:8px;opacity:.7; }.profit-breakdown { border-top:1px solid rgba(255,255,255,.2); }.profit-breakdown p { display:flex;justify-content:space-between;font-size:10px; }.profit-advice { padding:10px;border-radius:5px;background:rgba(255,255,255,.12);font-size:9px; }

.settings-layout { display:grid;grid-template-columns:minmax(0,1.3fr) minmax(310px,.7fr);gap:20px;align-items:start; }.settings-section + .settings-section { margin-top:28px;padding-top:24px;border-top:1px solid var(--line); }.settings-section h2 { margin:0;font-size:17px; }.settings-section > p { margin:5px 0 18px;color:var(--muted);font-size:10px; }.settings-section > label { margin-top:14px; }.logo-upload { display:flex;align-items:center;gap:15px;margin:18px 0; }.logo-upload > div:first-child { width:64px;height:64px;border:1px dashed #bdb1a5;border-radius:7px;background:#f8f3eb;display:grid;place-items:center;color:var(--primary);font:800 18px "Manrope";overflow:hidden; }.logo-upload strong,.logo-upload small { display:block; }.logo-upload strong { font-size:11px; }.logo-upload small { margin:3px 0 8px;color:var(--muted);font-size:8px; }.upload-button { display:inline-flex!important;min-height:28px;padding:0 10px;align-items:center;border:1px solid var(--line);border-radius:4px;background:white;font-size:8px!important;cursor:pointer; }.upload-button input { display:none; }
.document-preview { position:sticky;top:100px;padding:22px;border-radius:8px;background:#ded5c8; }.preview-label { display:block;margin-bottom:12px;text-align:center;color:#756b64;font-size:8px;font-weight:700;letter-spacing:1px; }.paper { min-height:500px;padding:27px;background:white;box-shadow:0 14px 35px rgba(55,40,30,.13); }.paper-head { display:flex;justify-content:space-between;align-items:start; }.paper-logo { width:45px;height:45px;border-radius:50%;background:var(--primary);color:white;display:grid;place-items:center;font:800 13px "Manrope";overflow:hidden; }.paper-head > div:last-child { text-align:right; }.paper-head b { display:block;color:var(--secondary);font:800 22px "Manrope"; }.paper-head small { font-size:7px;color:var(--muted); }.paper-client { margin:55px 0 30px;display:grid;gap:3px;font-size:8px; }.paper-client small { color:var(--muted);font-size:6px;letter-spacing:1px; }.paper-client strong { font-size:10px; }.paper-line,.paper-total { display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #eee9e2;font-size:8px; }.paper-total { margin-top:10px;border-bottom:0; }.paper-total strong { color:var(--secondary);font-size:13px; }.paper > p { margin-top:100px;color:var(--muted);font-size:7px;text-align:center; }

.subscription-layout { display:grid;grid-template-columns:minmax(320px,520px) minmax(280px,420px);gap:20px;align-items:start; }.subscription-card,.billing-panel { padding:30px;border-radius:8px;background:var(--paper);border:1px solid var(--line);box-shadow:var(--shadow); }.popular-pill { padding:5px 8px;border-radius:4px;background:#e6ece7;color:var(--primary);font-size:8px;font-weight:800;letter-spacing:1px; }.subscription-card h2 { margin:18px 0 7px;font-size:24px; }.price strong { font:800 36px "Manrope"; }.price span { color:var(--muted);font-size:10px; }.subscription-card > p,.billing-panel p { color:var(--muted);font-size:10px;line-height:1.6; }.subscription-card ul { margin:22px 0;padding:0;list-style:none;display:grid;gap:12px;font-size:10px; }.subscription-card li:before { content:"✓";margin-right:9px;color:var(--primary);font-weight:800; }.subscription-card button { width:100%; }.billing-panel > span { color:var(--secondary);font-size:8px;font-weight:800;letter-spacing:1px; }.billing-panel > strong { display:block;margin:9px 0;font:800 23px "Manrope"; }.trial-track { height:6px;border-radius:3px;background:#e6ded3;overflow:hidden; }.trial-track i { display:block;height:100%;background:var(--primary); }.billing-panel hr { margin:23px 0;border:0;border-top:1px solid var(--line); }.billing-panel h3 { font-size:13px; }

.site-nav-badge { min-width:auto;padding-inline:6px;font-size:7px; }
.site-heading-actions { display:flex;align-items:center;gap:9px; }.site-status { padding:7px 10px;border-radius:999px;background:#ebe7e1;color:#766e69;font-size:8px;font-weight:800; }.site-status.review { color:#9b682c;background:#f5ead7; }.site-status.published { color:#47745b;background:#dfebe2; }
.site-plan-banner { margin-bottom:18px;padding:20px 22px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:24px;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:8px;background:linear-gradient(120deg,color-mix(in srgb,var(--primary) 12%,var(--paper)),var(--paper));box-shadow:var(--shadow); }.site-plan-banner > div:first-child > span { color:var(--secondary);font-size:8px;font-weight:800;letter-spacing:1.3px; }.site-plan-banner > div:first-child > strong { display:block;margin-top:5px;font:800 16px "Manrope"; }.site-plan-banner p { margin:4px 0 0;color:var(--muted);font-size:9px; }.site-plan-price { min-width:120px;text-align:right; }.site-plan-price strong { font:800 24px "Manrope"; }.site-plan-price span,.site-plan-price small { display:block;color:var(--muted);font-size:8px; }.site-plan-banner > button { min-height:36px;padding:0 13px;border:1px solid var(--line);border-radius:5px;background:white;font-size:9px;font-weight:800; }
.site-builder-layout { display:grid;grid-template-columns:minmax(390px,.82fr) minmax(500px,1.18fr);gap:18px;align-items:start; }.site-editor { padding:25px; }.site-editor-section { margin-bottom:16px;display:grid;grid-template-columns:36px 1fr;gap:11px;align-items:start; }.site-editor-section:not(:first-child) { margin-top:29px;padding-top:24px;border-top:1px solid var(--line); }.editor-step { width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:var(--on-primary);background:var(--primary);font:800 9px "Manrope"; }.site-editor-section h2 { margin:0;font-size:15px; }.site-editor-section p { margin:4px 0 0;color:var(--muted);font-size:9px; }
.site-template-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px; }.site-template-grid button { min-width:0;padding:8px;border:1px solid var(--line);border-radius:6px;background:white;text-align:left; }.site-template-grid button:hover,.site-template-grid button.active { border-color:var(--primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 12%,transparent); }.site-template-grid strong,.site-template-grid small { display:block; }.site-template-grid strong { margin-top:7px;font-size:9px; }.site-template-grid small { margin-top:2px;color:var(--muted);font-size:7px; }.template-swatch { height:52px;display:block;overflow:hidden;border-radius:4px;position:relative; }.template-swatch:before,.template-swatch:after { content:"";position:absolute; }.template-swatch:before { inset:7px 38% 7px 7px;border-radius:3px;background:rgba(255,255,255,.82); }.template-swatch:after { right:7px;top:10px;width:28%;height:32px;border-radius:50% 50% 45% 55%;background:rgba(255,255,255,.5); }.template-swatch.essential { background:#78907e; }.template-swatch.editorial { background:#b98f79; }.template-swatch.studio { background:#292724; }
#siteBuilderForm { display:grid;gap:12px; }.site-editor label { display:grid;gap:7px;color:#6f6560;font-size:9px;font-weight:700; }.field-hint { color:var(--muted);font-size:7px;font-weight:500; }.site-image-upload { margin-top:4px;padding:13px;display:grid;grid-template-columns:110px 1fr;gap:14px;border:1px dashed #bdb1a5;border-radius:7px;background:#f8f3eb; }.site-image-upload > div:first-child { height:100px;display:grid;place-items:center;align-content:center;gap:5px;overflow:hidden;border-radius:5px;background:#e9e2d7;color:var(--primary); }.site-image-upload > div:first-child span { font-size:24px; }.site-image-upload > div:first-child small { font-size:7px; }.site-image-upload > div:first-child.has-image { display:block;background:white; }.site-image-upload img { width:100%;height:100%;object-fit:cover; }.site-image-upload > div:last-child { align-self:center; }.site-image-upload strong { display:block;font-size:9px; }.site-image-upload p { margin:4px 0 8px;color:var(--muted);font-size:7px;line-height:1.4; }.site-image-upload button { margin-left:6px;padding:0;border:0;background:transparent;color:#985348;font-size:8px;font-weight:700; }
.site-preview-column { position:sticky;top:92px;min-width:0; }.site-preview-toolbar { height:44px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-bottom:0;border-radius:8px 8px 0 0;background:#f8f3eb; }.site-preview-toolbar > span { color:var(--muted);font-size:8px;font-weight:800;letter-spacing:1px; }.site-device-switch { padding:3px;display:flex;gap:2px;border-radius:5px;background:#e7dfd3; }.site-device-switch button { width:31px;height:27px;border:0;border-radius:4px;background:transparent;font-size:13px; }.site-device-switch button.active { color:var(--primary);background:white;box-shadow:0 3px 8px rgba(55,40,30,.08); }
.site-preview-stage { min-height:520px;padding:24px;display:grid;place-items:center;border:1px solid var(--line);background:#ded5c8;transition:.3s; }.site-browser { width:100%;max-width:760px;overflow:hidden;border-radius:8px;background:white;box-shadow:0 20px 48px rgba(55,40,30,.16);transition:width .3s; }.site-preview-stage.mobile .site-browser { width:min(330px,100%); }.site-browser-bar { height:31px;padding:0 10px;display:flex;align-items:center;gap:5px;border-bottom:1px solid #e5ddd3;background:#fbf8f3; }.site-browser-bar i { width:6px;height:6px;border-radius:50%;background:#c7bdb2; }.site-browser-bar i:first-child { background:#a35e48; }.site-browser-bar i:nth-child(2) { background:#c7a76f; }.site-browser-bar i:nth-child(3) { background:#718675; }.site-browser-bar span { min-width:0;margin:auto;color:#8a8078;font-size:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.customer-site { --site-accent:#526c5c;min-height:430px;color:#2f2926;background:#f9f5ed;font-family:"DM Sans",sans-serif;container-type:inline-size; }.customer-site > header { height:50px;padding:0 22px;display:flex;align-items:center;gap:16px;background:rgba(255,255,255,.75); }.customer-site > header strong { margin-right:auto;font:800 10px "Manrope"; }.customer-site > header nav { display:flex;gap:14px;color:#756b65;font-size:6px; }.customer-site button { padding:8px 10px;border:0;border-radius:4px;color:white;background:var(--site-accent);font-size:6px;font-weight:800; }.customer-hero { min-height:245px;padding:30px 34px;display:grid;grid-template-columns:1.05fr .75fr;gap:26px;align-items:center; }.customer-hero small { color:var(--site-accent);font-size:6px;font-weight:800;text-transform:uppercase;letter-spacing:.8px; }.customer-hero h2 { max-width:460px;margin:8px 0;font-size:clamp(19px,3.1cqw,29px);line-height:1.04; }.customer-hero p { max-width:430px;margin:0 0 15px;color:#756b65;font-size:7px;line-height:1.55; }.customer-hero-media { min-height:176px;display:grid;place-items:center;border-radius:46% 54% 41% 59% / 47% 41% 59% 53%;color:white;background:linear-gradient(145deg,var(--site-accent),color-mix(in srgb,var(--site-accent) 62%,#342a27));box-shadow:0 16px 32px color-mix(in srgb,var(--site-accent) 22%,transparent); }.customer-hero-media span { font:800 33px "Manrope"; }.customer-hero-media.has-image { background-position:center;background-size:cover; }.customer-services { padding:22px 34px 30px;background:white; }.customer-services > small { color:var(--site-accent);font-size:6px;font-weight:800;letter-spacing:1px; }.customer-services > div { margin-top:11px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px; }.customer-services article { min-width:0;padding:10px;border:1px solid #ece5dc;border-radius:6px; }.customer-services article > span { color:var(--site-accent);font-size:15px; }.customer-services strong,.customer-services article small { display:block; }.customer-services strong { margin-top:5px;font-size:7px;overflow-wrap:anywhere; }.customer-services article small { margin-top:3px;color:#8b817a;font-size:5px;line-height:1.35; }
.customer-site.template-editorial { background:#f4e8e1; }.template-editorial .customer-site > header,.customer-site.template-editorial > header { background:#fff8f3; }.customer-site.template-editorial .customer-hero { text-align:center;grid-template-columns:1fr;padding-inline:54px; }.customer-site.template-editorial .customer-hero > div:first-child { position:relative;z-index:2; }.customer-site.template-editorial .customer-hero-media { grid-row:1;min-height:150px;border-radius:7px;opacity:.88; }.customer-site.template-editorial .customer-hero h2 { margin-inline:auto;font-family:Georgia,serif;font-weight:500; }.customer-site.template-editorial .customer-hero p { margin-inline:auto; }
.customer-site.template-studio { color:#f7f0e7;background:#22211f; }.customer-site.template-studio > header { background:#1b1a19;color:white; }.customer-site.template-studio > header nav { color:#bdb4aa; }.customer-site.template-studio .customer-hero { min-height:265px;background:linear-gradient(135deg,#22211f,#3b302b); }.customer-site.template-studio .customer-hero p { color:#c8beb3; }.customer-site.template-studio .customer-hero-media { border-radius:4px;box-shadow:none; }.customer-site.template-studio .customer-services { background:#191817; }.customer-site.template-studio .customer-services article { border-color:#3a3733;background:#242220; }.customer-site.template-studio .customer-services article small { color:#aaa099; }
.site-preview-stage.mobile .customer-site > header { padding-inline:13px; }.site-preview-stage.mobile .customer-site > header nav { display:none; }.site-preview-stage.mobile .customer-hero { padding:22px 18px;grid-template-columns:1fr;gap:14px; }.site-preview-stage.mobile .customer-hero h2 { font-size:24px; }.site-preview-stage.mobile .customer-hero-media { min-height:160px;grid-row:1; }.site-preview-stage.mobile .customer-services { padding-inline:18px; }.site-preview-stage.mobile .customer-services > div { grid-template-columns:1fr; }.site-preview-stage.mobile .customer-services article:nth-child(n+3) { display:none; }
.site-seo-preview { margin-top:12px;padding:17px 19px;border:1px solid var(--line);border-radius:8px;background:var(--paper);box-shadow:var(--shadow); }.site-seo-preview > span { display:block;margin-bottom:10px;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:1px; }.site-seo-preview small { display:block;color:#2f7c4c;font-size:8px; }.site-seo-preview strong { display:block;margin:5px 0;color:#2656a7;font:500 15px Arial,sans-serif; }.site-seo-preview p { margin:0;color:#5f6368;font:9px/1.45 Arial,sans-serif; }
.site-publish-panel { margin-top:12px;padding:18px 19px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-radius:8px;color:white;background:#292724;box-shadow:var(--shadow); }.site-publish-panel span { color:#e5c89f;font-size:7px;font-weight:800;letter-spacing:1px; }.site-publish-panel strong { display:block;margin-top:4px;font:800 12px "Manrope"; }.site-publish-panel p { margin:4px 0 0;color:#c8c0b8;font-size:8px; }.site-publish-panel button { flex:none; }
.site-plan-modal { display:grid;gap:8px; }.site-plan-modal p { margin:0;padding:12px;display:flex;justify-content:space-between;gap:18px;border:1px solid var(--line);border-radius:6px;background:#faf6ef;font-size:9px; }.site-plan-modal p span { color:var(--muted); }.site-plan-modal ul { margin:10px 0 0;padding:0;display:grid;gap:8px;list-style:none;font-size:9px; }.site-plan-modal li:before { content:"✓";margin-right:8px;color:var(--primary);font-weight:800; }

.modal-backdrop { position:fixed;inset:0;z-index:100;background:rgba(30,27,24,.52);backdrop-filter:blur(4px);display:none;place-items:center;padding:20px;overflow-y:auto;overscroll-behavior:contain; }.modal-backdrop.open { display:grid; }.modal { width:min(560px,100%);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;padding:28px;position:relative;border-radius:8px;background:var(--paper);box-shadow:0 24px 70px rgba(0,0,0,.25);animation:modalIn .25s ease both; }@keyframes modalIn{from{opacity:0;transform:translateY(12px) scale(.98)}}.modal-close { position:sticky;top:0;z-index:2;float:right;width:30px;height:30px;margin:-12px -12px 0 12px;border:0;border-radius:50%;background:var(--soft);font-size:20px; }.modal h2 { margin:0;font-size:23px; }.modal > p { margin:7px 0 20px;color:var(--muted);font-size:10px; }.modal form { display:grid;gap:13px;clear:both; }.modal-actions { display:flex;justify-content:flex-end;gap:9px;margin-top:8px; }.modal-actions button { min-height:38px;padding:0 15px;border-radius:5px;border:1px solid var(--line);background:white;font-size:10px;font-weight:700; }.modal-actions button[type=submit] { color:white;background:var(--primary);border-color:var(--primary); }
.toast { position:fixed;right:24px;bottom:24px;z-index:120;min-width:260px;padding:13px 16px;border-radius:6px;background:#292724;color:white;box-shadow:0 12px 35px rgba(0,0,0,.2);display:flex;align-items:center;gap:10px;transform:translateY(90px);opacity:0;transition:.3s; }.toast.show { transform:none;opacity:1; }.toast span { color:#a8d1b5; }.toast p { margin:0;font-size:10px; }

@media (max-width: 800px) {
  .auth-gate { padding: 0; grid-template-columns: 1fr; }
  .auth-brand { min-height: 220px; padding: 36px 24px; border-radius: 0; }
  .auth-motion { min-height:210px;margin:-8px auto 10px; }.auth-app-window { width:min(76%,420px); }.auth-float-card { min-width:142px;padding:9px; }.auth-float-calendar { left:2%;bottom:4%; }.auth-float-quote { right:2%;top:4%; }
  .auth-brand-copy strong { font-size: 40px; }
  .auth-panel { padding: 42px 24px; border-radius: 0; }
}
@media (max-width: 520px) {
  .auth-motion { min-height:180px; }.auth-app-window { width:88%; }.auth-float-card { min-width:0; }.auth-float-card div { display:none; }.auth-float-card > span { width:30px;height:30px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-app-window,.auth-float-card,.auth-mini-chart span,.auth-glow { animation:none; }
}

@media (max-width: 1080px) {
  .metric-grid { grid-template-columns:1fr 1fr; }
  .equipment-grid,.resource-grid { grid-template-columns:1fr 1fr; }
  .booking-cards { grid-template-columns:1fr 1fr; }
  .calculator-layout { grid-template-columns:1fr; }
  .mail-choice-grid { grid-template-columns:1fr; }
  .mail-choice p { min-height:0; }
  .mail-workspace { grid-template-columns:150px minmax(260px,1fr); }
  .mail-detail { grid-column:1 / -1;border-top:1px solid var(--line); }
  .site-builder-layout { grid-template-columns:1fr; }
  .site-preview-column { position:static; }
}
@media (max-width: 820px) {
  .app-shell { display:block; }
  body.sidebar-open { overflow:hidden; }
  body.sidebar-open:after { content:"";position:fixed;inset:0;z-index:19;background:rgba(25,23,21,.45);backdrop-filter:blur(2px); }
  .sidebar { width:min(280px,86vw);transform:translateX(-105%);transition:transform .25s ease;box-shadow:20px 0 50px rgba(0,0,0,.2); }.sidebar.open { transform:none; }
  .main { grid-column:auto; }.mobile-menu { display:grid; }.breadcrumb { display:none; }
  .topbar { height:62px;padding:0 18px; }.content { padding:25px 18px 50px; }
  .dashboard-grid,.calculator-layout,.settings-layout,.subscription-layout { grid-template-columns:1fr; }
  .mail-workspace { grid-template-columns:1fr; }
  .mail-folders { border-right:0;border-bottom:1px solid var(--line);display:flex;gap:5px;overflow:auto; }
  .mail-folder { min-width:max-content;grid-template-columns:16px auto auto; }
  .mail-folders hr { display:none; }
  .mail-list { border-right:0; }
  .mail-detail { grid-column:auto; }
  .document-preview { position:static; }.calendar-day { min-height:80px;padding:5px; }.calendar-event span { display:none; }
  .site-plan-banner { grid-template-columns:1fr auto; }.site-plan-banner > button { grid-column:1 / -1;width:100%; }
}
@media (max-width: 580px) {
  .page-heading { align-items:flex-start;flex-direction:column; }.page-heading > button { width:100%; }
  .site-page-heading .site-heading-actions { width:100%; }.site-page-heading .site-heading-actions button { flex:1; }
  .filterbar { align-items:stretch;flex-direction:column;padding:12px 0; }.filterbar input,.filterbar select { width:100%; }
  .metric-grid,.quote-stats,.equipment-grid,.resource-grid,.booking-cards { grid-template-columns:1fr; }
  .field-row { grid-template-columns:1fr; }
  .quick-grid { grid-template-columns:1fr 1fr; }
  .top-actions { gap:5px; }.top-actions .icon-button { display:grid; }.top-actions .primary-button { padding:0 10px; }
  .calendar-toolbar { flex-wrap:wrap;padding:12px; }.calendar-toolbar h2 { min-width:130px; }.calendar-legend { width:100%;margin:3px 0 0; }
  .calendar-day { min-height:65px; }.calendar-event { padding:4px 2px;font-size:6px; }.day-number { width:19px;height:19px; }
  .modal-backdrop { place-items:start center;padding:10px; }
  .modal { max-height:calc(100dvh - 20px);padding:22px 18px; }
  .modal-actions { position:sticky;bottom:-1px;z-index:1;margin:4px -2px -4px;padding:10px 2px 4px;background:linear-gradient(transparent,var(--paper) 18%);flex-wrap:wrap; }
  .modal-actions button { flex:1 1 130px; }
  .site-plan-banner { grid-template-columns:1fr;padding:17px;gap:13px; }.site-plan-price { text-align:left; }.site-plan-banner > button { grid-column:auto; }
  .site-editor { padding:18px 15px; }.site-template-grid { gap:5px; }.site-template-grid button { padding:6px; }.template-swatch { height:43px; }
  .site-image-upload { grid-template-columns:1fr; }.site-image-upload > div:first-child { height:150px; }
  .site-preview-stage { min-height:430px;padding:8px; }.site-preview-stage:not(.mobile) .site-browser { min-width:560px;transform:scale(.61);transform-origin:center; }.site-preview-stage:not(.mobile) { overflow:hidden; }
  .site-publish-panel { align-items:stretch;flex-direction:column; }.site-publish-panel button { width:100%; }
}

/* Dynamic brand colors must remain readable, including very light choices. */
.brand-mark,
.profile-avatar,
.nav-item.active,
.primary-button,
.metric-featured,
.metric-featured .metric-icon,
.metric-featured .trend,
.profit-card,
.paper-logo,
.modal-actions button[type=submit] {
  color: var(--on-primary);
}
.nav-item.active,
.primary-button,
.metric-featured,
.profit-card,
.modal-actions button[type=submit] {
  border-color: color-mix(in srgb, var(--on-primary) 18%, var(--primary));
}
.nav-item.active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-primary) 16%, transparent); }
.sparkline i { background: var(--on-primary); }
.metric-featured .metric-icon,
.metric-featured .trend { background: color-mix(in srgb, var(--on-primary) 14%, transparent); }

.empty-state {
  grid-column: 1 / -1;
  padding: 45px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: #faf6ef;
}
.empty-state span {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-size: 20px;
}
.empty-state strong { display: block; font: 700 13px "Manrope"; }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.detail-list { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.detail-list p { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.detail-list span { color: var(--muted); }
.detail-list b { text-align: right; }

/* The on-screen quote is a faithful scaled version of the generated A4 PDF. */
.document-preview .paper { min-height: 0; aspect-ratio: 595 / 842; padding: 0; position: relative; overflow: hidden; color: #342a27; }
.paper-accent { height: 14px; background: var(--primary); }
.paper-head { padding: 22px 24px 16px; display: flex; justify-content: space-between; align-items: flex-start; }
.paper-company { display: flex; align-items: center; gap: 10px; }
.paper-company > div:last-child { display: grid; gap: 1px; }
.paper-company strong { font: 800 10px "Manrope"; }
.paper-company small { color: var(--muted); font-size: 5px; }
.paper-title { display: grid; justify-items: end; gap: 2px; text-align: right; }
.paper-title b { color: var(--secondary); font: 800 18px "Manrope"; }
.paper-title strong { font-size: 6px; }.paper-title small { color: var(--muted); font-size: 5px; }
.paper-rule { height: 1px; margin: 0 24px 18px; background: #e7dfd5; }
.paper-label { display: block; margin: 0 24px 7px; color: var(--secondary); font-size: 5px; font-weight: 800; letter-spacing: .4px; }
.document-preview .paper-client { margin: 0 24px 18px; padding: 12px; background: #eee7dc; display: grid; gap: 2px; }
.document-preview .paper-client strong { font-size: 8px; }
.document-preview .paper-client span, .document-preview .paper-client small { color: var(--muted); font-size: 5px; }
.paper-table-head { margin: 0 24px; padding: 7px 10px; display: flex; justify-content: space-between; background: var(--primary); color: var(--on-primary); font-size: 5px; font-weight: 800; }
.document-preview .paper-line { margin: 0 24px; padding: 12px 10px; display: flex; justify-content: space-between; align-items: center; border: 0; background: white; }
.document-preview .paper-line div { display: grid; gap: 3px; }
.document-preview .paper-line strong, .document-preview .paper-line b { font-size: 7px; }
.document-preview .paper-line small { color: var(--muted); font-size: 5px; }
.document-preview .paper-total { width: 43%; margin: 12px 24px 14px auto; padding: 10px; display: flex; align-items: center; justify-content: space-between; background: var(--secondary); color: white; }
.document-preview .paper-total span { font-size: 5px; font-weight: 800; }.document-preview .paper-total strong { color: white; font-size: 10px; }
.paper-terms { margin: 0 24px; display: grid; gap: 4px; }
.paper-terms strong { color: var(--secondary); font-size: 5px; }.paper-terms span { color: var(--muted); font-size: 5px; }
.paper-sign { margin: 18px 24px 0; padding-top: 10px; border-top: 1px solid #e7dfd5; display: flex; justify-content: space-between; }
.document-preview .paper-sign p { margin: 0; color: var(--secondary); font: 700 6px "Manrope"; }
.paper-sign > span { font-size: 5px; }.paper-sign small { color: var(--muted); font-size: 4px; }
.paper-footer { position: absolute; right: 24px; bottom: 16px; left: 24px; padding-top: 7px; border-top: 1px solid #e7dfd5; display: flex; justify-content: space-between; color: var(--muted); }
.paper-footer span, .paper-footer small { font-size: 4px; }
.optional { color: var(--muted); font-size: 7px; font-weight: 500; }
.form-section-label { margin-top: 5px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.paper-bank { margin: 10px 24px 0; padding: 7px 9px; display: grid; gap: 3px; background: #eee7dc; }
.paper-bank strong { color: var(--secondary); font-size: 5px; }.paper-bank span { color: var(--muted); font-size: 4px; }
.bank-security { margin-top: 12px; padding: 11px; display: flex; gap: 9px; align-items: flex-start; border-radius: 6px; background: #eee7dc; }
.bank-security span { color: var(--secondary); font-size: 16px; }.bank-security p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

/* Uploaded logos keep their native proportions and are never masked as circles. */
.brand-mark.has-image { width: 72px; height: 38px; padding: 2px; border-radius: 4px; background: transparent; }
#logoPreview.has-image { width: 96px; height: 64px; padding: 4px; border-style: solid; background: white; }
.paper-logo.has-image { width: 62px; height: 30px; padding: 1px; border-radius: 2px; background: transparent; }
.brand-mark.has-image img, #logoPreview.has-image img, .paper-logo.has-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.quote-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.quote-actions button { min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #faf6ef; font-size: 9px; font-weight: 700; }
.quote-actions button span { display: block; margin-bottom: 5px; color: var(--primary); font-size: 17px; }
.payment-summary { margin-top: 14px; padding: 12px; border-radius: 6px; background: #e5eee7; color: #3f654c; font-size: 9px; }
.form-help { margin: -5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.booking-actions { display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:16px; }
.booking-actions button,.booking-actions a { min-height:58px;padding:10px;border:1px solid var(--line);border-radius:6px;background:#faf6ef;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;text-decoration:none;font-size:9px;font-weight:700; }
.booking-actions span { color:var(--secondary);font-size:16px; }
.booking-actions .danger-action { color:#98493f;background:#fff8f7;border-color:#e6c5c0; }
.danger-button { color:#fff!important;background:#98493f!important;border-color:#98493f!important; }
.split-actions { display:grid;grid-template-columns:auto 1fr auto auto;align-items:center; }
.confirmation-box { padding:14px;display:flex;gap:11px;align-items:center;border:1px solid #e6c5c0;border-radius:6px;background:#fff6f4; }.confirmation-box > span { width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#98493f;color:white;font-weight:800; }.confirmation-box p { margin:0;color:#74463f;font-size:9px; }
.equipment-photo-preview { min-height:120px;border:1px dashed var(--line);border-radius:6px;background:#f8f3eb;display:grid;place-items:center;align-content:center;gap:6px;color:var(--muted);overflow:hidden; }.equipment-photo-preview span { font-size:26px;color:var(--primary); }.equipment-photo-preview small { font-size:8px; }.equipment-photo-preview.has-photo { display:block;border-style:solid; }.equipment-photo-preview img { width:100%;height:160px;display:block;object-fit:contain;background:white; }
.address-field { position:relative; }.address-suggestions { position:absolute;top:100%;right:0;left:0;z-index:20;margin-top:4px;padding:5px;border:1px solid var(--line);border-radius:6px;background:white;box-shadow:0 14px 35px rgba(40,30,20,.16); }.address-suggestions button { width:100%;padding:9px;border:0;border-radius:4px;background:transparent;display:grid;gap:2px;text-align:left; }.address-suggestions button:hover { background:var(--soft); }.address-suggestions strong { font-size:9px; }.address-suggestions span,.address-unavailable { color:var(--muted);font-size:8px; }.address-unavailable { display:block;padding:10px;line-height:1.4; }
.global-results,.notification-list { display:grid;gap:7px;max-height:360px;overflow:auto; }
.search-result,.notification-list button,.notification-list > div { width:100%;padding:12px;border:1px solid var(--line);border-radius:6px;background:#fffdfa;display:grid;gap:4px;text-align:left; }
.search-result:hover,.notification-list button:hover { border-color:var(--primary);background:#f8f4ed; }
.search-result strong,.notification-list strong { font-size:10px; }
.search-result span,.notification-list span { color:var(--muted);font-size:8px; }
.search-hint { padding:22px;text-align:center;color:var(--muted);font-size:9px;border:1px dashed var(--line);border-radius:6px; }
.empty-state.compact { padding:24px; }
.connection-pill { padding:7px 10px;border-radius:14px;background:#ece4d8;color:var(--secondary);font-size:9px;font-weight:700; }
.mail-choice-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:18px; }.mail-choice { padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--paper);box-shadow:var(--shadow); }.mail-choice.active { border-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary),var(--shadow); }.mail-choice > span { width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:var(--soft);color:var(--secondary);font-size:17px; }.mail-choice h2 { margin:15px 0 6px;font-size:14px; }.mail-choice p { min-height:48px;margin:0;color:var(--muted);font-size:9px;line-height:1.55; }.mail-choice button { margin-top:15px;padding:0;border:0;background:transparent;color:var(--primary);font-size:9px;font-weight:800; }
.panel-actions { display:flex;gap:7px; }.inbox-panel { min-height:540px;padding:0;overflow:hidden; }.inbox-panel > .panel-heading { padding:20px 21px 0; }.inbox-content { display:grid; }.mailbox-ready .mail-choice-grid,.mailbox-ready > .security-banner { display:none; }
.mail-commandbar { padding:13px 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;gap:9px;background:#faf7f1; }.mail-commandbar label { min-height:38px;flex:1;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:white;display:flex;align-items:center;gap:8px; }.mail-commandbar input { width:100%;border:0;outline:0;background:transparent;font-size:10px; }.mail-commandbar button { width:38px;border:1px solid var(--line);border-radius:6px;background:white;font-size:17px; }
.mail-workspace { min-height:500px;display:grid;grid-template-columns:180px minmax(280px,390px) minmax(340px,1fr); }.mail-folders { padding:13px 10px;border-right:1px solid var(--line);background:#f8f3eb; }.mail-folders hr { margin:10px 8px;border:0;border-top:1px solid var(--line); }.mail-folder { width:100%;min-height:36px;padding:0 9px;border:0;border-radius:5px;background:transparent;display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:7px;text-align:left;font-size:9px; }.mail-folder:hover,.mail-folder.active { background:white;color:var(--primary); }.mail-folder.active { font-weight:800;box-shadow:0 3px 10px rgba(55,40,30,.05); }.mail-folder b { font-size:8px;color:var(--muted); }
.mail-list { min-width:0;border-right:1px solid var(--line);background:white; }.mail-list > header { height:48px;padding:0 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between; }.mail-list > header strong { font-size:11px; }.mail-list > header span { color:var(--muted);font-size:8px; }.mail-item { width:100%;padding:11px 10px;border:0;border-bottom:1px solid #eee8de;background:white;display:grid;grid-template-columns:16px 31px minmax(0,1fr) auto;gap:8px;align-items:start;text-align:left; }.mail-item:hover,.mail-item.active { background:#f4eee4; }.mail-item.unread .mail-item-copy > strong,.mail-item.unread .mail-item-copy > b { font-weight:800; }.mail-item-star { color:#c9c0b6;font-size:12px; }.mail-item-star.active,.detail-star.active { color:#c78b2f; }.mail-item .message-avatar { width:30px;height:30px; }.mail-item-copy { min-width:0; }.mail-item-copy strong,.mail-item-copy b,.mail-item-copy small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.mail-item-copy strong { font-size:9px; }.mail-item-copy b { margin-top:2px;color:var(--secondary);font-size:9px; }.mail-item-copy small { margin-top:3px;color:var(--muted);font-size:7px; }.mail-item time { color:var(--muted);font-size:7px;white-space:nowrap; }
.message-avatar { width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--secondary);font-size:9px;font-weight:800; }.mail-category { width:max-content;max-width:100%;margin-top:6px;padding:3px 6px;border-radius:3px;background:#ece7df;color:#655e58;font-size:6px;font-style:normal;font-weight:800;text-transform:uppercase;letter-spacing:.4px; }.mail-category.leads { background:#e5eee8;color:#3f6b50; }.mail-category.quotes { background:#eee5d5;color:#8b6128; }.mail-category.bookings { background:#e5e9ef;color:#53677f; }.mail-category.delivery { background:#eee5ec;color:#79506f; }.mail-category.admin { background:#ecebea;color:#635e59; }
.mail-detail { min-width:0;padding:21px;background:#fffdf9; }.mail-detail-head { display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding-bottom:17px; }.mail-detail-head h3 { margin:10px 0 5px;font-size:17px; }.mail-detail-head p { margin:0;color:var(--muted);font-size:8px; }.detail-star { width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:white; }.mail-detail-actions { padding:13px 0;display:flex;flex-wrap:wrap;gap:7px;border-bottom:1px solid var(--line); }.mail-detail-actions button { min-height:31px;padding:0 9px;border:1px solid var(--line);border-radius:5px;background:white;font-size:8px;font-weight:700; }.mail-detail-actions button:first-child { background:var(--primary);border-color:var(--primary);color:var(--on-primary); }.mail-workflow { padding:13px 0;display:grid;grid-template-columns:1fr 1fr;gap:9px; }.mail-workflow label { display:grid;gap:5px;color:var(--muted);font-size:7px;font-weight:700;text-transform:uppercase; }.mail-workflow select { min-height:34px;padding:0 8px;border:1px solid var(--line);border-radius:5px;background:white;font-size:8px;text-transform:none; }.mail-body { margin-top:4px;padding:17px;border:1px solid var(--line);border-radius:6px;background:white; }.mail-body-meta { display:flex;gap:9px;align-items:center; }.mail-body-meta > span { width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--secondary);font-size:8px;font-weight:800; }.mail-body-meta strong,.mail-body-meta small { display:block; }.mail-body-meta strong { font-size:9px; }.mail-body-meta small { margin-top:2px;color:var(--muted);font-size:7px; }.mail-body > p { margin:17px 0 0;color:#574e49;font-size:9px;line-height:1.7;white-space:normal;overflow-wrap:anywhere; }.mail-empty,.mail-detail-empty { min-height:220px;padding:30px;display:grid;place-items:center;align-content:center;text-align:center;color:var(--muted); }.mail-empty span,.mail-detail-empty span { font-size:25px;color:var(--primary); }.mail-empty strong,.mail-detail-empty strong { margin-top:8px;color:var(--ink);font-size:10px; }.mail-empty p,.mail-detail-empty p { margin:5px 0 0;font-size:8px; }
.mail-category.spam { background:#f2e2df;color:#934d43; }
.mail-detail-actions .mail-delete-action { color:#9a453c;border-color:#e1bdb8;background:#fff8f6; }
.mail-body a { color:var(--primary);font-weight:700;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere; }
.mail-loading,.mail-error { padding:34px;text-align:center;color:var(--muted);font-size:9px; }.mail-error { margin:20px;border:1px solid #e6c5c0;border-radius:6px;background:#fff7f5; }.mail-error strong { display:block;color:#8b463d;font-size:11px; }.mail-error p { margin:5px 0 12px; }.mail-error button { min-height:32px;padding:0 12px;border:1px solid var(--line);border-radius:5px;background:white;font-size:8px;font-weight:700; }.security-banner,.integration-note { margin-top:16px;padding:14px;border-radius:7px;background:#e8e1d6;display:flex;gap:11px;align-items:flex-start; }.security-banner > span { font-size:20px;color:var(--secondary); }.security-banner strong,.integration-note strong { font-size:10px; }.security-banner p,.integration-note p { margin:4px 0 0;color:var(--muted);font-size:8px;line-height:1.55; }.integration-note { display:block;margin-top:0; }

.delivery-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; align-items: start; }
.delivery-builder { padding: 26px; }
.delivery-intro { display: flex; gap: 13px; margin-bottom: 24px; }
.delivery-intro > span { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e8e0d4; color: var(--secondary); font-size: 19px; }
.delivery-intro h2 { margin: 0 0 4px; font-size: 17px; }
.delivery-intro p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.delivery-builder form { display: grid; gap: 14px; }
.delivery-builder label { display: grid; gap: 7px; color: #6f6560; font-size: 9px; font-weight: 700; }
.delivery-note { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 6px; background: #eee7dc; }
.delivery-note span { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--secondary); color: white; font-size: 9px; font-weight: 700; }
.delivery-note p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.delivery-preview { padding: 22px; border-radius: 8px; background: #ded5c8; }
.delivery-phone { min-height: 520px; padding: 35px 25px; border-radius: 8px; background: #fffdf8; box-shadow: 0 14px 35px rgba(55,40,30,.13); text-align: center; display: flex; flex-direction: column; align-items: center; }
.delivery-brand { align-self: flex-start; color: var(--secondary); font: 800 13px "Manrope"; }
.delivery-preview-icon { width: 68px; height: 68px; margin: 55px auto 20px; display: grid; place-items: center; border-radius: 50%; background: #e9dfd2; color: var(--secondary); font-size: 24px; }
.delivery-phone small { color: var(--secondary); font-size: 7px; font-weight: 800; letter-spacing: 1.2px; }
.delivery-phone h2 { margin: 8px 0; font-size: 19px; }
.delivery-phone p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.delivery-phone button { width: 100%; min-height: 40px; margin-top: 26px; border: 0; border-radius: 5px; background: var(--primary); color: var(--on-primary); font-size: 9px; font-weight: 700; }
.preview-wait { margin-top: 12px; color: var(--muted); font-size: 7px; }
.delivery-history { margin-top: 18px; }
.delivery-list { display: grid; gap: 8px; }
.delivery-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.delivery-item strong, .delivery-item small { display: block; }
.delivery-item strong { font-size: 11px; }
.delivery-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.delivery-item-actions { display: flex; gap: 6px; }
.delivery-item-actions button, .delivery-item-actions a { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); display: inline-flex; align-items: center; text-decoration: none; font-size: 8px; font-weight: 700; }

@media (max-width: 820px) {
  .delivery-layout { grid-template-columns: 1fr; }
  .delivery-preview { display: none; }
  .mail-choice-grid { grid-template-columns:1fr; }
  .mail-choice p { min-height:0; }
}
@media (max-width: 580px) {
  .quote-actions,.booking-actions { grid-template-columns: 1fr; }
  .delivery-item { grid-template-columns: 1fr; }
  .delivery-item-actions { flex-wrap: wrap; }
  .split-actions { grid-template-columns:1fr; }.split-actions span { display:none; }
  .panel-actions { width:100%;display:grid;grid-template-columns:1fr 1fr; }
}
