/* Graphite visual system shared by every screen. */
html[data-interface-style=graphite]{--bg:#f3f3f6;--surface:#fff;--raised:#e9e8ef;--line:#dedde5;--ink:#232228;--muted:#75737f;--orange:#7560af;--soft:#7560af12;--hover:#e7e5ed;--feed-primary:#25242b;--feed-primary-ink:#fff}
html[data-interface-style=graphite][data-theme=dark]{--bg:#141416;--surface:#1e1e21;--raised:#29292e;--line:#303035;--ink:#f1f0f4;--muted:#99979f;--orange:#b6a0e2;--soft:#b6a0e214;--hover:#303035;--feed-primary:#eeedf2;--feed-primary-ink:#222126}
html[data-interface-style=graphite] body.interface-v2 header{background:var(--bg);border-bottom-color:transparent}
html[data-interface-style=graphite] body.interface-v2 .community-heading{border:0;padding-bottom:0;margin-bottom:28px;align-items:center}
html[data-interface-style=graphite] body.interface-v2 .community-heading h1{font-size:34px;letter-spacing:-1px;margin-bottom:7px}
html[data-interface-style=graphite] body.interface-v2 .community-panel-hint{font-size:12px;color:var(--muted)}
html[data-interface-style=graphite] body.interface-v2 .community-compose{background:var(--feed-primary);color:var(--feed-primary-ink);border:0;border-radius:22px;padding:11px 20px;min-height:40px;font-size:12px}
html[data-interface-style=graphite] body.interface-v2 .community-toolbar{gap:18px;padding-bottom:22px}
html[data-interface-style=graphite] body.interface-v2 .community-scopes{gap:24px}
html[data-interface-style=graphite] body.interface-v2 .community-scopes .tab{font-size:14px;font-weight:500;padding:0 0 10px}
html[data-interface-style=graphite] body.interface-v2 .community-scopes .tab.active{color:var(--ink);border-bottom-color:var(--orange)}
html[data-interface-style=graphite] body.interface-v2 .community-filters{gap:7px}
html[data-interface-style=graphite] body.interface-v2 .community-filters button{background:transparent;border:0;border-radius:8px;padding:7px 12px;min-height:32px;font-size:11px;color:var(--muted)}
html[data-interface-style=graphite] body.interface-v2 .community-filters button.active{background:var(--raised);color:var(--ink);border:0}
html[data-interface-style=graphite] body.interface-v2 #communityStatus{font-size:10px;letter-spacing:.2px;text-transform:none;margin-bottom:13px;color:var(--muted)}
html[data-interface-style=graphite] body.interface-v2 #communityFeed{gap:16px}
html[data-interface-style=graphite] body.interface-v2 .community-post{border:1px solid transparent;background:var(--surface);border-radius:18px;padding:23px 24px;box-shadow:none}
html[data-interface-style=graphite] body.interface-v2 .community-post+.community-post{border-top-color:transparent}
html[data-interface-style=graphite] body.interface-v2 .post-author>.account-mini-avatar{width:38px;height:38px;border-radius:12px}
html[data-interface-style=graphite] body.interface-v2 .post-author strong{font-size:13px;font-weight:600}
html[data-interface-style=graphite] body.interface-v2 .post-author time{font-size:10px;margin-top:5px}
html[data-interface-style=graphite] body.interface-v2 .post-category{background:var(--raised);border:0;color:var(--muted);font-size:9px;border-radius:6px;padding:5px 8px}
html[data-interface-style=graphite] body.interface-v2 .community-post h2{font-size:20px;font-weight:600;line-height:1.45;letter-spacing:-.35px;margin-bottom:12px}
html[data-interface-style=graphite] body.interface-v2 .post-body{line-height:1.8;font-size:14px}
html[data-interface-style=graphite] body.interface-v2 .post-top{margin-bottom:21px}
html[data-interface-style=graphite] body.interface-v2 .post-social{padding-top:9px;margin-top:15px;gap:17px}
html[data-interface-style=graphite] body.interface-v2 .post-social button{font-size:12px;color:var(--muted)}
html[data-interface-style=graphite] body.interface-v2 .post-social .post-like.liked{color:var(--orange)}
html[data-interface-style=graphite] body.interface-v2 .post-actions{border-color:var(--line);opacity:.8}
html[data-interface-style=graphite] body.interface-v2 .post-player{border:0;border-radius:11px}
html[data-interface-style=graphite] body.interface-v2 .player-embed-brand:before{background:repeating-linear-gradient(90deg,#ff5500 0 2px,transparent 2px 4px)}
html[data-interface-style=graphite] body.interface-v2 .daily-reminder{border:0;border-radius:16px;padding:23px;min-height:120px;background:var(--surface);align-items:center}
html[data-interface-style=graphite] body.interface-v2 .daily-reminder strong{font-size:18px;line-height:1.3;max-width:150px;font-weight:600;letter-spacing:-.5px;margin-bottom:9px}
html[data-interface-style=graphite] body.interface-v2 .daily-reminder span span{font-size:11px;line-height:1.7}
html[data-interface-style=graphite] body.interface-v2 .daily-reminder-arrow{color:var(--orange)}
html[data-interface-style=graphite] body.interface-v2 .interface-explore{display:none}
html[data-interface-style=graphite] body.interface-v2 .interface-creators{padding:24px 8px;margin-top:10px}
html[data-interface-style=graphite] body.interface-v2 .interface-creators>span{font-size:11px}
html[data-interface-style=graphite] body.interface-v2 .interface-creators .author-avatars{gap:12px}
html[data-interface-style=graphite] body.interface-v2 .mini-dock-item.active{background:var(--raised);color:var(--ink)}
html[data-interface-style=graphite] body.interface-v2 .mini-create{border-color:var(--line)}
html[data-interface-style=graphite] body.interface-v2 .mini-create svg{color:var(--ink)}
html[data-interface-style=graphite] body.interface-v2 .interface-rail-brand span,html[data-interface-style=graphite] body.interface-v2 .brand .mark{color:var(--orange)}
@media(min-width:1000px){html[data-interface-style=graphite] body.interface-v2 .community-layout{grid-template-columns:minmax(0,1fr) 250px;gap:28px}html[data-interface-style=graphite] body.interface-v2 .mini-dock{background:var(--bg);border-right-color:var(--line)}html[data-interface-style=graphite] body.interface-v2 .mini-dock-item{font-size:12px;font-weight:500}html[data-interface-style=graphite] body.interface-v2 main{max-width:1430px}}
@media(max-width:600px){html[data-interface-style=graphite] body.interface-v2 .community-heading{margin-bottom:25px}html[data-interface-style=graphite] body.interface-v2 .community-heading h1{font-size:30px}html[data-interface-style=graphite] body.interface-v2 .community-compose{padding:10px 17px;min-height:38px}html[data-interface-style=graphite] body.interface-v2 .community-post{padding:18px;border-radius:16px}html[data-interface-style=graphite] body.interface-v2 .community-post h2{font-size:18px}html[data-interface-style=graphite] body.interface-v2 .post-body{font-size:13px}html[data-interface-style=graphite] body.interface-v2 .post-top{margin-bottom:18px}html[data-interface-style=graphite] body.interface-v2 .mini-dock{border-top-color:var(--line)}html[data-interface-style=graphite] body.interface-v2 .community-filters button{padding:7px 10px}}
@media(hover:hover){html[data-interface-style=graphite] body.interface-v2 .community-compose:not(:disabled):hover{background:var(--feed-primary);color:var(--feed-primary-ink);filter:brightness(.92)}html[data-interface-style=graphite] body.interface-v2 .community-filters button:hover{background:var(--raised);color:var(--ink)}html[data-interface-style=graphite] body.interface-v2 .daily-reminder:hover{background:var(--raised)}}

/* Shared surfaces and controls, keeping semantic errors and custom role colors. */
html[data-interface-style=graphite]{--green:var(--orange)}
html[data-interface-style=graphite] body.interface-v2 .primary{background:var(--feed-primary);color:var(--feed-primary-ink);border:1px solid transparent;border-radius:10px;font-weight:600}
html[data-interface-style=graphite] body.interface-v2 :is(.account-dialog,.community-dialog){background:var(--surface);border:1px solid var(--line);border-radius:18px}
html[data-interface-style=graphite] body.interface-v2 :is(.profile-edit-card,.profile-public-card,.community-author-card,.searchbox,.selected-panel,.linecard,.daily-track,.admin-card,.community-empty,.profile-guest){background:var(--surface);border:1px solid transparent;border-radius:16px;box-shadow:none}
html[data-interface-style=graphite] body.interface-v2 .community-author-card{padding:26px}
html[data-interface-style=graphite] body.interface-v2 :is(.account-field,.profile-settings .account-field) :is(input:not([type=checkbox]):not([type=color]):not([type=file]),textarea,select){background:var(--raised);border:1px solid transparent;border-radius:10px;color:var(--ink)}
html[data-interface-style=graphite] body.interface-v2 :is(.account-field,.profile-settings .account-field) :is(input,textarea,select):focus{border-color:var(--orange)}
html[data-interface-style=graphite] body.interface-v2 .profile-cover{background:var(--raised);border-bottom:1px solid var(--line)}
html[data-interface-style=graphite] body.interface-v2 :is(.account-mini-avatar,.profile-avatar){background:var(--raised);color:var(--ink)}
html[data-interface-style=graphite] body.interface-v2 :is(.author-follow,.account-register){background:var(--feed-primary);color:var(--feed-primary-ink);border-color:transparent}
html[data-interface-style=graphite] body.interface-v2 .author-follow[aria-pressed=true]{background:var(--raised);color:var(--ink);border-color:transparent}
html[data-interface-style=graphite] body.interface-v2 .telegram-visibility-options{background:var(--raised);border:0;border-radius:10px}
html[data-interface-style=graphite] body.interface-v2 .telegram-visibility-options button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #0001}
html[data-interface-style=graphite] body.interface-v2 .profile-page-heading{border:0;margin-bottom:22px;padding-bottom:0}
html[data-interface-style=graphite] body.interface-v2 .daily-heading{border:0;margin-bottom:20px;padding-bottom:0}
html[data-interface-style=graphite] body.interface-v2 .daily-meta{color:var(--muted);padding:10px 0;border-top:1px solid var(--line);border-radius:0;background:transparent}
html[data-interface-style=graphite] body.interface-v2 .daily-track{padding:22px}
html[data-interface-style=graphite] body.interface-v2 .daily-track-category{background:var(--raised);color:var(--muted);border:0}
html[data-interface-style=graphite] body.interface-v2 .daily-about{color:var(--muted);border-color:var(--line)}
html[data-interface-style=graphite] body.interface-v2 .messages-layout{border:1px solid var(--line);border-radius:16px;background:var(--surface)}
html[data-interface-style=graphite] body.interface-v2 .chat-sidebar{border-color:var(--line)}
html[data-interface-style=graphite] body.interface-v2 .chat-item{border-left-color:transparent;border-radius:10px;margin:3px 8px;width:calc(100% - 16px);padding:14px 12px}
html[data-interface-style=graphite] body.interface-v2 .chat-item.active{background:var(--raised);border-left-color:transparent}
html[data-interface-style=graphite] body.interface-v2 .message-bubble{background:var(--raised);color:var(--ink);border:0;border-radius:14px 14px 14px 4px}
html[data-interface-style=graphite] body.interface-v2 .message-bubble.own{background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:14px 14px 4px 14px}
html[data-interface-style=graphite] body.interface-v2 .message-form{border-color:var(--line);background:var(--surface)}
html[data-interface-style=graphite] body.interface-v2 :is(.notification-popover,.messages-popover,.admin-role-popup){background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 35px #0003}
html[data-interface-style=graphite] body.interface-v2 #notificationsPanel .notification-item{border:1px solid transparent;background:var(--surface);border-radius:14px}
html[data-interface-style=graphite] body.interface-v2 .notification-dot{background:var(--orange)}
html[data-interface-style=graphite] body.interface-v2 .notification-badge{background:var(--orange);color:var(--bg)}
html[data-interface-style=graphite] body.interface-v2 :is(.admin-tabs button,.admin-role-picker>summary){background:transparent;border-color:var(--line);border-radius:9px}
html[data-interface-style=graphite] body.interface-v2 .admin-tabs button.active{background:var(--raised);border-color:transparent;color:var(--ink)}
html[data-interface-style=graphite] body.interface-v2 .audit-entry{background:var(--surface);border-color:var(--line);border-radius:10px}
html[data-interface-style=graphite] body.interface-v2 .audit-entry[open]>summary{background:var(--raised)}
html[data-interface-style=graphite] body.interface-v2 :is(.word,.example,.topicchip){border-radius:9px;border-color:var(--line)}
html[data-interface-style=graphite] body.interface-v2 .word{background:var(--surface)}
html[data-interface-style=graphite] body.interface-v2 .word.chosen{background:var(--soft);border-color:var(--orange)}
html[data-interface-style=graphite] body.interface-v2 .linecard{border-top:1px solid transparent}
html[data-interface-style=graphite] body.interface-v2 .vowel.active{background:var(--orange);color:var(--bg)}
html[data-interface-style=graphite] body.interface-v2 .mini-studio-heading h1{font-size:30px;font-weight:650}
html[data-interface-style=graphite] body.interface-v2 :is(.notifications-heading h1,#messagesPanel>h1,#profilePanel>h1){font-size:30px;letter-spacing:-.8px;font-weight:650}
@media(hover:hover){html[data-interface-style=graphite] body.interface-v2 :is(.primary,.author-follow,.account-register):not(:disabled):hover{background:var(--feed-primary);color:var(--feed-primary-ink);filter:brightness(.92)}html[data-interface-style=graphite] body.interface-v2 .chat-item:hover{background:var(--raised)}}
@media(max-width:600px){html[data-interface-style=graphite] body.interface-v2 .community-author-card{padding:20px}html[data-interface-style=graphite] body.interface-v2 .daily-track{padding:16px}}

html[data-interface-style=graphite] body.interface-v2 .community-profile-view .community-panel-hint{display:none!important}

/* Studio word basket: quiet graphic panel in the shared palette. */
html[data-interface-style=graphite] body.interface-v2 .side-cover{background:var(--raised);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:20px;isolation:isolate}
html[data-interface-style=graphite] body.interface-v2 .side-cover strong{font-size:25px;font-weight:600;line-height:1.12;letter-spacing:-.8px;max-width:195px}
html[data-interface-style=graphite] body.interface-v2 .side-cover:after{width:130px;height:130px;right:-65px;top:12px;background:transparent;border:1px solid var(--orange);opacity:.22;box-shadow:0 0 0 15px var(--soft),0 0 0 30px var(--soft);z-index:-1}
