:root {
  --ink: #151916;
  --muted: #68716b;
  --faint: #96a099;
  --line: #e4e8e4;
  --paper: #ffffff;
  --canvas: #f4f6f3;
  --dark: #121714;
  --green: #85f2a2;
  --green-dark: #27683b;
  --green-soft: #e9faed;
  --amber: #f0b44d;
  --shadow: 0 18px 50px rgba(24, 34, 27, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 95%, rgba(133,242,162,.14), transparent 38%),
    var(--dark);
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-size: 22px; font-weight: 760; letter-spacing: -.04em; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: var(--dark); background: var(--green); }
.brand-mark img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.brand-mark.small { width: 32px; height: 32px; border-radius: 10px; }
.main-nav { display: grid; gap: 7px; margin-top: 54px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #aeb8b1; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(133,242,162,.13); }
.nav-icon { width: 20px; font-size: 18px; text-align: center; }
.sidebar-note { margin-top: auto; padding: 17px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.045); }
.sidebar-note .eyebrow { color: var(--green); }
.sidebar-note strong { display: block; margin: 8px 0 5px; font-size: 13px; }
.sidebar-note p { margin: 0; color: #9da7a0; font-size: 12px; line-height: 1.5; }
.sidebar-plan-button { margin: 13px 0 0; padding: 0; color: var(--green); border: 0; background: none; font-size: 11px; font-weight: 750; text-align: left; }

.workspace { grid-column: 2; min-width: 0; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: flex-end; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(244,246,243,.9); backdrop-filter: blur(12px); }
.mobile-brand { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.tutorial-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 5px; color: #4d5951; border: 0; background: none; font-size: 12px; font-weight: 700; }
.tutorial-link:hover { color: var(--ink); }
.tutorial-link span { width: 21px; height: 21px; display: grid; place-items: center; color: #244b30; border-radius: 50%; background: var(--green-soft); font-size: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: #526158; border: 1px solid #dce4dd; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 650; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #45bb67; box-shadow: 0 0 0 4px #e6f8eb; }
.avatar { width: 38px; height: 38px; color: #effaf2; border: 0; border-radius: 50%; background: #2c3f32; font-size: 12px; font-weight: 750; }

.view { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-head h1 { margin: 5px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.055em; }
.page-head p { max-width: 630px; margin: 11px 0 0; color: var(--muted); line-height: 1.55; }
.eyebrow { display: block; color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 17px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; box-shadow: 0 2px 7px rgba(20,30,23,.03); }
.button:hover { border-color: #cbd3cc; transform: translateY(-1px); }
.button.primary { color: var(--dark); border-color: var(--green); background: var(--green); }
.button.dark { color: #fff; border-color: var(--dark); background: var(--dark); }
.button.ghost { box-shadow: none; background: transparent; }
.button.danger { color: #a43d3d; border-color: #efcece; background: #fff8f8; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.plan-strip { display: grid; grid-template-columns: minmax(0,1fr) 170px auto; align-items: center; gap: 24px; margin-bottom: 18px; padding: 18px 20px; color: #fff; border-radius: 18px; background: radial-gradient(circle at 72% 0,rgba(133,242,162,.17),transparent 30%),#172019; }
.plan-strip.limit-reached { background: radial-gradient(circle at 72% 0,rgba(240,180,77,.18),transparent 30%),#231d14; }
.plan-strip-copy { display: flex; align-items: center; gap: 14px; }
.plan-strip-copy strong { display: block; font-size: 13px; }
.plan-strip-copy p { margin: 4px 0 0; color: #aeb9b1; font-size: 10px; }
.plan-pill { flex: none; padding: 7px 9px; color: #1b4026; border-radius: 999px; background: var(--green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.plan-usage > span { display: block; margin-bottom: 7px; color: #bdc6bf; font-size: 10px; text-align: right; }
.plan-usage > div { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.plan-usage i { height: 100%; display: block; border-radius: inherit; background: var(--green); transition: width .3s; }
.plan-strip .button { min-height: 40px; border-color: rgba(255,255,255,.18); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.metric { min-height: 122px; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-value { display: block; margin-top: 15px; font-size: 31px; font-weight: 760; letter-spacing: -.05em; }
.metric-note { display: block; margin-top: 5px; color: var(--faint); font-size: 11px; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(28,37,31,.035); transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e5e9e4; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover.empty { display: grid; place-items: center; color: #89938c; background: linear-gradient(135deg,#e9ede9,#dfe5df); font-size: 38px; }
.project-badge { position: absolute; top: 13px; left: 13px; padding: 7px 9px; border-radius: 999px; color: #fff; background: rgba(18,23,20,.78); backdrop-filter: blur(8px); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.project-badge.approved { color: #14301c; background: rgba(133,242,162,.92); }
.project-body { padding: 19px; }
.project-body h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.project-address { min-height: 38px; margin: 7px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.project-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid #edf0ed; color: var(--faint); font-size: 11px; }
.project-meta strong { color: var(--ink); }
.new-card { min-height: 290px; display: grid; place-items: center; padding: 30px; color: var(--muted); border: 1.5px dashed #cad2cb; border-radius: var(--radius); background: rgba(255,255,255,.35); text-align: center; }
.new-card:hover { color: var(--ink); border-color: #91aa97; background: #fff; }
.new-card .plus { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--dark); border-radius: 16px; background: var(--green); font-size: 27px; }

.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.editor-title { display: flex; align-items: center; gap: 13px; }
.back-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: #fff; font-size: 18px; }
.editor-title h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.autosave { color: var(--faint); font-size: 11px; }
.editor-actions { display: flex; gap: 9px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 22px; align-items: start; }
.stack { display: grid; gap: 18px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 21px; }
.panel-head h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.section-count { min-width: 28px; height: 28px; display: grid; place-items: center; color: #31553c; border-radius: 9px; background: var(--green-soft); font-size: 11px; font-weight: 800; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #4d5750; font-size: 11px; font-weight: 720; }
.input-wrap { position: relative; }
.field input, .field textarea, .field select { width: 100%; color: var(--ink); border: 1px solid #dfe4df; border-radius: 11px; outline: 0; background: #fbfcfb; }
.field input, .field select { height: 44px; padding: 0 12px; }
.field textarea { min-height: 96px; padding: 12px 44px 12px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #74ba86; box-shadow: 0 0 0 3px rgba(116,186,134,.13); background: #fff; }
.mic-button { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border: 0; border-radius: 9px; background: #eef2ee; }
.mic-button.listening { color: #fff; background: #ce4e4e; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(206,78,78,.12); } }

.photo-tabs { display: flex; gap: 7px; margin-bottom: 16px; padding: 4px; border-radius: 12px; background: #f1f3f1; }
.photo-tab { flex: 1; padding: 9px 8px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; font-size: 11px; font-weight: 750; }
.photo-tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(21,30,24,.06); }
.photo-drop { display: grid; place-items: center; min-height: 150px; padding: 22px; border: 1.5px dashed #cbd3cc; border-radius: 15px; background: #fafbfa; text-align: center; }
.photo-drop.drag { border-color: #6aac7b; background: var(--green-soft); }
.photo-drop-icon { font-size: 27px; }
.photo-drop strong { margin-top: 8px; font-size: 13px; }
.photo-drop span { margin-top: 4px; color: var(--faint); font-size: 11px; }
.photo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 13px; }
.photo-item { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fafbfa; }
.photo-thumb { position: relative; aspect-ratio: 16/10; background: #e8ece8; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag { position: absolute; top: 9px; left: 9px; padding: 6px 8px; color: #fff; border-radius: 8px; background: rgba(17,23,19,.74); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.photo-delete { position: absolute; top: 8px; right: 8px; width: 29px; height: 29px; color: #fff; border: 0; border-radius: 9px; background: rgba(17,23,19,.68); }
.photo-caption { padding: 9px; }
.photo-caption input { width: 100%; height: 36px; padding: 0 9px; border: 1px solid #e0e5e0; border-radius: 9px; outline: 0; background: #fff; font-size: 11px; }
.photo-empty { grid-column: 1/-1; padding: 25px; color: var(--faint); text-align: center; font-size: 12px; }

.summary-card { position: sticky; top: 96px; }
.summary-cover { overflow: hidden; aspect-ratio: 16/10; margin: -24px -24px 20px; border-radius: 19px 19px 0 0; background: linear-gradient(145deg,#263a2c,#142018); }
.summary-cover img { width: 100%; height: 100%; object-fit: cover; }
.summary-cover.empty { display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: 42px; }
.summary-title { margin: 0 0 4px; font-size: 19px; }
.summary-subtitle { color: var(--muted); font-size: 11px; }
.summary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 19px 0; }
.summary-stat { padding: 12px; border-radius: 12px; background: #f4f6f4; }
.summary-stat strong { display: block; font-size: 18px; }
.summary-stat span { color: var(--faint); font-size: 10px; }
.checklist { display: grid; gap: 10px; margin: 17px 0 21px; }
.check { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.check i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; background: #edf0ed; font-style: normal; font-size: 10px; }
.check.done { color: #34573d; }
.check.done i { background: var(--green-soft); }
.summary-card .button { width: 100%; }

.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.report-toolbar h1 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.report-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.cloud-button { color: #183e24; border-color: #a7ddb5; background: var(--green-soft); }
.report-paper { width: min(860px, 100%); margin: 0 auto; padding: 58px 62px; background: #fff; box-shadow: var(--shadow); }
.report-header { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.report-brand { font-size: 25px; font-weight: 820; letter-spacing: -.04em; }
.report-brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 550; letter-spacing: .08em; text-transform: uppercase; }
.report-number { text-align: right; }
.report-number strong { display: block; font-size: 13px; }
.report-number span { color: var(--muted); font-size: 10px; }
.report-paper h2 { margin: 34px 0 9px; font-size: 30px; letter-spacing: -.04em; }
.report-address { color: var(--muted); }
.report-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 27px 0; }
.report-detail { padding: 13px 0; border-top: 1px solid var(--line); }
.report-detail span { display: block; color: var(--faint); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.report-detail strong { display: block; margin-top: 6px; font-size: 12px; }
.report-description { padding: 19px; border-radius: 13px; background: #f5f7f5; line-height: 1.55; white-space: pre-wrap; }
.report-section { margin-top: 36px; }
.report-section-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.report-section-title h3 { margin: 0; font-size: 17px; }
.report-section-title span { color: var(--faint); font-size: 10px; }
.report-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.report-photo { break-inside: avoid; }
.report-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.report-photo p { margin: 7px 0 0; color: #4f5852; font-size: 10px; line-height: 1.4; }
.report-photo p::before { content: "•"; margin-right: 5px; color: var(--green-dark); }
.report-empty { padding: 18px; color: var(--faint); border: 1px dashed var(--line); border-radius: 10px; text-align: center; font-size: 11px; }
.approval-box { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 48px; padding-top: 23px; border-top: 2px solid var(--ink); }
.approval-box h4 { margin: 0 0 12px; font-size: 12px; }
.approval-line { min-height: 38px; padding-top: 12px; border-bottom: 1px solid #9ea69f; font-size: 11px; }
.approval-status { padding: 15px; border-radius: 12px; background: var(--green-soft); color: #285138; font-size: 11px; line-height: 1.5; }
.approval-form { width: min(860px, 100%); margin: 18px auto 0; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.approval-form-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.report-handoff { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.report-handoff strong { display: block; font-size: 13px; }
.report-handoff p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

.feedback-panel { width: min(860px, 100%); margin: 18px auto 0; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.feedback-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.feedback-panel-head h3 { margin: 4px 0 0; font-size: 20px; }
.feedback-counter { padding: 7px 10px; color: #486052; border-radius: 999px; background: #edf2ee; font-size: 10px; font-weight: 750; }
.feedback-counter.has-open { color: #7b4e16; background: #fff2da; }
.feedback-list { display: grid; gap: 9px; margin-top: 18px; }
.feedback-item { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid #f0d49f; border-radius: 12px; background: #fffbf4; }
.feedback-item.resolved { border-color: #dce9df; background: #f5fbf6; }
.feedback-item img { width: 68px; height: 54px; object-fit: cover; border-radius: 8px; }
.feedback-item strong { display: block; font-size: 11px; line-height: 1.4; }
.feedback-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.feedback-item .button { min-height: 34px; padding: 0 11px; font-size: 9px; }
.feedback-item > i { width: 27px; height: 27px; display: grid; place-items: center; color: #2d7141; border-radius: 50%; background: var(--green-soft); font-style: normal; }
.review-history { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-history > div { display: grid; grid-template-columns: 8px 1fr auto; gap: 9px; align-items: center; color: #59645d; font-size: 10px; }
.review-history i { width: 7px; height: 7px; border-radius: 50%; background: #77cf8e; }
.review-history time { color: var(--faint); font-size: 9px; }

body.client-mode { background: #eef2ee; }
body.client-mode .app-shell { display: block; }
body.client-mode .sidebar, body.client-mode .topbar { display: none; }
body.client-mode .workspace { display: block; }
body.client-mode .view { width: 100%; padding: 0; }
.client-shell { min-height: 100vh; }
.client-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 12px max(22px,calc((100% - 980px)/2)); color: #fff; background: rgba(18,23,20,.96); backdrop-filter: blur(15px); }
.client-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.client-brand img { width: 38px; height: 38px; border-radius: 12px; }
.client-brand small { display: block; margin-top: 2px; color: #aeb9b1; font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.client-exit { padding: 8px; color: #b8c2bb; border: 0; background: transparent; font-size: 10px; }
.client-content { width: min(920px,calc(100% - 32px)); margin: 0 auto; padding: 42px 0 90px; }
.client-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 18px; padding: 34px; color: #fff; border-radius: 24px; background: radial-gradient(circle at 90% 15%,rgba(133,242,162,.18),transparent 32%),#151c17; }
.client-kicker { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.client-hero h1 { margin: 10px 0 7px; font-size: clamp(29px,5vw,46px); line-height: 1; letter-spacing: -.05em; }
.client-hero p { margin: 0; color: #adb8b0; font-size: 12px; }
.client-status { flex: none; padding: 8px 11px; color: #183c24; border-radius: 999px; background: var(--green); font-size: 10px; font-weight: 800; }
.client-status.changes_requested { color: #714816; background: #ffd998; }
.client-summary { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 12px 30px; padding: 25px 28px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.client-summary > span { grid-column: 1/-1; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.client-summary p { margin: 0; line-height: 1.55; }
.client-summary div { padding-left: 20px; border-left: 1px solid var(--line); }
.client-summary b, .client-summary strong { display: block; }
.client-summary b { color: var(--faint); font-size: 9px; text-transform: uppercase; }
.client-summary strong { margin-top: 7px; font-size: 12px; }
.client-stage { margin-top: 38px; }
.client-stage-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.client-stage-head h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.client-stage-head span { color: var(--faint); font-size: 10px; }
.client-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.client-photo-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.client-photo-card > img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: cover; }
.client-photo-copy { padding: 14px; }
.client-photo-copy > p { min-height: 32px; margin: 0 0 12px; color: #4e5952; font-size: 11px; line-height: 1.45; }
.client-photo-copy > button { padding: 5px 0; color: #366d47; border: 0; background: none; font-size: 10px; font-weight: 750; }
.client-photo-note { display: grid; gap: 3px; margin: 9px 0; padding: 10px; color: #694717; border-radius: 9px; background: #fff2da; font-size: 10px; line-height: 1.4; }
.client-photo-note b { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.client-photo-note.resolved { color: #315a3d; background: var(--green-soft); }
.client-decision { display: grid; gap: 18px; margin-top: 45px; padding: 32px; border: 2px solid #dce5dd; border-radius: 23px; background: #fff; box-shadow: var(--shadow); }
.client-decision h2 { margin: 5px 0 6px; font-size: 27px; letter-spacing: -.035em; }
.client-decision p { margin: 0; color: var(--muted); }
.client-name-field label { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 750; }
.client-name-field input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #dce2dd; border-radius: 11px; outline: 0; }
.client-decision-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.button.warning { color: #754d18; border-color: #f2d092; background: #fff8e9; }
.client-decision > small { color: var(--faint); font-size: 9px; line-height: 1.4; }
.client-decision.complete { place-items: center; padding: 45px; text-align: center; border-color: #bee7c8; background: linear-gradient(180deg,#fff,#f3fbf5); }
.client-complete-icon { width: 62px; height: 62px; display: grid; place-items: center; color: #153c21; border-radius: 50%; background: var(--green); font-size: 28px; font-weight: 900; }
.feedback-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; visibility: hidden; opacity: 0; transition: .2s; }
.feedback-modal.open { visibility: visible; opacity: 1; }
.feedback-backdrop { position: absolute; inset: 0; border: 0; background: rgba(8,12,9,.72); backdrop-filter: blur(7px); }
.feedback-dialog { position: relative; width: min(470px,100%); display: grid; gap: 13px; padding: 25px; border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.feedback-dialog h2 { margin: 0; font-size: 25px; }
.feedback-dialog img { width: 100%; max-height: 210px; object-fit: cover; border-radius: 12px; }
.feedback-dialog label { font-size: 10px; font-weight: 750; }
.feedback-dialog textarea { min-height: 95px; padding: 12px; border: 1px solid #dce2dd; border-radius: 11px; resize: vertical; }
.feedback-dialog input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dce2dd; border-radius: 11px; }
.feedback-close { position: absolute; top: 13px; right: 13px; width: 31px; height: 31px; border: 0; border-radius: 50%; background: #edf1ee; font-size: 19px; }
.cloud-secure-label { padding: 7px 10px; color: #b8c6bc; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: 9px; }
.cloud-client-loading, .cloud-client-error { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; text-align: center; }
.cloud-client-loading img, .cloud-client-error img { width: 68px; height: 68px; margin-bottom: 8px; border-radius: 20px; }
.cloud-client-loading strong { font-size: 20px; }
.cloud-client-loading span, .cloud-client-error p { color: var(--muted); }
.cloud-client-error h1 { margin: 4px 0 0; font-size: 29px; }
.cloud-client-error p { max-width: 430px; margin: 0; line-height: 1.5; }
.cloud-client-error button { margin-top: 10px; padding: 11px 16px; border: 0; border-radius: 11px; background: var(--green); font-weight: 750; }

.toast { position: fixed; right: 26px; bottom: 26px; z-index: 100; max-width: 340px; padding: 13px 16px; color: #fff; border-radius: 12px; background: #172019; box-shadow: 0 15px 35px rgba(0,0,0,.2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

.tutorial-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.tutorial-modal.open { visibility: visible; opacity: 1; }
.tutorial-backdrop { position: absolute; inset: 0; background: rgba(7, 11, 8, .76); backdrop-filter: blur(9px); }
.tutorial-dialog { position: relative; width: min(900px, 100%); min-height: 565px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 27px; background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.32); transform: translateY(15px) scale(.985); transition: transform .3s; }
.tutorial-modal.open .tutorial-dialog { transform: translateY(0) scale(1); }
.tutorial-close { position: absolute; top: 17px; right: 17px; z-index: 5; width: 36px; height: 36px; color: #67716a; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.88); font-size: 22px; line-height: 1; }
.tutorial-demo { position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 60% 40%, #315640, #142019 58%, #101612); }
.tutorial-demo::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 35px 35px; }
.demo-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: rgba(133,242,162,.17); filter: blur(35px); animation: glow-drift 5s ease-in-out infinite alternate; }
@keyframes glow-drift { to { transform: translate(25px,-18px) scale(1.12); } }
.demo-phone { position: relative; z-index: 1; width: 254px; height: 470px; overflow: hidden; border: 7px solid #0b100d; border-radius: 35px; background: #f7f9f7; box-shadow: 0 30px 60px rgba(0,0,0,.36), 0 0 0 1px rgba(255,255,255,.16); }
.demo-phone-top { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; color: #fff; background: #151c17; font-size: 10px; }
.demo-phone-top span { width: 14px; height: 14px; border: 2px solid var(--green); border-radius: 5px; }
.demo-phone-top i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.demo-scene { position: absolute; inset: 52px 0 0; padding: 17px; opacity: 0; transform: translateX(25px); pointer-events: none; transition: opacity .38s, transform .45s; }
.demo-scene.active { opacity: 1; transform: translateX(0); }
.camera-frame { position: relative; height: 262px; overflow: hidden; border-radius: 17px; background: linear-gradient(145deg,#819087,#44564a); }
.room-lines { position: absolute; inset: 20%; border: 5px solid rgba(255,255,255,.45); border-bottom: 0; }
.room-lines::after { content: ""; position: absolute; left: -28%; right: -28%; bottom: -50%; height: 5px; background: rgba(255,255,255,.45); }
.focus-corner { position: absolute; width: 25px; height: 25px; border-color: var(--green); border-style: solid; }
.focus-corner.c1 { top: 15px; left: 15px; border-width: 3px 0 0 3px; }
.focus-corner.c2 { top: 15px; right: 15px; border-width: 3px 3px 0 0; }
.focus-corner.c3 { bottom: 15px; left: 15px; border-width: 0 0 3px 3px; }
.focus-corner.c4 { right: 15px; bottom: 15px; border-width: 0 3px 3px 0; }
.camera-stage { display: flex; justify-content: center; gap: 5px; margin: 12px 0; }
.camera-stage span { padding: 6px; color: #607067; border-radius: 7px; background: #ebefeb; font-size: 7px; font-weight: 800; }
.camera-stage span:first-child { color: #234b30; background: var(--green-soft); }
.shutter { width: 45px; height: 45px; display: grid; place-items: center; margin: 4px auto; border: 3px solid #d6dcd7; border-radius: 50%; animation: shutter 2s ease-in-out infinite; }
.shutter i { width: 31px; height: 31px; border-radius: 50%; background: var(--green); }
@keyframes shutter { 45%,55% { transform: scale(.84); } }
.demo-photo { position: relative; height: 215px; overflow: hidden; border-radius: 15px; background: linear-gradient(145deg,#49825a,#20442b); }
.demo-photo > span { position: absolute; left: 11px; bottom: 11px; padding: 5px 7px; color: #fff; border-radius: 6px; background: rgba(0,0,0,.48); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.voice-row { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 11px; border-radius: 12px; background: #edf2ee; }
.voice-dot { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #d65757; font-size: 8px; animation: voice-pulse 1.2s infinite; }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 6px rgba(214,87,87,.14); } }
.voice-wave { flex: 1; height: 22px; display: flex; align-items: center; gap: 3px; }
.voice-wave i { width: 3px; height: 6px; border-radius: 3px; background: #617268; animation: wave .8s ease-in-out infinite alternate; }
.voice-wave i:nth-child(2n) { animation-delay: -.4s; }.voice-wave i:nth-child(3n) { animation-delay: -.2s; }
@keyframes wave { to { height: 20px; } }
.voice-row b { color: #7d8881; font-size: 8px; }
.caption-line { margin-top: 15px; }.caption-line span { display: block; width: 94%; height: 8px; margin-top: 7px; border-radius: 5px; background: #dfe5e0; animation: type-line 1.8s ease-in-out infinite alternate; }.caption-line span:last-child { width: 68%; animation-delay: -.5s; }
@keyframes type-line { from { width: 18%; } }
.mini-report { padding: 17px; border: 1px solid #dfe5e0; border-radius: 13px; background: #fff; box-shadow: 0 9px 25px rgba(31,43,34,.09); transform-origin: center; animation: report-enter 2.4s ease-in-out infinite alternate; }
@keyframes report-enter { from { transform: translateY(10px) scale(.96); opacity: .65; } }
.mini-report-head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid #1d251f; font-size: 8px; }.mini-report-head span { color: #738078; }
.mini-report h4 { margin: 17px 0 8px; font-size: 13px; }.mini-report p { width: 68%; height: 6px; margin: 0 0 15px; border-radius: 4px; background: #dde3de; }
.mini-photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.mini-photo-row i { height: 86px; border-radius: 7px; background: linear-gradient(145deg,#77857c,#35443a); }.mini-photo-row i:last-child { background: linear-gradient(145deg,#4e9564,#214d2e); }
.mini-check { margin-top: 14px; padding: 10px; color: #275339; border-radius: 8px; background: var(--green-soft); font-size: 8px; font-weight: 750; }
.sent-badge { display: flex; align-items: center; justify-content: center; gap: 7px; width: 135px; margin: 17px auto 0; padding: 9px; color: #254c31; border-radius: 999px; background: var(--green); font-size: 9px; font-weight: 800; animation: badge-pop 1.3s ease-in-out infinite alternate; }
.sent-badge span { width: 18px; height: 18px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #285c38; }
@keyframes badge-pop { to { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(56,120,72,.24); } }
.tutorial-copy { display: flex; flex-direction: column; justify-content: center; padding: 62px 48px 40px; }
.tutorial-copy h2 { min-height: 77px; margin: 12px 0 14px; font-size: 32px; line-height: 1.12; letter-spacing: -.045em; }
.tutorial-copy > p { min-height: 78px; margin: 0; color: var(--muted); line-height: 1.6; }
.tutorial-progress { display: flex; gap: 7px; margin: 28px 0; }.tutorial-progress i { width: 23px; height: 5px; border-radius: 999px; background: #dfe4df; transition: width .3s, background .3s; cursor: pointer; }.tutorial-progress i.active { width: 45px; background: #4b9b62; }
.tutorial-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 9px; }
.tutorial-skip { margin: 15px auto 0; padding: 5px; color: #8a948d; border: 0; background: none; font-size: 11px; }

.pricing-modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: .24s; }
.pricing-modal.open { visibility: visible; opacity: 1; }
.pricing-backdrop { position: absolute; inset: 0; background: rgba(7,11,8,.8); backdrop-filter: blur(9px); }
.pricing-dialog { position: relative; width: min(1040px,100%); max-height: calc(100vh - 48px); overflow: auto; padding: 42px; border-radius: 27px; background: #f7f9f7; box-shadow: 0 35px 100px rgba(0,0,0,.34); }
.pricing-head { max-width: 680px; margin: 0 auto 28px; text-align: center; }
.pricing-head .eyebrow { color: var(--green-dark); }
.pricing-head h2 { margin: 9px 0 10px; font-size: clamp(29px,4vw,43px); line-height: 1.05; letter-spacing: -.05em; }
.pricing-head > p { margin: 0; color: var(--muted); line-height: 1.55; }
.pricing-limit-note { margin-top: 15px; padding: 12px 15px; color: #684515; border: 1px solid #efd39c; border-radius: 12px; background: #fff6e4; font-size: 11px; line-height: 1.45; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.price-card.featured { color: #fff; border-color: #21382a; background: radial-gradient(circle at 95% 0,rgba(133,242,162,.2),transparent 35%),#172019; transform: translateY(-7px); box-shadow: 0 22px 45px rgba(17,28,20,.18); }
.popular-label { position: absolute; top: 14px; right: 14px; padding: 6px 8px; color: #173921; border-radius: 999px; background: var(--green); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.price-name { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured .price-name { color: var(--green); }
.price { margin: 21px 0 17px; }
.price strong { display: block; font-size: 32px; letter-spacing: -.05em; }
.price span { display: block; margin-top: 4px; color: var(--faint); font-size: 10px; }
.featured .price span { color: #aeb9b1; }
.price-card ul { flex: 1; display: grid; gap: 11px; margin: 0 0 23px; padding: 17px 0 0; border-top: 1px solid var(--line); list-style: none; }
.featured ul { border-color: rgba(255,255,255,.12); }
.price-card li { position: relative; padding-left: 19px; color: #505b53; font-size: 11px; line-height: 1.45; }
.featured li { color: #d5ddd7; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green-dark); font-weight: 900; }
.featured li::before { color: var(--green); }
.price-card .button { width: 100%; }
.price-card .button.selected { color: #1a4126; border-color: var(--green); background: var(--green-soft); }
.pricing-footnote { max-width: 670px; margin: 21px auto 0; color: var(--faint); font-size: 10px; line-height: 1.5; text-align: center; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .workspace { grid-column: 1; }
  .topbar { justify-content: space-between; padding: 0 22px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; padding: 0; color: var(--ink); border: 0; background: none; font-weight: 800; }
  .editor-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .plan-strip { grid-template-columns: 1fr auto; }
  .plan-usage { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 680px) {
  .topbar { height: 64px; padding: 0 15px; }
  .tutorial-link { width: 34px; height: 34px; padding: 0; }
  .tutorial-link span { width: 30px; height: 30px; }
  .tutorial-link { font-size: 0; }
  .status-pill { display: none; }
  .view { width: min(100% - 28px, 1180px); padding: 29px 0 70px; }
  .page-head, .editor-head, .report-toolbar { align-items: stretch; flex-direction: column; }
  .page-head .button { width: 100%; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .plan-strip { grid-template-columns: 1fr; gap: 14px; }
  .plan-strip-copy { align-items: flex-start; flex-direction: column; }
  .plan-strip .button { width: 100%; }
  .metrics .metric:last-child { grid-column: 1/-1; }
  .project-grid { grid-template-columns: 1fr; }
  .new-card { min-height: 180px; }
  .editor-title h1 { font-size: 22px; }
  .editor-actions, .report-toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .report-toolbar-actions .button:last-child { grid-column: 1 / -1; }
  .fields { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .panel { padding: 18px; border-radius: 17px; }
  .summary-cover { margin: -18px -18px 18px; }
  .photo-list { grid-template-columns: 1fr; }
  .report-paper { padding: 32px 22px; }
  .report-header, .approval-box { grid-template-columns: 1fr; flex-direction: column; }
  .report-number { text-align: left; }
  .report-details { grid-template-columns: 1fr; }
  .report-photos { grid-template-columns: 1fr; }
  .approval-form-row { grid-template-columns: 1fr; }
  .report-handoff, .feedback-panel-head, .client-hero { align-items: stretch; flex-direction: column; }
  .feedback-item { grid-template-columns: 55px minmax(0,1fr); }
  .feedback-item img { width: 55px; height: 48px; }
  .feedback-item .button, .feedback-item > i { grid-column: 2; justify-self: start; }
  .review-history > div { grid-template-columns: 8px 1fr; }
  .review-history time { grid-column: 2; }
  .client-topbar { min-height: 64px; padding: 10px 14px; }
  .client-exit { max-width: 92px; text-align: right; }
  .client-content { width: min(100% - 20px,920px); padding: 14px 0 55px; }
  .client-hero { padding: 24px 20px; border-radius: 19px; }
  .client-status { align-self: flex-start; }
  .client-summary { grid-template-columns: 1fr; padding: 20px; }
  .client-summary div { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .client-photo-grid { grid-template-columns: 1fr; }
  .client-decision { padding: 23px 18px; }
  .client-decision-actions { grid-template-columns: 1fr; }
  .tutorial-modal { padding: 12px; align-items: end; }
  .tutorial-dialog { max-height: calc(100vh - 24px); min-height: 0; grid-template-columns: 1fr; overflow-y: auto; border-radius: 24px; }
  .tutorial-demo { min-height: 390px; }
  .demo-phone { width: 205px; height: 350px; border-radius: 28px; }
  .demo-phone-top { height: 43px; }
  .demo-scene { inset-top: 43px; inset: 43px 0 0; padding: 13px; }
  .camera-frame { height: 185px; }
  .demo-photo { height: 150px; }
  .mini-photo-row i { height: 48px; }
  .tutorial-copy { padding: 28px 24px 24px; }
  .tutorial-copy h2 { min-height: 0; margin-top: 9px; font-size: 25px; }
  .tutorial-copy > p { min-height: 0; font-size: 13px; }
  .tutorial-progress { margin: 20px 0; }
  .pricing-modal { padding: 10px; align-items: end; }
  .pricing-dialog { max-height: calc(100vh - 20px); padding: 32px 15px 20px; border-radius: 23px; }
  .pricing-head { padding: 0 8px; }
  .pricing-head h2 { font-size: 29px; }
  .price-card { padding: 21px; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .sidebar, .topbar, .report-toolbar, .approval-form, .toast { display: none !important; }
  .app-shell, .workspace { display: block; }
  .view { width: 100%; padding: 0; }
  #projectsView, #editorView { display: none !important; }
  #reportView { display: block !important; }
  .report-paper { width: 100%; margin: 0; padding: 0; box-shadow: none; }
  .report-photo img { max-height: 230px; }
}
