/* Editorial v13. Customer app only. Existing state/geometry/semantics remain
   authoritative. Loaded last to consolidate the older premium material layers. */
:root {
  --bg-brand: #091713;
  --bg: #091713; --bg-deep: #06110d;
  --panel: #12251e; --panel-2: #1b3026;
  --text: #f3f1e6; --muted: #b0bdb4; --dim: #89998e;
  --cyan: #bfe3cf; --cyan-2: #9acbb1;
  --amber: #dfcb9e; --amber-2: #e9d5ab; --gold: #e9d5ab;
  --green: #a8d3ad; --red: #efa99f; --accent: #bfe3cf;
  --line: #30433a; --line-cyan: #607a67;
  --line-subtle: #2b3e33; --line-strong: #46594b;
  --radius: 16px;
  --elev-1: inset 0 1px #ffffff05, 0 8px 24px #00000015;
  --elev-2: inset 0 1px #ffffff08, 0 12px 28px #00000024;
  --elev-3: 0 -12px 40px #00000050;
}
html:has(body.premium-v7), body.premium-v7 { background: #091713; }
body.premium-v7 .app-shell[data-view] {
  --ambient-primary: 191, 227, 207;
  --ambient-secondary: 146, 183, 155;
  --ambient-warm: 223, 203, 158;
  --premium-surface: #12251e;
  --premium-line: #30433a;
  background: radial-gradient(ellipse at 85% 0%, #294a352d, transparent 60%), #091713;
  box-shadow: 0 0 60px #00000024;
}
body.premium-v7 .app-shell::after { box-shadow: none; }
body.premium-v7 .ambient-depth { background: transparent; }
body.premium-v7 .ambient-grid,
body.premium-v7 .ambient-sigil,
body.premium-v7 .ambient-constellation { opacity: .09; }
body.premium-v7 .ambient-scan { opacity: .08; filter: none; }
body.premium-v7 .ambient-aurora { opacity: .12; filter: none; }
body.premium-v7 .ambient-beacon { opacity: .25; box-shadow: none; }
body.premium-v7 .topbar { background: #091713f5; border-color: var(--line); box-shadow: none; }
body.premium-v7 .brand-mark { border-color: #81937b; box-shadow: none; background: #1e3226; }
body.premium-v7 :is(.brand-mark,.access-hero) .radar-grid { stroke: #9acbb1; }
body.premium-v7 :is(.brand-mark,.access-hero) .radar-sweep path { fill: #bfe3cf24; stroke: #9acbb1; }
body.premium-v7 :is(.brand-mark,.access-hero) :is(.radar-core,.radar-dot) { fill: #c4dfb9; filter: none; }
body.premium-v7 :is(.brand-mark,.access-hero) stop { stop-color: #9acbb1; }
body.premium-v7 .brand small { color: var(--muted); }
body.premium-v7 .brand b { letter-spacing: -.02em; }
body.premium-v7 .icon-only { background: #182d22; border-color: var(--line); box-shadow: none; }

/* Single material recipe across tasks, progress, cabinet, forms and add-ons. */
body.premium-v7 :is(.detail-card,.job-card,.filter-panel,.tariff-card,
  .ai-strip,.radar-pulse-card,.my-workspace-card,.pr-card,.pr-empty,.pr-settings,
  .achievement-collection,.reward-card,.achievement-card,.feed-access-strip,.radar-streak-strip,
  .mission-card,.mission-card.complete,.my-vacancy-card) {
  color: var(--text); border-color: var(--line); border-radius: 18px;
  background: linear-gradient(125deg,#1b3026,#12251e);
  box-shadow: var(--elev-1);
}
body.premium-v7 :is(.detail-card,.job-card,.reward-card)::before { box-shadow: none; }
body.premium-v7 .job-card::before { width: 2px; background: #7f9d83; opacity: .55; }
body.premium-v7 .job-card.hot,
body.premium-v7 .tariff-card.featured { border-color: #9c916e; box-shadow: var(--elev-2); }
body.premium-v7 :is(.detail-card,.profile-wall-card,.reward-card) h3 { color: var(--text); }
/* The legacy weekly recipe uses !important: override only that named card. */
body.premium-v7 .weekly-value-card { background: linear-gradient(125deg,#1b3026,#12251e)!important; border-color: var(--line)!important; }
body.premium-v7 .weekly-value-card::after { border-color: #9acbb12b; box-shadow: inset 0 0 0 24px #9acbb106; }
body.premium-v7 :is(.weekly-value-signal,.weekly-focus,.weekly-focus-row>i,.weekly-value-grid>div) {
  background: #10251b; border-color: var(--line); box-shadow: none;
}
body.premium-v7 :is(.avatar-ring,.profile-quick-nav) { border-color: #607a67; box-shadow: none; background: #0d1e17; }
body.premium-v7 .rating-hero-card .premium-avatar { box-shadow: none; }
body.premium-v7 :is(.section-kicker,.eyebrow,.tiny-label) { color: #c9bd9f; letter-spacing: .06em; }
body.premium-v7 :is(.tag,.ticket,.tiny-pill,.status-pill,.profile-visibility,.tag-line span,.pr-chips span,.my-vacancy-status) {
  color: #c5d5c9; background: #20352a; border-color: #3c5143;
  border-radius: 8px; box-shadow: none; text-shadow: none;
}
body.premium-v7 :is(.price-large,.tariff-card strong,.points-box b,.pr-budget,.amber-text) { color: #e9d5ab; }
body.premium-v7 :is(.original-reader,.estimate-form,.estimate-input-shell,.estimate-comment textarea,
  .profile-fact-grid>div,.wall-proof-grid>div,.specialist-fact-grid>div,.include-grid>div) {
  background: #0d1e17; border-color: var(--line); color: var(--text); box-shadow: none;
}
body.premium-v7 :is(.original-reader,.original-summary-copy small,.estimate-summary-copy small) { color: #c5d0c7; }
body.premium-v7 :is(.edit-sheet,.specialist-sheet,.public-profile-sheet,.dd-menu,.toast) {
  background: #11241d; border-color: #46594b; box-shadow: var(--elev-3);
}
body.premium-v7 :is(input,textarea,select) { color: var(--text); accent-color: #bfe3cf; }
body.premium-v7 #profile-editor :is(.edit-sheet,.sheet-head,.sheet-actions) {
  background: #11241d; border-color: var(--line); box-shadow: none;
}
body.premium-v7 #profile-editor :is(.editor-section,.profile-consent),
body.premium-v7 :is(#profile-editor,#filter-sheet) :is(.sheet-field input,.sheet-field textarea,.dd-trigger) {
  background: #0d1e17; border-color: var(--line); box-shadow: none;
}
body.premium-v7 #profile-editor .sheet-close { background: #182e23; border-color: var(--line); }
body.premium-v7 #profile-editor :is(.editor-kicker,.stack-counter) { color: #c9bd9f; }
body.premium-v7 #profile-editor .editor-step { color: #e9d5ab!important; background: #dfcb9e12; border-color: #607a67; }
body.premium-v7 #profile-editor .sheet-field :is(input,textarea):focus { border-color: #bfe3cf; box-shadow: 0 0 0 3px #bfe3cf18; }
body.premium-v7 .chip-pill { background: #182e23; border-color: var(--line); color: var(--text); }
body.premium-v7 .chip-pill.active { background: #2b4536; border-color: #9acbb1; color: #d0e8d3; box-shadow: none; }

/* Quiet editorial imagery is decoration; factual SVG charts, avatars and
   league emblems are never replaced by a generated picture. */
body.premium-v7 .premium-title {
  --editorial-art: url('assets/radar-editorial-v13-tasks.webp');
  min-height: 168px; margin: 8px 2px 16px; padding: 24px;
  border: 1px solid #465446; border-radius: 24px;
  background: linear-gradient(90deg,#10241bee 0%,#10241ba6 48%,#10241b14 100%),var(--editorial-art) center/cover;
  box-shadow: var(--elev-1); gap: 14px; flex-wrap: wrap;
}
body.premium-v7 :is(.rating-title-hero,.leaderboard-title-hero,.bonus-title-hero) { --editorial-art: url('assets/radar-editorial-v13-progress.webp'); }
body.premium-v7 .profile-title-hero { --editorial-art: url('assets/radar-editorial-v13-profile.webp'); }
body.premium-v7 .access-title-hero { --editorial-art: url('assets/radar-editorial-v13-access.webp'); }
body.premium-v7 .premium-title::before,
body.premium-v7 .premium-title::after { content: none; animation: none!important; will-change: auto; }
body.premium-v7 :is(.premium-title,.radar-hero,.pr-hero,.pr-offer-copy) h1 {
  color: var(--text); font-family: Georgia,'Times New Roman',serif;
  font-size: clamp(30px,3.4vw,44px); font-weight: 500;
  letter-spacing: -.025em; line-height: 1.14; text-shadow: none;
}
body.premium-v7 .premium-title>div:first-child { min-width: 0; flex: 1 1 65%; }
body.premium-v7 .premium-title p { max-width: 570px; color: #d0d8cc; line-height: 1.5; font-size: 13px; }
body.premium-v7 .premium-title .status-pill { align-self: flex-end; }
body.premium-v7 .profile-title-actions { align-self: flex-end; flex-wrap: wrap; }
body.premium-v7 .feed-hero-shell {
  height: auto; padding-bottom: 12px; border-radius: 24px; border-color: #465446;
  background: linear-gradient(90deg,#10241bd9,#10241b40),url('assets/radar-editorial-v13-tasks.webp') center/cover;
  box-shadow: var(--elev-1);
}
body.premium-v7 .radar-hero { height: 130px; grid-template-columns: minmax(0,1fr); padding: 22px; background: transparent; }
body.premium-v7 .hero-radar-svg { display: none; }
body.premium-v7 .radar-hero p { color: #d0d8cc; max-width: 60%; line-height: 1.5; }
body.premium-v7 .metric-grid { margin-inline: 12px; height: 72px; background: #0d1e17e8; border-color: #465446; border-radius: 14px; }
body.premium-v7 .metric-grid>div { background: transparent; }
body.premium-v7 .metric-grid b { color: #e9d5ab; }

/* One interaction language; no pressed-state brightness/blur or flashing glows. */
body.premium-v7 :is(button,a,[data-nav]) { -webkit-tap-highlight-color: transparent; }
body.premium-v7 :is(.primary-btn,.open-card-btn,.pr-primary),
body.premium-v7 .primary-btn.amber,
body.premium-v7 .job-card.hot .open-card-btn,
body.premium-v7 .job-card.active .open-card-btn {
  border: 1px solid #dfcb9e; border-radius: 13px; color: #20271f;
  background: #dfcb9e; box-shadow: none; text-shadow: none;
  transition: transform .16s ease,background-color .16s ease;
}
body.premium-v7 :is(.primary-btn,.open-card-btn)::before { content: none; }
body.premium-v7 :is(.outline-btn,.ghost-btn,.chip,.toggle-chip,.filter-count,.search-box,
  .profile-quick-nav button,.my-workspace-tabs button,.mini-segment,.outcome-btn) {
  border-color: #3b5043; border-radius: 12px; background: #182e23;
  color: #d5dfd4; box-shadow: none; text-shadow: none;
}
body.premium-v7 :is(.chip.active,.toggle-chip.active,.mini-segment button.active,.my-workspace-tabs button.active) {
  color: #15271c; background: #bfe3cf; border-color: #bfe3cf; box-shadow: none;
}
body.premium-v7 :is(button,a,[data-nav]):active { filter: none!important; }
body.premium-v7 :is(.primary-btn,.outline-btn,.ghost-btn,.chip,.icon-only,.pr-primary):active {
  filter: none!important; transform: translateY(1px) scale(.985);
}
body.premium-v7 :focus-visible { outline: 3px solid #bfe3cf; outline-offset: 3px; }
body.premium-v7 .bottom-nav {
  background: #11241df5; border-color: #46594b; border-radius: 20px;
  box-shadow: 0 8px 32px #00000040; backdrop-filter: none;
}
body.premium-v7 .bottom-nav button.active {
  color: #e9d5ab; background: #dfcb9e12; text-shadow: none;
}
body.premium-v7 .bottom-nav button.active>svg { filter: none; }
body.premium-v7 .bottom-nav button.active::after { background: #dfcb9e; }
body.premium-v7 .bar { background: #0d1e17; }
body.premium-v7 .bar>i { background: linear-gradient(90deg,#81ad91,#bfe3cf); box-shadow: none; }
body.premium-v7 .signal-ring { box-shadow: none; border-color: var(--line); }
body.premium-v7 .signal-ring>span { color: #d0e8d3; background: #11241d; border-color: var(--line); box-shadow: none; animation: none!important; }
body.premium-v7 .achievement-card { --achievement-rgb: 191,227,207; }
body.premium-v7 .achievement-card.rarity-rare { --achievement-rgb: 158,192,182; }
body.premium-v7 .achievement-card.rarity-epic { --achievement-rgb: 181,170,205; }
body.premium-v7 .achievement-card.rarity-legendary { --achievement-rgb: 223,203,158; }
body.premium-v7 .achievement-card.open { border-color: rgba(var(--achievement-rgb),.5); }
body.premium-v7 .achievement-card.open::after { opacity: .16; }
body.premium-v7 .work-route-steps button { background: #182e23; border-color: var(--line); border-radius: 14px; }
body.premium-v7 .work-route-steps button>span { color: #e9d5ab; background: #dfcb9e12; }
body.premium-v7 .personal-radar { --pr-bg: var(--bg); --pr-panel: var(--panel); --pr-line: var(--line); --pr-muted: var(--muted); --pr-mint: var(--cyan); color: var(--text); }
/* Status choices stay visible on a narrow phone, not outside a scroller. */
body.premium-v7 .my-workspace-card .my-workspace-tabs { flex-wrap: wrap; overflow: visible; }
body.premium-v7 .my-workspace-tabs button { flex: 1 1 auto; }

@media (hover:hover) {
  body.premium-v7 :is(.primary-btn,.open-card-btn,.pr-primary):not(:disabled):hover { background: #ecdbb7; }
  body.premium-v7 :is(.outline-btn,.ghost-btn,.chip):not(:disabled):hover { background: #2b4536; }
}
@media (min-width:900px) {
  body.premium-v7 .app-shell { width: min(calc(100% - 40px),1500px); }
  body.premium-v7 .screen[data-screen=radar] { width: min(100%,1400px); }
  body.premium-v7 .premium-title { min-height: 198px; padding: 32px; }
  body.premium-v7 .radar-hero { height: 170px; padding: 32px; }
  body.premium-v7 .feed-list { gap: 18px; }
  /* Keep the separate-purchase explanation visible beside the artwork. */
  body.premium-v7 .pr-offer-hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: center; }
  body.premium-v7 .pr-offer-hero img { height: auto; object-fit: contain; }
}
@media (max-width:520px) {
  body.premium-v7 .premium-title { padding: 20px; min-height: 166px; }
  body.premium-v7 .premium-title>div:first-child { flex-basis: 100%; }
  body.premium-v7 .premium-title p { max-width: 85%; font-size: 12px; }
  body.premium-v7 .profile-title-actions { width: 100%; gap: 8px; }
  body.premium-v7 .radar-hero h1 { white-space: normal; font-size: 32px; }
  body.premium-v7 .metric-grid>div { padding-inline: 7px; }
}
@media (prefers-reduced-motion:reduce) {
  body.premium-v7 *,body.premium-v7 *::before,body.premium-v7 *::after {
    animation: none!important; transition: none!important; scroll-behavior: auto!important;
  }
}
