.shell:has(.appearance-editor) .edge-tab{display:none}
.appearance-editor{max-width:650px;padding:18px 0 30px}.appearance-section{padding:20px 0;border-bottom:1px solid var(--line)}.appearance-section h3{font-size:21px;margin-bottom:16px}.appearance-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.appearance-preset{padding:10px;border:1px solid var(--line);border-radius:14px;text-align:left;min-width:0;background:var(--theme-surface,#fffdf7)}.appearance-preset[aria-pressed=true]{border:2px solid var(--gold);padding:9px}.appearance-preset i{display:flex;align-items:center;justify-content:center;height:58px;border-radius:9px;border:1px solid #173d491c;margin-bottom:9px}.appearance-preset b{width:44px;height:20px;border:1px solid #c6a05b;border-radius:12px}.appearance-preset span{font-size:13px}.appearance-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.appearance-fields label,.appearance-color{display:flex;flex-direction:column;gap:9px;font-size:14px;min-width:0}.appearance-fields [hidden]{display:none}.appearance-editor select{width:100%;height:44px;border:1px solid var(--line);border-radius:10px;background:var(--theme-surface,#fffdf7);color:var(--ink);padding:0 8px;font-size:14px}.appearance-editor input[type=color]{width:100%;height:46px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--theme-surface,#fffdf7);cursor:pointer}.appearance-help{font-size:13px;line-height:1.6;color:var(--muted);margin-top:12px}.appearance-preview{margin-top:24px;background:var(--app-background,#faf7f0);padding:24px;border:1px solid var(--line);border-radius:18px;color:var(--theme-ink,#173d49)}.appearance-preview small{display:block;margin-bottom:15px}.appearance-preview h3{font-size:23px}.appearance-preview p{font-size:14px;margin:10px 0 20px}.appearance-sample-button{display:inline-block;padding:11px 18px;background:var(--theme-button,#285f67);color:var(--theme-button-ink,#fff);border:1px solid var(--gold);border-radius:24px}.appearance-actions{display:grid;gap:0}.appearance-reset{padding:18px;text-decoration:underline;text-underline-offset:4px;font-size:13px}
/* Custom colours are applied only after choosing an appearance. */
:root[data-custom-theme=true] body,:root[data-custom-theme=true] .shell{background:var(--app-background);color:var(--theme-ink)}
:root[data-custom-theme=true] :is(.header,.chat-module-header){background:var(--app-background)}
:root[data-custom-theme=true] :is(.card,.photo-card,.home-reflection,.home-people button,.energy-card,.sheet,.side-menu,.signed-out,.contact-group,.field input,.field textarea,.rail,.thread-header,.chat-compose,.appearance-preset){background:var(--theme-surface);color:var(--theme-ink)}
:root[data-custom-theme=true] :is(.mainplus,.home-shortcuts .pill,.pill.active,.action:not(.outline),.chat-send,.side-link.current,.inbox-toolbar [data-accent]){background:linear-gradient(180deg,var(--theme-button),var(--theme-button-end))!important;color:var(--theme-button-ink)}
:root[data-custom-theme=true] .home-shortcuts .pill .icon{stroke:currentColor}
:root[data-custom-theme=true] .edge-tab{color:var(--theme-button-ink)}
:root[data-custom-theme=true] :is(.dock,.inbox-search,.inbox-filter,.inbox-toolbar .round,.inbox-tabs>.round){background:var(--theme-surface);color:var(--theme-ink)}
:root[data-custom-theme=true] :is(.dock .nav,.inbox-row-copy small,.photo-card p,.home-reflection p,.home-link-cards p,.page-title p,.muted-note){color:var(--theme-muted)}
:root[data-custom-theme=true] :is(.dock .nav.active,.inbox-tabs button.chosen,.inbox-row.selected){background:var(--theme-muted-surface);color:var(--theme-ink)}
:root[data-custom-theme=true] .thread-pane{background:var(--app-background)}
:root[data-custom-theme=true] .chat-bubble:not(.mine){background:var(--theme-surface);color:var(--theme-ink)}
:root[data-custom-theme=true] .appearance-preview{background:var(--app-background)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root[data-custom-theme=true] .dock-glass .shell>.dock{background:var(--theme-glass)}}
/* A photo treatment is an explicit preference, not the default. */
:root[data-event-backdrop=photo] .participation-screen{background:#123c42;color:#fffaf1}
:root[data-event-backdrop=photo] .participation-screen .detail-bg{position:fixed;filter:saturate(1.08) contrast(1.02)}
:root[data-event-backdrop=photo] .participation-screen:after{position:fixed;background:linear-gradient(180deg,#062e36b3 0%,#062e3626 32%,#062e3600 50%,#062e3666 72%,#062e36d9 100%)}
:root[data-event-backdrop=photo] .participation-screen :is(.detail-top,.participation-total,.participation-countdown,.participation-copy){text-shadow:0 1px 6px #052b38b3}
:root[data-event-backdrop=photo] .participation-screen :is(.detail-top small,.participation-total small,.countdown-label,.countdown-units small,.countdown-date,.unscheduled-countdown small,.hint){color:#fff8e9}
:root[data-event-backdrop=photo] .participation-screen .detail-top .round{color:#fffaf1;background:#123d4c40;border:1px solid #fff7d866}
:root[data-event-backdrop=photo] .participation-screen.is-confirmed .detail-title{color:#a4e7b6}
:root[data-event-backdrop=photo] .participation-screen .cancel{background:#123d4c70;color:#fffaf1;border-color:#e4c580}
:root[data-event-backdrop=light] .participation-screen{color:#123d4c}
:root[data-event-backdrop=light] .participation-screen .detail-top small{color:#123d4c}

/* Exact original background, restored without rolling back navigation or features. */
:root[data-background-mode=radial]:not([data-custom-theme=true]) body{background:#eee9dd}
:root[data-background-mode=radial]:not([data-custom-theme=true]) .shell{background:var(--app-background)}
:root[data-background-mode=radial] .shell:not(.with-people)>.header{background:transparent}

/* The warm paper and sage-to-cream transitions from the supplied KSILO references. */
:root[data-card-style=ksilo]:not([data-custom-theme=true]) body{background:#efede6}
:root[data-card-style=ksilo]:not([data-custom-theme=true]) .shell{background:#faf7f0}
:root[data-card-style=ksilo]:not([data-custom-theme=true]) .shell:not(.with-people)>.header{background:transparent}
:root[data-card-style=ksilo] .shell :is(.energy-card,.card,.photo-card,.home-reflection),:root[data-card-style=ksilo] .appearance-ad-preview{background:linear-gradient(110deg,#e8efeb 0%,#f0f2e9 48%,#fbf7ec 100%);color:#123d4c}
:root[data-card-style=ksilo] .shell :is(.energy-card,.card,.photo-card,.home-reflection) :is(p,small,.meta){color:#52686e}
:root[data-card-style=ksilo] .hero:after{background:linear-gradient(180deg,transparent 25%,#052b3aa8 100%)}
:root[data-card-style=ksilo] .photo-card .tag{background:#ffffff91;color:#234c55}
.appearance-ad-preview{padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--theme-surface,#fffdf7);margin:0 0 18px}
.appearance-ad-preview strong{font-family:var(--serif);font-size:20px;font-weight:400}
.appearance-ad-preview p{font-size:13px;margin:8px 0 0}

/* A sticky participant header must cover the page moving beneath it. */
:root .shell.with-people>.header{background:var(--participant-panel,#faf7f0);opacity:1;-webkit-backdrop-filter:none;backdrop-filter:none}

/* Keep the photo visible in both backdrop options: no white matte layer. */
:root .participation-screen{background:#143641;color:#fffaf0}
:root .participation-screen .detail-bg{position:fixed;filter:saturate(1.12) contrast(1.03)}
:root .participation-screen:after{position:fixed;background:linear-gradient(180deg,#0b2f3d8c 0%,#0d344322 38%,#0b2f3d33 62%,#092e3dd9 100%)}
:root[data-event-backdrop=photo] .participation-screen:after{background:linear-gradient(180deg,#0b2f3da6 0%,#0d34431a 38%,#0b2f3d22 62%,#092e3de6 100%)}
:root .participation-screen :is(.detail-top,.participation-total,.participation-countdown,.participation-copy){color:#fffaf0;text-shadow:0 1px 4px #05263199}
:root .participation-screen :is(.detail-top small,.participation-total small,.countdown-label,.countdown-units small,.countdown-date,.unscheduled-countdown small,.hint){color:#fff9e9}
:root .participation-screen .participation-total{background:#103a4959;border:1px solid #ffffff26;border-radius:24px;padding:8px 14px}
:root .participation-screen .participation-countdown{background:#103a4959;border-radius:16px;padding:10px 17px;min-height:90px}
:root .participation-screen .participation-copy{background:#103a4973;border-radius:18px;padding:12px 20px}
:root .participation-screen .detail-top .round{color:#fffaf0;background:#143d4c80;border:1px solid #fff7d866}
:root .participation-screen.is-confirmed .detail-title{color:#a5f0bb}
:root .participation-screen .cancel{background:#123d4cb3;color:#fffaf1;border-color:#e4c580;margin-top:18px}
:root[data-event-backdrop] .participation-screen .detail-top small{color:#fff9e9}

/* Restore the light application canvas, including the area outside the shell. */
:root[data-background-mode]:not([data-custom-theme=true]) body{background:var(--app-background,#faf7f0)}
