/* App chrome only. Do not target rendered public content or editor previews. */
body.app-shell .sidebar{background:var(--app-nav-background);color:var(--app-nav-text);border-color:var(--app-border)}
body.app-shell .sidebar .wordmark,body.app-shell .sidebar .account-switch,body.app-shell .sidebar .user-link{color:var(--app-nav-text)}
body.app-shell .sidebar .wordmark img{filter:brightness(0)}
body.app-shell .sidebar .account-switch{border-color:var(--app-nav-border);background:transparent}
body.app-shell .sidebar .account-symbol,body.app-shell .sidebar .user-avatar{background:var(--app-nav-hover);color:var(--app-nav-text)}
body.app-shell .sidebar .nav-link,body.app-shell .sidebar .settings-nav>a{color:var(--app-nav-muted)}
body.app-shell .sidebar .nav-link:hover,body.app-shell .sidebar .settings-nav>a:hover,body.app-shell .sidebar .account-switch:hover,body.app-shell .sidebar .user-link:hover{background:var(--app-nav-hover);color:var(--app-nav-text)}
body.app-shell .sidebar .nav-link.active,body.app-shell .sidebar .nav-link.active:hover{background:var(--app-nav-active);color:var(--app-nav-on-active)}
body.app-shell .sidebar .context-panel,body.app-shell .sidebar .user-menu-panel{background:var(--app-nav-background);color:var(--app-nav-text);border-color:var(--app-nav-border)}
body.app-shell .sidebar .context-panel a,body.app-shell .sidebar .user-menu-panel a,body.app-shell .sidebar .user-menu-panel button,body.app-shell .sidebar .user-menu-info strong{color:var(--app-nav-text)}
body.app-shell .sidebar .user-menu-panel button{background:transparent;border-color:var(--app-nav-border)}
body.app-shell .sidebar .user-menu-info{color:var(--app-nav-muted)}
body.app-shell .sidebar .context-panel a:hover,body.app-shell .sidebar .user-menu-panel a:hover,body.app-shell .sidebar .user-menu-panel button:hover{background:var(--app-nav-hover)}
body.app-shell .sidebar :is(a,button,summary):focus-visible{outline-color:var(--app-nav-on-active)}
body.app-shell .page-card,body.app-shell .project-card,body.account-shell .account-card,body.app-shell .card,body.app-shell .library-activity{background:var(--app-tile)}
body.app-shell .page-card:hover,body.app-shell .project-card:hover,body.account-shell .account-card:hover{background:var(--app-tile-hover)}
body.app-shell .media-grid .media-card{background:var(--app-tile)}
body.app-shell .global-header,body.account-shell .global-header{background:var(--app-background)}
/* Medium-grey buttons use white text; links remain dark grey. */
body.app-shell :is(.media-filters button[aria-pressed=true],.activity-icon){color:var(--app-link)}

body.app-shell :is(.library-danger-confirm,.page-delete-confirm,.project-danger button){--app-on-accent:#ffffff;color:#ffffff}
body.app-shell.editor-shell dialog .danger-confirm:hover:not(:disabled){--app-on-accent:#ffffff;color:#ffffff}

/* Smaller, quieter primary-navigation icons; labels stay black. */
body.app-shell .sidebar .nav-link>svg{width:18px;height:18px;flex-shrink:0;color:#888888}
body.app-shell .sidebar .nav-link.active>svg,body.app-shell .sidebar .nav-link:hover>svg{color:#666666}

/* Quiet administrative chrome: content typography and public previews stay separate. */
body.app-shell .sidebar .nav-link{font-size:13px;line-height:1.5;font-weight:400;gap:10px;padding:10px 12px;margin-bottom:3px;border-radius:7px;min-height:40px;box-sizing:border-box}
body.app-shell .sidebar .nav-link.active{font-weight:500}
body.app-shell .sidebar .nav-link>svg{width:16px;height:16px;color:#909090}
body.app-shell .sidebar .nav-link.active>svg,body.app-shell .sidebar .nav-link:hover>svg{color:#707070}
body.app-shell .sidebar .account-switch{font-size:13px;line-height:1.5;font-weight:400;gap:9px;min-height:44px;padding:9px 10px;border-color:transparent;border-radius:7px}
body.app-shell .sidebar .project-switch{border-style:solid}
body.app-shell .sidebar .context-menu{margin-bottom:8px}
body.app-shell .sidebar .account-symbol{width:24px;height:24px;font-size:12px;background:#f5f5f5;color:#686868}
body.app-shell .sidebar .account-switch>svg{width:15px;height:15px;color:#8a8a8a}
body.app-shell .sidebar .user-avatar{width:28px;height:28px;font-size:12px;font-weight:400;background:#f5f5f5;color:#686868}
body.app-shell .sidebar .user-link{font-size:12px;font-weight:400;color:#686868}
body.app-shell .sidebar .context-panel a,body.app-shell .sidebar .user-menu-panel a,body.app-shell .sidebar .user-menu-panel button{font-size:13px;font-weight:400}
body.app-shell .sidebar .context-panel,body.app-shell .sidebar .user-menu-panel{border-color:var(--app-border)}
body.app-shell :is(.pages-compact-header .button,.editor-shell .compact-editor-header #add-images,.page-detail-header>button,.platform-create-action button,.account-create-buttons button,.project-actions button){font-size:13px;font-weight:500;background:var(--app-control-background);color:var(--app-control-text);border:1px solid var(--app-border);border-radius:7px;box-shadow:none}
body.app-shell :is(.pages-compact-header .button,.editor-shell .compact-editor-header #add-images,.page-detail-header>button,.platform-create-action button,.account-create-buttons button,.project-actions button):hover{background:var(--app-control-hover)}
body.app-shell .editor-toolbar-actions #add-images{font-size:13px;font-weight:500;background:var(--app-control-background);color:var(--app-control-text);border:1px solid var(--app-border)}
body.app-shell .editor-toolbar-actions #add-images:hover{background:var(--app-control-hover)}
body.app-shell .editor-toolbar-actions .editor-action-icon{color:#707070;border-color:var(--app-border);background:#ffffff}
body.app-shell .editor-toolbar-actions .editor-action-icon:hover{background:#f5f5f5}
body.app-shell .editor-toolbar-actions .editor-action-icon svg{width:18px;height:18px}
body.app-shell :is(.compact-page-label,.editor-breadcrumb,.account-breadcrumb,.media-breadcrumb,.page-detail-breadcrumb,.content-breadcrumb){font-size:13px;font-weight:400;color:#686868}
body.app-shell .page-card:hover{box-shadow:none;transform:none}
/* Keep destructive confirmations distinguishable by their wording, not a heavy fill. */
body.app-shell :is(.library-danger-confirm,.page-delete-confirm,.project-danger button){background:#f5f5f5;border-color:var(--app-border);color:#484848}
body.app-shell :is(.library-danger-confirm,.page-delete-confirm,.project-danger button):hover{background:#ebebeb}
@media(max-width:700px){body.app-shell .sidebar .nav-link{min-height:44px}body.app-shell .sidebar .account-switch{min-height:44px}}

/* Text wordmark above the administration controls. */
body.app-shell .sidebar>.wordmark{display:block;text-align:left;font-size:20px;font-weight:700;line-height:1.35;letter-spacing:0;margin:0 12px 28px;color:var(--app-nav-text)}
@media(max-width:700px){body.app-shell .sidebar>.wordmark{font-size:20px;margin:0 10px 24px}}
