:root{font-family:-apple-system,BlinkMacSystemFont,"Roboto","Segoe UI",sans-serif;font-size:17px;line-height:1.35;font-synthesis:none;-webkit-text-size-adjust:100%;overflow-wrap:anywhere}
html{background:var(--launch-page,#f1f1f1);color-scheme:light}
@media(prefers-color-scheme:dark){html{background:var(--launch-page,#232e3c);color-scheme:dark}}
body:not(.theme-ready){background:var(--launch-page,var(--page));color:var(--launch-text,var(--text));color-scheme:inherit}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{--page:#f1f1f1;--surface:#ffffff;--text:#000000;--hint:#999999;--subtitle:#999999;--accent:#168acd;--link:#168acd;--button:#40a7e3;--on-accent:#ffffff;--header:#ffffff;--bottom-bar:#ffffff;--section-header:#168acd;--destructive:#d14e4e;--separator:#e7e7e7;--tap:#f1f1f1;--toggle-off:#b3b3b3;--positive:#4ab44a;--toast-bg:#2c3033e5;--toast-fg:#ffffff;--icon-blue:#56b3f5;--icon-purple:#b580e2;--icon-green:#6dc534;--icon-orange:#ed9f20;--icon-gray:#9da2b0;--icon-red:#f06964;--icon-foreground:#ffffff;margin:0;background:var(--page);color:var(--text);overscroll-behavior-x:none}
body.dark{color-scheme:dark}
body.dark{--page:#232e3c;--surface:#17212b;--text:#f5f5f5;--hint:#708499;--subtitle:#708499;--accent:#6ab2f2;--link:#6ab3f3;--button:#5288c1;--header:#17212b;--bottom-bar:#17212b;--section-header:#6ab3f3;--destructive:#ec3942;--separator:#111921;--tap:#232e3c;--toggle-off:#4f6276;--positive:#5598db;--toast-bg:#000000b2}
body.android{font-size:16px}
.bot-avatar{display:inline-grid;position:relative;flex-shrink:0;width:40px;height:40px;border-radius:50%;overflow:hidden;place-items:center}
.bot-avatar>.cell-icon{width:100%;height:100%;border-radius:50%}
.bot-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bot-avatar.has-avatar>.cell-icon{visibility:hidden}
.profile>.bot-avatar{width:60px;height:60px}
.profile>.bot-avatar>.cell-icon{margin:0}
.profile>.bot-avatar svg{width:32px;height:32px}
.photo-placeholder>.bot-avatar{width:100%;height:100%;border-radius:0}
.photo-placeholder>.bot-avatar svg{width:50px;height:50px}
#random-reply-form fieldset{border:0;padding:0;margin:0;min-width:0}
#random-reply-form:not(:has([name=random_enabled]:checked)) .random-reply-range{display:none}
#random-reply-form .random-reply-range input{width:90px;flex-shrink:0;min-height:44px;padding:8px;text-align:right;border-radius:8px;background:var(--page)}
.random-reply-range>.cell{border-top:.5px solid var(--separator)}
#response-form fieldset{border:0;padding:0;margin:0;min-width:0}
#response-form fieldset:disabled>.section{opacity:.55}
#chat-addressing-form fieldset{border:0;padding:0;margin:0;min-width:0}
#chat-addressing-form fieldset:disabled>.section{opacity:.55}
#address-count{width:70px;min-height:44px;padding:8px;text-align:right;border-radius:8px;background:var(--page);flex-shrink:0}
button,input,textarea,select{font:inherit;color:inherit}
button,a,label,input,textarea{touch-action:manipulation}
button{cursor:pointer;border:0;background:none;margin:0;text-align:inherit}
button:disabled{cursor:default;opacity:.45}
a{color:var(--link);text-decoration:none}
button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
button:active:not(:disabled),a.cell:active,.choice-cell:active{background:var(--tap)}
[hidden]{display:none!important}
.shell{max-width:600px;margin:0 auto;padding:0 16px max(24px,var(--tg-content-safe-area-inset-bottom,0px));padding-top:max(env(safe-area-inset-top),var(--tg-content-safe-area-inset-top,0px));padding-left:max(16px,var(--tg-content-safe-area-inset-left,0px));padding-right:max(16px,var(--tg-content-safe-area-inset-right,0px))}
body.has-tabs .shell{padding-bottom:calc(90px + env(safe-area-inset-bottom))}
body.has-action .shell{padding-bottom:calc(94px + env(safe-area-inset-bottom))}
body.has-tabs.has-action .shell{padding-bottom:calc(158px + env(safe-area-inset-bottom))}
body.has-tabs.has-action .bottom-nav{bottom:calc(73px + env(safe-area-inset-bottom));padding-bottom:7px}
main:focus{outline:none}
h1,h2,h3,p{margin:0}
.screen-header{position:relative;display:flex;align-items:center;min-height:67px;padding:20px 0 14px;gap:8px}
.screen-header h1{font-size:28px;font-weight:700;letter-spacing:-.55px;line-height:1.2;overflow-wrap:anywhere}
.screen-header:has(.preview-back:not([hidden])){padding-top:15px;padding-bottom:15px;min-height:63px}
.screen-header:has(.preview-back:not([hidden])) h1{font-size:22px}
.preview-back{flex-shrink:0;display:grid;place-items:center;min-width:40px;min-height:44px;margin-left:-11px;color:var(--accent);border-radius:8px}
.preview-back svg{width:25px;height:25px}
.screen-subtitle{font-size:14px;color:var(--hint);margin:-5px 0 20px;line-height:1.45;overflow-wrap:anywhere}
.profile{display:flex;align-items:center;gap:13px;padding:17px 16px;background:var(--surface);border-radius:12px;margin:3px 0 23px}
.profile>.cell-icon{width:52px;height:52px;border-radius:13px}
.profile>.cell-icon svg{width:32px;height:32px}
.profile>div{min-width:0;flex:1}
.profile h2{font-size:17px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.profile p{font-size:14px;color:var(--hint);margin-top:3px;overflow-wrap:anywhere}
.save-bot{width:44px;min-height:48px;flex-shrink:0;display:grid;place-items:center;color:var(--hint);border-radius:8px}
.save-bot svg{width:23px;height:23px}
.save-bot[aria-pressed=true]{color:var(--accent)}
.save-bot[aria-pressed=true] svg{fill:currentColor}
.bot-list-row{display:flex;align-items:center;position:relative;padding-right:4px}
.bot-list-row>.cell{flex:1;width:auto;min-width:0;padding-right:3px}
.bot-list-row>button[data-manager-user]{flex:0 1 auto;width:auto;max-width:45%;min-height:44px;padding:10px 12px}
.bot-list-row+.bot-list-row:before{content:"";position:absolute;top:0;left:59px;right:0;height:.5px;background:var(--separator)}
.scroll-window{--visible-rows:3;--row-height:4.25rem;max-height:calc(var(--visible-rows) * var(--row-height));overflow-y:auto}
.scroll-window[data-visible-rows="4"]{--visible-rows:4}
.scroll-window>:not([hidden]){height:var(--row-height);min-height:0}
.scroll-window>.cell+.cell:before,.list-scroll-hint+.cell:before{content:"";position:absolute;top:0;left:59px;right:0;height:.5px;background:var(--separator)}
.scroll-window .cell-title,.scroll-window .cell-subtitle{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.scroll-window:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.list-scroll-hint{padding:5px 16px 7px;color:var(--subtitle);font-size:12px;text-align:center;border-top:.5px solid var(--separator)}
.section{margin:0 0 24px}
.section-title{font-size:13px;line-height:18px;text-transform:uppercase;font-weight:400;color:var(--section-header);padding:0 16px 7px;letter-spacing:.1px}
.section-body{background:var(--surface);border-radius:11px;overflow:hidden}
.section-footer{font-size:13px;line-height:1.42;color:var(--subtitle);margin:7px 16px 0;overflow-wrap:anywhere}
.section-footer+.section{margin-top:24px}
.section-footer a{color:var(--link)}
.key-overview{display:flex;align-items:center;gap:12px;padding:14px 16px}
.key-overview-copy{display:block;flex:1;min-width:0}
.key-overview-action{width:100%;color:inherit;text-align:left;cursor:pointer}
.key-overview-action:active:not(:disabled){background:var(--tap)}
.key-overview-action:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.key-overview strong{display:block;font-size:16px;line-height:1.3;overflow-wrap:anywhere}
.key-overview small{display:block;margin-top:4px;color:var(--subtitle);font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.key-overview+.cell:before{content:"";position:absolute;top:0;left:59px;right:0;height:.5px;background:var(--separator)}
.cell{width:100%;min-height:52px;padding:11px 16px;display:flex;align-items:center;gap:13px;position:relative;text-decoration:none;color:inherit;line-height:1.25}
.section-body>.cell+.cell:before,.section-body>.choice-cell+.choice-cell:before,.section-body>.step-cell+.step-cell:before,.section-body>.text-cell+.text-cell:before,.section-body>.text-block+.text-block:before{content:"";position:absolute;top:0;left:16px;right:0;height:.5px;background:var(--separator)}
.section-body>.cell+.cell:before{left:59px}
.cell.create-bot-row{background:var(--button);color:var(--on-accent)}
.cell.create-bot-row:active{background:var(--button);opacity:.86}
.cell.create-bot-row .cell-icon{background:transparent;color:var(--on-accent)}
.cell.create-bot-row .cell-chevron{color:var(--on-accent)}
.cell-content{flex:1;min-width:0;display:block}
.cell-title{display:block;font-size:17px;line-height:1.3;overflow-wrap:anywhere}
.cell-subtitle{display:block;color:var(--subtitle);font-size:13px;line-height:1.4;margin-top:4px}
.brand-restore-row .cell-subtitle{white-space:pre-wrap;overflow-wrap:anywhere}
.cell-value{font-size:15px;color:var(--hint);min-width:0;max-width:45%;text-align:right}
.chat-quota-summary .cell-value{color:var(--text);font-size:18px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.chat-quota-summary .cell-chevron{color:var(--accent)}
.cell-chevron{color:var(--hint);display:grid;place-items:center;margin-right:-4px;flex-shrink:0}
.cell-chevron svg{width:15px;height:18px;stroke-width:2.3}
.cell-icon{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;color:var(--icon-foreground);flex-shrink:0;background:var(--icon-blue)}
.cell-icon svg{width:20px;height:20px;stroke-width:1.8}
.cell-icon.blue{background:var(--icon-blue)}.cell-icon.purple{background:var(--icon-purple)}.cell-icon.green{background:var(--icon-green)}.cell-icon.orange{background:var(--icon-orange)}.cell-icon.gray{background:var(--icon-gray)}.cell-icon.red{background:var(--icon-red)}
.cell-icon.circle{border-radius:50%}
.bot-avatar>.cell-icon{background:var(--button);color:var(--on-accent)}
.destructive,.destructive .cell-title{color:var(--destructive)}
.connection-status{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--hint);margin:-2px 0 24px}
.connection-status:before{content:"";width:7px;height:7px;background:var(--hint);border-radius:50%;flex-shrink:0}
.connection-status.connected:before{background:var(--positive)}
.switch-cell{min-height:54px}
.owner-access-check{color:var(--accent);flex-shrink:0;width:21px;height:21px}
.owner-access-check svg{display:block;width:100%;height:100%}
.switch-track{width:51px;height:31px;border-radius:18px;background:var(--toggle-off);padding:2px;flex-shrink:0;transition:background .15s}
.switch-track>span{display:block;width:27px;height:27px;border-radius:50%;background:var(--on-accent);box-shadow:0 1px 3px var(--shadow);transition:transform .15s}
[aria-checked=true] .switch-track{background:var(--button)}
[aria-checked=true] .switch-track>span{transform:translateX(20px)}
.choice-cell{position:relative;display:flex;align-items:center;gap:16px;min-height:52px;padding:14px 16px;cursor:pointer}
.choice-cell input{position:absolute;opacity:0;width:1px;height:1px}
.choice-cell:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:-2px}
.choice-check{width:23px;height:23px;color:var(--accent);visibility:hidden;flex-shrink:0}
.choice-check svg,.selected-mark svg{width:23px;height:23px;stroke-width:2.5}
.choice-cell:has(input:checked) .choice-check{visibility:visible}
.cascade-row{display:flex;align-items:center;gap:8px;min-height:66px;padding:7px 8px 7px 14px;position:relative}
.cascade-row+.cascade-row:before{content:"";position:absolute;top:0;left:14px;right:0;height:.5px;background:var(--separator)}
.cascade-rank{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--tap);color:var(--hint);font-size:14px;flex-shrink:0}
.cascade-content{flex:1;min-width:0;padding:4px 0}
.cascade-move{display:grid;place-items:center;width:40px;height:44px;border-radius:8px;color:var(--accent);font-size:23px;line-height:1;flex-shrink:0}
.cascade-move:active:not(:disabled){background:var(--tap)}
.selected-mark{color:var(--accent)}
.text-cell{position:relative;display:block;color:var(--accent);width:100%;min-height:49px;padding:13px 16px;font-size:16px}
.instruction-author{color:var(--subtitle);font-size:13px;font-weight:400}
.instruction-card{position:relative;display:flex;align-items:center;gap:4px;padding-right:8px}
.instruction-card+.instruction-card:before,.section-body>.instruction-list+.cell:before,.section-body>.instruction-empty+.cell:before{content:"";position:absolute;top:0;left:59px;right:0;height:.5px;background:var(--separator)}
.instruction-select.cell{flex:1;min-width:0;padding-right:4px;text-align:left}
.instruction-card-saved .instruction-select.cell{padding-right:0}
.instruction-plain-icon{width:29px;height:29px;display:grid;place-items:center;flex-shrink:0;color:var(--hint)}
.instruction-plain-icon svg{width:21px;height:21px}
.key-library-row{display:flex;align-items:center;gap:4px;min-height:66px;padding:5px 8px 5px 0;position:relative}
.key-library-row+.key-library-row:before{content:"";position:absolute;top:0;left:16px;right:0;height:.5px;background:var(--separator)}
.key-library-row+.cell:before,.key-library-empty+.cell:before{content:"";position:absolute;top:0;left:59px;right:0;height:.5px;background:var(--separator)}
.key-library-pick{display:flex;align-items:center;gap:13px;flex:1;min-width:0;min-height:56px;padding:8px 8px 8px 16px;border-radius:8px;color:inherit;text-align:left}
.key-library-pick:active:not(:disabled){background:var(--tap)}
.key-library-pick:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.key-library-pick .cell-content{min-width:0}
.key-library-pick .instruction-radio{flex-shrink:0;color:var(--hint)}
.key-library-pick[aria-pressed=true] .instruction-radio{color:var(--accent)}
.key-library-pick[aria-pressed=true] .instruction-radio:after{transform:scale(1)}
.usage-models{margin:0 16px 12px;padding-left:18px;font-size:13px}
.key-library-empty{padding:17px 16px;color:var(--hint);font-size:14px;line-height:1.45}
.key-library-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}
.key-library-delete,.key-library-settings{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:10px}
.key-library-delete{color:var(--destructive)}
.key-library-settings{color:var(--accent)}
.key-library-delete svg,.key-library-settings svg{width:19px;height:19px}
.key-library-delete:active:not(:disabled),.key-library-settings:active:not(:disabled){background:var(--tap)}
.instruction-select:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.instruction-radio{width:21px;height:21px;display:grid;place-items:center;border:2px solid currentColor;border-radius:50%}
.instruction-radio:after{content:"";width:11px;height:11px;border-radius:50%;background:currentColor;transform:scale(0);transition:transform .12s ease}
.instruction-select .instruction-radio{flex-shrink:0;color:var(--hint)}
.instruction-select[aria-checked=true] .instruction-radio{color:var(--accent)}
.instruction-select[aria-checked=true] .instruction-radio:after{transform:scale(1)}
.instruction-select:active:not(:disabled){background:var(--tap)}
.instruction-action,.instruction-radio-slot{width:40px;height:40px;flex-shrink:0;display:grid;place-items:center}
.instruction-action{border-radius:9px;color:var(--hint)}
.instruction-action svg{width:20px;height:20px}
.instruction-action:active:not(:disabled){background:var(--tap)}
.instruction-action:disabled{opacity:1}
.instruction-heart[aria-pressed=true]{color:var(--accent)}
.instruction-heart[aria-pressed=true] svg{fill:currentColor}
.instruction-empty{padding:16px;color:var(--hint);font-size:14px;line-height:1.4}
.instruction-sort-section{position:relative;z-index:2}
.instruction-sort-body{overflow:visible}
.instruction-toolbar{padding-top:10px;border-bottom:1px solid var(--separator)}
.instruction-filters{display:flex;gap:4px;padding:5px;margin:0 16px;border-radius:10px;background:var(--page)}
.instruction-scope{flex:1;min-width:0;min-height:36px;display:flex;align-items:center;justify-content:center;gap:7px;padding:6px 8px;border-radius:7px;color:var(--subtitle);font-size:14px;line-height:18px}
.instruction-scope svg{width:17px;height:17px;flex-shrink:0}
.instruction-scope[aria-pressed=true]{background:var(--surface);color:var(--text);font-weight:600}
.instruction-scope:focus-visible,.instruction-sort-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.instruction-scope:active:not(:disabled){background:var(--tap)}
.instruction-sort{position:relative}
.instruction-sort-trigger .cell-chevron svg{transition:transform .15s}
.instruction-sort-trigger[aria-expanded=true] .cell-chevron svg{transform:rotate(180deg)}
.instruction-sort-menu{position:absolute;top:calc(100% + 3px);right:12px;z-index:5;width:max-content;min-width:180px;max-width:calc(100vw - 48px);max-height:min(45vh,240px);overflow:auto;padding:5px;border:1px solid var(--separator);border-radius:10px;background:var(--surface);box-shadow:0 8px 24px #0003}
.instruction-sort-option{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border-radius:7px;color:var(--text);text-align:left}
.instruction-sort-option[aria-checked=true]{color:var(--accent)}
.instruction-sort-option:focus-visible,.instruction-sort-option:active:not(:disabled){outline:none;background:var(--tap)}
.instruction-sort-option svg{width:18px;height:18px;flex-shrink:0}
.instruction-delete{width:100%;min-height:52px;display:flex;align-items:center;gap:12px;padding:10px 16px;color:var(--destructive);text-align:left}
.instruction-delete .cell-icon{flex-shrink:0}
input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=range]),textarea{display:block;width:100%;border:0;border-radius:0;background:transparent;padding:13px 16px;min-height:50px;line-height:1.45;outline:none;font-size:17px;box-shadow:none;resize:vertical}
.member-choice .choice-check{visibility:visible;border:1.5px solid var(--hint);border-radius:5px;display:grid;place-items:center;width:23px;height:23px}
.member-choice .choice-check svg{display:none;width:18px;height:18px}
.member-choice:has(input:checked) .choice-check{background:var(--button);border-color:var(--button);color:var(--on-accent)}
.member-choice:has(input:checked) .choice-check svg{display:block}
input::placeholder,textarea::placeholder{color:var(--hint);opacity:1}
input:not([type=file]):focus,textarea:focus{box-shadow:inset 0 -2px var(--accent)}
textarea{min-height:190px}
.password-field{display:flex;align-items:center}
.password-field input{min-width:0;padding-right:4px!important}
.eye-button{width:50px;min-height:50px;display:grid;place-items:center;flex-shrink:0;color:var(--hint)}
.eye-button svg{width:23px;height:23px}
.character-count{text-align:right;color:var(--hint);font-size:12px;margin:-16px 16px 23px}
.intro{text-align:center;padding:10px 16px 27px}
.intro>.cell-icon{width:64px;height:64px;border-radius:16px;margin:0 auto 17px}
.intro>.cell-icon svg{width:38px;height:38px}
.intro h2{font-size:21px;font-weight:600;letter-spacing:-.3px;margin-bottom:8px}
.intro p{font-size:14px;color:var(--hint);line-height:1.45;max-width:330px;margin:auto}
.step-cell{display:flex;align-items:center;gap:12px;padding:13px 16px;min-height:67px;color:var(--text);position:relative}
.step-number{width:27px;height:27px;border-radius:50%;background:var(--button);color:var(--on-accent);display:grid;place-items:center;font-size:14px;flex-shrink:0}
.step-cell>span:nth-child(2){flex:1;min-width:0}
.step-cell strong{display:block;font-size:15px;font-weight:500;line-height:1.35}
.step-cell small{display:block;font-size:12px;color:var(--hint);line-height:1.4;margin-top:3px}
.step-cell>svg{width:18px;height:18px;color:var(--accent);flex-shrink:0}
.counter{font-size:17px;font-variant-numeric:tabular-nums;max-width:45%;text-align:right}
.usage-period{padding:12px 12px 0}
.usage-presets,.usage-dates,.usage-totals{display:grid;gap:6px}
.usage-presets{grid-template-columns:repeat(4,minmax(0,1fr));padding:3px;border-radius:11px;background:var(--page)}
.usage-presets button,.usage-apply,.usage-toggle-keys{min-height:40px;border-radius:8px;padding:5px 4px;font:inherit;font-size:13px}
.usage-presets button[aria-pressed=true],.usage-presets button[aria-expanded=true],.usage-presets .usage-custom-current{background:var(--surface);color:var(--accent);font-weight:650}
.usage-date-fields:not([hidden]){display:grid;gap:8px;padding:12px 0 0}
.usage-dates{grid-template-columns:repeat(2,minmax(0,1fr))}
.usage-dates label,.usage-date-fields>small{font-size:13px;color:var(--subtitle);min-width:0}
.usage-dates input[type=date]{min-width:0;padding:6px 8px;min-height:44px;margin-top:4px;border-radius:8px;background:var(--page);font-size:14px}
.usage-apply{background:var(--button);color:var(--on-accent)}
.usage-totals{grid-template-columns:repeat(4,minmax(0,1fr));padding:12px 12px 8px}
.usage-totals>button{min-height:65px;padding:7px 4px;border:1px solid transparent;border-radius:10px;background:var(--page);text-align:center;overflow-wrap:anywhere}
.usage-totals>button[aria-pressed=true]{border-color:var(--accent)}
.usage-totals strong{display:block;font-variant-numeric:tabular-nums;font-size:clamp(14px,4vw,20px);line-height:1.15}
.usage-totals small,.usage-key small{display:block;color:var(--subtitle);font-size:12px;line-height:1.25;margin-top:3px}
.usage-graph{padding:0 12px 10px}
.usage-graph-caption{padding:4px 0;color:var(--subtitle);font-size:12px}
.usage-svg{display:block;width:100%;height:auto;max-height:240px;overflow:visible}
.usage-svg text{fill:var(--subtitle);font-size:10px}
.usage-svg line{stroke:var(--separator);stroke-width:1}
.usage-axis-label{text-anchor:end}
.usage-date-label{text-anchor:middle}
.usage-svg [role=button]{cursor:pointer;outline:none}
.usage-hit{fill:transparent;stroke:transparent}
.usage-svg [aria-pressed=true] .usage-hit{fill:var(--page)}
.usage-svg [role=button]:focus-visible .usage-hit{stroke:var(--accent);stroke-width:1.5}
.usage-readout{border-radius:8px;padding:7px 10px;background:var(--page);font-size:13px}
.usage-readout>div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.usage-readout ul{display:flex;flex-wrap:wrap;gap:3px 12px;list-style:none;padding:0;margin:4px 0 0;color:var(--subtitle)}
.usage-readout li{max-width:100%;overflow-wrap:anywhere}
.usage-readout strong{font-variant-numeric:tabular-nums}
.usage-disclosure{font-size:14px}
#usage-values{border-top:1px solid var(--separator)}
.usage-disclosure>summary{display:flex;align-items:center;gap:8px;min-height:45px;padding:8px 12px;cursor:pointer;list-style:none;font-weight:600}
.usage-disclosure>summary::-webkit-details-marker{display:none}
.usage-disclosure>summary::after{content:"";flex-shrink:0;width:7px;height:7px;border-right:1.5px solid var(--subtitle);border-bottom:1.5px solid var(--subtitle);transform:rotate(45deg);margin-left:auto}
.usage-disclosure[open]>summary::after{transform:rotate(225deg)}
.usage-disclosure>summary span{margin-left:auto;color:var(--subtitle);font-weight:400}
.usage-disclosure>summary:has(span)::after{margin-left:4px}
.usage-toggle-keys{margin:0 12px;padding:5px 8px;color:var(--accent)}
.usage-key{display:grid;grid-template-columns:auto 12px 1fr;gap:9px;align-items:center;min-height:44px;padding:8px 12px;overflow-wrap:anywhere}
.usage-key+.usage-key{border-top:1px solid var(--separator)}
.usage-key input{width:18px;height:18px;accent-color:var(--accent)}
.usage-empty{margin:0;padding:16px 12px;color:var(--subtitle);font-size:14px}
.usage-disclosure table{width:calc(100% - 24px);border-collapse:collapse;margin:0 12px 12px;text-align:right;font-size:12px;font-variant-numeric:tabular-nums}
.usage-disclosure :is(th,td){padding:7px 3px;border-top:1px solid var(--separator)}
.usage-disclosure :is(th,td):first-child{text-align:left}
.text-block{padding:16px;position:relative}
.text-block h3{font-size:16px;font-weight:600;margin-bottom:7px}
.text-block p{font-size:14px;line-height:1.5;color:var(--hint)}
.text-block p+p{margin-top:10px}
.empty-section{padding:16px;color:var(--hint);font-size:14px}
.placeholder{text-align:center;padding:40px 20px}
.placeholder>.cell-icon{width:64px;height:64px;border-radius:17px;margin:0 auto 18px}
.placeholder>.cell-icon svg{width:36px;height:36px}
.placeholder h2{font-size:21px;font-weight:600;margin-bottom:9px}
.placeholder p{font-size:15px;line-height:1.45;color:var(--hint);max-width:320px;margin:auto}
.inline-action{color:var(--accent);min-height:48px;padding:12px 16px;font-weight:500;margin-top:8px}
.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;display:flex;background:var(--bottom-bar);border-top:.5px solid var(--separator);padding:5px 12px max(7px,env(safe-area-inset-bottom));z-index:10}
.bottom-nav button{min-height:54px;flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:var(--hint);font-size:10px;padding:4px 8px;letter-spacing:.1px}
.bottom-nav svg{width:25px;height:25px;stroke-width:1.65}
.bottom-nav [data-go="my-keys"] svg{color:var(--icon-orange)}
.bottom-nav [aria-current=page]{color:var(--accent)}
.action-bar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;padding:10px 16px max(12px,env(safe-area-inset-bottom));background:var(--bottom-bar);border-top:.5px solid var(--separator);z-index:11}
.primary-action{width:100%;min-height:50px;text-align:center;border-radius:12px;font-size:17px;font-weight:600;background:var(--button);color:var(--on-accent)}
.primary-action:active:not(:disabled){background:var(--button);opacity:.8}
.primary-action:disabled{opacity:.45}
.preview-label{text-align:center;color:var(--hint);font-size:11px;padding:9px 0 0}
.notice{position:fixed;bottom:calc(84px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);display:flex;gap:10px;align-items:center;background:var(--toast-bg);color:var(--toast-fg);border-radius:12px;padding:13px 16px;font-size:14px;z-index:30;box-shadow:0 5px 20px var(--shadow)}
.notice>svg{width:21px;height:21px;flex-shrink:0}
.error{color:var(--destructive);font-size:14px;line-height:1.4;background:var(--surface);border-radius:11px;padding:13px 16px;margin-top:12px}
.error button{display:block;color:var(--accent);min-height:44px;margin:4px -4px -7px;padding:8px 4px;font-weight:500}
.request-progress{position:fixed;top:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:20;width:min(600px,100%);min-height:46px;display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:.5px solid var(--separator);background:var(--surface);color:var(--subtitle);font-size:14px;line-height:1.3;box-shadow:0 2px 8px var(--shadow)}
.request-progress-spinner{width:17px;height:17px;flex:0 0 17px;border:2px solid var(--separator);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}
@media(prefers-reduced-motion:reduce){.request-progress-spinner{animation:none}}
.loading{text-align:center;padding:100px 16px;color:var(--hint);font-size:15px}
.spinner{display:block;width:25px;height:25px;border:2px solid var(--separator);border-top-color:var(--hint);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 17px}
@keyframes spin{to{transform:rotate(360deg)}}
dialog{border:0;padding:0;width:min(300px,calc(100% - 48px));border-radius:14px;background:var(--surface);color:var(--text);text-align:center;box-shadow:0 8px 40px var(--shadow)}
dialog::backdrop{background:var(--overlay)}
dialog h2{font-size:17px;line-height:1.3;font-weight:600;padding:20px 18px 7px}
dialog p{font-size:13px;line-height:1.4;padding:0 18px 21px}
html:has(dialog.pro-upsell[open]){overflow:hidden;overscroll-behavior:none}
.pro-upsell{position:fixed;inset:0;width:min(420px,calc(100% - 32px));max-width:420px;max-height:calc(100% - 24px);margin:auto;padding:25px 22px 20px;border:1px solid var(--separator);border-radius:22px;background:var(--surface);color:var(--text);text-align:left;box-shadow:0 16px 48px #0007;overflow-y:auto;overscroll-behavior:contain}
dialog.pro-upsell::backdrop{background:#0009;backdrop-filter:blur(4px)}
.pro-upsell-close{position:absolute;top:12px;right:12px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--tap);color:var(--hint);font-size:27px;line-height:1}
.pro-upsell-badge,.tariff-pro-badge{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:27px;padding:0 10px;border-radius:14px;background:var(--tap);color:var(--accent);font-size:12px;font-weight:700;letter-spacing:.6px}
.pro-upsell h2{padding:14px 44px 7px 0;font-size:23px;line-height:1.2;font-weight:700}
.pro-upsell p{padding:0 0 12px;color:var(--hint);font-size:14px;line-height:1.5}
.pro-upsell ul,.tariff-pro-card ul{list-style:none;margin:0;padding:0}
.pro-upsell li,.tariff-pro-card li{position:relative;padding:7px 0 7px 26px;font-size:14px;line-height:1.4}
.pro-upsell li:before,.tariff-pro-card li:before{content:"✓";position:absolute;left:2px;top:7px;color:var(--accent);font-weight:700}
.pro-upsell-cta,.tariff-buy{width:100%;min-height:50px;margin-top:17px;padding:11px 16px;border-radius:12px;background:var(--button);color:var(--on-accent);text-align:center;font-size:16px;font-weight:600}
.pro-upsell-cta:active:not(:disabled),.tariff-buy:active:not(:disabled){filter:brightness(.95)}
dialog.key-delete-dialog{background:var(--surface);color:var(--text)}
dialog.key-delete-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}
.key-delete-badge{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:27px;padding:0 10px;border-radius:14px;background:var(--tap);color:var(--destructive)}
.key-delete-badge svg{width:16px;height:16px}
.key-delete-label{display:block;margin:0 0 8px;color:var(--hint);font-size:13px;line-height:1.4}
.key-delete-label strong{color:var(--text);font-weight:650;letter-spacing:.3px}
.key-delete-input{display:block;width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--separator);border-radius:12px;background:var(--tap);color:var(--text);font:inherit;font-size:16px;letter-spacing:.4px;outline:none}
.key-delete-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent)}
.key-delete-actions{display:flex;flex-direction:column;gap:0;margin-top:12px}
.key-delete-actions button{width:100%;min-width:0;min-height:36px;padding:6px 12px;border-radius:10px;background:transparent;color:var(--hint);text-align:center;font-size:14px;font-weight:500}
.key-delete-actions button:last-child{min-height:50px;margin-top:8px;padding:11px 16px;border-radius:12px;background:var(--destructive);color:#fff;font-size:16px;font-weight:600}
.key-delete-actions button:last-child:disabled{background:var(--tap);color:var(--hint)}
.key-delete-actions button:active:not(:disabled){filter:brightness(.94)}
.tariff-summary{display:grid;gap:5px;padding:15px 16px}
.tariff-summary strong{font-size:17px;font-weight:600}
.tariff-summary span{color:var(--hint);font-size:13px;line-height:1.45}
.tariff-pro-section{margin-top:27px}
.tariff-pro-card{padding:17px 16px 16px;border:1px solid var(--separator);border-radius:14px;background:var(--surface)}
.tariff-pro-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:16px;font-weight:600}
.tariff-note{margin-top:12px;color:var(--hint);font-size:13px;line-height:1.45}
.dialog-actions{display:flex;border-top:.5px solid var(--separator)}
.dialog-actions button{width:50%;min-height:49px;color:var(--accent);text-align:center;font-size:17px;padding:10px 5px}
.dialog-actions button+button{border-left:.5px solid var(--separator);font-weight:600}
.dialog-actions .destructive{color:var(--destructive)}
.photo-placeholder{width:min(240px,75vw);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--hint);margin:24px auto;position:relative;overflow:hidden}
.photo-placeholder>svg{width:50px;height:50px}
.photo-placeholder canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}
.photo-placeholder canvas:active{cursor:grabbing}
.photo-placeholder canvas:focus-visible{outline:2px solid var(--accent);outline-offset:-4px;border-radius:50%}
.photo-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 16px 20px}
.photo-controls input{min-width:0;width:100%;min-height:44px;margin:0;padding:0;accent-color:var(--accent);touch-action:none}
.photo-controls button{color:var(--accent);min-height:44px;padding:0 6px}
.photo-controls p{grid-column:1/-1;margin:0}
.file-choice{display:block;width:100%;color:var(--accent);text-align:center;padding:15px 16px;min-height:52px}
.file-choice:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
body.android .section-body,body.android .profile{border-radius:12px}
body.android .cell-title{font-size:16px}
body.android .section-title{text-transform:none;font-weight:500}
body.android .screen-header h1{font-size:25px;font-weight:600}
@media(max-width:350px){.shell{padding-left:12px;padding-right:12px}.cell{padding-left:13px;padding-right:13px;gap:11px}.cell-value{font-size:13px;max-width:42%}.cell-title{font-size:16px}.screen-header h1{font-size:26px}.profile{padding:15px 13px}.profile h2{font-size:16px}.section-footer{margin-left:13px;margin-right:13px}.cell-content .cell-subtitle{font-size:12px}.section-title{padding-left:13px}.counter{font-size:15px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* One explicit route to the website, outside quick chat controls. */
.website-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--separator);border-radius:12px;background:var(--surface);color:var(--text);padding:18px 16px;margin:24px 0;min-height:90px}
.website-card>span:nth-child(2){flex:1;min-width:0}.website-card strong{font-size:16px;font-weight:550;display:block}.website-card small{display:block;font-size:13px;color:var(--hint);line-height:1.5;margin-top:5px}.website-card-label{align-self:flex-start;font-size:11px;white-space:nowrap;color:var(--hint);border:1px solid var(--separator);border-radius:4px;padding:4px 6px}
.website-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:350px){.website-card{padding:15px 12px;gap:10px}.website-card-label{font-size:10px}.website-card strong{font-size:15px}}
