body:has(.dashboard:not([hidden])) .commons{max-width:1200px}
.dashboard h3{font-size:1.55em;margin:24px 0 12px}.dashboard h4{font-size:1.2em;margin:16px 0 10px}.dashboard p{line-height:1.65}
.dashboard-nav,.dashboard-actions{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.dashboard-nav{border-bottom:1px solid var(--line);padding-bottom:20px}.dashboard-nav button[aria-current="page"]{background:#74313e;border-color:#dc92bd}
.dashboard-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px}.dashboard-cards article{padding:22px;border:1px solid var(--line);background:#17121f}.dashboard-cards p{color:var(--muted);margin:0}.feature-status{font-size:.8em;color:#dfbad9;border:1px solid #684363;border-radius:20px;padding:4px 10px;display:inline-block}
.dashboard select{font:inherit;background:#17131b;color:var(--text);padding:12px;border:1px solid var(--line);margin:10px 0;width:100%;max-width:320px}.dashboard .dashboard-check{display:flex;align-items:center;gap:12px;margin:16px 0 24px}.dashboard-check input{width:20px;height:20px;margin:0;accent-color:#d98b95}.dashboard button{font:inherit}.dashboard :is(button,select,input):focus-visible{outline:2px solid #edb6d5;outline-offset:3px}.dashboard [tabindex="-1"]:focus{outline:none}
body.ic-large .commons{font-size:19px}body.ic-larger .commons{font-size:22px}body.ic-reduce-motion *,body.ic-reduce-motion *::before,body.ic-reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;text-shadow:none!important;box-shadow:none!important}
@media(max-width:800px){.dashboard-cards{grid-template-columns:1fr}.dashboard{padding:20px}.dashboard-nav button{flex:1 1 auto}}
.dashboard-nav details{margin:0;padding:0;border:0;align-self:center}.dashboard-nav summary{padding:11px 20px;border:1px solid var(--line);background:#342330}.settings-options{display:flex;flex-wrap:wrap;gap:8px;padding-top:10px}.dashboard-cards article{display:flex;flex-direction:column;align-items:flex-start}.dashboard-cards article p{flex:1;margin-bottom:20px}.dashboard-cards article button{width:100%}
.alter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:24px 0}.alter-card{padding:20px;border:1px solid var(--line);background:#17121f;overflow-wrap:anywhere}.alter-card h4{margin:12px 0}.alter-card p{margin:8px 0}.alter-avatar{position:relative;width:80px;height:80px;border:4px solid;border-radius:50%;display:grid;place-items:center;overflow:hidden;flex-shrink:0}.alter-avatar span{color:white;background:#17121fcc;border-radius:20px;padding:4px;font-size:22px}.alter-avatar img{position:absolute;width:100%;height:100%;object-fit:cover}.alter-editor{border-top:1px solid var(--line);padding:24px 0;margin:24px 0}.alter-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.alter-fields input[type=color]{padding:3px;width:80px;height:46px}.alter-connection{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border-bottom:1px solid var(--line);padding:12px 0}.alter-connection span{flex:1 1 200px;overflow-wrap:anywhere}.dashboard textarea{font:inherit;resize:vertical}.dashboard input[type=file]{max-width:100%}#ic-system-status{color:#dfbad9}.alter-editor select{max-width:100%}@media(max-width:600px){.alter-fields{grid-template-columns:1fr}}
.progress-row{border-bottom:1px solid var(--line);padding:16px 0}.progress-row h4{margin:0 0 8px}.progress-row p{margin:8px 0}.ic-phone-nav{display:none}.dashboard li{margin:12px 0;line-height:1.5}.dashboard input,.dashboard select,.dashboard textarea{min-width:0;box-sizing:border-box}.dashboard button{min-height:44px}.dashboard section{min-width:0}
body:has(.dashboard:not([hidden])) .commons>h1,body:has(.dashboard:not([hidden])) .commons>.eyebrow,body:has(.dashboard:not([hidden])) .commons>.subtitle,body:has(.dashboard:not([hidden])) .storage-note{display:none}body:has(.dashboard:not([hidden])) .commons{padding-top:16px}
@media(max-width:600px){body:has(.dashboard:not([hidden])){padding-bottom:90px}.ic-phone-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:6px 4px max(6px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}.ic-phone-nav button{padding:10px 2px;font-size:.8rem;min-height:48px;overflow-wrap:anywhere}.alter-grid{grid-template-columns:minmax(0,1fr)}}

.ic-map-canvas{position:relative;width:100%;border:1px solid var(--line);background:var(--surface);border-radius:12px}.ic-map-canvas svg{position:absolute;width:100%;height:100%;inset:0;pointer-events:none}.ic-map-canvas line{stroke:var(--text);stroke-width:2}.ic-map-tension{stroke-dasharray:8 5}.ic-map-neutral{stroke-dasharray:2 5}.ic-map-node{position:absolute;transform:translate(-50%,-50%);width:42%;min-height:60px;max-height:120px;overflow:auto;overflow-wrap:anywhere;background:var(--surface);color:var(--text);border:2px solid var(--line);padding:8px}.dashboard button[aria-pressed=true]{outline:2px solid var(--text);outline-offset:2px}

.ic-presence-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--surface);overflow-wrap:anywhere}.ic-presence-card h5{font-size:1.1rem;margin:12px 0}.ic-presence-card img{width:64px;height:64px;object-fit:cover;border-radius:50%}.ic-presence-actions{display:flex;flex-wrap:wrap;gap:8px}.ic-presence-actions button{flex:1 1 110px;padding:10px}.ic-preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}#ic-dashboard-handoff{padding:16px;border:1px solid var(--line);background:var(--surface)}

