:root {
  --ink: #0a0a0a;
  --ink-soft: #373737;
  --muted: #777b7c;
  --line: #dcdedb;
  --paper: #fafafa;
  --canvas: #f3f3ef;
  --orange: #fa6400;
  --orange-dark: #ae4805;
  --green: #198361;
  --radius: 12px;
  --font: "Roboto", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font); font-size: 14px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
button, input, textarea, select { -webkit-tap-highlight-color: transparent; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 84% 17%, #fa64002e 0, transparent 27%), #e9eae5; }
.auth-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: 10px; padding: 34px; box-shadow: 0 22px 48px #0a0a0a14; display: flex; flex-direction: column; }
.auth-card .brand-wordmark { margin-bottom: 42px; color: var(--ink); }
.auth-card h1 { font-size: 38px; line-height: 1.1; letter-spacing: -.06em; margin: 7px 0 25px; }
.auth-card p:not(.eyebrow):not(.form-error) { color: #5f6662; margin: 0; }
.auth-card label { font-size: 12px; font-weight: 800; margin: 0 0 7px; }
.auth-card input { border: 1px solid #cfd3ce; border-radius: 7px; padding: 11px 12px; background: #fff; margin-bottom: 20px; }
.auth-card .primary-button { justify-content: center; min-height: 44px; margin-top: 6px; }
.auth-card .form-error { margin: -5px 0 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { background: var(--ink); color: #fff; display: flex; flex-direction: column; min-height: 100vh; padding: 32px 22px 24px; position: sticky; top: 0; height: 100vh; z-index: 10; }
.brand-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 0 5px; }
.brand-wordmark { font-size: 19px; font-weight: 900; letter-spacing: -.08em; line-height: 1; white-space: nowrap; }
.brand-dot { color: var(--orange); margin: 0 1px; }
.brand-rule { display: block; width: 23px; height: 3px; background: var(--orange); margin: 11px 0 3px; }
.brand-subtitle { font-size: 9px; font-weight: 700; letter-spacing: .24em; color: #aeb0b0; }
.side-project { margin: 75px 5px 33px; display: flex; flex-direction: column; }
.eyebrow { margin: 0; color: var(--orange-dark); font-size: 10px; letter-spacing: .19em; font-weight: 900; text-transform: uppercase; }
.eyebrow.muted { color: #777; }
.eyebrow.light { color: #b7b8b8; }
.side-project .eyebrow { color: #919393; margin-bottom: 12px; }
.side-project strong { font-size: 25px; line-height: 1.07; letter-spacing: -.035em; font-weight: 900; }
.side-project-note { margin-top: 12px; color: #aaa; font-size: 12px; }
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 24px 1fr 15px; align-items: center; gap: 10px; border: 0; background: transparent; color: #a9adad; text-align: left; border-radius: 8px; padding: 13px 12px; font-weight: 700; transition: background .2s, color .2s; }
.nav-item:hover { background: #222; color: #fff; }
.nav-item.is-active { color: var(--ink); background: var(--orange); }
.nav-index { font-size: 10px; letter-spacing: .07em; opacity: .72; }
.nav-arrow { opacity: 0; justify-self: end; font-size: 16px; line-height: 1; }
.nav-item:hover .nav-arrow, .nav-item.is-active .nav-arrow { opacity: 1; }
.side-footer { margin-top: auto; border-top: 1px solid #2d2d2d; padding: 21px 5px 0; display: flex; align-items: flex-start; gap: 10px; color: #ddd; font-weight: 700; }
.side-footer small { display: block; color: #818585; font-weight: 400; margin-top: 2px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 7px; box-shadow: 0 0 0 4px #fa64001c; }

.workspace { min-width: 0; }
.topbar { min-height: 72px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 42px; }
.topbar-path { display: flex; gap: 12px; align-items: center; font-size: 11px; letter-spacing: .11em; font-weight: 800; }
.topbar-path span:first-child { color: #686c6d; }
.path-divider { color: #a8abab; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-environment { color: #676b6c; font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.prototype-note { display: flex; align-items: center; gap: 11px; background: #fff4e8; color: #65360f; padding: 10px 42px; border-bottom: 1px solid #f2dac6; font-size: 12px; }
.prototype-note > span:nth-child(2) { flex: 1; }
.prototype-note .quiet-button { background: #fff; min-height: 30px; }
.prototype-note-mark { flex: none; width: 17px; height: 17px; border: 1px solid #a74c06; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
main { max-width: 1540px; margin: 0 auto; padding: 39px 42px 90px; }
.view[hidden] { display: none !important; }
.view { animation: view-enter .34s ease both; }
@keyframes view-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 29px; }
.page-heading h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1; margin: 8px 0 13px; letter-spacing: -.06em; font-weight: 900; }
.orange-point { color: var(--orange); }
.lead { margin: 0; color: #666b6a; max-width: 770px; font-size: 14px; }
.date-stamp { align-self: flex-end; border-top: 2px solid var(--orange); padding: 12px 0 1px; display: flex; flex-direction: column; gap: 3px; color: #767a79; font-size: 10px; font-weight: 900; letter-spacing: .16em; white-space: nowrap; }
.date-stamp strong { color: var(--ink); font-size: 15px; letter-spacing: -.01em; }

.overview-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, .95fr); gap: 18px; }
.campaign-card { min-height: 358px; color: #fff; background: #0b0d0d; border-radius: var(--radius); position: relative; overflow: hidden; box-shadow: 0 22px 40px #0a0a0a0e; }
.campaign-card::before { content: ""; display: block; width: 6px; position: absolute; inset: 0 auto 0 0; background: var(--orange); z-index: 2; }
.campaign-orbit { position: absolute; width: 415px; aspect-ratio: 1; right: -75px; top: -27px; border: 1px solid #383b3a; border-radius: 50%; opacity: .74; }
.campaign-orbit span { display: block; position: absolute; border: 1px solid #5a5c5a; border-radius: 50%; inset: 45px; }
.campaign-orbit span:nth-child(2) { inset: 107px; border-color: #fa64005e; }
.campaign-orbit span:nth-child(3) { inset: 160px; background: var(--orange); border-color: var(--orange); }
.campaign-card-content { position: relative; z-index: 1; min-height: 358px; padding: 27px 30px 27px 34px; display: flex; flex-direction: column; }
.campaign-card-top, .campaign-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.campaign-status { color: #051a13; background: #c8f2dd; border-radius: 999px; padding: 5px 11px; font-size: 11px; font-weight: 800; }
.campaign-card.is-off .campaign-status { color: #2a2a2a; background: #d8d9d7; }
.campaign-card-main { max-width: 400px; margin: auto 0; }
.card-kicker { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .2em; margin: 0 0 3px; }
.campaign-card-main h2 { font-size: clamp(40px, 5vw, 69px); line-height: 1; letter-spacing: -.075em; margin: 0 0 15px; font-weight: 900; }
.campaign-card-main p:last-child { margin: 0; max-width: 365px; color: #c9cbca; font-size: 13px; }
.campaign-card-bottom { border-top: 1px solid #464848; padding-top: 21px; }
.status-control { display: flex; align-items: center; gap: 18px; }
.status-control-label { font-weight: 800; }
.status-control-label small { display: block; font-size: 11px; font-weight: 400; color: #a9adab; }
.switch { width: 47px; height: 27px; border-radius: 20px; background: var(--orange); border: 0; padding: 3px; display: flex; align-items: center; justify-content: flex-end; transition: background .2s; flex: none; }
.switch span { width: 21px; height: 21px; border-radius: 50%; background: var(--ink); display: block; box-shadow: 0 1px 3px #0004; transition: transform .2s; }
.switch[aria-checked="false"] { background: #696d6a; justify-content: flex-start; }
.switch[aria-checked="false"] span { background: white; }
.hero-footnote { color: #9da0a0; font-size: 11px; }
.overview-side { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); padding: 28px 28px 23px; display: flex; flex-direction: column; }
.section-label { display: inline-flex; align-items: center; gap: 8px; color: #5e6363; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.small-bar { width: 18px; height: 3px; background: var(--orange); display: inline-block; }
.overview-side h2, .template-toolbar h2 { font-size: 27px; line-height: 1.1; letter-spacing: -.045em; margin: 13px 0 18px; }
.setup-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 15px 0; font-size: 12px; color: #696f6c; }
.setup-row strong { color: var(--ink); font-size: 14px; text-align: right; }
.setup-row strong small { color: #7c817f; font-size: 11px; font-weight: 400; }
.setup-row .pending-copy { font-size: 11px; color: #935017; }
.setup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; padding-top: 19px; }
.text-action { border: 1px solid var(--line); background: white; border-radius: 8px; color: var(--ink); padding: 10px 12px; font-size: 12px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; text-align: left; }
.text-action:hover { border-color: var(--ink); background: #f7f6f3; }
.text-action span { font-size: 16px; }
.analytics-entry { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 24px; padding: 24px 28px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 9px; background: #fff; }
.analytics-entry h2 { margin: 4px 0 5px; font-size: 25px; letter-spacing: -.04em; }
.analytics-entry p:last-child { margin: 0; color: #5f6662; font-size: 12px; }
.analytics-entry .primary-button { flex: none; }
.analytics-block { margin-top: 0; }
.block-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.block-heading h2 { font-size: 31px; line-height: 1.1; letter-spacing: -.05em; margin: 7px 0 5px; }
.section-help { color: #5f6662; font-size: 12px; margin: 0; }
.block-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.block-controls label { color: #707574; font-size: 12px; font-weight: 700; }
.block-controls select, .outline-button { min-height: 36px; border-radius: 7px; border: 1px solid #ced1ce; background: #fff; color: var(--ink); padding: 7px 11px; font-size: 12px; font-weight: 700; }
.outline-button { display: flex; gap: 17px; align-items: center; }
.outline-button:hover { border-color: var(--ink); }
.outline-button:disabled { opacity: .55; }
.custom-range { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.custom-range[hidden] { display: none; }
.custom-range label { font-size: 11px; color: #5f6662; font-weight: 800; }
.custom-range input { border: 1px solid #ced1ce; border-radius: 6px; padding: 7px 9px; background: white; min-height: 35px; color: var(--ink); }
.custom-range > span { color: #5f6662; font-size: 11px; margin-left: auto; }
.data-state { color: #5f6662; font-size: 11px; margin: -2px 0 12px; min-height: 17px; }
.empty-state { padding: 20px; margin: 0; color: #6c736f; background: #fff; border: 1px dashed #cbd0cb; border-radius: 8px; font-size: 12px; }
.bar-list .empty-state { padding: 9px 0; border: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.metric { min-height: 129px; padding: 19px 17px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.metric:last-child { border-right: 0; }
.metric span { color: #4c5150; font-size: 12px; font-weight: 700; }
.metric strong { font-size: clamp(20px, 2.15vw, 32px); line-height: 1.15; letter-spacing: -.055em; margin-top: 12px; }
.metric small { margin-top: auto; color: #5f6662; font-size: 10px; }
.breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.breakdown-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 18px 21px 20px; }
.breakdown-header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 15px; }
.breakdown-header strong { font-size: 13px; }
.breakdown-header span { color: #5f6662; font-size: 10px; text-align: right; }
.bar-list { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: minmax(75px, 120px) minmax(0, 1fr) 58px; align-items: center; gap: 10px; font-size: 11px; }
.bar-row span:first-child { color: #444b47; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 6px; border-radius: 8px; background: #e6e9e5; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 8px; background: var(--orange); }
.breakdown-card:nth-child(2) .bar-track i { background: #202625; }
.bar-row strong { text-align: right; font-size: 10px; }
.funnel { border: 1px solid var(--line); background: #fff; border-radius: 9px; margin-top: 12px; padding: 21px 22px; }
.funnel-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 15px; }
.funnel-title strong { font-size: 15px; }
.funnel-title span, .funnel-state { font-size: 11px; color: #5f6662; }
.funnel-state { margin: 3px 0 18px; }
.funnel-group + .funnel-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.funnel-group h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin: 0 0 10px; font-size: 12px; }
.funnel-group h3 small { color: #6b706e; font-size: 10px; font-weight: 400; }
.funnel-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.funnel-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.funnel-step { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; background: #f6f7f4; border-radius: 7px; }
.funnel-step span { font-size: 11px; color: #4b514d; font-weight: 800; }
.funnel-step strong { font-size: 22px; letter-spacing: -.04em; line-height: 1.2; }
.funnel-step small { font-size: 10px; color: #5f6662; }
.funnel-track { height: 6px; background: #e2e5e0; border-radius: 9px; margin-top: 7px; overflow: hidden; }
.funnel-track i { display: block; height: 100%; background: var(--orange); border-radius: 9px; }

.heading-stat { border-left: 3px solid var(--orange); padding-left: 14px; display: flex; flex-direction: column; min-width: 110px; }
.heading-stat strong { font-size: 26px; letter-spacing: -.05em; line-height: 1.1; }
.heading-stat span { color: #6c7270; font-size: 12px; }
.scope-banner, .copy-warning { display: flex; align-items: center; gap: 12px; padding: 13px 17px; border: 1px solid #eadcc8; background: #fff8ed; color: #5e4e36; border-radius: 8px; font-size: 12px; margin: 0 0 23px; }
.scope-banner p { margin: 0; }
.scope-icon, .warning-mark { flex: none; width: 18px; height: 18px; border: 1px solid #ad7033; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #8d4d13; }
.template-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 15px; }
.template-toolbar h2 { margin: 8px 0 0; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.save-state { color: #7b817e; font-size: 11px; white-space: nowrap; margin-right: 7px; }
.save-state.is-dirty { color: var(--orange-dark); font-weight: 800; }
.primary-button, .quiet-button { min-height: 38px; border-radius: 7px; padding: 8px 13px; font-size: 12px; font-weight: 800; }
.primary-button { background: var(--ink); border: 1px solid var(--ink); color: white; display: inline-flex; align-items: center; gap: 19px; }
.primary-button:hover:not(:disabled) { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.primary-button:disabled { background: #bcbebc; border-color: #bcbebc; color: #f9f9f9; }
.quiet-button { border: 1px solid #cfd2cf; background: transparent; color: var(--ink-soft); }
.quiet-button:hover:not(:disabled) { border-color: var(--ink); background: #fff; }
.quiet-button:disabled { color: #9a9f9c; border-color: #dde0dd; }
.template-list { display: flex; flex-direction: column; gap: 9px; }
.template-row { display: grid; grid-template-columns: 42px 88px minmax(165px, 1fr) 104px 78px 78px 73px; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 12px 18px 12px 15px; min-height: 111px; transition: border-color .18s, box-shadow .18s; }
.template-row:hover { border-color: #b8bdb8; box-shadow: 0 5px 15px #0a0a0a08; }
.template-order { font-size: 22px; font-weight: 900; letter-spacing: -.07em; color: #a4aaa7; }
.template-mini { height: 80px; width: 67px; }
.template-info strong { display: block; font-size: 17px; letter-spacing: -.025em; line-height: 1.3; }
.template-info span { font-size: 10px; color: #5f6662; font-weight: 700; letter-spacing: .1em; }
.template-info small { display: block; color: #5f6662; font-size: 11px; margin-top: 4px; }
.template-info .template-copy-status { color: #176149; font-weight: 800; }
.template-info .template-copy-status.is-incomplete { color: #a94d11; }
.template-badge { justify-self: start; background: #d9f3e7; color: #125b43; padding: 5px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.template-badge.is-off { color: #696f6c; background: #edeeed; }
.row-switch { width: 43px; height: 25px; border: 0; padding: 3px; border-radius: 99px; background: var(--orange); display: flex; justify-content: flex-end; align-items: center; }
.row-switch[aria-checked="false"] { background: #bec3bf; justify-content: flex-start; }
.row-switch i { display: block; width: 19px; height: 19px; border-radius: 50%; background: #111; }
.row-switch[aria-checked="false"] i { background: #fff; }
.reorder-controls { display: flex; gap: 3px; }
.reorder-controls button, .row-preview, .icon-button { border: 1px solid #d2d5d2; background: #fff; color: var(--ink); border-radius: 6px; }
.reorder-controls button { width: 30px; height: 30px; font-size: 16px; line-height: 1; }
.reorder-controls button:disabled { color: #b9bdbb; border-color: #e4e6e4; }
.reorder-controls button:hover:not(:disabled), .row-preview:hover { border-color: var(--ink); background: #f8f8f6; }
.row-preview { padding: 7px 10px; font-size: 11px; font-weight: 800; }
.bottom-footnote { color: #5f6662; font-size: 11px; margin-top: 15px; }

.artwork { position: relative; border-radius: 5px; overflow: hidden; width: 100%; height: 100%; isolation: isolate; }
.artwork.asset-art { background: #e8e9e5; }
.artwork.asset-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.artwork.asset-placeholder { display: grid; place-items: center; text-align: center; background: #e5e7e2; border: 1px dashed #aeb5ad; color: #646b65; font-size: 9px; line-height: 1.3; font-weight: 800; letter-spacing: .04em; }
.artwork::before { content: ""; position: absolute; inset: 0; opacity: .8; z-index: -1; }
.artwork.visual-urban { background: linear-gradient(160deg, #25384a 0%, #456e84 41%, #dfa06c 100%); }
.artwork.visual-urban::before { background: repeating-linear-gradient(90deg, transparent 0 12px, #132b3a88 12px 18px), linear-gradient(0deg, #182d3d 0 34%, transparent 34%); mix-blend-mode: multiply; }
.artwork.visual-desk { background: linear-gradient(130deg, #e0d8bd 0%, #bdad83 52%, #6b553e 100%); }
.artwork.visual-desk::before { background: linear-gradient(155deg, transparent 0 47%, #f9ecce90 47% 52%, transparent 53%), repeating-linear-gradient(90deg, transparent 0 17px, #74664813 17px 18px); }
.artwork.visual-night { background: radial-gradient(circle at 75% 25%, #db6d34 0 7%, transparent 24%), linear-gradient(155deg, #070c18 0%, #192748 55%, #684052 100%); }
.artwork.visual-night::before { background: repeating-linear-gradient(90deg, transparent 0 15px, #4f5f8f30 15px 17px); }
.artwork.visual-road { background: linear-gradient(0deg, #4d615e 0 34%, #8ba0a2 35% 53%, #cad6cf 80%); }
.artwork.visual-road::before { background: linear-gradient(145deg, transparent 0 60%, #4c4e3a55 60%), linear-gradient(25deg, transparent 0 55%, #40544d88 55%); }
.artwork.visual-white { background: linear-gradient(135deg, #f8f6ef, #cfd8d3); }
.artwork.visual-white::before { background: radial-gradient(circle at 75% 20%, #f9a061 0 12%, transparent 13%), linear-gradient(160deg, transparent 0 59%, #9cb9b77a 60%); }
.device { position: absolute; width: 51%; height: 56%; top: 23%; left: 25%; background: #171b1b; border-radius: 7px; border: 2px solid #4c5252; box-shadow: 5px 8px 16px #0007; transform: rotate(-9deg); display: flex; flex-direction: column; align-items: center; padding: 6% 6% 3%; }
.visual-desk .device { transform: rotate(7deg); left: 27%; }
.visual-night .device { transform: rotate(-3deg); left: 27%; }
.visual-road .device { transform: rotate(10deg); left: 28%; }
.visual-white .device { transform: rotate(-13deg); }
.device-screen { width: 100%; height: 61%; border-radius: 2px; background: linear-gradient(140deg, #d0e2d6, #bb7761); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 6px; letter-spacing: .04em; text-align: center; line-height: 1.1; }
.device-bottom { width: 100%; height: 39%; display: flex; align-items: center; justify-content: space-between; }
.device-bottom span { color: #e7e8e5; font-size: 3.7px; font-weight: 800; white-space: nowrap; }
.device-bottom i { width: 12px; height: 12px; border: 2px solid var(--orange); border-radius: 50%; }
.artwork-label { position: absolute; bottom: 4px; left: 5px; color: #fff; background: #1119; border-radius: 2px; padding: 1px 3px; font-size: 6px; letter-spacing: .05em; }

.language-chip { border-left: 3px solid var(--orange); padding-left: 14px; min-width: 150px; font-size: 13px; font-weight: 800; }
.language-chip small { display: block; color: #848a86; font-size: 11px; font-weight: 400; }
.copy-warning { background: #fff9ec; }
.copy-template-section { margin-bottom: 20px; }
.copy-template-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.copy-template-heading > span:last-child { color: #5f6662; font-size: 11px; }
.copy-template-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.copy-template-button { display: grid; grid-template-columns: 45px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 0; min-height: 79px; text-align: left; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; position: relative; }
.copy-template-button:hover { border-color: #8f9691; }
.copy-template-button[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 2px #fa640026; }
.copy-template-button[aria-pressed="true"]::before { content: ""; position: absolute; inset: -1px auto -1px -1px; width: 4px; background: var(--orange); border-radius: 8px 0 0 8px; }
.copy-template-button.has-unsaved::after { content: ""; position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.copy-template-thumb { width: 43px; height: 58px; }
.copy-template-meta { min-width: 0; display: flex; flex-direction: column; }
.copy-template-meta small { color: #5f6662; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.copy-template-meta strong { font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.copy-template-meta em { color: #245b47; font-style: normal; font-size: 9px; font-weight: 800; }
.copy-template-meta em.is-off { color: #626965; }
.copy-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .9fr); gap: 19px; align-items: start; }
.copy-editor, .preview-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 27px; }
.editor-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 25px; }
.field-group-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 4px; margin-bottom: 16px; }
.field-group-title strong { font-size: 16px; letter-spacing: -.03em; }
.field-group-title span { color: #5f6662; font-size: 11px; }
.template-group-title { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 23px; }
.form-field { margin-bottom: 21px; }
.form-field label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 900; margin-bottom: 8px; }
.form-field label span { color: #5f6662; font-weight: 400; font-size: 10px; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #d7dad7; border-radius: 7px; padding: 11px 12px; background: #fdfdfc; color: var(--ink); outline: none; font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field input:hover, .form-field textarea:hover { border-color: #9da29e; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px #fa64001a; }
.field-hint { color: #5f6662; font-size: 11px; margin: 6px 0 0; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: #aa2f21; background: #fff0ec; border: 1px solid #f6c1b7; border-radius: 5px; padding: 8px 10px; font-size: 12px; }
.form-actions { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.preview-panel { position: sticky; top: 22px; background: #e9eae5; border-color: #d9dbd7; padding-bottom: 18px; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.preview-heading > span:last-child { color: #777d79; font-size: 10px; }
.phone-frame { width: min(275px, 100%); margin: 21px auto 14px; padding: 8px; border-radius: 26px; border: 3px solid #1e2020; background: #1e2020; box-shadow: 10px 19px 21px #0002; }
.phone-notch { width: 62px; height: 9px; background: #1e2020; border-radius: 0 0 9px 9px; margin: -1px auto -1px; position: relative; z-index: 2; }
.phone-screen { background: white; border-radius: 18px; overflow: hidden; min-height: 450px; }
.phone-topline { display: flex; justify-content: space-between; padding: 14px 15px 8px; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.phone-topline span:last-child { font-size: 13px; line-height: .6; }
.phone-visual { height: 153px; background: linear-gradient(150deg, #374957, #e39c6a); display: grid; place-items: center; overflow: hidden; }
.phone-visual.asset-missing { background: #e5e7e2; color: #646b65; font-size: 11px; font-weight: 800; }
.phone-visual > .artwork { border-radius: 0; }
.phone-visual .asset-placeholder { font-size: 11px; }
.phone-visual.visual-desk { background: linear-gradient(140deg, #e0d8bd, #7b674b); }
.phone-visual.visual-night { background: linear-gradient(150deg, #0b1428, #723d51); }
.phone-visual.visual-road { background: linear-gradient(150deg, #cad6cf, #50635f); }
.phone-visual.visual-white { background: linear-gradient(150deg, #f8f6ef, #adbfbd); }
.phone-player { width: 87px; height: 118px; border: 3px solid #414747; background: #141818; border-radius: 8px; transform: rotate(-10deg); box-shadow: 9px 13px 13px #0005; display: flex; flex-direction: column; align-items: center; padding: 7px; position: relative; }
.phone-player-screen { width: 100%; height: 67px; background: linear-gradient(150deg, #bcd4cd, #ae6c63); display: grid; place-items: center; color: white; font-size: 9px; font-weight: 900; text-align: center; line-height: 1.1; }
.phone-player > span { align-self: flex-start; color: #ddd; font-size: 4px; margin-top: 8px; }
.phone-player i { position: absolute; right: 8px; bottom: 8px; width: 18px; height: 18px; border: 3px solid var(--orange); border-radius: 50%; }
.phone-body { padding: 14px 15px 22px; }
.phone-body > small { font-size: 8px; color: var(--orange-dark); font-weight: 900; letter-spacing: .12em; }
.phone-body h3 { font-size: 24px; line-height: 1; letter-spacing: -.06em; margin: 4px 0 11px; }
.caption-card { background: #f6f6f4; border-radius: 5px; padding: 10px; }
.caption-label { color: #7b817d; font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.caption-card p { margin: 6px 0 0; font-size: 9px; line-height: 1.48; color: #262b29; white-space: pre-wrap; overflow-wrap: anywhere; }
.phone-copy-button { width: 100%; background: var(--ink); color: white; border: 0; border-radius: 5px; padding: 7px 8px; font-size: 9px; font-weight: 900; margin-top: 9px; }
.phone-copy-button:hover { background: var(--orange); color: var(--ink); }
.phone-copy-button:disabled { background: #9aa09b; cursor: not-allowed; }
.phone-body > p:last-child { color: #7d837f; font-size: 8px; line-height: 1.45; }
.preview-visibility { margin: 0 0 7px; color: #165a41; font-size: 11px; font-weight: 800; }
.preview-visibility.is-off { color: #6d736f; }
.preview-footnote { color: #565e59; font-size: 11px; line-height: 1.5; margin: 0; }

.overlay { position: fixed; inset: 0; background: #080b0bc2; z-index: 30; display: grid; place-items: center; padding: 20px; }
.overlay[hidden] { display: none !important; }
.dialog { background: #fff; border-radius: 11px; width: min(430px, 100%); padding: 29px; box-shadow: 0 20px 70px #0004; }
.dialog-eyebrow { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.dialog h2 { margin: 9px 0 8px; font-size: 25px; letter-spacing: -.04em; }
.dialog p { color: #686e6b; font-size: 13px; margin: 0 0 25px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.drawer-overlay { place-items: stretch end; padding: 0; }
.preview-drawer { height: 100%; width: min(420px, 100%); overflow-y: auto; background: #fff; box-shadow: -18px 0 50px #0002; animation: drawer-enter .25s ease both; }
@keyframes drawer-enter { from { transform: translateX(30px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.drawer-top { display: flex; justify-content: space-between; align-items: center; padding: 21px 25px; }
.icon-button { width: 31px; height: 31px; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.drawer-art { height: 300px; padding: 16px 78px; background: #e9e9e4; }
.drawer-art .artwork { border-radius: 7px; box-shadow: 0 11px 20px #0002; }
.drawer-art .device-screen { font-size: 12px; }
.drawer-art .device-bottom span { font-size: 7px; }
.drawer-art .device-bottom i { width: 22px; height: 22px; border-width: 3px; }
.drawer-art .artwork-label { font-size: 9px; bottom: 8px; left: 8px; }
.drawer-content { padding: 26px; }
.drawer-note { color: #a34d0b; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.drawer-content h2 { font-size: 33px; letter-spacing: -.05em; margin: 6px 0 7px; }
.drawer-content p { color: #666d69; font-size: 12px; }
.drawer-meta { border-top: 1px solid var(--line); margin: 25px 0; }
.drawer-meta > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 13px 0; gap: 14px; font-size: 11px; }
.drawer-meta span { color: #7a807c; }
.drawer-meta strong { text-align: right; }
.drawer-content .drawer-foot { color: #848b86; font-size: 11px; background: #f5f6f3; padding: 12px; border-radius: 6px; }
.toast { position: fixed; bottom: 24px; right: 25px; z-index: 40; background: var(--ink); color: #fff; border-left: 4px solid var(--orange); border-radius: 7px; padding: 12px 17px; box-shadow: 0 12px 26px #0003; min-width: 220px; max-width: min(400px, calc(100vw - 40px)); transform: translateY(20px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; font-size: 12px; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .template-row { grid-template-columns: 32px 75px minmax(150px, 1fr) 86px 55px 72px; gap: 11px; }
  .template-row .row-preview { grid-column: 3 / 4; width: max-content; }
  .copy-template-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app-shell { display: block; }
  .sidebar { position: relative; height: auto; min-height: 0; padding: 17px 20px 0; }
  .brand-lockup { flex-direction: row; align-items: center; gap: 9px; padding: 0; }
  .brand-rule { margin: 0 2px; height: 17px; width: 2px; }
  .brand-subtitle { font-size: 8px; }
  .side-project, .side-footer { display: none; }
  .side-nav { flex-direction: row; gap: 3px; margin-top: 17px; overflow-x: auto; }
  .nav-item { width: auto; min-width: 115px; grid-template-columns: 19px 1fr; padding: 10px 12px; border-radius: 7px 7px 0 0; white-space: nowrap; }
  .nav-arrow { display: none; }
  .topbar { min-height: 57px; padding: 0 26px; }
  .prototype-note { padding: 10px 26px; }
  main { padding: 32px 26px 70px; }
  .copy-layout { grid-template-columns: minmax(0, 1.3fr) minmax(270px, .85fr); }
}
@media (max-width: 700px) {
  .topbar-path { font-size: 10px; gap: 6px; }
  .topbar-environment { display: none; }
  .prototype-note { align-items: flex-start; font-size: 11px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-heading h1 { font-size: 42px; }
  .date-stamp { align-self: flex-start; }
  .overview-layout, .copy-layout { grid-template-columns: 1fr; }
  .campaign-card, .campaign-card-content { min-height: 350px; }
  .campaign-card-main h2 { font-size: 52px; }
  .campaign-orbit { width: 315px; right: -115px; top: 5px; }
  .campaign-orbit span:nth-child(3) { inset: 120px; }
  .overview-side { min-height: 286px; }
  .analytics-entry { align-items: flex-start; flex-direction: column; padding: 22px; }
  .block-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { min-height: 112px; }
  .metric:nth-child(3) { border-right: 1px solid var(--line); }
  .metric:nth-child(even) { border-right: 0; }
  .metric:nth-child(4) { border-bottom: 1px solid var(--line); }
  .funnel-steps { gap: 9px; }
  .funnel-step { padding: 12px; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .template-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-right { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .toolbar-right .save-state { margin-right: auto; }
  .template-row { grid-template-columns: 27px 74px minmax(0, 1fr) auto; grid-template-rows: auto auto; padding: 11px; gap: 9px; }
  .template-order { grid-row: 1; }
  .template-mini { grid-row: 1 / 3; height: 90px; width: 74px; }
  .template-info { grid-column: 3 / 5; }
  .template-badge { grid-column: 3; grid-row: 2; }
  .row-switch { grid-column: 4; grid-row: 2; }
  .reorder-controls { grid-column: 1 / 3; grid-row: 3; }
  .template-row .row-preview { grid-column: 3 / 5; grid-row: 3; width: 100%; }
  .preview-panel { position: static; }
  .copy-template-picker { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
  .copy-template-button { flex: 0 0 174px; scroll-snap-align: start; }
  .copy-template-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}
@media (max-width: 440px) {
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .brand-wordmark { font-size: 17px; }
  .brand-subtitle { letter-spacing: .13em; }
  .nav-item { min-width: 105px; font-size: 12px; }
  .topbar { padding: 0 17px; }
  .prototype-note { padding: 10px 17px; }
  main { padding: 29px 17px 60px; }
  .campaign-card-content { padding-left: 25px; padding-right: 20px; }
  .campaign-card-main h2 { font-size: 46px; }
  .metric { padding: 15px 13px; }
  .metric strong { font-size: 24px; }
  .funnel-steps, .funnel-outcomes { grid-template-columns: 1fr; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
  .copy-editor, .preview-panel { padding: 20px; }
  .drawer-art { padding: 16px 55px; }
  .toast { right: 15px; bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
