:root {
  --ink: #161715;
  --muted: #777b76;
  --line: #e5e8e2;
  --paper: #f7f8f5;
  --white: #fff;
  --soft: #f0f2ee;
  --accent: #c8e7d2;
  --accent-deep: #164c35;
  --heading: 'Segoe UI', Arial, sans-serif;
  --body: 'Nimbus Sans', 'Noto Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #8ab69a; outline-offset: 2px; }
.icon { width: 19px; height: 19px; flex: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 29px 15px 20px; z-index: 2; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 15px 40px; color: #101410; }
.brand-mark { display: block; flex: none; width: 42px; height: 36px; object-fit: contain; }
.brand-name { font-family: 'Arial Narrow', Arial, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: .03em; line-height: .85; }
.brand-name span { display: block; font-family: var(--body); font-size: 8px; line-height: 1.6; letter-spacing: .23em; font-weight: 700; margin-top: 4px; }
.workspace-label, .prototype-note, .eyebrow, .card-eyebrow, .callout-label { font-size: 11px; line-height: 1.3; letter-spacing: .12em; font-weight: 700; }
.workspace-label { color: #969b95; padding: 0 15px; margin-bottom: 8px; }
.workspace-name { font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; padding: 0 15px 22px; }
.workspace-name span { color: #929792; font-size: 18px; font-weight: 400; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding-right: 1px; }
.nav-item { width: 100%; border: 0; background: transparent; min-height: 44px; display: flex; align-items: center; text-align: left; gap: 12px; border-radius: 7px; padding: 0 13px; font-size: 13px; color: #626862; font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.8; }
.nav-item:hover { background: #f5f6f3; color: var(--ink); }
.nav-item.active { background: #1a1c19; color: #fff; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.prototype-note { color: #a1a5a0; display: flex; justify-content: space-between; padding: 0 15px 18px; font-size: 9px; }
.sidebar-profile { border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; padding: 17px 8px 0; }
.avatar, .top-avatar { width: 33px; height: 33px; border-radius: 50%; background: #dce7de; color: #244a33; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.sidebar-profile div:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-profile strong, .sidebar-profile span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-profile strong { font-size: 12px; }
.sidebar-profile span { font-size: 11px; color: #727a72; margin-top: 2px; }
.sidebar-profile b { color: #8e938e; letter-spacing: 2px; }
.main-column { min-width: 0; display: flex; flex-direction: column; }
.site-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 16px; margin-bottom: 25px; border: 1px solid #d7e5d9; border-radius: 7px; background: #eff7f0; color: #385743; font-size: 12px; line-height: 1.4; }
.site-notice button { flex: none; border: 0; background: transparent; color: #205b38; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.topbar { background: rgba(255,255,255,.87); height: 70px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 50px; }
.breadcrumb { font-size: 11px; letter-spacing: .07em; font-weight: 700; color: #626862; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb span { color: #b1b5b0; margin: 0 10px; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.domain-label { color: #757d75; font-size: 11px; letter-spacing: .03em; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; border: 0; color: #565c56; background: none; position: relative; }
.icon-button .icon { width: 17px; height: 17px; }
.notification-dot { width: 5px; height: 5px; background: #317553; border-radius: 50%; position: absolute; right: 5px; top: 4px; }
.top-avatar { width: 30px; height: 30px; }
main { width: min(100%, 1450px); margin: 0 auto; padding: 44px 50px 100px; flex: 1; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.eyebrow { color: #5f6b61; margin-bottom: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: var(--heading); font-size: clamp(38px, 3.5vw, 52px); letter-spacing: -.035em; line-height: 1.08; font-weight: 500; margin-bottom: 12px; }
.page-heading p { color: #5e685f; max-width: 530px; font-size: 14px; line-height: 1.55; margin-bottom: 0; }
.button { border-radius: 5px; min-height: 42px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 17px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.button span { font-size: 14px; }
.button--dark { color: #fff; background: #1c1e1b; }
.button--dark:hover { background: #3c4740; }
.button--outline { border-color: #cbd1c9; color: #232722; background: white; }
.button--outline:hover { background: #f4f7f3; }
.text-button, .inline-link { border: 0; padding: 6px 0; min-height: 36px; display: inline-flex; align-items: center; gap: 5px; background: none; font-weight: 700; font-size: 12px; line-height: 1.3; color: #1e2821; }
.text-button:hover, .inline-link:hover { text-decoration: underline; }
.callout { background: #d9ece0; min-height: 169px; border-radius: 6px; display: flex; align-items: center; gap: 25px; padding: 28px 35px; margin-bottom: 22px; }
.callout-symbol { width: 70px; height: 70px; border: 1px solid #abcbbb; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #25533b; flex: none; }
.callout-label { color: #48745a; }
.callout h2 { margin: 7px 0 5px; font-family: var(--heading); font-size: 28px; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; }
.callout p { color: #3c6047; font-size: 13px; max-width: 520px; margin: 0; line-height: 1.5; }
.callout .text-button { margin-left: auto; align-self: end; margin-bottom: 7px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: white; border-radius: 6px; overflow: hidden; margin-bottom: 22px; }
.metric { min-height: 132px; padding: 24px 26px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #667167; }
.metric strong { font-family: var(--heading); font-size: 38px; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.15; margin: 11px 0 4px; letter-spacing: -.035em; }
.metric strong.metric-small { font-size: 23px; margin-top: 20px; letter-spacing: -.02em; }
.metric-note { color: #747e75; font-size: 11px; }
.content-grid { display: grid; grid-template-columns: 1.28fr 1fr; gap: 21px; margin-bottom: 21px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 23px 24px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.panel-head h2 { font-family: var(--heading); font-size: 22px; line-height: 1.2; letter-spacing: -.025em; font-weight: 500; margin: 0; }
.post-list { display: flex; flex-direction: column; }
.post-row { display: flex; align-items: center; gap: 14px; border-top: 1px solid #eef0ec; padding: 12px 0; min-height: 70px; }
.post-row:last-child { padding-bottom: 0; }
.post-art { width: 45px; height: 45px; display: grid; place-items: center; flex: none; overflow: hidden; }
.post-art span { font-family: Georgia, serif; color: #fff; font-size: 23px; }
.post-a { background: radial-gradient(circle at 75% 20%,#d6b58d 0 7%,transparent 8%), linear-gradient(145deg,#3d3a31,#6c4a32 60%,#c29763); }
.post-b { background: linear-gradient(130deg,#1b221b 0 46%,#b7a080 46% 56%,#463324 56%); }
.post-c { background: linear-gradient(135deg,#536047,#b39e77 48%,#333f31); }
.post-main { flex: 1; min-width: 0; }
.post-main span, .post-main strong { display: block; }
.post-main span { color: #717d73; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 5px; }
.post-main strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 30px; padding: 6px 10px; background: #f1f2ef; color: #5b655c; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status--ready { background: #e3f2e8; color: #316e49; }
.status--dark { background: #e6e9e5; color: #4c554c; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.row-arrow { font-size: 14px; margin-left: 2px; color: #9ea59e; }
.idea-feature { display: grid; grid-template-columns: 38% 1fr; background: #f4f6f2; min-height: 240px; overflow: hidden; }
.idea-feature-art { background: #233c2d; position: relative; overflow: hidden; padding: 16px; }
.idea-feature-art span { color: #b6cabb; font-size: 8px; letter-spacing: .12em; font-weight: 700; }
.idea-feature-art i { position: absolute; width: 160px; height: 160px; border: 23px solid rgba(175,207,180,.45); border-radius: 50%; bottom: -45px; left: -36px; box-shadow: 58px -70px 0 -39px #b1d2b8,100px -12px 0 -54px #fff; }
.idea-feature-copy { padding: 23px 20px; display: flex; flex-direction: column; align-items: start; }
.idea-feature-copy h3 { font-family: var(--heading); font-size: 24px; line-height: 1.15; letter-spacing: -.02em; margin: 12px 0 8px; font-weight: 500; }
.idea-feature-copy p { color: #626d64; font-size: 12px; line-height: 1.55; margin-bottom: 18px; }
.idea-feature-copy .inline-link { margin-top: auto; }
.card-eyebrow { color: #667268; font-size: 11px; }
.bottom-note { text-align: center; color: #667268; font-size: 12px; margin-top: 27px; }
.bottom-note .inline-link { margin-left: 5px; }
footer { padding: 0 50px 30px; color: #a9aea8; font-size: 9px; letter-spacing: .1em; display: flex; justify-content: space-between; gap: 10px; }
.concept-switcher { position: fixed; right: 25px; bottom: 24px; background: #1b1e1a; color: #fff; border-radius: 7px; box-shadow: 0 12px 38px rgba(0,0,0,.2); display: flex; align-items: center; gap: 3px; padding: 7px; z-index: 5; }
.concept-switcher span { font-size: 8px; color: #9fa99f; font-weight: 700; letter-spacing: .12em; padding: 0 12px; }
.concept-switcher button { border: 0; border-radius: 4px; color: #d0d8d1; background: transparent; font-size: 11px; min-height: 40px; padding: 10px 12px; font-weight: 700; white-space: nowrap; }
.concept-switcher button.selected { color: #172318; background: #d9ede0; }
#toast { position: fixed; bottom: 84px; right: 25px; padding: 12px 15px; background: #fff; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 10px 30px #0002; font-size: 11px; z-index: 8; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
#toast.visible { opacity: 1; transform: translateY(0); }
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 24px; margin-bottom: 24px; }
.tab { border: 0; background: none; padding: 12px 0; min-height: 42px; color: #626d63; font-size: 12px; font-weight: 700; border-bottom: 2px solid transparent; }
.tab.active { color: #172018; border-color: #172018; }
.schedule-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.schedule-card { border: 1px solid var(--line); background: #fff; border-radius: 6px; overflow: hidden; }
.schedule-art { height: 235px; display: grid; place-items: center; text-align: center; }
.schedule-art span { color: rgba(255,255,255,.85); font-family: Georgia,serif; font-size: 28px; letter-spacing: .1em; line-height: 1.25; }
.schedule-art { position: relative; }
.schedule-art img { width: 100%; height: 100%; object-fit: cover; }
.schedule-art b { position: absolute; left: 16px; bottom: 15px; color: #fff; border: 1px solid #ffffff8f; padding: 5px 8px; font: 700 9px var(--body); letter-spacing: .13em; text-transform: uppercase; }
.schedule-body { padding: 20px; }
.schedule-body h3 { font-family: var(--heading); font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin: 10px 0 4px; font-weight: 500; }
.schedule-body p { font-size: 12px; line-height: 1.5; color: #657066; }
.schedule-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; }
.schedule-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 15px; padding-top: 14px; color: #626f64; font-size: 11px; line-height: 1.45; }
.schedule-meta a { color: #254d35; font-weight: 700; text-decoration: none; }
.schedule-meta a:hover { text-decoration: underline; }
.schedule-meta button { text-align: left; cursor: pointer; }
.workflow-disclaimer { color: #455a49; background: #eef3ed; border: 1px solid #d7e4d6; border-radius: 4px; padding: 12px 15px; font-size: 12px; line-height: 1.5; margin: 0 0 24px; }
.visual-requests { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-size: 12px; line-height: 1.5; color: #455a49; }
.visual-requests p { margin: 8px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.client-guide { display: flex; align-items: center; justify-content: space-between; gap: 25px; background: #dceee2; border: 1px solid #d0e6d7; border-radius: 6px; padding: 25px 30px; margin-bottom: 27px; }
.client-guide__label { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: #376a48; }
.client-guide h2 { font: 500 26px/1.18 var(--heading); letter-spacing: -.025em; margin: 8px 0 6px; }
.client-guide p { max-width: 690px; color: #3b6046; font-size: 13px; line-height: 1.5; margin: 0; }
.client-guide__note { flex: none; color: #376346; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-align: right; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 6px 0 17px; }
.section-heading .eyebrow { display: block; font-size: 11px; margin-bottom: 7px; }
.section-heading h2 { font: 500 27px/1.18 var(--heading); letter-spacing: -.025em; margin: 0; }
.section-heading > span { color: #626e64; font-size: 12px; }
.client-empty { grid-column: 1 / -1; border: 1px solid var(--line); background: #fff; padding: 42px; }
.client-empty h3 { font: 500 23px/1.2 var(--heading); margin-bottom: 8px; }
.client-empty p { color: #7c847c; font-size: 12px; margin: 0; }
.filter-row { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; flex-wrap: wrap; }
.filter-row > span { color: #667268; font-size: 11px; font-weight: 700; letter-spacing: .1em; margin-right: 6px; }
.filter { border: 1px solid #d0dacf; background: #fff; color: #4d5d50; min-height: 40px; padding: 0 14px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.filter.active { background: #20241f; color: #fff; border-color: #20241f; }
.idea-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.idea-card { min-height: 340px; background: #fff; border: 1px solid var(--line); padding: 23px; display: flex; flex-direction: column; }
.idea-card:nth-child(2) { background: #e6eee5; }
.idea-card:nth-child(3) { background: #e9e9df; }
.idea-number { font-family: var(--heading); font-size: 44px; font-weight: 400; font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; line-height: 1.1; margin-bottom: auto; }
.idea-number span { font: 20px var(--body); }
.idea-card h2 { font: 500 27px/1.16 var(--heading); letter-spacing: -.025em; margin: 9px 0 12px; max-width: 240px; }
.idea-card p { color: #566358; font-size: 12px; line-height: 1.55; }
.idea-tag { font-size: 10px; font-weight: 700; border-top: 1px solid #cfd7cd; padding-top: 16px; margin-top: 25px; }
.support-grid, .settings-grid { grid-template-columns: 1.2fr 1fr; }
.empty-state, .upload-card { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fafbf9; padding: 25px; }
.empty-icon, .upload-mark { width: 48px; height: 48px; border: 1px solid #cdd7ce; border-radius: 50%; display: grid; place-items: center; color: #598365; font-size: 22px; margin-bottom: 12px; }
.empty-state h3, .upload-card h3 { font: 500 23px/1.2 var(--heading); margin-bottom: 5px; }
.empty-state p, .upload-card p { font-size: 12px; line-height: 1.6; color: #626e64; max-width: 300px; }
.ticket-list { display: grid; gap: 14px; }
.ticket-card { border: 1px solid var(--line); border-radius: 4px; padding: 16px; overflow-wrap: anywhere; }
.ticket-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ticket-card__head span:first-child { color: #657167; font-size: 11px; }
.ticket-card h3 { font: 500 19px/1.25 var(--heading); margin: 5px 0 8px; }
.ticket-card > p, .ticket-message p { white-space: pre-wrap; color: #526055; font-size: 12px; line-height: 1.5; }
.ticket-message { border-left: 3px solid #bfd3c2; background: #f6f9f5; padding: 10px 12px; margin: 12px 0; }
.ticket-message strong { color: #365744; font-size: 11px; }
.ticket-message p { margin: 5px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { font-size: 12px; color: #526055; font-weight: 700; display: flex; flex-direction: column; gap: 8px; }
.form-grid input { width: 100%; border: 1px solid #d2dcd1; border-radius: 4px; height: 44px; padding: 0 13px; font-size: 13px; color: #222; background: #fff; }
.form-grid input[readonly] { background: #f4f6f3; color: #8b928b; }
.logo-preview { display: flex; gap: 20px; align-items: center; min-height: 150px; }
.logo-preview > span { width: 105px; height: 105px; background: #273d2e; display: grid; place-items: center; flex: none; color: #fff; font: 50px Georgia,serif; }
.logo-preview > img { width: 105px; height: 105px; object-fit: contain; background: #f5f6f3; flex: none; border: 1px solid var(--line); }
.logo-preview h3 { font: 500 22px/1.2 var(--heading); margin-bottom: 5px; }
.logo-preview p { font-size: 12px; color: #626e64; line-height: 1.5; }
.settings-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; margin-bottom: 21px; }
.membership-name { font: 500 26px/1.2 var(--heading); margin: 18px 0 10px; }
.representatives-grid { grid-template-columns: 1.15fr 1fr; }
.access-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; border-top: 1px solid var(--line); padding: 17px 0; }
.access-list strong { font-size: 12px; }
.access-list span { color: #7c847c; font-size: 12px; line-height: 1.45; }
.representative-empty { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #f7faf6; padding: 27px; }
.representative-empty__icon { width: 56px; height: 56px; border: 1px solid #bcd5c2; border-radius: 50%; display: grid; place-items: center; color: #376346; }
.representative-empty h3 { font: 500 23px/1.2 var(--heading); margin: 15px 0 7px; }
.representative-empty p { color: #758276; font-size: 12px; line-height: 1.5; max-width: 290px; }
.representative-drafts { display: grid; gap: 12px; }
.representative-drafts > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; border: 1px solid var(--line); padding: 14px; overflow-wrap: anywhere; }
.representative-drafts strong { font-size: 13px; }
.representative-drafts span, .representative-drafts small { color: #5c695e; font-size: 12px; }
.phase-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #3a6947; margin-top: 10px; }
.space-client .panel-head h2 { line-height: 1.1; }
.space-client .idea-card p, .space-client .upload-card p, .space-client .logo-preview p, .space-client .muted-text { font-size: 12px; }
.liu-grid { grid-template-columns: 1.22fr 1fr; }
.pipeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 8px; }
.pipeline > div { display: flex; flex-direction: column; gap: 5px; }
.pipeline-count { font: 400 31px/1.1 var(--heading); font-variant-numeric: tabular-nums; }
.pipeline div span:nth-child(2) { color: #657066; font-size: 11px; }
.pipeline i { height: 4px; width: var(--bar); background: #223c2a; margin-top: 10px; }
.panel-divider { border-top: 1px solid var(--line); margin: 25px 0 10px; }
.mini-table > div { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: center; border-bottom: 1px solid #eff1ed; padding: 14px 0; font-size: 12px; }
.mini-table > div:last-child { border: 0; }
.mini-table span:first-child { color: #8b928a; }
.mini-table strong { font-size: 12px; }
.task-list > div { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid #eff1ed; }
.task-list > div:last-child { border: 0; }
.task-check { width: 20px; height: 20px; border: 1px solid #d2d9d1; border-radius: 4px; }
.task-list > div > div { flex: 1; }
.task-list strong, .task-list small { display: block; }
.task-list strong { font-size: 12px; }
.task-list small { margin-top: 4px; color: #677268; font-size: 11px; }
.task-list > div > span:last-child { color: #9ca39b; }
.wide-panel { margin-bottom: 20px; }
.activity-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.activity-strip > div { display: grid; grid-template-columns: 9px 1fr; column-gap: 9px; row-gap: 5px; }
.activity-dot { width: 7px; height: 7px; background: #8fb69a; border-radius: 50%; margin-top: 3px; grid-row: span 2; }
.activity-strip strong { font-size: 12px; }
.activity-strip span:last-child { color: #687469; font-size: 11px; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; }
.search-field { margin-right: auto; width: min(350px,45%); border: 1px solid #d2dcd1; background: white; height: 42px; border-radius: 4px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: #69766b; font-size: 16px; }
.search-field span { font-size: 12px; }
.table-panel { padding: 22px 0 0; }
.table-panel .panel-head { padding: 0 23px; }
.table-count { color: #68746a; font-size: 11px; }
.data-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: center; min-height: 65px; border-top: 1px solid var(--line); gap: 15px; padding: 0 24px; color: #59665b; font-size: 12px; }
.data-row strong { color: #222820; }
.data-row.has-action { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
.table-action { border: 0; color: #255b38; font-size: 12px; font-weight: 700; background: none; min-height: 40px; }
.table-empty { padding: 15px 24px; }
.data-head { min-height: 40px; color: #667368; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: #fafbf9; }
.admin-notice { background: #edf1ed; border: 1px solid #dbe4da; border-radius: 5px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 21px; }
.admin-notice .icon { color: #416c4e; }
.admin-notice strong, .admin-notice span { display: block; }
.admin-notice strong { font-size: 12px; }
.admin-notice span { color: #647164; font-size: 11px; margin-top: 3px; }
.system-list > div { display: flex; align-items: center; gap: 14px; min-height: 60px; border-top: 1px solid var(--line); }
.system-list .icon { color: #477155; }
.system-list > div > span:nth-child(2) { flex: 1; }
.system-list strong, .system-list small { display: block; }
.system-list strong { font-size: 12px; }
.system-list small { color: #68746a; font-size: 11px; margin-top: 4px; }
.control-list > button { border: 0; background: none; display: flex; align-items: center; gap: 13px; width: 100%; border-top: 1px solid var(--line); text-align: left; min-height: 75px; padding: 0; }
.control-list > button .icon { color: #4e7658; }
.control-list > button span { flex: 1; }
.control-list strong, .control-list small { display: block; }
.control-list strong { font-size: 12px; }
.control-list small { color: #68746a; font-size: 11px; margin-top: 4px; }
.control-list b { color: #9ca39b; font-weight: 400; }
.flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: center; }
.flow div { background: #eff3ed; padding: 18px 10px; min-width: 18%; font-size: 11px; font-weight: 700; }
.flow small { display: block; color: #637164; font-weight: 400; margin-top: 6px; font-size: 10px; }
.flow > span { color: #7f9280; }
.flow-storage { margin: 11px auto 0; width: fit-content; color: #748574; text-align: center; font-size: 16px; }
.flow-storage strong, .flow-storage small { display: block; }
.flow-storage strong { color: #273a2c; font-size: 11px; letter-spacing: .08em; margin-top: 2px; }
.flow-storage small { font-size: 10px; color: #657365; margin-top: 2px; }
.settings-stack { background: white; border: 1px solid var(--line); border-radius: 5px; padding: 0 24px; }
.setting-row { display: flex; align-items: center; gap: 17px; min-height: 105px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border: 0; }
.setting-symbol { width: 43px; height: 43px; background: #edf2ec; color: #3a6747; border-radius: 5px; display: grid; place-items: center; }
.setting-row > div:nth-child(2) { flex: 1; }
.setting-row h3 { font: 500 20px/1.2 var(--heading); margin: 0 0 3px; }
.setting-row p { color: #657266; font-size: 12px; line-height: 1.45; margin: 0; }
.setting-row .inline-link { margin-left: 15px; }
.muted-text { color: #667268; font-size: 12px; line-height: 1.55; }
.api-error { background: #fff1ed; color: #743d2e; border: 1px solid #eccbbe; padding: 12px 15px; margin-bottom: 20px; font-size: 11px; border-radius: 4px; }
.api-error button { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; margin-left: 8px; }
.record-list > div { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.record-list > div > span:first-child { color: #657167; font-size: 11px; width: 120px; }
.record-list strong { flex: 1; font-size: 12px; }
.file-summary { width: 100%; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 15px; }
.file-summary a { color: #315b3d; font-size: 12px; text-align: left; text-decoration: none; padding: 6px 0; }
.file-summary a:hover { text-decoration: underline; }
dialog { border: 1px solid #dbe2d9; border-radius: 8px; padding: 0; width: min(520px, calc(100vw - 28px)); box-shadow: 0 25px 80px #0004; }
dialog::backdrop { background: rgba(19,25,19,.5); }
.dialog-form { padding: 24px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 20px; }
.dialog-head h2 { font: 500 26px/1.2 var(--heading); margin: 0; }
.dialog-head button { border: 0; background: none; font-size: 25px; line-height: 1; color: #5d685c; width: 40px; height: 40px; }
.dialog-fields { display: flex; flex-direction: column; gap: 15px; max-height: min(65vh,650px); overflow-y: auto; }
.dialog-fields label { color: #455a49; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; gap: 8px; }
.dialog-fields input, .dialog-fields select, .dialog-fields textarea { width: 100%; border: 1px solid #cbd9cc; border-radius: 4px; background: #fff; min-height: 44px; padding: 10px 12px; font: 13px var(--body); color: #222; }
.dialog-fields textarea { resize: vertical; }
.dialog-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-fields .check-label { flex-direction: row; align-items: center; }
.check-label input { width: 20px; min-height: 20px; height: 20px; }
.dialog-access { border: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; }
.dialog-access legend { color: #455a49; font-size: 12px; font-weight: 700; }
.dialog-fields .dialog-access label { display: flex; flex-direction: row; align-items: center; font-size: 12px; font-weight: 500; }
.dialog-fields .dialog-access input { width: 20px; height: 20px; min-height: 20px; padding: 0; }
.dialog-actions { border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 20px; }
.dialog-actions button:disabled { opacity: .6; cursor: wait; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 206px minmax(0,1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
  .topbar { padding: 0 26px; }
  main { padding: 35px 26px 100px; }
  footer { padding-left: 26px; padding-right: 26px; }
  .content-grid { grid-template-columns: 1fr; }
  .settings-lower { grid-template-columns: 1fr; }
  .idea-feature { grid-template-columns: 30% 1fr; }
}

@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { position: relative; height: auto; padding: 14px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 0 12px; }
  .brand-mark { width: 38px; height: 32px; }
  .brand-name { font-size: 23px; }
  .workspace-label, .workspace-name, .sidebar-bottom { display: none; }
  .sidebar nav { flex-direction: row; overflow-x: auto; padding-bottom: 9px; gap: 6px; }
  .nav-item { width: auto; white-space: nowrap; min-height: 40px; padding: 0 12px; font-size: 12px; }
  .nav-item .icon { display: none; }
  .topbar { height: 47px; padding: 0 18px; }
  .breadcrumb { font-size: 10px; }
  .domain-label, .icon-button { display: none; }
  .top-actions { gap: 0; }
  main { padding: 30px 18px 110px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 23px; }
  h1 { font-size: 36px; }
  .page-heading p { font-size: 13px; }
  .callout { padding: 20px; min-height: 0; align-items: flex-start; gap: 13px; flex-wrap: wrap; }
  .callout-symbol { width: 37px; height: 37px; font-size: 19px; }
  .callout h2 { font-size: 25px; }
  .callout p { font-size: 12px; }
  .callout .text-button { margin: 8px 0 0 50px; width: calc(100% - 50px); text-align: left; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .metric { min-height: 110px; padding: 17px; border-bottom: 1px solid var(--line); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3), .metric:nth-child(4) { border-bottom: 0; }
  .metric strong { font-size: 32px; }
  .metric strong.metric-small { font-size: 19px; }
  .metric-label { font-size: 10px; }
  .content-grid, .schedule-grid, .idea-grid { grid-template-columns: 1fr; }
  .client-guide { align-items: flex-start; flex-direction: column; padding: 22px; gap: 13px; }
  .client-guide h2 { font-size: 23px; }
  .client-guide__note { text-align: left; }
  .section-heading h2 { font-size: 24px; }
  .access-list > div { grid-template-columns: 1fr; gap: 5px; }
  .panel { padding: 18px; }
  .panel-head h2 { font-size: 21px; }
  .idea-feature { min-height: 200px; grid-template-columns: 32% 1fr; }
  .idea-feature-copy { padding: 16px; }
  .idea-feature-copy h3 { font-size: 22px; }
  .post-row { gap: 8px; }
  .post-row .status { display: none; }
  .schedule-art { height: 205px; }
  .idea-card { min-height: 260px; }
  .idea-number { margin-bottom: 35px; }
  .form-grid { grid-template-columns: 1fr; }
  .pipeline { gap: 10px; }
  .pipeline-count { font-size: 26px; }
  .mini-table > div { grid-template-columns: 1fr 1fr; }
  .mini-table .status { display: none; }
  .activity-strip { grid-template-columns: 1fr; gap: 15px; }
  .flow { flex-wrap: wrap; justify-content: center; }
  .flow div { min-width: 42%; }
  .data-row { grid-template-columns: 1.5fr 1fr auto; padding: 0 12px; }
  .data-row.has-action { grid-template-columns: 1.5fr 1fr auto; }
  .data-row > :nth-child(3) { display: none; }
  .data-row.has-action > :nth-child(4) { display: none; }
  .setting-row { flex-wrap: wrap; padding: 15px 0; }
  .setting-row .status { display: none; }
  .setting-row .inline-link { margin-left: 60px; }
  footer { display: none; }
  .concept-switcher { left: 10px; right: 10px; bottom: 10px; justify-content: space-between; }
  .concept-switcher span { display: none; }
  .concept-switcher button { flex: 1; padding: 10px 4px; font-size: 11px; }
  #toast { left: 10px; right: 10px; bottom: 65px; }
}

/* Client portal clay treatment. Keep the shared palette and other workspaces intact. */
body[data-site="client"] {
  --clay-shadow: 12px 14px 28px rgba(42, 67, 48, .10), -8px -8px 20px rgba(255, 255, 255, .92);
  --clay-shadow-small: 6px 7px 14px rgba(42, 67, 48, .10), -4px -4px 10px rgba(255, 255, 255, .88);
  --clay-inset: inset 2px 2px 5px rgba(38, 63, 43, .08), inset -3px -3px 7px rgba(255, 255, 255, .78);
  background: radial-gradient(circle at 72% 4%, #f0f5ef 0, var(--paper) 42%);
}

body[data-site="client"] .sidebar {
  background: #f7f8f5;
  border-right-color: #ebeee8;
  box-shadow: 5px 0 18px rgba(38, 63, 43, .05);
}

body[data-site="client"] .topbar {
  background: rgba(247, 248, 245, .91);
  border-bottom-color: #edf0e9;
}

body[data-site="client"] .nav-item { border-radius: 14px; }
body[data-site="client"] .nav-item:hover { background: #eaf1e9; box-shadow: var(--clay-inset); }
body[data-site="client"] .nav-item.active {
  background: #1a1c19;
  box-shadow: 4px 5px 10px rgba(22, 23, 21, .22), inset 1px 1px 1px rgba(255, 255, 255, .18);
}

body[data-site="client"] .site-notice,
body[data-site="client"] .workflow-disclaimer,
body[data-site="client"] .api-error { border-radius: 15px; }

body[data-site="client"] .button {
  border-radius: 13px;
  box-shadow: var(--clay-shadow-small), inset 1px 1px 1px rgba(255, 255, 255, .68);
}
body[data-site="client"] .button--dark {
  box-shadow: 6px 7px 14px rgba(22, 23, 21, .20), inset 1px 1px 1px rgba(255, 255, 255, .25);
}
body[data-site="client"] .button:active { transform: translateY(1px); box-shadow: var(--clay-inset); }

body[data-site="client"] .callout,
body[data-site="client"] .client-guide {
  border: 1px solid rgba(174, 208, 183, .56);
  border-radius: 24px;
  box-shadow: var(--clay-shadow), inset 2px 2px 3px rgba(255, 255, 255, .60);
}
body[data-site="client"] .callout-symbol,
body[data-site="client"] .empty-icon,
body[data-site="client"] .upload-mark,
body[data-site="client"] .representative-empty__icon {
  background: #e4f0e7;
  box-shadow: var(--clay-shadow-small), inset 1px 1px 2px rgba(255, 255, 255, .72);
}

body[data-site="client"] .metrics {
  gap: 16px;
  overflow: visible;
  border: 0;
  background: transparent;
}
body[data-site="client"] .metric {
  min-width: 0;
  border: 1px solid #edf0e9;
  border-radius: 20px;
  background: #fdfefd;
  box-shadow: var(--clay-shadow);
}

body[data-site="client"] .panel,
body[data-site="client"] .schedule-card,
body[data-site="client"] .idea-card,
body[data-site="client"] .client-empty {
  border: 1px solid #edf0e9;
  border-radius: 22px;
  box-shadow: var(--clay-shadow);
}
body[data-site="client"] .panel,
body[data-site="client"] .schedule-card,
body[data-site="client"] .client-empty { background: #fdfefd; }
body[data-site="client"] .idea-card { overflow: hidden; }
body[data-site="client"] .idea-feature { border-radius: 15px; }
body[data-site="client"] .post-art,
body[data-site="client"] .schedule-art { border-radius: 12px; }
body[data-site="client"] .schedule-card .schedule-art { border-radius: 21px 21px 13px 13px; }

body[data-site="client"] .status,
body[data-site="client"] .idea-tag,
body[data-site="client"] .phase-tag { box-shadow: inset 1px 1px 3px rgba(38, 63, 43, .08); }
body[data-site="client"] .ticket-card,
body[data-site="client"] .representative-drafts > div {
  border-radius: 15px;
  background: #f7faf6;
  box-shadow: var(--clay-inset);
}
body[data-site="client"] .ticket-message,
body[data-site="client"] .visual-requests,
body[data-site="client"] .empty-state,
body[data-site="client"] .upload-card,
body[data-site="client"] .representative-empty { border-radius: 15px; }
body[data-site="client"] .form-grid input,
body[data-site="client"] .dialog-fields input,
body[data-site="client"] .dialog-fields select,
body[data-site="client"] .dialog-fields textarea { border-radius: 11px; box-shadow: var(--clay-inset); }
body[data-site="client"] dialog { border-radius: 22px; }

@media (max-width: 700px) {
  body[data-site="client"] .sidebar { box-shadow: 0 5px 16px rgba(38, 63, 43, .05); }
  body[data-site="client"] .metrics { gap: 11px; }
  body[data-site="client"] .metric { border: 1px solid #edf0e9; }
  body[data-site="client"] .callout,
  body[data-site="client"] .client-guide,
  body[data-site="client"] .panel,
  body[data-site="client"] .schedule-card,
  body[data-site="client"] .idea-card { border-radius: 18px; }
}
/* Local account entry is shared by the three Phase 3 workspaces. */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f3f5ef; }
.auth-card { width: min(100%, 440px); padding: clamp(24px, 5vw, 42px); border: 1px solid #d9dfd5; border-radius: 24px; background: #fffefa; box-shadow: 0 18px 50px #233b2b18; color: #17251c; }
.auth-card > img { width: 46px; height: 46px; object-fit: contain; margin-bottom: 22px; }
.auth-card h1 { margin: 8px 0 10px; font-size: clamp(28px, 5vw, 38px); }
.auth-card p { line-height: 1.5; }
.auth-card form { display: grid; gap: 14px; margin: 22px 0; }
.auth-card label { display: grid; gap: 7px; font-weight: 600; font-size: 14px; }
.auth-card input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b7c5b7; border-radius: 10px; background: white; color: #17251c; }
.auth-card input:focus-visible, .auth-card button:focus-visible { outline: 3px solid #72a976; outline-offset: 2px; }
.auth-card form button { min-height: 44px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid #e2e8df; padding-top: 17px; }
.auth-links button { padding: 4px 0; border: 0; background: transparent; color: #286237; cursor: pointer; text-decoration: underline; }
.auth-message { padding: 10px 12px; border-radius: 8px; background: #eaf3e8; overflow-wrap: anywhere; }
.auth-local-token { overflow-wrap: anywhere; font-size: 13px; }
