:root{color-scheme:light}html[data-theme=dark]{color-scheme:dark;--paper:#17191d;--ink:#f5f5f4;--muted:#b5bac4;--line:#393d45;--surface:#22252b;--bg:#17191d;--text:#f5f5f4;--soft:#25282f}
.myra-preferences{display:flex;gap:4px;align-items:center;flex-shrink:0}.myra-preferences button{font:600 12px/1 system-ui;min-height:34px;min-width:34px;padding:8px;background:transparent;color:inherit;border:1px solid transparent;border-radius:6px;cursor:pointer}.myra-preferences button:hover,.myra-preferences button[aria-pressed=true]{border-color:currentColor}.myra-preferences button:focus-visible{outline:2px solid #7361ff;outline-offset:3px}
.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.portal-card{display:flex;flex-direction:column;gap:16px;padding:40px;border:1px solid #d9dce3;border-radius:14px;color:inherit;text-decoration:none;background:linear-gradient(125deg,#f5f2ff,#f0fbf8)}.portal-card h2{font-size:clamp(25px,3vw,38px);margin:0}.portal-card p{max-width:44ch;margin:0}.portal-card>span:last-child{margin-top:auto;font-weight:600;padding-top:20px}.portal-card:hover{border-color:#8774e9;box-shadow:0 8px 35px #56468212}.portal-hint{padding-bottom:70px}.nav .nav-portal{border-left:1px solid #bac1c6;padding-left:20px;margin-left:8px}.nav-contact{background:transparent!important;color:inherit!important}.project-logo{display:block;max-width:140px;max-height:80px;object-fit:contain;margin:0 20px 15px 0}.project-title-row{display:flex;align-items:center;gap:20px}.project-title-row h1{min-width:0}.link-share{display:flex;gap:12px;flex-wrap:wrap}.link-share input{width:100%;min-width:0}
html[data-theme=dark] body,html[data-theme=dark] .header,html[data-theme=dark] header,html[data-theme=dark] .footer{background:#17191d;color:#f5f5f4}html[data-theme=dark] .brand-mark img,html[data-theme=dark] img[src*="brand-black"]{filter:invert(1)}html[data-theme=dark] .panel,html[data-theme=dark] .voice,html[data-theme=dark] .proposal,html[data-theme=dark] .portal-card,html[data-theme=dark] dialog,html[data-theme=dark] .cloud-panel,html[data-theme=dark] .form,html[data-theme=dark] .service,html[data-theme=dark] .entry,html[data-theme=dark] .project-choice,html[data-theme=dark] .hero-note,html[data-theme=dark] .filter-bar,html[data-theme=dark] .filter-grid,html[data-theme=dark] .filters{background:#22252b;color:#f5f5f4;border-color:#444954}html[data-theme=dark] .portal-card{background:linear-gradient(125deg,#2c2442,#183a38)}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#17191d;color:#f5f5f4;border-color:#59616e}html[data-theme=dark] .muted,html[data-theme=dark] .meta,html[data-theme=dark] .lead,html[data-theme=dark] .intro,html[data-theme=dark] .hero-small,html[data-theme=dark] .footnote{color:#c0c5cf}html[data-theme=dark] .btn.secondary,html[data-theme=dark] .button.secondary,html[data-theme=dark] .tag{background:#30343d;color:#f6f6f5;border-color:#5c6370}html[data-theme=dark] .lime{color:#17191d}html[data-theme=dark] .preview,html[data-theme=dark] .preview-note{background:#282333;color:#e7ddff}
@media(max-width:760px){.portal-grid{grid-template-columns:1fr}.portal-card{padding:28px}.myra-preferences{margin-left:auto}.nav .nav-portal{margin:10px 0 0;padding:16px 0 0;border-left:0;border-top:1px solid #aeb8c0}.project-title-row{align-items:flex-start;flex-direction:column;gap:5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

html[data-theme=dark] .social-links img,html[data-theme=dark] .rockcity-member img{filter:invert(1)}
.project-heading{display:flex;align-items:center;gap:24px}.project-heading h1{min-width:0}.project-heading .project-logo{margin:0;flex-shrink:0}@media(max-width:600px){.project-heading{align-items:flex-start;flex-direction:column;gap:14px}}

/* Shared controls must retain contrast when the page ink becomes light. */
html[data-theme=dark] :is(.btn,.button):not(.secondary):not(.danger){background:#f5f5f4;color:#17191d;border-color:#f5f5f4}
html[data-theme=dark] :is(.btn,.button):not(.secondary):not(.danger):hover{background:#ded3f0;border-color:#ded3f0}
html[data-theme=dark] :is(.field,.filters label,.eyebrow,.date,.feature-note,.archive,.proposal-kind,.version,.storage-state,.cloud-note,.text-button,.project-choice span,.drop-zone small,.entry-text small,.entry details summary,.entry-empty p,.folder-row small,.proposal-description,.file-info,.media-note,.video-prompt,.comment-meta,.time-help,.save-note,.source-note,.source-note summary,.round-description,footer a,footer span){color:#c0c5cf}
html[data-theme=dark] :is(.client-strip,.segmented,.empty,.notice,.demo-banner,.round-bar,.entry-empty,.import-status,.folder-row,.picker-footer,.feedback summary){background:#25282f;color:#f5f5f4;border-color:#444954}
html[data-theme=dark] :is(.folder-row:hover,.segmented button.active,.segmented button[aria-pressed=true],.entry-controls button,.time-button,.feedback-count){background:#363b46;color:#f5f5f4;border-color:#59616e}
html[data-theme=dark] :is(.comment-author,.comment-message){color:#e4e7ec}
html[data-theme=dark] :is(.tabs button,.editor-tabs button){color:#c0c5cf}
html[data-theme=dark] :is(.tabs button.active,.editor-tabs button.active){color:#e0ceff;border-color:#c1a1e9}
html[data-theme=dark] .music-admin :is(select,input:not([type=checkbox]),textarea){background:#17191d;color:#f5f5f4;border-color:#59616e}
html[data-theme=dark] :is(.form-error,.dialog-error,.player-error){color:#ffa9b5}
