/* Open-water palette is scoped to the opportunity room. */
body[data-theme="ocean"] {
  --deep:var(--screen); --glow:#f7dca8; --orange:var(--warn); --sea-shadow:var(--shadow);
  background-color:var(--bg);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 390' fill='none' stroke='%235f7487' stroke-opacity='.05'%3E%3Cpath d='M-30 90Q43 84 78 29T173-20M-30 103Q56 95 88 38T183-18M-30 116Q69 104 98 47T195-16M-30 129Q82 113 108 56T209-14M292 411Q287 332 365 318T462 229T550 178M306 411Q297 345 369 331T474 235T550 191M320 411Q308 358 376 344T486 241T550 205M334 411Q320 371 385 358T498 247T550 219'/%3E%3C/svg%3E");
  background-size:520px 390px;
}
[data-theme="ocean"] .book-header {background:transparent}
[data-theme="ocean"] .page .hero {
  isolation:isolate; overflow:hidden; position:relative; display:flex; min-height:clamp(242px,24vw,302px);
  margin:20px 0 0; padding:clamp(24px,3.2vw,44px); border-radius:18px; border:1px solid #b4cdd6;
  border-bottom:0; background:#c5dde4;
}
[data-theme="ocean"] .hero .ocean-scenery {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:68% 53%;z-index:-2}
[data-theme="ocean"] .hero::before {content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#e7eeeeed 0%,#e3edeee5 22%,#dbe8ec66 40%,transparent 60%);pointer-events:none}
[data-theme="ocean"] .hero::after {content:"";pointer-events:none;position:absolute;right:17px;top:17px;width:42px;height:42px;opacity:.6;background: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23365d70' stroke-width='1'%3E%3Ccircle cx='24' cy='24' r='17'/%3E%3Cpath d='M24 1v7m0 32v7M1 24h7m32 0h7M8 8l5 5m22 22 5 5M8 40l5-5m22-22 5-5M24 10l4 14-4 14-4-14z'/%3E%3Cpath fill='%23365d70' d='m24 10 4 14h-8z'/%3E%3C/svg%3E")}
[data-theme="ocean"] .hero .hero-copy {position:relative;align-self:center;max-width:50%;padding:0}
[data-theme="ocean"] .page :is(h1,h2,h3),[data-theme="ocean"] dialog h2 {
  font-family:"Songti SC","STSong","Noto Serif CJK SC",serif; font-weight:600; line-height:1.4;
}
[data-theme="ocean"] .page .hero h1 {margin:0;color:var(--ink);font-size:clamp(30px,3.8vw,49px);letter-spacing:-.02em;line-height:1.4}
[data-theme="ocean"] .hero h1 span {color:var(--primary-hover);display:block}
[data-theme="ocean"] .hero .eyebrow {color:#375a6b;font-size:13px;letter-spacing:.12em;margin:0 0 4px}
[data-theme="ocean"] .hero .hero-description {color:#294a5b;margin:6px 0 10px}
[data-theme="ocean"] .hero .hero-links {color:#345767}
[data-theme="ocean"] .cohort-pill {border-color:#abc4cb;background:#eaf2f2;color:#285363}
[data-theme="ocean"] .page>.snapshot-card {
  position:relative;z-index:1;display:flex;align-items:center;gap:16px;width:calc(100% - 32px);max-width:none;margin:-24px auto 0;
  border:1px solid #bfced6;border-radius:14px;padding:12px 22px;background:#f6fafb;
  box-shadow:0 8px 21px -8px #163c5340,0 2px 4px #13394912;overflow:visible;
}
[data-theme="ocean"] .snapshot-top {display:flex;color:#456071;font-size:12px}
[data-theme="ocean"] .snapshot-number {font:600 30px/1.25 system-ui,sans-serif;letter-spacing:-.02em;color:#123749;padding:0}
[data-theme="ocean"] .snapshot-number small {font:12px/1.4 system-ui;color:var(--muted);margin-left:6px}
[data-theme="ocean"] .snapshot-bottom {display:flex;gap:10px;align-items:center;justify-content:flex-end;flex:1;padding:0;border:0}
[data-theme="ocean"] .snapshot-bottom button {display:flex;align-items:baseline;gap:6px;border:1px solid transparent;padding:5px 10px}
[data-theme="ocean"] .snapshot-bottom b {color:#163e52;font:600 21px/1.2 system-ui,sans-serif}
[data-theme="ocean"] .snapshot-bottom span {color:#506b7c;font-size:12px}
[data-theme="ocean"] :is(.snapshot-number,.snapshot-bottom b) {font-variant-numeric:lining-nums tabular-nums}
[data-theme="ocean"] .snapshot-bottom button:hover,[data-theme="ocean"] .snapshot-bottom button[aria-pressed=true] {background:#e1eef2;border-color:#c2d8e0}
[data-theme="ocean"] .source-strip {background:transparent;border:0;margin:0;padding:9px 2px}
[data-theme="ocean"] .source-strip p {display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
[data-theme="ocean"] .source-strip p span {display:inline-flex;align-items:center;margin:0;color:var(--muted);font-size:12px}
[data-theme="ocean"] .source-strip p .snapshot-badge {border-radius:999px;background:#ffedc2;color:#71460d;padding:1px 8px;font-size:11px;font-weight:600;white-space:nowrap}
[data-theme="ocean"] :is(.filters,.profile-strip,.company-card,.table-wrap,.empty-state) {background:var(--surface);border-color:var(--line);box-shadow:var(--sea-shadow)}
[data-theme="ocean"] .company-card {border-radius:14px}
[data-theme="ocean"] .company-card:hover {border-color:#9bbbc8}
[data-theme="ocean"] .company-card .company-monogram,[data-theme="ocean"] .detail-heading .company-monogram,[data-theme="ocean"] .profile-symbol {color:var(--primary-hover);background:#ddedf1;border-radius:9px}
[data-theme="ocean"] .filters :is(input[type="search"],select),[data-theme="ocean"] .search-box,[data-theme="ocean"] .company-grid [data-stage] {border-color:#bfd1d9;color:var(--text);background:#fff}
[data-theme="ocean"] .city-field small,[data-theme="ocean"] .card-location,[data-theme="ocean"] .card-date,[data-theme="ocean"] .scope-note,[data-theme="ocean"] .result-toolbar small {color:var(--muted)}
[data-theme="ocean"] .card-roles {color:var(--text)}
[data-theme="ocean"] :is(.profile-strip,.card-footer,.detail-fields,.source-facts,.list-tabs,.matching-scope) {border-color:var(--line)}
[data-theme="ocean"] .list-tabs span,[data-theme="ocean"] .tag,[data-theme="ocean"] .role-pills span,[data-theme="ocean"] .view-toggle button.active,[data-theme="ocean"] .close-button,[data-theme="ocean"] #active-filters button {color:#305a6c;background:#e0edf1}
[data-theme="ocean"] .tag-neutral {color:#526673;background:#eaf0f2}
[data-theme="ocean"] .tag-stage {color:#85441e;background:#fae9d9}
[data-theme="ocean"] .quick-filters button {color:var(--primary-hover);border-color:#bcd0d8;background:#edf5f7}
[data-theme="ocean"] .quick-filters button:is([data-quick="上海"],[data-quick="香港"])::before {content:"";display:inline-block;width:13px;height:13px;margin-right:4px;vertical-align:-2px;background:currentColor;mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='4.5' r='2'/%3E%3Cpath d='M10 7v10M6 9h8M2.5 12.5q1 4.5 7.5 4.5t7.5-4.5M2 14l.5-2 2 .5m11 0 2-.5.5 2'/%3E%3C/svg%3E")}
[data-theme="ocean"] .quick-filters [aria-pressed=true],[data-theme="ocean"] .button.primary {color:white;background:var(--primary);border-color:var(--primary)}
[data-theme="ocean"] .button.primary:hover {background:var(--primary-hover)}
[data-theme="ocean"] :is(.button,.detail-button,.quick-filters button,.snapshot-bottom button,.book-config) {border-radius:999px}
[data-theme="ocean"] .button.secondary {color:var(--primary);border-color:#bfd1da}
[data-theme="ocean"] .favorite-button {color:#667e8a;border-radius:50%}
[data-theme="ocean"] .favorite-button[aria-pressed=true],[data-theme="ocean"] [data-favorite].button[aria-pressed=true] {color:#a54e2f;background:#ffebdd}
[data-theme="ocean"] .card-date .deadline-rolling {color:#617784}
[data-theme="ocean"] .card-date .deadline-soon {color:#914521}
[data-theme="ocean"] .card-date .deadline-past {color:#854b48}
[data-theme="ocean"] :is(.matching-panel,.match-score,.match-panel,.source-facts,.card-insight,.closing-note) {background:#e3eef2;border-color:#c3d7df}
[data-theme="ocean"] :is(.matching-panel p,.match-card-reason,.match-panel ul,.matching-detail ul,.closing-note p,.detail-section p) {color:var(--text)}
[data-theme="ocean"] .match-excluded,[data-theme="ocean"] .card-insight.warning {background:#fbefe7;color:#81482d}
[data-theme="ocean"] :is(th,.requirement-status){background:#e5eff2;color:#3b5c6c}
[data-theme="ocean"] .toast {background:var(--deep)}
@media(prefers-reduced-motion:no-preference) {
  [data-theme="ocean"] .favorite-button[data-just-saved] {animation:ocean-favorite .36s ease-out}
  @keyframes ocean-favorite {0%{transform:scale(.94)}52%{transform:scale(1.18)}100%{transform:scale(1)}}
}
@media(max-width:800px) {
  [data-theme="ocean"] .page .hero {min-height:230px}
  [data-theme="ocean"] .snapshot-top {display:none}
  [data-theme="ocean"] .snapshot-bottom {gap:2px}
  [data-theme="ocean"] .snapshot-bottom button {padding:4px 6px}
}
@media(max-width:620px) {
  [data-theme="ocean"] .page .hero {min-height:240px;padding:22px 17px;align-items:flex-start}
  [data-theme="ocean"] .hero .ocean-scenery {object-position:59% center}
  [data-theme="ocean"] .hero::before {background:linear-gradient(90deg,#e5eeefe8,#e5eeefe0 35%,#e5eeef22 69%,transparent)}
  [data-theme="ocean"] .hero .hero-copy {align-self:flex-start;max-width:80%}
  [data-theme="ocean"] .page .hero h1 {font-size:28px}
  [data-theme="ocean"] .hero .hero-description {max-width:210px;font-size:12px}
  [data-theme="ocean"] .hero::after {height:28px;width:28px;right:10px;top:10px}
  [data-theme="ocean"] .page>.snapshot-card {gap:4px;padding:7px 8px}
  [data-theme="ocean"] .snapshot-number {font-size:24px}
  [data-theme="ocean"] .snapshot-number small {display:block;margin:0;font-size:10px}
  [data-theme="ocean"] .snapshot-bottom {justify-content:space-around;gap:1px}
  [data-theme="ocean"] .snapshot-bottom button {flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:3px}
  [data-theme="ocean"] .snapshot-bottom span {font-size:10px}
}

[data-theme="ocean"] #handoff-dialog .eyebrow {display:none}


[data-theme="ocean"] .filters input[type="checkbox"] {
  -webkit-appearance:none;appearance:none;display:inline-block;box-sizing:border-box;width:16px;height:16px;
  flex:0 0 16px;margin:0;border:1.5px solid #647e8c;border-radius:4px;background:#fff;cursor:pointer;
}
[data-theme="ocean"] .filters input[type="checkbox"]:checked {
  border-color:var(--primary);background:var(--primary) center/13px 13px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}
[data-theme="ocean"] .filters input[type="checkbox"]:focus-visible {outline:2px solid var(--primary);outline-offset:3px}
[data-theme="ocean"] :is(.city-options label,.filter-checks label) {cursor:pointer;min-height:28px}
[data-theme="ocean"] .view-toggle {border-color:var(--line);gap:2px;background:var(--surface);padding:3px}
[data-theme="ocean"] .view-toggle button {
  display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;height:34px;min-width:38px;
  padding:0 8px;border-radius:6px;color:#496576;font:500 12px/1.2 system-ui,sans-serif;
}
[data-theme="ocean"] .view-toggle svg {display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
[data-theme="ocean"] .view-toggle button[aria-pressed="true"] {background:var(--primary);color:white}
@media(max-width:800px) {
  [data-theme="ocean"] .result-toolbar {flex-wrap:wrap}
  [data-theme="ocean"] .view-tools {flex-wrap:wrap}
}
@media(max-width:620px) {
  [data-theme="ocean"] .page>.snapshot-card {width:calc(100% - 16px);margin-top:-24px}
  [data-theme="ocean"] .source-strip {align-items:center}
  [data-theme="ocean"] .source-strip p b {flex-basis:100%}
  [data-theme="ocean"] .result-toolbar {row-gap:6px}
  [data-theme="ocean"] .view-toggle button {min-height:44px}
}
@media(forced-colors:active) {
  [data-theme="ocean"] .filters input[type="checkbox"] {appearance:auto;background:none}
  [data-theme="ocean"] .view-toggle button[aria-pressed="true"] {outline:2px solid Highlight;outline-offset:-2px}
}

[data-theme="ocean"] .snapshot-top>span{background:var(--primary-soft);color:var(--primary);font:600 13px/1.5 system-ui,sans-serif}
[data-theme="ocean"] .snapshot-top>span::before{background:var(--primary)}
[data-theme="ocean"] :is(.favorite-button,[data-favorite].button)[aria-pressed=true],[data-theme="ocean"] .tag-stage{color:var(--primary);background:var(--primary-soft)}
[data-theme="ocean"] .list-tabs button[aria-selected=true]{color:var(--primary);border-color:var(--primary)}
[data-theme="ocean"] .card-date .deadline-rolling{color:var(--warn)}

[data-theme="ocean"] .page .hero{min-height:160px;padding-block:24px}
[data-theme="ocean"] .page .hero h1{margin-block:0 12px;font-size:clamp(28px,3.4vw,40px)}
@media(max-width:620px){[data-theme="ocean"] .page .hero{min-height:132px}}
