.personal-appearance{border-top:1px solid var(--border);margin-top:10px;padding-top:6px}.appearance-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 4px;font-size:12px;color:var(--text);cursor:pointer}.appearance-toggle input{width:16px;height:16px;accent-color:var(--accent)}.appearance-editor{margin:10px 0;border:1px solid var(--border);border-radius:10px;padding:6px}.appearance-editor>.appearance-link{margin:2px 4px 5px}.appearance-swatches{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-gap:5px;gap:5px;padding:5px 0}.appearance-swatches button{position:relative;display:grid;place-items:center;min-width:0;width:100%;aspect-ratio:1;padding:0;background:var(--swatch);border:1px solid color-mix(in srgb,var(--text) 25%,transparent);border-radius:50%;cursor:pointer}.appearance-swatches button[aria-pressed=true]{outline:2px solid var(--text);outline-offset:2px}.appearance-swatches button span{display:grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#000b;color:#fff;font-size:11px}.appearance-custom{display:flex;align-items:center;gap:8px;margin-top:3px}.appearance-color{display:block;flex:none;width:36px;height:34px;border-radius:8px;overflow:hidden}.appearance-color input[type=color]{display:block;width:36px;height:34px;min-height:0;padding:3px;border:1px solid var(--border);border-radius:8px;background:var(--bg-input);cursor:pointer}.appearance-color input::-webkit-color-swatch-wrapper{padding:0}.appearance-color input::-webkit-color-swatch{border:0;border-radius:4px}.appearance-hex{min-width:0;width:100%;height:34px;padding:0 9px;border:1px solid var(--border);border-radius:8px;font:12px/1.4 ui-monospace,SFMono-Regular,monospace;background:var(--bg-input);color:var(--text)}.appearance-hex[aria-invalid=true]{border-color:var(--red)}.appearance-error{color:var(--red)}.appearance-link{width:-moz-fit-content;width:fit-content;padding:3px 0;border:0;background:none;color:var(--accent);text-align:left;font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.appearance-note{margin:9px 4px;font-size:11px;line-height:1.5;color:var(--text-dim)}.appearance-preview{display:flex;flex-direction:column;gap:9px;margin:5px 4px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);font-size:11px}.appearance-preview>div{display:flex;align-items:center;gap:8px;font-weight:600}.appearance-preview small{display:block;margin-top:2px;font-size:9px;font-weight:400;color:var(--text-dim)}.appearance-preview-avatar{width:26px;height:26px;flex:none;border-radius:50%;background:var(--avatar-bg);border:1px solid var(--border)}.appearance-preview-bubble{align-self:flex-start;padding:7px 10px;border-radius:9px 9px 9px 3px;background:var(--bubble-in);color:var(--bubble-in-text)}.appearance-preview-bubble.outgoing{align-self:flex-end;border-radius:9px 9px 3px 9px;background:var(--bubble-out);color:var(--bubble-out-text)}.appearance-preview-action{align-self:flex-end;padding:6px 10px;border:0;border-radius:6px;background:var(--accent);color:var(--accent-contrast,#fff);font:inherit}.personal-appearance :is(button,input):focus-visible{outline:2px solid var(--accent);outline-offset:3px}html[data-personal-theme=true] .topbar{background:var(--bg-panel)}html[data-personal-theme=true] .rail-nav-item.active{background:var(--accent);color:var(--accent-contrast)}html[data-personal-theme=true] .thread.active{background:var(--bg-hover);box-shadow:inset 3px 0 var(--accent)}html[data-personal-theme=true] :is(.pill.on,.notif.unread-notif){background:color-mix(in srgb,var(--accent) 12%,var(--bg-panel));color:var(--accent)}html[data-personal-theme=true] .vault-albums .album.on{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}html[data-personal-theme=true] .theme-choice.active{color:var(--text)}html[data-personal-theme=true] :is(button,input,textarea,select,a):focus-visible{outline-color:var(--accent)}html[data-personal-theme=true] ::selection{background:color-mix(in srgb,var(--accent) 30%,var(--bg));color:var(--text)}html[data-personal-theme=true] .tg-workspace{--tg-primary:var(--personal-tg-primary);--tg-wall:var(--personal-tg-wall);--tg-in:var(--personal-tg-in);--tg-out:var(--personal-tg-out)}html[data-personal-theme=true] .tg-workspace .tg-conversation{background-color:var(--personal-tg-wall);background-image:none}html[data-personal-theme=true] .tg-workspace .tg-conversation:before{background:var(--personal-seed);opacity:.12;mix-blend-mode:normal;-webkit-mask-image:url(/telegram/pattern.svg);mask-image:url(/telegram/pattern.svg);-webkit-mask-repeat:repeat;mask-repeat:repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:430px auto;mask-size:430px auto}html[data-personal-theme=true] .tg-workspace .tg-message :is(.msg-meta,.tg-deleted-mark){color:var(--text-dim)}html[data-personal-theme=true] .tg-workspace .tg-message.out{color:var(--bubble-out-text)}html[data-personal-theme=true] .tg-workspace .tg-message.in{color:var(--bubble-in-text)}html[data-personal-theme=true] .tg-workspace .tg-message.out .msg-meta{color:var(--bubble-out-text);opacity:.8}html[data-personal-theme=true] .tg-workspace .thread.active .unread{color:var(--accent);background:var(--accent-contrast)}html[data-personal-theme=true] .tg-workspace .tg-day>span{background:var(--bg-input);color:var(--text);text-shadow:none}html[data-personal-theme=true] .tg-workspace .tg-reaction[aria-pressed=true]{background:var(--accent);color:var(--accent-contrast)}@media (prefers-reduced-motion:reduce){.personal-appearance *{transition:none!important}}