/* Shared staging theme for TIAG app pages. No layout or access behavior changes.
   Screen-only so printable resources retain their own paper styling. */
@media screen {
  :root:has(body.tiag-app-brand), body.tiag-app-brand,
  body.tiag-app-brand:has(#dash:not([hidden])) {
    color-scheme: dark;
    --bg:#0c0d0d!important; --bg-raise:#151616!important; --panel:#151616!important;
    --text:#ededeb!important; --ink:#ededeb!important; --muted:#aeb4ae!important;
    --soft:#aeb4ae!important; --ink-soft:#aeb4ae!important;
    --gold:#d9ac53!important; --gold-b:#bd913d!important;
    --green:#d9ac53!important; --green-a:#e0b865!important;
    --g900:#ededeb!important; --g800:#e0b865!important; --g700:#d9ac53!important;
    --cream:#0c0d0d!important; --cream2:#101111!important; --cream-2:#101111!important;
    --paper:#151616!important; --paper2:#1b1c1a!important; --paper-2:#1b1c1a!important;
    --line:#30312e!important; --line2:#45463f!important;
    --line-2:#45463f!important; --line-strong:#555143!important;
    --gp-bg:#0c0d0d!important; --gp-panel:#151616!important; --gp-ink:#ededeb!important;
    --gp-muted:#aeb4ae!important; --gp-gold:#d9ac53!important; --gp-green:#d9ac53!important; --gp-line:#30312e!important;
    --sans:Arial,Helvetica,sans-serif!important;
  }
  body.tiag-app-brand {
    background:#0c0d0d!important; color:#ededeb!important;
    font-family:Arial,Helvetica,sans-serif!important;
  }
  body.tiag-app-brand:has(#dash:not([hidden])) {background:#0c0d0d!important;color:#ededeb!important}
  .tiag-app-brand #dash a {color:#e0b865}
  .tiag-app-brand .tn-sky,.tiag-app-brand .w-rays,.tiag-app-brand .w-glow,
  .tiag-app-brand .fly {display:none!important}
  body.tiag-app-brand::after {content:none!important}
  .tiag-app-brand h1 {
    color:#ededeb!important; font-family:Georgia,serif!important;
    font-weight:400; text-transform:none!important; letter-spacing:-.025em!important;
  }
  .tiag-app-brand :is(h2,h3,h4,.ttl,.tt) {color:#ededeb}
  .tiag-app-brand :is(.kicker,.kick,.eyebrow,.lab,.gp-kicker,.ftype) {color:#d9ac53!important}
  .tiag-app-brand a {color:#e0b865}
  .tiag-app-brand a:hover {text-decoration:underline;text-underline-offset:3px}
  .tiag-app-brand :is(.tiag-nav,.tn-sheet) {
    --tn-bg:#101111!important; --tn-bar:#101111!important;
    --tn-ink:#ededeb!important; --tn-text:#ededeb!important; --tn-soft:#aeb4ae!important;
    --tn-line:#30312e!important; --tn-line2:#45463f!important;
    --tn-paper:#151616!important; --tn-hover:#252620!important;
    --tn-accent:#d9ac53!important; --tn-btn:#252219!important; --tn-btnh:#353022!important;
    background:#101111!important; border-color:#30312e!important; color:#ededeb!important;
  }
  .tiag-app-brand .tiag-nav button {background:#1b1c1a!important;border-color:#45463f!important;color:#ededeb!important}
  .tiag-app-brand :is(.card,.panel,.tier,.p4,.lc,.w,.note,.band,.cc-card,.cc-msg,.tgcard,
  .drl-lock,.resource,.gp-panel,.gp-toolbar,.gp-card,.gp-summary,.gp-bed-card,.continue) {
    background:#151616!important; border-color:#30312e!important;
    color:#ededeb; box-shadow:none; backdrop-filter:none;
  }
  .tiag-app-brand :is(.lc b,.tier .pr,.tier ul,.w b,.cc-card h3,.tgcard h3) {color:#ededeb!important}
  .tiag-app-brand :is(.lc i,.badge,.pill,.badge.live) {
    background:#252219!important; color:#e0b865!important;border-color:#555143!important;
  }
  .tiag-app-brand :is(.btn,.go,.button,.btn--dark,.land-signin,.w-tour) {
    background:#d9ac53!important; color:#17140d!important;
    border:1px solid #d9ac53!important; box-shadow:none!important;
  }
  .tiag-app-brand :is(.btn.ghost,.btn.btn-ghost,.btn--ghost,.btn.rust,.w-skip,.land-join) {
    background:transparent!important;color:#e0b865!important;border:1px solid #555143!important;
  }
  .tiag-app-brand :is(.btn,.button,.go):hover {filter:brightness(1.08);text-decoration:none}
  .tiag-app-brand :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),textarea,select) {
    background:#0c0d0d!important;color:#ededeb!important;border-color:#45463f!important;box-shadow:none!important;
  }
  .tiag-app-brand :is(input,textarea)::placeholder {color:#939b92!important;opacity:1}
  .tiag-app-brand :is(input[type=checkbox],input[type=radio]) {accent-color:#d9ac53}
  .tiag-app-brand :is(a,button,input,textarea,select,summary):focus-visible {
    outline:2px solid #d9ac53!important;outline-offset:3px;
  }
  .tiag-app-brand :is(.cc-tabs button,.code-tools button,.cats-row .card.cat) {
    background:#1b1c1a!important;color:#bfc3ba!important;border-color:#45463f!important;
  }
  .tiag-app-brand :is(.cc-tabs button.on,.cats-row .card.cat.on,.cats-row .card.cat[aria-pressed=true]) {
    color:#e0b865!important;border-color:#d9ac53!important;background:#252219!important;
  }
  .tiag-app-brand :is(.workspace-sidebar,.topbar) {background:#101111;border-color:#30312e}
  .tiag-app-brand .workspace-sidebar a {color:#d6dad2}
  .tiag-app-brand .workspace-sidebar .selected {color:#e0b865;background:#252219}
  .tiag-app-brand .resource {background:transparent!important}
  .tiag-app-brand .search {background:#151616;border-color:#45463f}
  .tiag-app-brand .search input {background:transparent!important}
  .tiag-app-brand .tier.best {border-color:#d9ac53!important}
  .tiag-app-brand .tier li::before {border-color:#d9ac53}
  .tiag-app-brand #dash :is(h1,h2,h3,.photo-copy strong,.fgrid label) {color:#ededeb!important}
  .tiag-app-brand #dash :is(.account-intro,.hint,.photo-copy small,.fgrid label small,#who) {color:#aeb4ae!important}
  .tiag-app-brand #dash .panel {border-radius:12px}
  .tiag-app-brand #dash .account-heading {border-color:#30312e}
  .tiag-app-brand #dash .av {background:#353022;color:#e0b865;box-shadow:none}
  .tiag-app-brand #dash .card {background:#1b1c1a!important}
  .tiag-app-brand #dash .umsg {color:#c7cbbf}
  .tiag-app-brand #dash .umsg.err {color:#f2a7a0}
  .tiag-app-brand #dash .sw {background:#45463f}
  .tiag-app-brand #dash .sw:checked {background:#d9ac53}
  body.tiag-app-brand footer {background:#101111!important;color:#aeb4ae!important;border-color:#30312e!important}
  body.tiag-app-brand footer a {color:#e0b865!important}
  .tiag-app-brand .resource .thumb {background:#1b1c1a!important}
  .tiag-app-brand .resource .thumb .glyph {color:#d9ac53!important;text-shadow:none}
  .tiag-app-brand .resource::before {background:#d9ac53}
  .tiag-app-brand .cat-group>h3.cat-head {border-color:#d9ac53}
  .tiag-app-brand .cat.active {border-color:#d9ac53!important;box-shadow:inset 0 0 0 1px #d9ac53!important}
  .tiag-app-brand .gp-preview svg {background:#101111}
  .tiag-app-brand :is(.gp-panel,.gp-toolbar) button {background:#d9ac53;color:#17140d;border-color:#d9ac53}
  .tiag-app-brand :is(.gp-panel,.gp-toolbar) button.gp-danger {background:transparent;color:#f2a7a0;border-color:#885650}
  /* Choice cards and secondary commands need their own hierarchy, not gold fills. */
  .tiag-app-brand .gp-templates button {
    background:#24231b;color:#f0efea;border:1px solid #75613b;
    border-top:3px solid #d9ac53;box-shadow:none;
  }
  .tiag-app-brand .gp-templates button small {color:#c5c7bd}
  .tiag-app-brand .gp-templates button:hover {background:#302b1e;border-color:#d9ac53}
  .tiag-app-brand .gp-templates button:nth-child(2) {background:#1e2520;border-top-color:#aabd86}
  .tiag-app-brand .gp-templates button:nth-child(3) {background:#29221d;border-top-color:#d6a07c}
  .tiag-app-brand .gp-actions button,.tiag-app-brand #gp-copy {
    background:#20221f;color:#ededeb;border-color:#676b5f;
  }
  .tiag-app-brand .gp-actions button:hover,.tiag-app-brand #gp-copy:hover {background:#2d3029}
  .tiag-app-brand .gp-bed {background:#191d18;border-color:#434b3b}
  .tiag-app-brand .gp-stat {background:#1b1d19;border-color:#45493f}
  .tiag-app-brand :is(.gp-hint,.gp-storage,.gp-panel label,.gp-toolbar label) {color:#bdc3b8}
  .tiag-app-brand .btn small {color:#302719!important}
  .tiag-app-brand .btn.ghost small {color:#c5c7bd!important}
  /* Category color complements the logo palette; text remains neutral and readable. */
  .tiag-app-brand .cat-group[style*="5da45c"] {--category-accent:#b4c894}
  .tiag-app-brand .cat-group[style*="3c9ba0"] {--category-accent:#9bcac9}
  .tiag-app-brand .cat-group[style*="b15c38"] {--category-accent:#e1aa88}
  .tiag-app-brand .cat-group[style*="c9a24b"] {--category-accent:#e0bc75}
  .tiag-app-brand .cat-group>h3.cat-head {border-color:var(--category-accent,#d9ac53)}
  .tiag-app-brand .cat-group .resource::before {background:var(--category-accent,#d9ac53)}
  .tiag-app-brand .cat-group .resource .thumb .glyph {color:var(--category-accent,#d9ac53)!important}
  /* Sparse, composited decoration. Never captures clicks or focus. */
  .tiag-brand-fireflies {position:fixed;inset:0;z-index:1001;pointer-events:none!important;overflow:hidden}
  .tiag-brand-fireflies i {
    position:absolute;width:3px;height:3px;border-radius:50%;background:#e5b65c;
    box-shadow:0 0 7px 1px #d9ac5355;opacity:.45;
    animation:tiag-app-firefly 12s ease-in-out infinite alternate;pointer-events:none!important;
  }
  .tiag-brand-fireflies i:nth-child(1){left:7%;top:28%;animation-delay:-2s}
  .tiag-brand-fireflies i:nth-child(2){left:91%;top:34%;animation-delay:-7s}
  .tiag-brand-fireflies i:nth-child(3){left:16%;top:82%;animation-delay:-4s}
  .tiag-brand-fireflies i:nth-child(4){left:86%;top:78%;animation-delay:-9s}
  .tiag-brand-fireflies i:nth-child(5){left:49%;top:16%;animation-delay:-6s}
  .tiag-brand-fireflies i:nth-child(6){left:67%;top:91%;animation-delay:-1s}
  @keyframes tiag-app-firefly {from{transform:translate(0,0);opacity:.25}to{transform:translate(10px,-18px);opacity:.65}}
  html[data-tiag-motion=reduce] .tiag-brand-fireflies i {animation:none!important}
}
@media (prefers-reduced-motion:reduce) {.tiag-brand-fireflies i {animation:none!important}}
@media print {.tiag-brand-fireflies {display:none!important}}
