/* Shared Apps workspace. Loaded after each tool's functional styles.
   Deliberately does not change editor geometry, canvas sizes or hidden states. */
:root[data-app-theme="graphite"]{
  color-scheme:light;
  --paper:#f4f5f7;--paper-2:#e9ecf0;--bg:#f4f5f7;--bg2:#e9ecf0;
  --sheet:#fff;--card:#fff;--surface:#fff;--surface-2:#eef1f5;
  --ink:#14171b;--ink-2:#535d69;--ink-3:#687381;--muted:#535d69;
  --line:#d6dae0;--rule:#d6dae0;--accent:#245ee8;--accent-ink:#fff;
  --accent-soft:#e4ecff;--blue:#245ee8;--blue-soft:#e4ecff;--keep:#245ee8;
  --signal:var(--accent);--signal-ink:var(--accent-ink);--signal-soft:var(--accent-soft);--line-strong:#bcc5d1;
  --stage:#191e25;--stage-2:#242a33;--radius:14px;
  --font:Geist,system-ui,-apple-system,"Segoe UI",sans-serif;
  --sans:var(--font);--body:var(--font);--display:var(--font);
  --shadow:0 2px 5px #16233304,0 18px 48px -32px #16233338;
}
:root[data-app-theme="graphite"][data-theme="dark"]{
  color-scheme:dark;--paper:#151a21;--bg:#151a21;--bg2:#202731;--paper-2:#202731;
  --sheet:#202731;--card:#202731;--surface:#202731;--surface-2:#293340;
  --ink:#f0f3fa;--ink-2:#c2cbd7;--ink-3:#a2afc0;--muted:#c2cbd7;
  --line:#3b4655;--rule:#3b4655;--accent:#8aaeff;--accent-ink:#101c35;--accent-soft:#26385b;
}
html[data-app-theme="graphite"] body{background:var(--paper);color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased}
html[data-app-theme="graphite"] :focus-visible{outline:3px solid var(--accent);outline-offset:4px}
html[data-app-theme="graphite"] main{padding-bottom:28px}
.apps-workspace-nav{position:relative;z-index:40;display:flex;align-items:center;gap:24px;max-width:1240px;margin:0 auto;padding:20px 24px;border-bottom:1px solid var(--line);font:600 13px/1.4 var(--font);color:var(--muted)}
.apps-workspace-nav a{text-decoration:none;color:inherit}
.apps-workspace-brand{color:var(--ink)!important;font-weight:750;white-space:nowrap}
.apps-workspace-sections{display:flex;gap:20px;flex:1}
.apps-workspace-sections a:hover,.apps-workspace-sections a[aria-current]{color:var(--accent)}
.apps-workspace-switcher{position:relative;margin-left:auto}
.apps-workspace-switcher summary{display:flex;align-items:center;gap:22px;padding:9px 13px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);cursor:pointer;list-style:none}
.apps-workspace-switcher summary::-webkit-details-marker{display:none}
.apps-workspace-menu{position:absolute;right:0;top:calc(100% + 10px);width:270px;max-height:65svh;overflow:auto;display:grid;gap:4px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 18px 48px #14203426}
.apps-workspace-menu a{display:grid;gap:3px;padding:10px 12px;border-radius:6px;color:var(--ink)}
.apps-workspace-menu a:hover{background:var(--accent-soft)}
.apps-workspace-menu small{font-weight:400;color:var(--muted)}
/* Directory pages: consistent photographic shelves rather than text over art. */
html[data-app-theme="graphite"] .media-shell{max-width:1240px;padding-inline:24px}
html[data-app-theme="graphite"] .media-hero{min-height:340px;padding:56px 42px;background:#e3e5e8;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);color:#14171b}
html[data-app-theme="graphite"] .media-hero--art:before{background:linear-gradient(90deg,#e3e5e8 0%,#e3e5e8f5 42%,#e3e5e860 66%,transparent 100%)}
html[data-app-theme="graphite"] .media-hero-art{left:auto;width:60%;object-position:center}
html[data-app-theme="graphite"] .media-hero h1{max-width:650px;font:800 clamp(44px,6.6vw,76px)/1.02 var(--font);letter-spacing:-.055em}
html[data-app-theme="graphite"] .media-hero h1 em{color:#245ee8}
html[data-app-theme="graphite"] .media-hero>p:last-child{max-width:52ch;color:#424d5b;font-size:17px;line-height:1.65}
html[data-app-theme="graphite"] .media-kicker{color:var(--accent);font-size:11px;letter-spacing:.13em}
html[data-app-theme="graphite"] :is(.media-collections,.filter-grid){grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:32px}
html[data-app-theme="graphite"] :is(.media-collection,.filter-card){padding:0 0 26px;min-height:0;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:0 2px 4px #16233304;transition:transform .2s,box-shadow .2s}
html[data-app-theme="graphite"] :is(.media-collection,.filter-card):hover{transform:translateY(-3px);box-shadow:var(--shadow)}
html[data-app-theme="graphite"] :is(.media-collection,.filter-card):before,
html[data-app-theme="graphite"] :is(.media-collection,.filter-card):after{display:none}
html[data-app-theme="graphite"] :is(.media-collection,.filter-card)>.folder-art{position:relative;inset:auto;z-index:0;display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-bottom:1px solid var(--line)}
html[data-app-theme="graphite"] :is(.collection-icon,.filter-reel){display:none}
html[data-app-theme="graphite"] :is(.media-collection,.filter-card)>:not(.folder-art){margin-inline:24px}
html[data-app-theme="graphite"] :is(.media-collection .media-kicker,.filter-number){margin-top:22px;color:var(--accent);font-size:10px;letter-spacing:.12em}
html[data-app-theme="graphite"] :is(.media-collection h2,.filter-card h2){font:750 clamp(26px,3vw,34px)/1.12 var(--font);letter-spacing:-.035em;margin-block:10px}
html[data-app-theme="graphite"] :is(.media-collection p:not(.media-kicker),.filter-card p){color:var(--muted);font-size:15px;line-height:1.65;margin-top:0}
html[data-app-theme="graphite"] :is(.media-collection b,.filter-card b){display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px;color:var(--accent);font-size:14px}
html[data-app-theme="graphite"] :is(.media-collection i,.filter-card i){color:var(--accent)}
html[data-app-theme="graphite"] :is(.directory-copy,.media-privacy){border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:14px;box-shadow:none}
/* Editors keep their functional layout and controls, within the same surface. */
html[data-app-theme="graphite"] .page-title{padding:30px 0 26px;border-bottom:1px solid var(--line);gap:20px}
html[data-app-theme="graphite"] .page-title h1{font:800 clamp(32px,4.5vw,52px)/1.08 var(--font);text-transform:none;letter-spacing:-.045em}
html[data-app-theme="graphite"] .page-title p{max-width:65ch;font:400 16px/1.6 var(--font);color:var(--muted)}
html[data-app-theme="graphite"] .page-title p.media-kicker{font:750 11px/1.4 var(--font);letter-spacing:.13em;color:var(--accent);margin-bottom:12px}
html[data-app-theme="graphite"] :is(.privacy-pill,.proofs li,.trust-row span){background:var(--surface);border-color:var(--line);color:var(--muted)}
html[data-app-theme="graphite"] :is(.filter-intro,.panel,.converter,.console){border-color:var(--line);border-radius:14px;box-shadow:var(--shadow)}
html[data-app-theme="graphite"] .filter-intro{background:var(--surface)}
html[data-app-theme="graphite"] :is(.drop,.dropzone,.dz){border-color:#b6c2d3;background:linear-gradient(145deg,var(--surface),var(--surface-2));border-radius:16px}
html[data-app-theme="graphite"] :is(.drop,.dropzone,.dz):hover{border-color:var(--accent)}
html[data-app-theme="graphite"] :is(.drop,.dropzone,.dz) h2{font:750 clamp(23px,3vw,30px)/1.2 var(--font);letter-spacing:-.035em;color:var(--ink)}
html[data-app-theme="graphite"] .drop svg [fill="#b4532a"]{fill:var(--accent)}
html[data-app-theme="graphite"] :is(.btn.primary,.hero-cta){background:var(--accent);border-color:var(--accent);color:var(--accent-ink);border-radius:8px}
html[data-app-theme="graphite"] :is(.btn,button,select,input){font-family:var(--font)}
html[data-app-theme="graphite"] :is(.hero-kicker,.bench-heading .eyebrow){color:var(--accent)}
html[data-app-theme="graphite"] :is(.bench-heading h1,.hero h1){font-family:var(--font);letter-spacing:-.05em}
html[data-app-theme="graphite"] .veil-hero{background:#e3e5e8;color:#14171b;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
html[data-app-theme="graphite"] .veil-hero h1 em{color:#245ee8}
html[data-app-theme="graphite"] :is(.veil-hero__lead,.hero-private,.hero-link){color:#414d5d}
.apps-related-desk{max-width:1240px;margin:48px auto 64px;padding:0 24px;font-family:var(--font)}
.apps-related-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}
.apps-related-heading p{margin:0 0 8px;color:var(--accent);font-size:10px;font-weight:750;letter-spacing:.14em}
.apps-related-heading h2{margin:0;color:var(--ink);font:750 clamp(26px,4vw,36px)/1.1 var(--font);letter-spacing:-.035em}
.apps-related-heading>a{color:var(--accent);font-size:13px;font-weight:650;text-decoration:none}
.apps-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.apps-related-grid>a{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-decoration:none}
.apps-related-grid img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.apps-related-grid span{display:grid;gap:5px;padding:18px 20px}
.apps-related-grid strong{font-size:17px;font-weight:700}
.apps-related-grid small{font-size:13px;color:var(--muted)}
@media(max-width:950px){html[data-app-theme="graphite"] :is(.media-collections,.filter-grid){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  .apps-workspace-nav{gap:12px;flex-wrap:wrap;padding:15px 16px}
  .apps-workspace-sections{order:3;flex-basis:100%;gap:20px;font-size:12px}
  html[data-app-theme="graphite"] .media-shell{padding-inline:16px}
  html[data-app-theme="graphite"] .media-hero{padding:34px 24px 200px;min-height:0}
  html[data-app-theme="graphite"] .media-hero-art{top:auto;bottom:0;width:100%;height:230px}
  html[data-app-theme="graphite"] .media-hero--art:before{background:linear-gradient(#e3e5e8 0%,#e3e5e8 48%,#e3e5e800 100%)}
  html[data-app-theme="graphite"] :is(.media-collections,.filter-grid),.apps-related-grid{grid-template-columns:1fr}
  .apps-related-desk{padding-inline:16px;margin-block:32px 44px}
  .apps-related-heading{align-items:start;flex-direction:column;gap:12px}
}
@media(prefers-reduced-motion:reduce){html[data-app-theme="graphite"] :is(.media-collection,.filter-card){transition:none;transform:none}}
