@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap');

:root {
  --ink: #202327;
  --muted: #667078;
  --wine: #713848;
  --wine-dark: #552735;
  --wine-light: #f4eaed;
  --paper: #ffffff;
  --line: #e4e7e9;
  --green: #24734f;
  --serif: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; background: none; color: inherit; transition: background .15s, border-color .15s, box-shadow .15s; }
button:disabled { cursor: not-allowed; color: #7a8187; background-color: #f5f6f7; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #a35f75; outline-offset: 3px; }
a { color: inherit; }
input, textarea, select { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
svg.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Application frame */
.shell { display: grid; grid-template-columns: 224px minmax(0,1fr); min-height: 100vh; }
.sidebar { height: 100vh; position: sticky; top: 0; border-right: 1px solid var(--line); background: #f7f8f9; padding: 26px 16px 20px; display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 9px; color: #24252a; font: 700 23px/1.2 var(--sans); letter-spacing: -1px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 34px; color: var(--wine); }
.brand-mark svg { width: 26px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.brand small { display: block; font: 12px/1.4 var(--sans); letter-spacing: 0; margin-top: 6px; color: var(--muted); }
.workspace-switch { display: flex; align-items: center; gap: 10px; margin: 31px 0 28px; padding: 11px 10px; border: 1px solid #dce0e3; border-radius: 9px; background: white; text-align: left; font-size: 13px; font-weight: 550; }
.workspace-switch span:nth-child(2) { flex: 1; }
.workspace-switch small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.workspace-switch .avatar { width: 32px; height: 32px; border-radius: 7px; background: #f1e8e3; color: #684e40; font-weight: 600; }
.workspace-switch .icon { width: 15px; height: 15px; color: var(--muted); }
.nav-label, .eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .7px; color: var(--muted); text-transform: uppercase; }
.nav-label { padding: 0 12px; margin-bottom: 11px; }
.nav { display: grid; gap: 4px; }
.nav button { display: flex; align-items: center; gap: 11px; padding: 11px 12px; text-align: left; border-radius: 7px; font-size: 14px; font-weight: 500; color: #566069; min-height: 44px; }
.nav button:hover { background: #eceef0; color: var(--ink); }
.nav button.active { background: #eae3e7; color: #633142; font-weight: 650; }
.nav .count { font-size: 11px; font-weight: 600; margin-left: auto; padding: 1px 6px; border-radius: 4px; background: #e1e4e7; color: #59626b; }
.nav .mobile-tour { display: none; }
.sidebar-bottom { margin-top: auto; }
.demo-note { margin: 30px 8px 25px; padding: 18px 0 0; border-top: 1px solid #dfe3e6; }
.demo-note > .icon { display: none; }
.demo-note h4 { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.demo-note p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.demo-note button { font-size: 12px; font-weight: 600; color: var(--wine); display: flex; align-items: center; gap: 10px; padding: 10px 0 0; }
.demo-note button .icon { width: 14px; height: 14px; }
.user-profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 19px 4px 0; width: 100%; font-size: 13px; font-weight: 550; text-align: left; }
.user-profile > span:nth-child(2) { flex: 1; }
.user-profile small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.user-profile > .icon { width: 15px; height: 15px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8ddd7; color: #70523f; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.main { min-width: 0; }
.topbar { height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; border-bottom: 1px solid var(--line); background: white; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 13px; }
.breadcrumbs b { font-weight: 500; color: var(--ink); }
.breadcrumbs .icon { width: 13px; height: 13px; color: #929aa1; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.demo-badge { font-size: 11px; color: #69737b; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.demo-badge:before { content: ''; height: 5px; width: 5px; background: #96737c; border-radius: 50%; }
.role-switch { display: flex; align-items: center; padding: 3px; background: #f1f3f4; border: 1px solid #e4e7ea; border-radius: 7px; gap: 2px; }
.role-switch button { padding: 6px 10px; border-radius: 5px; font-size: 12px; color: #667078; }
.role-switch button.selected { background: white; box-shadow: 0 1px 3px #20232715; color: #262a2e; font-weight: 600; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: #657079; }
.icon-button:hover { color: var(--ink); background: #f1f3f5; }
.mobile-brand { display: none; }
.content { max-width: 1700px; margin: 0 auto; padding: 28px 32px 24px; }
.project-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.project-heading .eyebrow { font-size: 11px; margin-bottom: 7px; }
.title-row { display: flex; align-items: center; gap: 13px; margin: 0 0 8px; }
.title-row h1 { font-size: 29px; font-weight: 650; line-height: 1.2; letter-spacing: -.9px; }
.project-heading p { font-size: 13px; color: #657079; }
.project-heading .sep { margin: 0 7px; color: #a4acb2; }
.heading-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; font-weight: 550; color: #226b4b; background: #e8f4ec; padding: 5px 8px; border-radius: 5px; }
.badge:before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge.amber { background: #fff4dc; color: #856018; }
.badge.wine { background: #f3e9ee; color: #783950; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 14px; background: white; color: #343b41; border: 1px solid #dce1e5; border-radius: 7px; font-size: 13px; line-height: 1.4; font-weight: 550; text-decoration: none; }
.btn:hover { background: #f7f8f9; border-color: #bfc7ce; }
.btn.primary { background: var(--wine); border-color: var(--wine); color: white; }
.btn.primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.btn.primary:disabled { background: #d3bdc5; border-color: #d3bdc5; color: #ffffff; }
.btn .icon { width: 16px; height: 16px; }
.btn.ghost { background: none; border-color: transparent; color: #58636c; }
.btn.ghost:hover { background: #f4f5f6; }
.btn.full { width: 100%; }
.steps { display: flex; align-items: center; gap: 9px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 9px; color: #737e86; font-size: 12px; white-space: nowrap; }
.step-number { width: 23px; height: 23px; border: 1px solid #d6dce0; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 500; }
.step.done { color: #63716a; }
.step.done .step-number { color: #36805a; background: #edf5ef; border-color: #e2eee5; }
.step.done .icon { width: 13px; height: 13px; }
.step.current { color: var(--wine); font-weight: 650; }
.step.current .step-number { background: var(--wine); border-color: var(--wine); color: white; }
.step-line { height: 1px; flex: 1; min-width: 10px; margin: 0 6px; background: #e2e6e9; }

/* Product review and configuration */
.studio-grid { display: grid; grid-template-columns: minmax(0,1fr) 354px; gap: 24px; align-items: start; }
.viewer-card { height: 544px; min-height: 420px; border: 1px solid #e3e6e8; border-radius: 10px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 45% 40%,#fcfcfa,#f0f0ec 80%); }
.viewer-header { position: absolute; top: 20px; left: 22px; right: 21px; display: flex; align-items: center; justify-content: space-between; z-index: 2; pointer-events: none; gap: 14px; }
.viewer-header .eyebrow { color: #525b61; font-size: 11px; letter-spacing: .7px; }
.version { color: #6e777d; font-size: 11px; }
.version span { display: inline-block; margin-left: 6px; background: white; border: 1px solid #e1e5e6; border-radius: 4px; padding: 2px 6px; color: #515b62; }
.ring-canvas { position: absolute; inset: 40px 8px 50px; }
.ring-canvas canvas { cursor: grab; }
.ring-canvas canvas:active { cursor: grabbing; }
.viewer-tools { position: absolute; top: 61px; right: 17px; display: grid; gap: 7px; }
.viewer-tools button { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #d9dfe0; background: #fffffff0; color: #5c6569; border-radius: 7px; }
.viewer-tools button:hover, .viewer-tools button[aria-pressed=true] { background: #f0e4e9; border-color: #ad8b98; color: var(--wine); }
.viewer-tools .icon { width: 16px; height: 16px; }
.viewer-caption { position: absolute; bottom: 70px; left: 0; width: 100%; text-align: center; font-size: 12px; color: #717a7d; pointer-events: none; }
.viewer-caption .icon { width: 14px; height: 14px; margin-right: 4px; vertical-align: -3px; }
.view-selector { position: absolute; bottom: 19px; left: 20px; display: flex; padding: 3px; gap: 2px; background: #e9ece9; border: 1px solid #dfe3e1; border-radius: 7px; }
.view-selector button { padding: 7px 12px; border-radius: 4px; font-size: 12px; color: #67716f; }
.view-selector button.active { color: #303b38; font-weight: 550; background: white; box-shadow: 0 1px 3px #1826210d; }
.viewer-watermark { position: absolute; right: 22px; bottom: 28px; font: 600 13px var(--sans); letter-spacing: -.3px; color: #8a918d; }
.attachment-strip { display: flex; align-items: center; gap: 12px; padding: 15px 0; margin-top: 0; border-bottom: 1px solid var(--line); }
.attachment-strip > button:first-child { padding: 0; }
.sketch-thumb { display: block; width: 51px; height: 44px; object-fit: cover; border: 1px solid #dfe3e4; border-radius: 5px; background: #f5f3ef; }
.attachment-title { font-size: 13px; font-weight: 550; flex: 1; min-width: 0; }
.attachment-title small { display: block; font-size: 11px; font-weight: 400; color: #707b82; margin-top: 3px; overflow-wrap: anywhere; }
.attachment-strip .divider { width: 1px; height: 25px; background: #e1e5e7; margin: 0 3px; }
.small-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #59656e; font-weight: 500; padding: 7px 4px; white-space: nowrap; }
.small-link:hover { color: var(--wine); }
.small-link .icon { width: 14px; height: 14px; }
.custom-panel { background: white; border: 1px solid #dfe4e7; border-radius: 10px; overflow: hidden; }
.panel-tabs { display: flex; align-items: stretch; padding: 0 21px; gap: 25px; border-bottom: 1px solid var(--line); }
.panel-tabs button { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #69737a; padding: 16px 0 14px; border-bottom: 2px solid transparent; }
.panel-tabs button.active { border-bottom-color: var(--wine); color: var(--wine); font-weight: 650; }
.panel-tabs .icon { width: 15px; height: 15px; }
.panel-body { padding: 22px; }
.panel-body h3 { font-size: 19px; font-weight: 650; line-height: 1.4; letter-spacing: -.4px; margin: 0 0 4px; }
.panel-body .intro { color: #6b757d; font-size: 13px; line-height: 1.6; margin-bottom: 24px; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 550; color: #363e44; }
.field-label small { color: #6c777f; font-size: 11px; font-weight: 400; }
.metal-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 22px; }
.metal-option { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; border: 1px solid #dfe3e7; background: white; border-radius: 7px; padding: 14px 3px 11px; font-size: 11px; color: #58636c; }
.metal-option:hover { border-color: #aa7f8e; }
.metal-option.selected { background: #fcf7f9; border: 1px solid #875667; box-shadow: inset 0 0 0 .5px #875667; color: #633044; font-weight: 550; }
.metal-option.selected:after { content: '✓'; position: absolute; right: 6px; top: 4px; font-size: 10px; color: var(--wine); }
.metal-swatch { display: block; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#bf9343,#f5e2a5 40%,#c2a15b 62%,#f3dda0); box-shadow: inset 0 0 0 1px #503d1e22; }
.metal-swatch.white { background: linear-gradient(130deg,#aeb6bc,#f7fafb 40%,#b0b8c1 62%,#e5e8eb); }
.metal-swatch.rose { background: linear-gradient(130deg,#bc836c,#f3d3be 40%,#c59784 62%,#edc1a8); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 22px; }
.two-fields > div { min-width: 0; }
.toggle { display: flex; height: 41px; padding: 3px; border: 1px solid #d9dfe4; background: #f4f6f7; border-radius: 6px; }
.toggle button { width: 50%; border-radius: 4px; color: #6b757d; font-size: 12px; }
.toggle button.active { background: white; color: #30393f; box-shadow: 0 1px 3px #24323a15; font-weight: 600; }
.input, select, textarea { display: block; width: 100%; min-height: 41px; padding: 10px 11px; border: 1px solid #d5dce1; border-radius: 6px; background: white; font-size: 13px; outline: none; }
.input:hover, select:hover, textarea:hover { border-color: #b4bec6; }
.input:focus, select:focus, textarea:focus { border-color: #9a6c7e; box-shadow: 0 0 0 3px #f4e9ee; }
input:disabled, select:disabled, textarea:disabled { background: #f6f7f8; color: #63717a; }
input::placeholder, textarea::placeholder { color: #859099; }
select { padding-right: 22px; }
textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.engraving-wrap { position: relative; }
.engraving-wrap input { padding-right: 53px; }
.char-count { position: absolute; right: 10px; top: 12px; font-size: 11px; color: #75818a; }
.field-help { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 11px; line-height: 1.6; color: #6d7880; margin-top: 7px; }
.field-help button { padding: 0; font-size: inherit; color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.spec-box { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 21px; padding-top: 16px; font-size: 11px; color: #59666f; }
.spec-box span:last-child { color: #77818a; }
.cost-box { padding: 20px 22px; background: #f7f8fa; border-top: 1px solid var(--line); }
.cost-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cost-top span { font-size: 12px; color: #52616b; }
.cost-top strong { font-size: 27px; font-weight: 650; letter-spacing: -.8px; color: #252c32; font-variant-numeric: tabular-nums; }
.cost-note { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #687680; line-height: 1.6; margin: 5px 0 16px; }
.cost-note .icon { width: 12px; height: 12px; }
.cost-box .btn { font-size: 13px; min-height: 43px; }
.quote-mode { display: flex; gap: 5px; margin-bottom: 20px; background: #f3f5f6; padding: 4px; border: 1px solid #e0e5e8; border-radius: 6px; }
.quote-mode button { flex: 1; border-radius: 4px; padding: 8px 6px; font-size: 12px; color: #69757f; }
.quote-mode button.active { background: white; color: var(--wine); font-weight: 600; box-shadow: 0 1px 3px #29374012; }
.quote-summary { background: #f7f8f9; padding: 17px; border: 1px solid #e3e7eb; border-radius: 7px; margin-top: 20px; }
.quote-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 12px; color: #58656f; margin: 10px 0; font-variant-numeric: tabular-nums; }
.quote-row.total { border-top: 1px solid #dce2e7; padding-top: 16px; margin-top: 16px; color: #2d3740; font-weight: 550; }
.quote-row.total b { font-size: 25px; font-weight: 650; letter-spacing: -.6px; }
.quote-row.profit { color: #2c7956; }
.under-grid { margin-top: 25px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.info-card { border: 1px solid var(--line); border-radius: 9px; padding: 22px; background: white; }
.under-grid .info-card { padding: 0; border: 0; border-radius: 0; }
.card-title { font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-title .small-link { font-size: 11px; padding: 0; font-weight: 400; }
.partner-row { display: flex; align-items: center; gap: 11px; }
.partner-avatar { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 7px; background: #eee9e2; color: #7c644d; font-size: 16px; font-weight: 600; }
.partner-info { font-size: 12px; font-weight: 550; flex: 1; }
.partner-info small { display: block; font-weight: 400; font-size: 11px; color: #748089; margin-top: 3px; }
.partner-info .verified { color: #287652; }
.mini-label { font-size: 10px; color: #6d7b83; font-weight: 550; margin-top: 18px; margin-bottom: 6px; letter-spacing: .3px; }
.message-preview { color: #617079; font-size: 12px; line-height: 1.65; }
.activity-line { display: flex; align-items: start; gap: 12px; font-size: 12px; color: #53626d; line-height: 1.55; }
.activity-line small { display: block; font-size: 11px; color: #77848d; margin-top: 4px; }
.activity-line + .activity-line { margin-top: 16px; }
.activity-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #619475; margin: 6px 0 0 2px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #eef0f2; font-size: 11px; color: #77848c; }
.page-footer span:first-child { display: flex; align-items: center; gap: 5px; }
.page-footer .icon { width: 13px; height: 13px; }
.status-banner { display: flex; align-items: center; gap: 12px; border: 1px solid #d6e6dc; border-radius: 8px; background: #f1f8f4; color: #2f6547; padding: 15px 18px; margin-bottom: 22px; font-size: 13px; }
.status-banner p { flex: 1; }
.status-banner small { display: block; font-size: 12px; color: #5d7c68; margin-top: 3px; }
.status-banner .btn { color: #38694c; border-color: #c8dbd0; font-size: 12px; }

/* Project, manufacturing and activity screens */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 22px; }
.search-wrap { display: flex; align-items: center; gap: 9px; min-width: 280px; padding: 9px 12px; border: 1px solid #d8dfe5; border-radius: 7px; background: white; }
.search-wrap .icon { color: #77838c; width: 16px; height: 16px; }
.search-wrap .input { border: 0; padding: 0; min-height: 22px; box-shadow: none; }
.list-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.project-card { display: block; width: 100%; border: 1px solid #dfe4e8; border-radius: 10px; overflow: hidden; background: white; text-align: left; padding: 0; }
.project-card:hover { border-color: #a8b5bd; box-shadow: 0 4px 12px #20313b08; }
.project-card-image { height: 190px; position: relative; overflow: hidden; background: #f3f2ed; border-bottom: 1px solid #e6e8e8; }
.project-card-image img { height: 100%; width: 100%; object-fit: cover; }
.project-card-body { padding: 22px; }
.project-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; margin: 14px 0 5px; }
.project-card p { font-size: 13px; color: #6b7780; }
.project-card .bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 12px; color: #727f88; }
.new-project-card { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; min-height: 340px; padding: 24px; background: #fafbfc; border: 1px dashed #cbd3da; border-radius: 10px; color: #62727c; }
.new-project-card:hover { background: #f4f5f7; border-color: #9babb5; }
.new-project-card .icon { width: 26px; height: 26px; margin-bottom: 3px; }
.new-project-card b { font-size: 17px; font-weight: 550; color: #3b4851; }
.new-project-card span { font-size: 12px; }
.empty { padding: 60px 20px; text-align: center; color: #72828d; }
.manufacturer-grid { display: grid; grid-template-columns: minmax(0,1fr) 354px; gap: 24px; }
.brief-sketch { width: 100%; height: 300px; object-fit: contain; border: 1px solid #e4e5df; border-radius: 7px; background: #f7f5ed; }
.details-table { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 24px 0 0; }
.details-table dt { font-size: 11px; font-weight: 500; color: #78858e; margin-bottom: 5px; }
.details-table dd { margin: 0; color: #3e4b55; font-size: 13px; }
.brief-note { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 19px; font-size: 13px; color: #5c6b76; line-height: 1.7; }
.delivery-box { display: flex; flex-direction: column; align-items: center; gap: 9px; border: 1px dashed #c8d2db; border-radius: 8px; background: #f7f9fb; padding: 25px 18px; text-align: center; color: #607483; margin: 20px 0; }
.delivery-box .icon { width: 26px; height: 26px; }
.delivery-box h4 { font-size: 14px; font-weight: 600; margin: 2px 0; color: #384a56; }
.delivery-box p { font-size: 12px; }
.delivery-box.loaded { background: #f0f8f2; color: #3d7853; border-color: #afcdb8; }
.field { margin: 19px 0; }
.partner-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; }
.partner-large { padding: 28px; }
.partner-large h3 { font-size: 23px; font-weight: 600; margin-top: 18px; letter-spacing: -.5px; }
.partner-large p { font-size: 14px; color: #61717d; line-height: 1.7; margin: 16px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #f0f3f5; color: #526674; padding: 5px 8px; border-radius: 5px; font-size: 11px; }
.timeline { max-width: 800px; }
.timeline-item { padding: 24px 24px 24px 30px; margin-left: 6px; border-left: 1px solid #dce3e8; position: relative; }
.timeline-item:before { content: ''; position: absolute; top: 31px; left: -4px; width: 7px; height: 7px; background: #9a7c89; border-radius: 50%; box-shadow: 0 0 0 4px white; }
.timeline-item small { font-size: 12px; color: #7b8a94; }
.timeline-item h3 { font-size: 15px; font-weight: 550; margin: 6px 0; }
.timeline-item p { font-size: 13px; color: #697a86; }

/* Forms and overlays */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: #16212b69; backdrop-filter: blur(3px); }
.modal { width: 570px; max-width: 100%; max-height: 92vh; overflow-y: auto; background: white; border: 1px solid #dce3e9; border-radius: 13px; box-shadow: 0 24px 80px #172c453b; }
.modal.wide { width: 740px; }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 25px 28px 22px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 23px; font-weight: 600; letter-spacing: -.6px; }
.modal-header p { font-size: 13px; color: #6a7a85; margin-top: 6px; }
.modal-body { padding: 24px 28px 28px; }
.modal .field-label { font-size: 13px; }
.modal .input, .modal select, .modal textarea { font-size: 14px; min-height: 44px; }
.modal .two-fields { gap: 20px; margin: 0; }
.modal .btn { font-size: 13px; }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 20px; text-align: center; background: #f8fafb; border: 1px dashed #b8c5cf; border-radius: 8px; color: #5b7181; cursor: pointer; position: relative; }
.upload-zone .icon { width: 25px; height: 25px; margin-bottom: 10px; }
.upload-zone strong { font-size: 14px; font-weight: 550; color: #374c5b; }
.upload-zone span { font-size: 12px; margin-top: 5px; }
.upload-zone input { opacity: 0; width: 1px; height: 1px; position: absolute; }
.upload-zone:focus-within { outline: 3px solid #a35f75; outline-offset: 3px; }
.upload-zone img { width: 100%; height: 115px; object-fit: contain; margin-top: 12px; }
.sample-link { color: var(--wine); font-size: 12px; margin-top: 10px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 25px; }
.modal-footer p { font-size: 12px; color: #758590; max-width: 280px; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 24px 0; font-size: 14px; }
.checkout-total strong { font-size: 29px; font-weight: 650; letter-spacing: -.8px; }
.checklist { list-style: none; margin: 24px 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #526873; margin: 14px 0; }
.checklist .icon { width: 17px; height: 17px; color: #4f8266; }
.callout { border: 1px solid #e1e7ec; background: #f5f8fa; border-radius: 7px; padding: 16px; font-size: 13px; line-height: 1.75; color: #59707f; }
.success-seal { height: 60px; width: 60px; margin: 0 auto 20px; border-radius: 50%; background: #e5f3e9; display: grid; place-items: center; color: #367b53; }
.success-seal .icon { width: 27px; height: 27px; }
.success-text { text-align: center; }
.success-text h3 { font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.success-text p { font-size: 14px; color: #69808f; line-height: 1.7; }
.success-text .btn { margin-top: 23px; }
.share-preview { background: #f6f8fa; border: 1px solid #e0e6eb; border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.share-preview .brand { padding: 0; justify-content: center; font-size: 20px; }
.share-preview h3 { font-size: 22px; font-weight: 550; letter-spacing: -.5px; text-align: center; margin: 22px 0 5px; }
.share-preview p { font-size: 13px; color: #667d8c; text-align: center; }
.link-field { display: flex; gap: 9px; margin-top: 10px; }
.link-field input { min-width: 0; font-size: 12px !important; }
.privacy-note { display: flex; align-items: center; gap: 7px; color: #46765e; font-size: 12px; margin-top: 14px; }
.privacy-note .icon { width: 14px; height: 14px; }
.tour-step { display: flex; gap: 18px; align-items: start; margin-bottom: 24px; }
.tour-number { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #e0cdd6; background: #f8edf2; color: var(--wine); flex-shrink: 0; border-radius: 6px; font-size: 14px; font-weight: 550; }
.tour-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tour-step p { font-size: 13px; line-height: 1.7; color: #687c89; }
.tour-step button { font-size: 12px; font-weight: 550; color: var(--wine); padding: 0; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.approval-check { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.7; color: #526876; margin: 20px 0; }
.approval-check input { accent-color: var(--wine); width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }

/* Retail proposal */
.customer-page { min-height: 100vh; background: #fcfcfb; }
.customer-demo { background: #f0f2f3; border-bottom: 1px solid #e5e9ec; padding: 9px 20px; text-align: center; color: #697882; font-size: 11px; }
.customer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 5%; border-bottom: 1px solid #e4e7e7; background: white; }
.customer-brand { font: 550 21px/1.25 var(--sans); color: #282e2d; letter-spacing: 2.5px; text-align: center; }
.customer-brand small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 1.2px; color: #708078; margin-top: 7px; }
.customer-top > span { color: #758078; font-size: 11px; letter-spacing: .7px; }
.customer-layout { max-width: 1290px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: 60px; padding: 52px 45px 60px; }
.customer-viewer { height: 590px; background: radial-gradient(ellipse at 40% 40%,#fdfdfa,#eff0ea); border: 1px solid #e6e9e3; }
.customer-copy .eyebrow { font-size: 11px; letter-spacing: .9px; color: #637d6a; }
.customer-copy h1 { font-size: 36px; font-weight: 550; line-height: 1.18; letter-spacing: -1.2px; color: #29332f; margin: 14px 0 16px; }
.customer-copy .description { color: #60706a; font-size: 15px; line-height: 1.8; }
.customer-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid #e2e7e3; border-bottom: 1px solid #e2e7e3; padding: 24px 0; margin: 28px 0; }
.customer-specs dt { font-size: 11px; letter-spacing: .3px; color: #7b8781; margin-bottom: 7px; }
.customer-specs dd { margin: 0; color: #33463b; font-size: 14px; font-weight: 450; }
.customer-price { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.customer-price strong { font-size: 31px; letter-spacing: -.9px; font-weight: 600; color: #2f4235; white-space: nowrap; }
.customer-price p { color: #708377; font-size: 12px; margin-top: 4px; }
.customer-copy .btn.primary { width: 100%; min-height: 48px; background: #344d3f; border-color: #344d3f; font-size: 14px; }
.customer-copy .btn.primary:hover { background: #253b2f; }
.customer-copy .btn.ghost { width: 100%; margin-top: 9px; font-size: 13px; color: #54715f; }
.customer-fine { color: #75877b; font-size: 12px; line-height: 1.7; margin-top: 18px; }
.customer-footer { border-top: 1px solid #e4e9e3; padding: 24px; text-align: center; color: #7b8b80; font-size: 12px; }
.customer-footer b { font-size: 13px; color: #4f6757; letter-spacing: -.3px; margin-left: 5px; }

/* Utilities */
#toast { position: fixed; z-index: 200; left: 50%; bottom: 25px; max-width: 90vw; transform: translate(-50%,15px); opacity: 0; pointer-events: none; background: #28333e; color: white; font-size: 13px; border-radius: 8px; padding: 13px 20px; box-shadow: 0 8px 30px #24344325; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%,0); }
.fullscreen-view { position: fixed !important; inset: 20px !important; width: auto !important; height: auto !important; z-index: 90 !important; box-shadow: 0 0 0 100px #1c273d9e; }
.fullscreen-view .ring-canvas { inset: 50px 20px 70px; }
.loading-error { padding: 70px; text-align: center; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.full-width { grid-column: 1/-1; }
.hidden { display: none !important; }

@media (min-width:1550px) {
  .content { padding: 32px 40px; }
  .topbar { padding: 0 40px; }
  .studio-grid { grid-template-columns: minmax(0,1fr) 380px; gap: 30px; }
  .viewer-card { height: 580px; }
  .panel-body { padding: 25px; }
  .cost-box { padding: 21px 25px; }
  .metal-option { font-size: 12px; }
  .title-row h1 { font-size: 32px; }
}
@media (max-width:1200px) {
  .shell { grid-template-columns: 196px minmax(0,1fr); }
  .sidebar { padding: 25px 12px 20px; }
  .brand { font-size: 21px; gap: 6px; }
  .topbar { padding: 0 24px; }
  .content { padding: 25px 24px; }
  .studio-grid { grid-template-columns: minmax(0,1fr) 330px; gap: 20px; }
  .panel-body, .cost-box { padding: 20px; }
  .panel-tabs { padding: 0 20px; gap: 20px; }
  .title-row { flex-wrap: wrap; gap: 8px 12px; }
  .title-row h1 { font-size: 27px; }
  .demo-badge { display: none; }
  .step { font-size: 11px; gap: 7px; }
  .step-line { margin: 0 2px; }
  .attachment-strip .divider { display: none; }
  .attachment-strip .small-link { font-size: 11px; }
  .under-grid { grid-template-columns: 1fr; gap: 24px; }
  .manufacturer-grid { grid-template-columns: minmax(0,1fr) 330px; }
  .list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:1000px) {
  .shell { grid-template-columns: 72px minmax(0,1fr); }
  .sidebar { padding: 23px 11px; }
  .sidebar .brand { justify-content: center; padding: 0; }
  .sidebar .brand > span:last-child, .workspace-switch, .nav-label, .nav button > span, .demo-note, .user-profile > span:nth-child(2), .user-profile > .icon { display: none; }
  .nav { margin-top: 36px; }
  .nav button { justify-content: center; padding: 12px; }
  .user-profile { justify-content: center; padding-top: 18px; }
  .topbar { gap: 8px; }
  .top-actions { gap: 9px; }
  .project-heading { align-items: start; }
  .heading-actions .btn.ghost { padding: 10px; font-size: 12px; }
  .heading-actions .btn { font-size: 12px; padding: 10px 12px; }
  .viewer-watermark { display: none; }
  .viewer-card { height: 550px; }
  .attachment-strip { gap: 9px; }
  .attachment-strip .small-link { font-size: 0; padding: 7px; }
  .attachment-strip .small-link .icon { width: 17px; height: 17px; }
  .partner-cards { grid-template-columns: 1fr; }
  .customer-layout { gap: 35px; padding: 35px 30px; }
  .customer-copy h1 { font-size: 30px; }
  .customer-viewer { height: 500px; }
}
@media (max-width:800px) {
  .studio-grid { grid-template-columns: minmax(0,1fr); }
  .studio-grid > div:first-child { display: contents; }
  .studio-grid > div:first-child > .viewer-card { order: 1; }
  .studio-grid > div:first-child > .attachment-strip { order: 3; }
  .studio-grid > .custom-panel { order: 2; }
  .studio-grid > div:first-child > .under-grid { order: 4; }
  .viewer-card { height: 460px; min-height: 0; }
  .under-grid { grid-template-columns: 1fr 1fr; margin-top: 4px; }
  .attachment-strip { padding-top: 0; }
  .attachment-strip .small-link { font-size: 12px; }
  .viewer-watermark { display: block; }
  .panel-body, .cost-box { padding: 23px; }
  .panel-tabs { padding: 0 23px; }
  .metal-option { font-size: 13px; padding: 16px 6px 13px; }
  .metal-swatch { width: 33px; height: 33px; }
  .spec-box { justify-content: flex-start; gap: 20px; font-size: 12px; }
  .cost-top span { font-size: 14px; }
  .cost-note { font-size: 11px; }
  .manufacturer-grid { grid-template-columns: 1fr; }
  .heading-actions .btn.ghost { display: none; }
  .steps { gap: 5px; }
  .step { flex-direction: column; gap: 7px; font-size: 10px; text-align: center; }
  .step-line { margin-top: -20px; }
  .status-banner { flex-wrap: wrap; }
  .status-banner .btn { margin-left: 30px; }
}
@media (max-width:600px) {
  .shell { display: block; }
  .sidebar { position: fixed; top: auto; bottom: 0; height: 65px; width: 100%; padding: 0; border-right: 0; border-top: 1px solid #dce2e6; background: #fffffff5; backdrop-filter: blur(10px); }
  .sidebar .brand, .sidebar-bottom { display: none; }
  .nav { display: flex; height: 65px; justify-content: space-around; gap: 0; margin: 0; }
  .nav button { flex: 1; flex-direction: column; gap: 4px; padding: 10px 2px 8px; font-size: 10px; border-radius: 0; }
  .nav button > span:not(.count) { display: block; }
  .nav button.active { background: #f9f2f6; color: var(--wine); }
  .nav .icon { height: 19px; width: 19px; }
  .nav .mobile-tour { display: flex; }
  .main { padding-bottom: 65px; }
  .topbar { min-height: 66px; height: auto; padding: 13px 18px; gap: 12px; }
  .mobile-brand { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.8px; }
  .breadcrumbs, .top-actions > .icon-button { display: none; }
  .top-actions { min-width: 0; }
  .role-switch { gap: 0; padding: 3px; }
  .role-switch button { font-size: 10px; padding: 6px 7px; }
  .content { padding: 23px 18px; }
  .project-heading { gap: 10px; margin-bottom: 20px; }
  .title-row { gap: 9px; margin-bottom: 9px; }
  .title-row h1 { font-size: 26px; letter-spacing: -.7px; }
  .project-heading p { font-size: 12px; line-height: 1.7; }
  .project-heading .sep { margin: 0 4px; }
  .project-heading .eyebrow { font-size: 10px; }
  .heading-actions { margin-top: 22px; }
  .heading-actions .btn { font-size: 0; padding: 10px; min-width: 38px; gap: 0; }
  .heading-actions .btn .icon { width: 17px; height: 17px; }
  .badge { font-size: 10px; padding: 4px 7px; }
  .steps { padding: 16px 0; margin-bottom: 18px; gap: 3px; }
  .step { font-size: 9px; white-space: normal; flex: 1; line-height: 1.4; }
  .step-number { width: 23px; height: 23px; font-size: 10px; }
  .step-line { flex: 0 0 10px; min-width: 7px; margin: -24px 0 0; }
  .studio-grid { gap: 17px; }
  .viewer-card { height: 394px; border-radius: 8px; }
  .viewer-header { top: 17px; left: 16px; right: 15px; }
  .viewer-header .eyebrow, .version { font-size: 10px; }
  .viewer-tools { right: 13px; top: 57px; }
  .viewer-tools button { height: 34px; width: 34px; }
  .viewer-caption { bottom: 67px; font-size: 11px; }
  .view-selector { left: 13px; bottom: 16px; }
  .view-selector button { font-size: 11px; padding: 7px 9px; }
  .viewer-watermark { font-size: 11px; bottom: 28px; right: 13px; }
  .attachment-strip { gap: 9px; padding-bottom: 17px; }
  .attachment-title { font-size: 12px; }
  .attachment-title small { font-size: 10px; }
  .attachment-strip .small-link { font-size: 0; padding: 6px; }
  .sketch-thumb { width: 43px; height: 43px; }
  .panel-body, .cost-box { padding: 21px; }
  .panel-tabs { padding: 0 21px; gap: 30px; }
  .panel-tabs button { font-size: 13px; }
  .panel-body h3 { font-size: 20px; }
  .panel-body .intro { font-size: 13px; }
  .field-label { font-size: 13px; }
  .field-label small { font-size: 11px; }
  .input, select, textarea { font-size: 16px; min-height: 44px; }
  .toggle { height: 44px; }
  .toggle button { font-size: 13px; }
  .char-count { top: 14px; font-size: 11px; }
  .metal-option { font-size: 11px; }
  .cost-top strong { font-size: 29px; }
  .cost-top span { font-size: 12px; }
  .cost-note { font-size: 10px; }
  .cost-box .btn { min-height: 46px; font-size: 14px; }
  .spec-box { flex-wrap: wrap; gap: 4px 12px; font-size: 11px; }
  .under-grid { grid-template-columns: 1fr; gap: 25px; margin-top: 8px; }
  .card-title { font-size: 14px; }
  .partner-info { font-size: 13px; }
  .partner-info small { font-size: 11px; }
  .mini-label { font-size: 11px; }
  .message-preview, .activity-line { font-size: 13px; }
  .page-footer { flex-direction: column; gap: 8px; font-size: 10px; margin-top: 25px; }
  .status-banner { font-size: 12px; padding: 14px; gap: 10px; }
  .status-banner small { font-size: 11px; }
  .status-banner .btn { margin-left: 28px; }
  .list-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card-image { height: 210px; }
  .new-project-card { min-height: 180px; }
  .list-toolbar { flex-wrap: wrap; gap: 15px; margin: 24px 0 20px; }
  .search-wrap { width: 100%; min-width: 0; }
  .search-wrap .input { font-size: 14px; }
  .info-card { padding: 20px; }
  .brief-sketch { height: 230px; }
  .details-table { gap: 19px; }
  .details-table dd { font-size: 12px; }
  .partner-large { padding: 23px; }
  .overlay { padding: 12px; }
  .modal { max-height: 94vh; border-radius: 11px; }
  .modal-header { padding: 22px 20px 20px; gap: 10px; }
  .modal-header h2 { font-size: 21px; }
  .modal-header p { font-size: 12px; }
  .modal-body { padding: 20px; }
  .modal .two-fields { grid-template-columns: 1fr; gap: 2px; }
  .modal .input, .modal select, .modal textarea { font-size: 16px; }
  .modal-footer { flex-direction: column-reverse; align-items: stretch; gap: 13px; }
  .modal-footer p { max-width: none; font-size: 11px; text-align: center; }
  .modal-footer .btn { min-height: 44px; }
  .tour-step { gap: 13px; }
  .tour-step h3 { font-size: 15px; }
  .tour-step p { font-size: 12px; }
  .callout { font-size: 12px; }
  .customer-demo { padding: 8px 13px; font-size: 10px; }
  .customer-top { padding: 20px; gap: 10px; }
  .customer-top > span { display: none; }
  .customer-brand { font-size: 16px; letter-spacing: 1.5px; text-align: left; }
  .customer-brand small { font-size: 8px; letter-spacing: .4px; }
  .customer-top .btn { padding: 8px 10px; font-size: 10px; min-height: 34px; }
  .customer-top .btn .icon { display: none; }
  .customer-layout { display: flex; flex-direction: column; padding: 20px 20px 35px; gap: 30px; }
  .customer-viewer { width: 100%; height: 380px; }
  .customer-copy { width: 100%; max-width: 500px; }
  .customer-copy h1 { font-size: 31px; margin: 12px 0 15px; }
  .customer-copy .description { font-size: 14px; }
  .customer-specs { gap: 22px 16px; margin: 24px 0; padding: 23px 0; }
  .customer-specs dd { font-size: 13px; }
  .customer-price strong { font-size: 29px; }
  .customer-price .eyebrow { font-size: 10px; }
  .customer-price p { font-size: 11px; }
  .customer-fine { font-size: 11px; }
  .customer-footer { font-size: 11px; line-height: 1.8; }
  .fullscreen-view { inset: 8px !important; }
  .full-width { grid-column: auto; }
  #toast { bottom: 78px; width: max-content; font-size: 12px; }
}
@media (max-width:370px) {
  .topbar { padding: 12px; gap: 6px; }
  .mobile-brand { font-size: 19px; }
  .role-switch button { padding: 6px; font-size: 9px; }
  .content { padding: 21px 13px; }
  .viewer-watermark { display: none; }
  .panel-body, .cost-box { padding: 18px; }
  .step { font-size: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.currency-label { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.quote-customer { font-size: 14px; font-weight: 500; }
.quote-customer .muted { display: block; font-size: 12px; margin-top: 3px; font-weight: 400; }
.field-label { font-size: 14px; }
.field-label small, .field-help, .attachment-title small, .activity-line small { font-size: 12px; }
.field-help, .char-count, .cost-note, .page-footer, .attachment-title small, .activity-line small { color: #64717a; }
.panel-body .intro { font-size: 14px; }
.metal-option { font-size: 12px; }
@media (max-width:600px) {
  .steps { justify-content: space-between; padding: 13px 0; gap: 16px; }
  .steps .step, .steps .step-line { display: none; }
  .steps .step.current { display: flex; flex-direction: row; gap: 9px; font-size: 13px; flex: 0 1 auto; text-align: left; }
  .steps::after { content: attr(data-progress); color: #69767f; font-size: 12px; white-space: nowrap; }
  .viewer-tools button { width: 40px; height: 40px; }
  .view-selector button { min-height: 38px; }
  .metal-option { font-size: 12px; }
  .field-label, .modal .field-label { font-size: 14px; }
  .field-label small { font-size: 11px; }
  .page-footer { font-size: 11px; }
}

.configure-body { padding-top: 24px; }
.cost-box .btn { justify-content: space-between; }
.cost-box .btn .icon { order: 2; }
@media (min-width:1001px) { .custom-panel { position: sticky; top: 20px; } }

/* Supporting information remains readable on white and tinted surfaces. */
.customer-fine, .customer-specs dt, .customer-price p, .customer-footer { color: #5b6e61; }
input::placeholder, textarea::placeholder { color: #64717a; }
.viewer-caption, .view-selector button { color: #5b6865; }
.modal-footer p, .share-preview p, .tour-step p, .cost-note, .step { color: #64717a; }
.step.current { color: var(--wine); }
.status-banner small { color: #506c59; }
.cost-note { font-size: 12px; }
@media (max-width:1000px) { .nav .mobile-tour { display: flex; } }
@media (max-width:600px) {
  .customer-fine { font-size: 12px; }
  .role-switch button { font-size: 11px; min-height: 30px; }
  .cost-note { font-size: 12px; }
}
@media (max-width:370px) { .role-switch button { font-size: 10px; } }
@media (min-width:801px) {
  .configure-body { padding: 20px; }
  .configure-body .metal-options, .configure-body .two-fields { margin-bottom: 16px; }
  .configure-body .spec-box { margin-top: 16px; }
  .cost-box { padding-top: 16px; padding-bottom: 16px; }
  .cost-note { margin-top: 3px; margin-bottom: 10px; }
}