.ic-patterns{margin:24px 0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.ic-patterns h5{font-size:1.05rem}.ic-pattern-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.ic-pattern-metrics>div{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:10px;padding:16px;background:var(--surface)}.ic-pattern-metrics strong{font-size:1.6rem}.ic-pattern-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:10px}.ic-pattern-day{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;min-width:0;background:var(--surface);color:var(--text)}.ic-pattern-bar{height:4px;background:var(--text);display:block}.ic-patterns input[type=date]{width:100%;max-width:220px;min-height:44px}.ic-patterns ol{padding-left:24px}.ic-patterns li{padding:12px;border-bottom:1px solid var(--line)}.ic-patterns li p{margin:6px 0}.ic-patterns time{font-weight:600}

/* Scoped to Inner Commons; portfolio and campaign styles remain independent. */
body.ic-themed{background:var(--bg);color:var(--text)}
.ic-themed header,.ic-themed footer{background:var(--surface);border-color:var(--line);box-shadow:none}
.ic-themed :is(h1,h2,h3,h4,h5,.wordmark){color:var(--text);text-shadow:none}
.ic-themed :is(.wordmark span,.eyebrow,#ic-status,#ic-system-status){color:var(--accent);text-shadow:none}
.ic-themed nav a:hover,.ic-themed footer a:hover{color:var(--accent);text-shadow:none}
.ic-themed .commons :is(button,select,input,textarea),.ic-themed .dashboard-nav summary{background:var(--raised);color:var(--text);border-color:var(--line);box-shadow:none}
.ic-themed .commons :is(button:hover,summary:hover){border-color:var(--accent)}
.ic-themed .commons :is(.primary,.primary:hover),.ic-themed .dashboard-nav button[aria-current=page]{background:var(--raised);color:var(--text);border-color:var(--accent);box-shadow:none}
.ic-themed article,.ic-themed article:hover{background:var(--surface)!important;border-color:var(--line)!important;box-shadow:none}
.ic-themed .feature-status{color:var(--text);border-color:var(--line)}
.ic-themed .commons :is(input,textarea)::placeholder{color:var(--muted)}
.ic-themed :is(button,input,textarea,select,a,summary):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ic-themed .commons button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}
.ic-themed .alter-avatar span{color:var(--text);background:var(--surface)}
.ic-themed input[type=checkbox]{accent-color:var(--accent)}
.ic-themed ::selection{background:var(--accent);color:var(--bg)}
.ic-theme-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:24px 0}
.ic-theme-choice{display:flex;flex-direction:column;gap:12px;text-align:left;border-radius:12px;min-height:100px}
.ic-theme-swatches{display:flex;width:100%;height:28px;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.ic-theme-swatches span{flex:1}
@media(max-width:420px){.ic-theme-list{grid-template-columns:minmax(0,1fr)}}

#ic-grounding-form label{display:grid;gap:.4rem;margin-block:1rem}#ic-grounding-form input,#ic-grounding-form select,#ic-grounding-form textarea{width:100%;box-sizing:border-box}#ic-grounding-form fieldset{min-width:0;border:1px solid var(--line);border-radius:12px;padding:1rem}.ic-grounding-card{border:1px solid var(--line);border-radius:12px;padding:1rem;margin-block:1rem;overflow-wrap:anywhere}.ic-grounding-card summary,.ic-grounding-card a{min-height:44px;display:block;padding:.6rem;box-sizing:border-box}.ic-grounding-card summary{cursor:pointer}.ic-grounding-card button{margin:.25rem;min-height:44px}#ic-grounding-list h5{font-size:1.1rem;margin-block:.5rem}

#ic-timer-form fieldset{min-width:0;border:1px solid var(--line);border-radius:12px;padding:1rem}#ic-timer-form label{display:block;margin-block:1rem}#ic-timer-form input:not([type=checkbox]){display:block;width:100%;box-sizing:border-box}.ic-timer-duration{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.ic-timer-card{border:1px solid var(--line);border-radius:12px;padding:1rem;margin-block:1rem;overflow-wrap:anywhere}.ic-timer-clock{font-size:clamp(1.5rem,5vw,2.5rem);font-variant-numeric:tabular-nums}.ic-timer-card button{margin:.25rem;min-height:44px}#ic-timer-banner{padding:1rem;border:1px solid var(--line);border-radius:12px;margin-block:1rem}

#ic-timer-form [hidden]{display:none!important}#ic-timer-form select{display:block;width:100%;box-sizing:border-box;min-height:44px}

#ic-agreements label{display:block;margin-block:1rem}#ic-agreements input,#ic-agreements textarea,#ic-agreements select{display:block;width:100%;box-sizing:border-box;min-height:44px}#ic-agreements fieldset{min-width:0;border:1px solid var(--line);border-radius:12px;padding:1rem}.ic-agreement-card{border:1px solid var(--line);border-radius:12px;padding:1rem;margin-block:1rem;overflow-wrap:anywhere}.ic-agreement-card button{min-height:44px}

#ic-tasks label{display:block;margin-block:.7rem}#ic-tasks input:not([type=checkbox]):not([type=color]),#ic-tasks select{display:block;box-sizing:border-box;width:100%;min-height:44px}#ic-tasks fieldset{min-width:0;border:1px solid var(--line);border-radius:12px;padding:1rem}.ic-task-card{border:1px solid var(--line);border-left-width:6px;border-radius:12px;padding:1rem;margin-block:1rem;overflow-wrap:anywhere}.ic-task-card button{min-height:44px;margin:.25rem}.ic-priority{display:inline-block;padding:.3rem .6rem;border-radius:6px}.ic-checklist-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.ic-checklist-row input:not([type=checkbox]){flex:1;min-width:140px}#ic-task-calendar:not([hidden]){display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}#ic-task-calendar button{padding:4px;min-width:0;min-height:44px}#ic-task-colours input{min-width:44px;min-height:44px}

#ic-journal label{display:block;margin-block:1rem}#ic-journal input,#ic-journal select,#ic-journal textarea{display:block;width:100%;box-sizing:border-box;min-height:44px}#ic-journal fieldset{min-width:0;border:1px solid var(--line);border-radius:12px;padding:1rem}.ic-journal-card{border:1px solid var(--line);border-radius:12px;padding:1rem;margin-block:1rem;overflow-wrap:anywhere}.ic-journal-card summary,.ic-journal-card button{min-height:44px;padding:.6rem;margin:.25rem}.ic-journal-card summary{cursor:pointer}

.ic-journal-image{display:block;max-width:100%;max-height:32rem;object-fit:contain;border-radius:12px}.ic-journal-card figure{margin:1rem 0}.ic-journal-music{display:block;min-height:44px;padding:.6rem;overflow-wrap:anywhere}#ic-journal input[type=file]{max-width:100%}

.ic-basic fieldset{min-width:0;border:1px solid var(--line);border-radius:12px;padding:1rem;margin:1rem 0}.ic-basic label{display:block;margin:.75rem 0}.ic-basic input:not([type=checkbox]),.ic-basic textarea,.ic-basic select,#ic-community-actor{width:100%;box-sizing:border-box;min-height:44px}.ic-basic textarea{min-height:90px}.ic-basic button,.ic-basic summary,.ic-basic a{min-height:44px;padding:.65rem;display:inline-block}.ic-basic-feed article{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:1rem;margin:1rem 0;overflow-wrap:anywhere}.ic-basic-feed p{white-space:pre-wrap}.ic-basic-feed img{max-width:100%;max-height:28rem;object-fit:contain;display:block}#ic-community-identity{padding:1rem;border:1px solid var(--line);margin:1rem 0}#ic-messages{max-height:32rem;overflow:auto}

#ic-devlog-popup{max-width: min(42rem,calc(100vw - 2rem));max-height:80vh;overflow:auto;background:var(--panel,#17131d);color:var(--text,#eee);border:1px solid var(--line,#555);border-radius:1rem;padding:1.5rem} #ic-devlog-popup button{min-height:44px;margin:.3rem} #ic-devlog-popup::backdrop{background:rgb(0 0 0 / .65)}

/* A quieter, consistent layout for the private app. */
.dashboard{border-radius:16px}
.dashboard-nav{align-items:end;gap:12px;margin-block:16px;padding-bottom:16px}
.ic-section-picker{display:grid;gap:4px;flex:1 1 180px;max-width:360px;font-size:.9rem}
.dashboard .ic-section-picker select{margin:0;max-width:none;width:100%}
.dashboard-nav>[data-view=overview],.dashboard-nav>#ic-timers-nav{display:none}
.ic-help,.ic-section-details{border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin-block:16px;background:var(--surface)}
.ic-help>summary,.ic-section-details>summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}
.ic-help p{max-width:72ch}
.dashboard-cards{gap:12px;margin-top:20px}
.dashboard-cards article{padding:18px;border-radius:12px}
.dashboard-cards article h4{margin-top:0}
.dashboard-cards article p{margin-bottom:12px}
.dashboard-cards article button{margin-top:auto}
.dashboard [data-panel]>p{max-width:72ch}
.dashboard :is(input,textarea,select){border-radius:8px}
.dashboard button{border-radius:8px}
.dashboard :is(button,summary){line-height:1.4}
#ic-community-identity{display:grid;grid-template-columns:minmax(110px,180px) minmax(0,320px);align-items:center;gap:4px 12px}
#ic-community-identity .help{grid-column:1/-1;margin:0;max-width:72ch}
#ic-community-identity select{margin:0}
#ic-member-status:empty{display:none}
#ic-fronting>h4:first-child{display:none}
@media(min-width:801px){.dashboard-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:601px) and (max-width:800px){.dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dashboard{padding:16px}.dashboard-nav{gap:8px}.ic-section-picker{max-width:none;flex-basis:100%}.ic-help,.ic-section-details{padding:10px}.dashboard-cards{grid-template-columns:1fr}#ic-community-identity{grid-template-columns:1fr}.dashboard-nav summary{min-height:44px;box-sizing:border-box}}

.dashboard-cards .feature-status{display:none}

.workspace-top .eyebrow{display:none}.workspace-top h2{margin:0}.workspace-top #ic-who{margin:4px 0;font-size:.9em}.workspace-top{align-items:center}#ic-setup-banner{font-size:.9em}#ic-community-identity{padding:10px;border-radius:8px}#ic-community-identity .help{font-size:.85em}.dashboard>.ic-help{padding-block:0}.dashboard>.ic-help>summary{font-size:.9em}.dashboard h3{margin-top:16px}

.ic-sharing{padding:16px;border:1px solid var(--line);border-radius:12px;margin-block:20px}.ic-sharing h5{font-size:1rem}.ic-sharing input:not([type=checkbox]),.ic-sharing select{width:100%;box-sizing:border-box}.ic-sharing fieldset{min-width:0;border:1px solid var(--line);border-radius:8px;margin-block:12px;padding:12px}.ic-share-fields{display:flex;flex-wrap:wrap;gap:8px 24px}.ic-share-fields .dashboard-check{margin:4px 0;min-height:44px}.ic-share-card{border:1px solid var(--line);padding:12px;margin-block:12px;white-space:pre-wrap;overflow-wrap:anywhere}
/* R2.1 SHELL-01: navigation uses the current account theme. */
.ic-primary-nav{display:flex;gap:6px;background:var(--surface);border:1px solid var(--line);padding:8px;z-index:30}
.ic-primary-nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:0}
.ic-primary-nav button[aria-current=page]{border:2px solid var(--accent);font-weight:700}
/* R2.1 SHELL-02/10: labelled account control, 44px target in every existing theme. */
.workspace-top .ic-account-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:8px;border-radius:50%;margin:0;color:var(--text);background:var(--surface);border:1px solid var(--line)}
.ic-account-avatar svg{width:24px;height:24px;fill:currentColor}
.ic-more-drawer{color:var(--text);background:var(--surface);border:1px solid var(--line);padding:24px;width:min(320px,calc(100vw - 48px));max-height:90dvh;overflow:auto}
.ic-more-drawer::backdrop{background:rgb(0 0 0 / .5)}
.ic-more-drawer button{display:flex;gap:12px;min-height:44px;width:100%;margin-block:8px}
[data-panel=settings]>button{display:block;width:100%;min-height:44px;margin-block:8px;text-align:left}
body:has(#ic-workspace:not([hidden]))>header,body:has(#ic-workspace:not([hidden]))>.ic-install-help,body:has(#ic-workspace:not([hidden]))>footer,body:has(#ic-workspace:not([hidden])) .commons>.eyebrow,body:has(#ic-workspace:not([hidden])) .commons>h1,body:has(#ic-workspace:not([hidden])) .commons>.subtitle{display:none}
@media(min-width:768px){.ic-primary-nav{position:fixed;left:12px;top:24px;width:160px;flex-direction:column}.commons:has(#ic-workspace:not([hidden])){margin-left:190px;width:auto;max-width:1100px;margin-right:24px}.ic-primary-nav button{justify-content:flex-start}}
@media(max-width:767px){.ic-primary-nav{position:fixed;bottom:0;left:0;right:0;padding-bottom:calc(8px + env(safe-area-inset-bottom));justify-content:space-around}.ic-primary-nav button{flex:1;min-width:0;flex-direction:column;font-size:13px;gap:2px;padding:6px 2px}.dashboard{padding-bottom:100px}.ic-more-drawer{margin:0 0 0 auto;height:100dvh;max-height:100dvh;border-radius:0}.ic-more-drawer[open]{animation:ic-drawer-in .15s ease-out}body.ic-reduce-motion .ic-more-drawer{animation:none}}
@keyframes ic-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.ic-more-drawer[open]{animation:none}}

/* SYS-GALLERY: account-private profile galleries, theme-aware and touch-friendly. */
.ic-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px}.ic-photo-card{border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0;overflow-wrap:anywhere}.ic-photo-card img{display:block;max-width:100%;width:100%;height:220px;object-fit:contain}.ic-photo-card button,.ic-photo-card a{display:block;min-height:44px;margin:8px 0}.ic-photo-enlarge{width:100%;padding:0;cursor:zoom-in}.ic-photo-viewer{background:var(--surface);color:var(--text);border:1px solid var(--line);max-width:95vw;max-height:95dvh}.ic-photo-viewer img{display:block;max-width:100%;max-height:80dvh;object-fit:contain}.ic-photo-viewer::backdrop{background:rgb(0 0 0 / .8)}
