:root {
  --ink: #171717;
  --ink-soft: #6f6f6f;
  --canvas: #ffffff;
  --panel: #ffffff;
  --line: #e7e7e7;
  --line-strong: #d4d4d4;
  --brand: #181818;
  --brand-dark: #000000;
  --brand-pale: #f2f2f2;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --negative: #dc2626;
  --negative-hover: #b91c1c;
  --negative-soft: #fef2f2;
  --green: #4a4a4a;
  --green-pale: #f1f1f1;
  --navy: #181818;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 24px rgba(0, 0, 0, .05);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, .14);
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); color: var(--ink); }
body { margin: 0; font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; overflow-anchor: none; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a, input, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(37,99,235,.24); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand-word { font-family: "Manrope", sans-serif; letter-spacing: -.035em; }
svg { display: block; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; background: var(--canvas); }
.sidebar { min-height: 100vh; background: var(--navy); color: #f8f8f2; padding: 25px 18px 20px; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 0 8px; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: white; font: 700 17px/1 "Manrope", sans-serif; letter-spacing: -.08em; }
.brand-word { font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.side-label { margin: 43px 10px 10px; color: #829189; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { display: grid; gap: 5px; }
.side-link { border: 0; background: transparent; color: #aab6b0; border-radius: 9px; display: flex; gap: 10px; align-items: center; width: 100%; padding: 11px 12px; cursor: pointer; text-align: left; transition: color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease; }
.side-link.active { background: rgba(255,255,255,.09); color: white; }
.side-link svg { width: 17px; height: 17px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.11); padding: 17px 4px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; background: #d8e7dd; color: var(--navy); font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.sidebar-foot strong { display: block; font-size: 12px; font-weight: 500; }
.sidebar-foot span { color: #829189; font-size: 11px; }
.icon-button { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; transition: color .16s ease, background .16s ease, transform .16s ease; }
.icon-button:hover { background: rgba(255,255,255,.09); }

.main { min-width: 0; padding: 38px clamp(24px, 4vw, 64px) 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--brand); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; margin-bottom: 8px; }
.page-head h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.page-head p { color: var(--ink-soft); margin-top: 7px; font-size: 14px; }
.button { border: 1px solid var(--line-strong); background: var(--panel); min-height: 42px; border-radius: 10px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 13px; text-decoration: none; box-shadow: 0 1px 1px rgba(23,33,27,.03); white-space: nowrap; transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.button:hover { border-color: #aeb0a4; background: white; }
.button.primary { color: white; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.negative { color: white; background: var(--negative); border-color: var(--negative); }
.button.negative:hover { background: var(--negative-hover); border-color: var(--negative-hover); }
.button.dark { color: white; background: var(--navy); border-color: var(--navy); }
.button.subtle { background: transparent; box-shadow: none; }
.button.small { min-height: 36px; padding-inline: 12px; }
.button svg { width: 16px; height: 16px; }
.button[disabled], .icon-button[disabled] { opacity: .62; cursor: wait; pointer-events: none; }
.button-spinner { width: 14px; height: 14px; flex: 0 0 auto; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); margin: 32px 0 22px; box-shadow: var(--shadow-sm); }
.stat { padding: 20px 22px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-label { color: var(--ink-soft); font-size: 12px; margin-bottom: 8px; }
.stat-value { font-family: "Manrope", sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.stat-meta { color: var(--ink-soft); font-size: 11px; margin-left: 5px; }

.section-bar { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 12px; gap: 12px; }
.section-bar h2 { font-size: 15px; letter-spacing: -.02em; }
.table-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.review-table { width: 100%; border-collapse: collapse; }
.review-table th { padding: 12px 18px; text-align: left; color: #7a837c; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; background: #faf9f5; border-bottom: 1px solid var(--line); }
.review-table td { padding: 16px 18px; font-size: 13px; border-bottom: 1px solid #ecece5; vertical-align: middle; }
.review-table tr:last-child td { border-bottom: 0; }
.review-table tbody tr { cursor: pointer; transition: background .15s ease; }
.review-table tbody tr:hover { background: #fbfaf6; }
.file-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.file-icon { width: 38px; height: 43px; border: 1px solid #d8d8cf; border-radius: 7px; background: white; display: grid; place-items: center; color: var(--brand); box-shadow: 0 2px 5px rgba(23,33,27,.04); flex: 0 0 auto; }
.file-cell strong { font-weight: 600; display: block; margin-bottom: 3px; }
.file-cell span, .muted { color: var(--ink-soft); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 9px; background: var(--green-pale); color: var(--green); font-size: 11px; font-weight: 600; }
.status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.people { display: flex; align-items: center; }
.mini-avatar { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #e8e6dd; border: 2px solid var(--panel); font-size: 9px; font-weight: 700; margin-left: -6px; }
.mini-avatar:first-child { margin-left: 0; }
.empty { padding: 56px 24px 60px; text-align: center; }
.empty-art { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 22px; background: var(--brand-pale); color: var(--brand); margin: 0 auto 18px; transform: rotate(-3deg); }
.empty-art svg { width: 31px; height: 31px; }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--ink-soft); font-size: 13px; margin: 0 auto 18px; max-width: 360px; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 46%) 1fr; background: var(--panel); }
.auth-panel { padding: 30px clamp(28px, 6vw, 92px); display: flex; flex-direction: column; }
.auth-panel .brand { padding: 0; align-self: flex-start; }
.auth-card { width: min(100%, 430px); margin: auto; padding-block: 50px; }
.auth-card .lock-mark { width: 48px; height: 48px; border-radius: 15px; background: var(--brand-pale); color: var(--brand); display: grid; place-items: center; margin-bottom: 24px; }
.auth-card .lock-mark svg { width: 22px; height: 22px; }
.auth-card h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; margin-bottom: 11px; }
.auth-card > p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin-bottom: 29px; max-width: 390px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 12px; font-weight: 600; }
.input-wrap { position: relative; }
.input { width: 100%; min-height: 45px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 13px; color: var(--ink); background: white; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
textarea.input { min-height: 92px; padding-block: 12px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223,87,63,.1); outline: none; }
.input.with-icon { padding-left: 42px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #858e87; pointer-events: none; }
.input-icon svg { width: 17px; height: 17px; }
.form-error { color: var(--negative); font-size: 12px; line-height: 1.45; }
.form-error:empty { display: none; }
.form-error:not(:empty) { margin: -4px 0 14px; padding: 9px 11px; border: 1px solid #fecaca; border-radius: 10px; background: var(--negative-soft); }
.auth-card .button { width: 100%; min-height: 47px; }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; color: #7b847d; font-size: 11px; margin-top: 18px; line-height: 1.45; }
.privacy-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.auth-visual { margin: 16px 16px 16px 0; border-radius: 26px; background: var(--navy); color: white; position: relative; overflow: hidden; display: grid; place-items: center; min-height: 620px; }
.auth-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--brand); top: -180px; right: -120px; opacity: .95; }
.auth-visual::after { content: ""; position: absolute; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; bottom: -110px; left: -80px; }
.email-stack { width: min(68%, 500px); position: relative; transform: rotate(2.5deg); z-index: 1; }
.email-stack::before, .email-stack::after { content: ""; position: absolute; inset: 0; background: #dce7df; border-radius: 12px; transform: rotate(-7deg) translate(-25px, 7px); opacity: .28; }
.email-stack::after { transform: rotate(5deg) translate(24px, 8px); opacity: .18; }
.email-sheet { position: relative; z-index: 2; background: #fffefa; border-radius: 12px; padding: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.28); color: var(--ink); }
.email-top { display: flex; align-items: center; gap: 5px; height: 20px; border-bottom: 1px solid #ecece6; }
.email-top i { width: 5px; height: 5px; background: #d8d8d0; border-radius: 50%; }
.email-hero { background: #eeeee7; height: 148px; margin-top: 12px; border-radius: 7px; position: relative; overflow: hidden; }
.email-hero::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--brand); right: -22px; top: -32px; }
.email-lines { padding: 16px 7px 9px; display: grid; gap: 8px; }
.email-lines i { display: block; height: 7px; border-radius: 8px; background: #d9dad2; width: 82%; }
.email-lines i:first-child { height: 13px; width: 56%; background: var(--navy); }
.email-lines i:nth-child(3) { width: 67%; }
.email-cta { width: 88px; height: 25px; background: var(--brand); border-radius: 5px; margin: 5px 7px 10px; }
.visual-caption { position: absolute; z-index: 2; left: 42px; bottom: 34px; color: #aabbb2; font-size: 12px; }
.visual-caption strong { display: block; color: white; font-family: "Manrope"; font-size: 20px; margin-bottom: 3px; letter-spacing: -.04em; }
.pin-demo { position: absolute; z-index: 3; top: 43%; right: -18px; width: 32px; height: 32px; background: var(--brand); color: white; border: 3px solid white; border-radius: 50% 50% 50% 8px; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.24); }
.pin-demo span { transform: rotate(45deg); font-size: 11px; font-weight: 700; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(14,25,20,.58); backdrop-filter: blur(5px); animation: fade .16s ease; }
.modal { width: min(100%, 520px); max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 27px; animation: rise .18s ease; }
.modal-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 23px; }
.modal-head h2 { font-size: 22px; margin-bottom: 4px; }
.modal-head p { color: var(--ink-soft); font-size: 12px; }
.modal .icon-button { color: var(--ink); }
.modal .icon-button:hover { background: #efeee8; }
.dropzone { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 148px; border: 1.5px dashed #babdb1; background: #faf9f5; border-radius: 12px; padding: 25px 20px; text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; margin-bottom: 22px; }
.dropzone:hover, .dropzone.dragging { border-color: var(--brand); background: var(--brand-pale); }
.drop-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; margin: 0 auto 9px; color: var(--brand); background: white; border: 1px solid var(--line); }
.dropzone strong { display: block; font-size: 13px; margin-bottom: 3px; }
.dropzone span { color: var(--ink-soft); font-size: 11px; }
.dropzone input { display: none; }
.selected-file { display: flex; align-items: center; gap: 10px; text-align: left; }
.selected-file .drop-icon { margin: 0; flex: 0 0 auto; }
.selected-names { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.selected-names i { padding: 3px 7px; border-radius: 999px; background: #eeeeee; color: var(--ink-soft); font-style: normal; font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 6px; }

.review-app { height: 100vh; overflow: hidden; display: grid; grid-template-rows: 68px 1fr; background: #e9e9e3; }
.review-app.has-batch { grid-template-rows: 68px auto minmax(0, 1fr); }
.review-topbar { background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; gap: 17px; z-index: 10; }
.review-topbar .brand { padding: 0; }
.top-divider { width: 1px; height: 27px; background: var(--line); }
.review-title { min-width: 0; }
.review-title strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-title span { color: var(--ink-soft); font-size: 10px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.viewer-pill { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; margin-right: 5px; }
.viewer-pill .avatar { width: 29px; height: 29px; }
.device-toggle { display: flex; background: #eeeee8; padding: 3px; border-radius: 9px; }
.device-toggle button { border: 0; border-radius: 7px; width: 32px; height: 30px; display: grid; place-items: center; background: transparent; color: #7d857f; cursor: pointer; transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.device-toggle button.active { background: white; color: var(--ink); box-shadow: 0 1px 3px rgba(23,33,27,.12); }
.device-toggle svg { width: 15px; height: 15px; }
.review-body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 328px; }
.preview-area { min-width: 0; overflow: auto; overflow-anchor: none; padding: 32px clamp(20px, 4vw, 50px) 70px; background-color: #e8e8e2; background-image: radial-gradient(#cbcfc6 1px, transparent 1px); background-size: 18px 18px; }
.preview-wrap { width: min(100%, 760px); margin: 0 auto; transition: width .22s ease; }
.preview-wrap.mobile { width: 390px; max-width: 100%; }
.preview-label { color: #747d76; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.decision-status { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: white; color: var(--ink-soft); font-size: 9px; letter-spacing: .04em; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.decision-status.approved { color: #1d4ed8; border-color: #bfdbfe; background: var(--accent-soft); }
.decision-status.declined { color: var(--negative); border-color: #fecaca; background: var(--negative-soft); }
.email-preview { position: relative; background: white; min-height: 900px; box-shadow: 0 18px 55px rgba(24,35,29,.14); }
.email-preview, .admin-preview { overflow-anchor: none; }
.email-preview iframe { width: 100%; height: 900px; border: 0; display: block; background: white; }
.comment-layer { position: absolute; inset: 0; pointer-events: none; cursor: crosshair; }
.comment-layer.active { pointer-events: auto; background: rgba(223,87,63,.045); box-shadow: inset 0 0 0 2px var(--brand); }
.comment-layer.active::after { content: "Click anywhere to leave a comment"; position: sticky; display: block; top: 13px; width: max-content; margin: 13px auto 0; background: var(--navy); color: white; border-radius: 99px; padding: 8px 12px; font-size: 11px; box-shadow: var(--shadow-sm); }
.comment-pin { position: absolute; z-index: 5; transform: translate(-50%, -100%); width: 31px; height: 31px; border: 3px solid white; border-radius: 50% 50% 50% 8px; background: var(--brand); color: white; box-shadow: 0 5px 13px rgba(23,33,27,.24); cursor: pointer; pointer-events: auto; rotate: -45deg; display: grid; place-items: center; transition: background .16s ease, box-shadow .16s ease, scale .16s ease; }
.comment-pin span { rotate: 45deg; font-size: 10px; font-weight: 700; }
.comment-pin.resolved { background: #8b928d; box-shadow: 0 4px 10px rgba(23,33,27,.16); }
.comment-pin.selected { background: var(--navy); scale: 1.12; }
.comment-composer { position: absolute; z-index: 12; width: min(280px, calc(100% - 24px)); transform: translate(12px, 12px); background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-lg); padding: 12px; }
.comment-composer.left { transform: translate(calc(-100% - 12px), 12px); }
.comment-composer textarea { min-height: 78px; }
.composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 8px; }
.comment-sidebar { min-width: 0; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.comments-head { padding: 20px 18px 15px; border-bottom: 1px solid var(--line); }
.comments-head h2 { font-size: 16px; display: flex; align-items: center; gap: 7px; }
.count-badge { border-radius: 99px; padding: 2px 7px; background: #eeeee8; color: var(--ink-soft); font: 600 10px "Manrope"; }
.open-count { margin-left: auto; color: var(--ink-soft); font-size: 9px; font-weight: 600; letter-spacing: .03em; }
.comments-head p { color: var(--ink-soft); font-size: 11px; margin-top: 5px; }
.comment-list { overflow: auto; padding: 8px 11px 24px; }
.comment-card { width: 100%; border: 1px solid transparent; border-radius: 13px; background: transparent; overflow: hidden; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.comment-card + .comment-card { margin-top: 4px; }
.comment-card:hover { background: #f7f6f1; }
.comment-card.selected { background: var(--brand-pale); border-color: #f3c6bb; }
.comment-card-main { width: 100%; border: 0; background: transparent; padding: 12px 10px; cursor: pointer; text-align: left; display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 10px; color: inherit; }
.comment-copy { min-width: 0; }
.comment-card .avatar { width: 27px; height: 27px; font-size: 9px; }
.comment-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.comment-meta strong { font-size: 11px; }
.comment-meta time { color: #89918a; font-size: 9px; }
.comment-card p { margin-top: 4px; font-size: 12px; line-height: 1.45; color: #465048; overflow-wrap: anywhere; }
.comment-status { margin-left: auto; flex: 0 0 auto; padding: 3px 6px; border-radius: 999px; background: #eeeeee; color: var(--ink-soft); font-size: 8px; font-weight: 600; }
.comment-status.resolved { display: inline-flex; align-items: center; gap: 2px; color: #166534; background: #eaf7ee; }
.comment-status svg { width: 9px; height: 9px; }
.reply-thread { margin: 0 10px 5px 47px; border-left: 1px solid #d9dce2; padding-left: 10px; }
.comment-reply { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 8px; padding: 8px 0; }
.comment-reply + .comment-reply { border-top: 1px solid rgba(0,0,0,.055); }
.reply-avatar { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: white; font-size: 7px; font-weight: 700; }
.comment-reply p { margin-top: 3px; font-size: 11px; }
.admin-comment-actions { display: flex; align-items: center; gap: 12px; margin: 0 10px 10px 47px; }
.text-action { border: 0; background: transparent; padding: 2px 0; color: var(--accent); cursor: pointer; font-size: 9px; font-weight: 600; }
.text-action.resolve { color: #166534; }
.admin-reply-form { margin: 0 10px 11px 47px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.07); }
.admin-reply-form[hidden] { display: none; }
.admin-reply-form label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 9px; font-weight: 600; }
.admin-reply-form textarea { min-height: 72px; padding: 9px 10px; font-size: 11px; resize: vertical; }
.admin-reply-form .composer-actions { margin-top: 7px; }
.comments-empty { text-align: center; color: var(--ink-soft); padding: 60px 20px; font-size: 12px; line-height: 1.5; }
.comments-empty svg { width: 28px; height: 28px; color: #a3aaa4; margin: 0 auto 10px; }
.submit-success { position: fixed; inset: 0; z-index: 60; background: rgba(16,28,22,.63); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.success-card { width: min(100%, 430px); background: var(--panel); border-radius: var(--radius-lg); text-align: center; padding: 42px 34px; box-shadow: var(--shadow-lg); }
.success-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--green-pale); color: var(--green); display: grid; place-items: center; margin: 0 auto 19px; }
.success-card h2 { font-size: 25px; margin-bottom: 8px; }
.success-card p { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.saved-exit .success-card { width: min(100%, 460px); padding: 40px 36px 34px; }
.saved-exit .success-icon { color: white; background: var(--accent); box-shadow: 0 10px 28px rgba(37,99,235,.2); }
.saved-exit .eyebrow { margin-bottom: 7px; }
.saved-exit-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; padding: 12px 13px; border-radius: 13px; background: #f7f7f7; color: var(--ink-soft); text-align: left; font-size: 10px; line-height: 1.5; }
.saved-exit-note svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--accent); }
.saved-exit #keep-reviewing { margin-top: 20px; }

.detail-head { margin-bottom: 20px; }
.back-button { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; color: var(--ink-soft); cursor: pointer; font-size: 12px; margin-bottom: 16px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 680px; }
.email-switcher { display: flex; gap: 7px; overflow-x: auto; padding: 7px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 18px; background: white; scrollbar-width: thin; }
.email-switcher button { flex: 0 0 auto; min-width: 190px; max-width: 280px; display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 1px 8px; align-items: center; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease; }
.email-switcher button:hover { background: #f7f7f7; }
.email-switcher button[aria-pressed="true"] { background: #f0f0f0; }
.email-switcher button span { grid-row: 1 / 3; color: #999; font-size: 9px; }
.email-switcher button strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.email-switcher button i { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 9px; font-style: normal; }
.review-app > .email-switcher { z-index: 8; margin: 0; padding: 8px 18px; border-width: 0 0 1px; border-radius: 0; }
.review-app > .email-switcher button { min-width: 175px; }
.admin-preview { background-color: #e9e9e3; background-image: radial-gradient(#cdd0c8 1px, transparent 1px); background-size: 18px 18px; padding: 30px; overflow: auto; }
.admin-preview .preview-wrap { max-width: 680px; }
.detail-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.detail-summary { padding: 18px; border-bottom: 1px solid var(--line); }
.detail-summary h3 { font-size: 14px; margin-bottom: 12px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-fact span { display: block; color: var(--ink-soft); font-size: 10px; margin-bottom: 3px; }
.detail-fact strong { font-family: "Manrope"; font-size: 19px; }
.detail-decisions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-decisions h4 { margin: 0 0 10px; font-size: 11px; font-weight: 600; }
.decision-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 0; }
.decision-row + .decision-row { border-top: 1px solid #f0f0f0; }
.decision-row .avatar { width: 30px; height: 30px; font-size: 9px; }
.decision-row strong, .decision-row small { display: block; }
.decision-row strong { overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.decision-row small { margin-top: 1px; color: var(--ink-soft); font-size: 9px; }
.decision-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 999px; font-size: 9px; font-weight: 600; }
.decision-pill svg { width: 11px; height: 11px; }
.decision-pill.approved { color: #1d4ed8; background: var(--accent-soft); }
.decision-pill.declined { color: var(--negative); background: var(--negative-soft); }
.decisions-empty { color: var(--ink-soft); font-size: 10px; line-height: 1.5; }

#toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 190px; background: var(--navy); color: white; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 15px; font-size: 12px; animation: rise .18s ease; display: flex; align-items: center; gap: 9px; }
.toast::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #86efac; box-shadow: 0 0 0 4px rgba(134,239,172,.12); }
.toast.error { background: #a83f31; }
.toast.error::before { background: #fecaca; box-shadow: 0 0 0 4px rgba(254,202,202,.13); }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--ink-soft); }
.spinner { width: 26px; height: 26px; border: 3px solid #d8d9d2; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
.loading-content { display: grid; justify-items: center; gap: 14px; font-size: 12px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.99); } }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .review-body { grid-template-columns: 1fr 290px; }
  .viewer-pill span { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; height: 64px; padding: 0 16px; flex-direction: row; align-items: center; }
  .side-label, .side-nav, .sidebar-foot > div:not(.avatar), .sidebar-foot .icon-button { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; padding: 0; border: 0; }
  .main { padding: 26px 16px 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .review-table th:nth-child(2), .review-table td:nth-child(2), .review-table th:nth-child(3), .review-table td:nth-child(3) { display: none; }
  .review-app { height: auto; min-height: 100vh; overflow: visible; }
  .review-topbar { position: sticky; top: 0; padding-inline: 12px; gap: 10px; }
  .review-topbar .brand-word, .top-divider, .viewer-pill { display: none; }
  .review-body { grid-template-columns: 1fr; }
  .preview-area { overflow: visible; min-height: 650px; padding: 22px 14px 45px; }
  .comment-sidebar { border-left: 0; border-top: 1px solid var(--line); min-height: 300px; }
  .review-title { max-width: 120px; }
  .device-toggle { display: none; }
}

@media (max-width: 460px) {
  .page-head { align-items: flex-start; }
  .page-head .button span { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:last-child { grid-column: auto; }
  .review-table th:last-child, .review-table td:last-child { display: none; }
  .modal { padding: 22px 18px; }
  .review-topbar .brand { display: none; }
  .review-title { max-width: 100px; }
  .top-actions { gap: 5px; }
  .top-actions .button { padding-inline: 10px; }
  .top-actions .button span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Minimal editorial direction */
h1, h2, h3 { font-family: "DM Sans", sans-serif; font-weight: 500; letter-spacing: -.04em; }
.eyebrow { color: var(--ink-soft); font-weight: 500; letter-spacing: .09em; }
.brand { padding: 0; }
.brand-mark { width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 10px; background: white; color: var(--ink); font-size: 15px; box-shadow: 0 2px 7px rgba(0,0,0,.05); transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.brand-word { font-size: 17px; font-weight: 600; }

.app-shell { display: block; min-height: 100vh; background: white; }
.sidebar { position: sticky; top: 0; z-index: 30; min-height: 0; height: 72px; padding: 0 clamp(20px, 4vw, 58px); display: flex; flex-direction: row; align-items: center; color: var(--ink); background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(0,0,0,.07); backdrop-filter: blur(18px); }
.side-label { display: none; }
.nav-context { display: flex; align-items: center; gap: 13px; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line); color: #aaa; font-size: 12px; white-space: nowrap; }
.nav-context strong { color: var(--ink-soft); font-weight: 500; }
.side-nav { margin-left: 24px; display: flex; align-items: center; gap: 4px; }
.side-link { width: auto; padding: 8px 10px; color: var(--ink-soft); border-radius: 10px; }
.side-nav .side-link.active { color: var(--ink); background: transparent; }
.side-nav .side-link.active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.side-link.nav-create { min-height: 36px; padding-inline: 13px; background: var(--accent); color: white; }
.side-link.nav-create:hover { background: var(--accent-hover); color: white; }
.side-link.nav-create svg { width: 14px; height: 14px; }
.account-menu { position: relative; }
.account-trigger { position: relative; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.account-trigger .avatar { width: 32px; height: 32px; font-size: 10px; }
.account-trigger > i { position: absolute; right: 0; bottom: 1px; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--accent); }
.account-trigger[aria-expanded="true"] { border-color: #bfdbfe; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.account-popover { position: absolute; z-index: 50; top: calc(100% + 10px); right: 0; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 20px 55px rgba(0,0,0,.13); animation: rise .16s ease; }
.account-popover[hidden] { display: none; }
.account-details { display: flex; align-items: center; gap: 10px; padding: 9px 9px 12px; border-bottom: 1px solid var(--line); }
.account-details .avatar { width: 34px; height: 34px; font-size: 10px; }
.account-details strong, .account-details small { display: block; }
.account-details strong { font-size: 12px; }
.account-details small { margin-top: 1px; color: var(--ink-soft); font-size: 10px; }
.account-signout { width: 100%; min-height: 40px; margin-top: 6px; padding: 0 10px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 11px; background: transparent; color: var(--negative); cursor: pointer; font-size: 11px; font-weight: 600; transition: background .16s ease, transform .16s ease; }
.account-signout svg { width: 15px; height: 15px; }
.account-signout:hover { background: var(--negative-soft); }
.account-signout[disabled] { opacity: .62; cursor: wait; }
.sidebar-foot { margin: 0 0 0 18px; padding: 0 0 0 18px; border: 0; border-left: 1px solid var(--line); gap: 9px; }
.sidebar-foot span { color: #8c8c8c; }
.sidebar-foot .icon-button:hover { background: #f3f3f3; }
.sidebar-foot .icon-button.negative-action:hover { color: var(--negative); background: var(--negative-soft); }
.avatar { color: var(--ink); background: #eeeeee; }

.main { width: min(100%, 1220px); margin: 0 auto; padding: 64px clamp(22px, 5vw, 72px) 88px; }
.workspace-hero { min-height: 300px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 50px; padding: 18px 0 54px; }
.workspace-hero h1 { max-width: 720px; font-size: clamp(50px, 7vw, 82px); line-height: .98; letter-spacing: -.065em; }
.workspace-hero p { margin-top: 22px; color: var(--ink-soft); font-size: 15px; }
.hero-action { margin-bottom: 6px; }
.button { border-color: var(--line); border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.dark { background: var(--ink); border-color: var(--ink); color: white; }
.button.dark:hover { background: #000; border-color: #000; }
.button.subtle { box-shadow: none; }
.icon-button { border-radius: 50%; }
.icon-button:hover { background: #f1f1f1; }
.button.confirmed, .icon-button.confirmed { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
#add-comment[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: #bfdbfe; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.decision-button.approve { color: var(--accent); border-color: #bfdbfe; background: var(--accent-soft); }
.decision-button.approve[aria-pressed="true"] { color: white; border-color: var(--accent); background: var(--accent); box-shadow: 0 6px 16px rgba(37,99,235,.2); }
.decision-button.decline { color: var(--negative); border-color: #fecaca; background: var(--negative-soft); }
.decision-button.decline[aria-pressed="true"] { color: white; border-color: var(--negative); background: var(--negative); box-shadow: 0 6px 16px rgba(220,38,38,.18); }
.leave-button { padding-inline: 14px; }
.leave-button svg { width: 14px; }

.workspace-summary { display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-size: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.workspace-summary i { width: 3px; height: 3px; border-radius: 50%; background: #b6b6b6; }
.storage-warning { display: flex; align-items: flex-start; gap: 11px; margin: -18px 0 26px; padding: 14px 16px; border: 1px solid #fed7aa; border-radius: 16px; background: #fffaf3; color: #9a3412; }
.storage-warning > svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }
.storage-warning strong, .storage-warning span { display: block; }
.storage-warning strong { font-size: 11px; }
.storage-warning span { margin-top: 2px; color: #9a5a3b; font-size: 10px; line-height: 1.5; }
.storage-warning code { padding: 1px 4px; border-radius: 5px; background: rgba(154,52,18,.07); font-size: 9px; }
.section-bar { margin: 60px 0 18px; }
.section-bar h2 { font-size: 19px; }
.review-stack { display: grid; gap: 12px; }
.review-item { display: grid; grid-template-columns: 48px minmax(250px, 1fr) minmax(210px, .65fr) 84px; align-items: center; gap: 20px; min-height: 142px; padding: 24px 24px 24px 20px; background: white; border: 1px solid #ededed; border-radius: 26px; box-shadow: 0 6px 24px rgba(0,0,0,.045); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.review-item:hover { transform: translateY(-2px); border-color: #dcdcdc; box-shadow: 0 14px 38px rgba(0,0,0,.08); }
.review-item:focus-visible { outline: 3px solid rgba(37,99,235,.22); outline-offset: 3px; border-color: #bfdbfe; }
.review-number { align-self: start; padding-top: 4px; color: #a3a3a3; font-size: 11px; letter-spacing: .05em; }
.review-main { min-width: 0; }
.review-kicker { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 10px; margin-bottom: 11px; }
.review-main h3 { font-size: clamp(21px, 2.4vw, 29px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-main p { margin-top: 6px; color: var(--ink-soft); font-size: 11px; }
.batch-email-preview { display: flex; gap: 5px; overflow: hidden; margin-top: 12px; }
.batch-email-preview span { min-width: 0; max-width: 150px; overflow: hidden; padding: 4px 7px; border-radius: 999px; background: #f4f4f4; color: var(--ink-soft); font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.status { padding: 4px 8px; color: #555; background: #f0f0f0; }
.status::before { width: 5px; height: 5px; }
.review-activity { display: grid; gap: 12px; color: var(--ink-soft); font-size: 11px; }
.people-line, .comment-line { display: flex; align-items: center; gap: 9px; }
.comment-line svg { width: 15px; height: 15px; }
.decision-line { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.decision-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.decision-dot.approved { background: var(--accent); }
.decision-dot.declined { margin-left: 5px; background: var(--negative); }
.people { min-width: 27px; }
.empty-people { color: #aaa; }
.mini-avatar { background: #f0f0f0; border-color: white; }
.review-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.row-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f3f3f3; transition: color .16s ease, background .16s ease, transform .16s ease; }
.row-arrow svg { width: 15px; height: 15px; }
.empty { border: 1px dashed var(--line-strong); border-radius: 26px; }
.empty-art { color: var(--ink); background: #f2f2f2; transform: none; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: white; }
.auth-panel { width: 100%; min-height: 100vh; padding: 30px clamp(22px, 5vw, 64px); }
.auth-card { width: min(100%, 430px); padding-block: 80px; }
.auth-card .lock-mark { width: 46px; height: 46px; color: var(--ink); background: #f2f2f2; border-radius: 50%; }
.auth-card h1 { font-size: clamp(37px, 5vw, 52px); }
.auth-visual { display: none; }
.input { min-height: 48px; border-color: #d9d9d9; border-radius: 13px; background: white; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.input-icon { color: #888; }
.privacy-note { color: #8a8a8a; }

.modal-backdrop { background: rgba(0,0,0,.35); }
.modal { border: 1px solid #ededed; border-radius: 24px; padding: 30px; }
.modal-head { margin-bottom: 24px; }
.modal-actions { padding-top: 10px; }
.dropzone { border-color: #cfcfcf; background: #fafafa; border-radius: 18px; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(37,99,235,.06); }
.drop-icon { color: var(--ink); }

.review-app { background: white; }
.review-topbar { height: 70px; border-color: var(--line); }
.review-body { grid-template-columns: minmax(0, 1fr) 340px; }
.preview-area, .admin-preview { background: #f6f6f6; background-image: none; }
.email-preview { border-radius: 3px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.1); }
.comment-sidebar { border-color: var(--line); }
.device-toggle { background: #f2f2f2; }
.device-toggle button.active { color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.comment-layer.active { background: rgba(37,99,235,.025); box-shadow: inset 0 0 0 2px rgba(37,99,235,.72); }
.comment-layer.active::after { background: var(--accent); }
.comment-pin, .pin-demo { background: var(--ink); }
.comment-pin.selected { background: var(--accent); }
.comment-card.selected { background: var(--accent-soft); border-color: #bfdbfe; }
.comment-card:hover { background: #f7f7f7; }
.count-badge { background: #f1f1f1; }
.submit-success { background: rgba(0,0,0,.45); }
.success-icon { color: var(--ink); background: #f1f1f1; }

.page-head h1 { font-size: clamp(36px, 5vw, 60px); }
.batch-switcher-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--ink-soft); font-size: 10px; }
.batch-switcher-head strong { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: #f1f1f1; color: var(--ink); font-size: 9px; }
.detail-grid { border-color: #ededed; border-radius: 24px; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.detail-summary, .comments-head { border-color: var(--line); }
.back-button { color: var(--ink-soft); }
.back-button svg { width: 16px; height: 16px; flex: 0 0 auto; }

@media (hover: hover) {
  .brand:hover .brand-mark { color: white; background: var(--accent); border-color: var(--accent); box-shadow: 0 5px 15px rgba(37,99,235,.2); }
  .side-link:not(.nav-create):hover { color: var(--ink); background: #f7f7f7; }
  .button:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(0,0,0,.08); }
  .button.primary:hover:not([disabled]) { box-shadow: 0 8px 20px rgba(37,99,235,.22); }
  .decision-button.approve:hover:not([disabled]) { color: white; border-color: var(--accent); background: var(--accent); box-shadow: 0 8px 20px rgba(37,99,235,.2); }
  .decision-button.decline:hover:not([disabled]) { color: white; border-color: var(--negative); background: var(--negative); box-shadow: 0 8px 20px rgba(220,38,38,.17); }
  .button.subtle:hover:not([disabled]) { background: #f5f5f5; box-shadow: none; }
  .icon-button:hover:not([disabled]) { transform: translateY(-1px); }
  .input:hover:not(:focus) { border-color: #b8b8b8; background: #fdfdfd; }
  .review-item:hover .row-arrow { color: white; background: var(--accent); transform: translateX(3px); }
  .copy-link:hover { color: var(--accent); background: var(--accent-soft); }
  .back-button:hover { color: var(--ink); }
  .back-button:hover svg { transform: translateX(-2px); }
  .email-switcher button:hover { background: #f5f7fb; transform: translateY(-1px); }
  .device-toggle button:hover:not(.active) { color: var(--ink); background: rgba(255,255,255,.6); }
  .comment-pin:hover { background: var(--accent); scale: 1.12; box-shadow: 0 8px 18px rgba(37,99,235,.28); }
  .comment-card:hover { background: #f7f8fa; transform: translateX(2px); }
}

.button:active:not([disabled]), .side-link:active:not([disabled]), .icon-button:active:not([disabled]), .device-toggle button:active { transform: translateY(0) scale(.98); }
.email-switcher button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px #bfdbfe; }
.back-button svg { transition: transform .16s ease; }

@media (max-width: 900px) {
  .nav-context { display: none; }
  .review-item { grid-template-columns: 40px minmax(0, 1fr) 70px; }
  .review-activity { display: none; }
  .viewer-pill { display: none; }
  .device-toggle { display: none; }
}

@media (max-width: 720px) {
  .sidebar { height: 64px; padding: 0 16px; }
  .side-nav { display: none; }
  .nav-context { display: none; }
  .sidebar-foot > div:not(.avatar) { display: none; }
  .sidebar-foot .icon-button { display: grid; }
  .main { padding: 40px 16px 60px; }
  .workspace-hero { min-height: 300px; grid-template-columns: 1fr; gap: 28px; padding-bottom: 38px; }
  .workspace-hero h1 { font-size: clamp(45px, 14vw, 67px); }
  .hero-action { justify-self: start; }
  .section-bar { margin-top: 52px; }
  .review-item { grid-template-columns: 32px minmax(0, 1fr) 45px; gap: 10px; min-height: 128px; padding: 20px 16px; border-radius: 21px; }
  .review-main h3 { font-size: 20px; }
  .batch-email-preview span:nth-child(n+3) { display: none; }
  .review-row-actions .copy-link { display: none; }
  .row-arrow { width: 34px; height: 34px; }
  .review-body { grid-template-columns: 1fr; }
  .preview-area { background: #f6f6f6; }
}

@media (max-width: 540px) {
  .sidebar .nav-create { width: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .sidebar .nav-create span { display: none; }
  .nav-actions { gap: 7px; }
}

@media (max-width: 600px) {
  .review-title { max-width: 92px; }
  .top-actions .button span { display: none; }
  .top-actions .button { padding-inline: 10px; }
}

@media (max-width: 430px) {
  .workspace-summary { flex-wrap: wrap; }
  .review-number { display: none; }
  .review-item { grid-template-columns: minmax(0, 1fr) 40px; }
  .sidebar-foot .avatar { display: grid; }
}
