@charset "UTF-8";
:root{color-scheme:dark;--page:#0c1210;--shell:#101715;--surface:#19211e;--input:#141d19;--output:#202c18;--accent:#caf779;--accent-hover:#d9ff98;--ink:#f3f5f3;--muted:#91a09a;--border:#3b4c44;--soft-border:#2c3b33;--accent-ink:#172209;--bear-body:#101715;--bear-detail:#f6f8ed;--focus:rgba(202,247,121,.23);--danger:#ffaaa0;--shadow:0 24px 80px #0002;font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;font-synthesis:none}
:root[data-theme="honey"]{color-scheme:light;--page:#f7f3e9;--shell:#fffcf6;--surface:#fffefa;--input:#fffefa;--output:#fff5dc;--accent:#f0b732;--accent-hover:#eaa81b;--ink:#38291e;--muted:#8b8072;--border:#dbcbb2;--soft-border:#eadfce;--accent-ink:#34230d;--bear-body:#7b4b2a;--bear-detail:#fff3dc;--focus:rgba(228,173,71,.23);--danger:#a63620;--shadow:0 24px 80px #a98a4310}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{cursor:pointer}button,input,textarea{color:inherit}button{touch-action:manipulation}button:disabled{cursor:default;opacity:.43}button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:5px}input:focus,textarea:focus{outline:none}button{border:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-button{display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;padding:0;border-radius:10px;background:transparent;color:var(--muted)}.icon-button:hover{background:var(--surface);color:var(--ink)}
.site-shell{max-width:1140px;margin:40px auto 0;border:1px solid var(--border);border-radius:20px;background:var(--shell);box-shadow:var(--shadow)}.site-header{height:88px;border-bottom:1px solid var(--soft-border);padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:inline-flex;align-items:center;gap:15px;font-size:27px;font-weight:750;letter-spacing:.02em;white-space:nowrap}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:var(--accent);color:var(--bear-body)}.brand-mark svg{width:33px;height:33px}.bear-features{fill:var(--accent)}.header-actions{display:flex;gap:17px;align-items:center}.settings-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:44px;padding:7px 14px 7px 8px;border:1px solid var(--border);border-radius:999px;background:var(--output);color:var(--accent-text);font-size:14px;font-weight:600;line-height:1;white-space:nowrap}.settings-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 1px var(--soft-border)}.settings-button .icon{width:17px;height:17px;stroke-width:1.8}.settings-button:hover{border-color:var(--accent);background:var(--surface)}
main{padding:0 32px 26px}.hero{text-align:center;padding:32px 0 25px}.hero h1{margin:0;font-size:34px;font-weight:750;line-height:1.5;letter-spacing:.015em}.hero p{margin:8px 0 0;color:var(--muted);font-size:16px;letter-spacing:.04em}.mode-tabs{width:470px;max-width:100%;display:flex;margin:0 auto 36px;border:1px solid var(--border);padding:4px;border-radius:12px}.mode-tab{width:50%;height:47px;background:transparent;font-size:20px;font-weight:650;border-radius:8px;color:var(--muted)}.mode-tab.is-active{color:var(--accent-ink);background:var(--accent)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);gap:12px;align-items:stretch}.editor-card{position:relative;min-width:0;padding:18px 16px 14px;border:1px solid var(--border);border-radius:13px;background:var(--surface)}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;min-height:28px}.card-heading h2{display:flex;gap:12px;align-items:center;font-size:20px;margin:0;font-weight:650;white-space:nowrap}.step{color:var(--accent);border:1px solid var(--border);padding:0 6px;border-radius:5px;font-size:18px;line-height:27px;font-weight:500}.card-hint{color:var(--muted);font-size:12px}.output-card .card-hint{padding-right:80px}.input-card textarea{width:100%;min-height:205px;height:205px;display:block;border:1px solid var(--border);border-radius:11px;background:var(--input);padding:16px;font-size:19px;line-height:1.8;resize:vertical;overflow:auto;min-width:0}.input-card textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus)}textarea::placeholder,input::placeholder{color:var(--muted);opacity:.8}.card-footer{display:flex;min-height:42px;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}.character-count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.small-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:7px 16px;background:transparent;border:1px solid var(--border);border-radius:9px;font-size:14px;font-weight:600;white-space:nowrap}.small-button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.copy-button{border-color:var(--accent);color:var(--ink)}.peeking-bear{position:absolute;width:99px;height:59px;right:23px;top:-28px;pointer-events:none}.result-surface{display:flex;align-items:flex-start;min-height:205px;background:var(--output);border:1px solid var(--soft-border);border-radius:11px;padding:16px}.result-content{width:100%;font-size:19px;line-height:1.8;letter-spacing:.03em;color:var(--accent);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:171px;overflow:hidden;font-weight:550}.result-content.is-empty{color:var(--accent);font-size:18px}.result-content.is-empty span{display:block;font-size:15px;color:var(--muted);letter-spacing:0;font-weight:400;margin-top:4px}.result-surface.is-expanded .result-content{max-height:440px;overflow:auto}.result-surface.is-decrypted .result-content:not(.is-empty){color:var(--ink);letter-spacing:0;font-weight:400}.expand-button{display:flex;align-items:center;gap:3px;color:var(--accent);background:transparent;font-size:12px;margin:8px 0 -4px auto;padding:2px 0}.expand-button .icon{width:15px;height:15px}.expand-button[aria-expanded="true"] .icon{transform:rotate(180deg)}.swap-button{align-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px 3px;min-height:130px;border:1px solid var(--border);border-radius:15px;background:var(--surface);font-size:12px;line-height:1.7}.swap-button .icon{color:var(--accent);width:30px;height:30px}.swap-button:hover{border-color:var(--accent)}
.passphrase-block{margin-top:23px}.passphrase-heading{display:flex;align-items:center;gap:7px;margin-bottom:10px}.passphrase-heading label{font-size:16px;font-weight:500}.passphrase-heading label span{font-weight:400}.help-button{display:grid;place-items:center;background:transparent;color:var(--muted);width:28px;height:28px;padding:3px}.help-button .icon{width:18px;height:18px}.help-button:hover{color:var(--accent)}.passphrase-input{display:flex;align-items:center;gap:10px;height:53px;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:0 13px}.passphrase-input>.icon{color:var(--muted);width:17px;height:17px}.passphrase-input:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus)}.passphrase-input input{flex:1;min-width:0;width:100%;height:100%;padding:0;border:0;background:transparent;font-size:14px}.passphrase-input .icon-button{width:32px;height:32px}.help-text{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.8}.primary-actions{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin-top:24px}.generate-button,.clear-button{display:flex;align-items:center;justify-content:center;gap:13px;min-height:57px;border-radius:10px;font-size:18px;font-weight:650;padding:12px 20px}.generate-button{background:var(--accent);color:var(--accent-ink)}.generate-button:hover:not(:disabled){background:var(--accent-hover)}.generate-button .icon{width:25px;height:25px}.clear-button{background:transparent;border:1px solid var(--border);color:var(--ink)}.clear-button:hover:not(:disabled){border-color:var(--muted)}.utility-line{display:flex;align-items:center;justify-content:flex-end;margin-top:17px;font-size:11px;color:var(--muted)}.utility-line button{display:flex;align-items:center;gap:3px;background:transparent;padding:2px 0;color:var(--muted);font-size:11px}.utility-line button:hover{color:var(--accent)}.utility-line .icon{width:14px;height:14px}.status-message{font-size:13px;color:var(--danger);padding:11px 14px;margin:16px 0 0;border:1px solid var(--border);border-radius:8px;line-height:1.7}.status-message.is-working{color:var(--muted)}.page-footer{text-align:center;color:var(--muted);opacity:.6;font-size:11px;margin:22px 12px 26px}.page-footer span{margin:0 11px}
dialog{border:1px solid var(--border);border-radius:20px;width:min(540px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:27px;background:var(--shell);color:var(--ink);box-shadow:0 24px 100px #0006}dialog::backdrop{background:#050a07aa;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:25px}.dialog-header h2{margin:2px 0 0;font-size:26px;font-weight:650}.eyebrow{font-size:11px;letter-spacing:.08em;color:var(--muted)}.theme-fieldset{border:0;padding:0;margin:0}.theme-fieldset legend{font-size:15px;font-weight:600;padding:0}.settings-description{font-size:12px;color:var(--muted);margin:6px 0 17px}.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.theme-option{position:relative;cursor:pointer;display:block;padding:8px;border:1px solid var(--border);border-radius:12px;min-width:0}.theme-option:has(input:checked){border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.theme-option:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:3px}.theme-option input{position:absolute;opacity:0;pointer-events:none}.theme-preview{position:relative;display:block;height:105px;border-radius:7px;border:1px solid;overflow:hidden}.preview-dark{background:#101715;border-color:#3b4c44;color:#caf779}.preview-honey{background:#fffaf0;border-color:#dfccb1;color:#eab23a}.theme-preview::before{content:"";position:absolute;left:10px;right:10px;height:1px;top:24px;background:currentColor;opacity:.24}.theme-preview::after{content:"";position:absolute;width:12px;height:12px;border-radius:4px;left:10px;top:7px;background:currentColor}.theme-preview i,.theme-preview b,.theme-preview em{display:block;position:absolute;border-radius:4px}.theme-preview i{width:calc(50% - 14px);height:40px;border:1px solid currentColor;opacity:.33;top:35px;left:9px}.theme-preview b{width:calc(50% - 14px);height:40px;background:currentColor;opacity:.18;top:35px;right:9px}.theme-preview em{height:9px;left:9px;right:9px;bottom:10px;background:currentColor}.theme-option-label{display:flex;align-items:center;justify-content:space-between;margin:11px 2px 3px;gap:3px}.theme-option-label strong{font-weight:600;font-size:12px}.theme-option-label small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.theme-check{width:17px;height:17px;color:var(--accent);visibility:hidden}.theme-option:has(input:checked) .theme-check{visibility:visible}.settings-note{display:flex;gap:9px;margin:20px 0;color:var(--muted);align-items:flex-start}.settings-note .icon{width:15px;height:15px;margin-top:3px}.settings-note p{font-size:11px;line-height:1.8;margin:0}.dialog-done{width:100%;min-height:44px;font-size:15px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);z-index:20;background:var(--accent);color:var(--accent-ink);border-radius:10px;padding:12px 20px;font-size:13px;font-weight:550;box-shadow:0 8px 35px #0003;text-align:center}
@media(min-width:1440px){.site-shell{margin-top:64px}}@media(max-width:1190px){.site-shell{margin:24px 24px 0}.card-hint{font-size:11px}.output-card .card-hint{display:none}.hero h1{font-size:32px}}
@media(max-width:700px){.site-shell{margin:14px 12px 0;border-radius:15px}.site-header{height:68px;padding:0 16px;gap:8px}.brand{gap:9px;font-size:21px}.brand-mark{width:31px;height:31px;border-radius:7px}.brand-mark svg{width:26px;height:26px}.header-actions{gap:9px}main{padding:0 16px 18px}.hero{padding:24px 0 21px}.hero h1{font-size:clamp(19px,5.3vw,26px);letter-spacing:0;white-space:nowrap}.hero p{font-size:12px;margin-top:5px;letter-spacing:.03em}.mode-tabs{width:100%;margin-bottom:26px;border-radius:9px;padding:3px}.mode-tab{height:36px;font-size:16px;border-radius:6px}.workspace{display:flex;flex-direction:column;gap:12px}.editor-card{padding:13px 12px 12px;border-radius:11px}.card-heading{margin-bottom:11px;gap:8px}.card-heading h2{font-size:16px;gap:9px}.step{font-size:14px;line-height:22px;padding:0 5px}.card-hint{font-size:10px}.input-card textarea{height:136px;min-height:110px;font-size:16px;line-height:1.8;padding:12px;border-radius:8px}.card-footer{margin-top:10px;min-height:34px}.small-button{min-height:34px;font-size:12px;padding:6px 12px;gap:7px;border-radius:7px}.small-button .icon{width:17px;height:17px}.character-count{font-size:10px}.swap-button{align-self:center;flex-direction:row;min-height:34px;gap:8px;padding:4px 11px;border:0;border-radius:8px;font-size:11px;background:transparent}.swap-button .icon{width:22px;height:22px;transform:rotate(90deg)}.desktop-break{display:none}.peeking-bear{width:74px;height:44px;right:13px;top:-18px}.output-card .card-heading{margin-bottom:12px}.result-surface{min-height:88px;padding:12px;border-radius:8px}.result-content{font-size:16px;line-height:1.8;max-height:115px;letter-spacing:.02em}.result-content.is-empty{font-size:16px}.result-content.is-empty span{font-size:12px}.result-surface.is-expanded .result-content{max-height:350px}.output-card .card-footer{gap:8px}.copy-button{flex:1}.passphrase-block{margin-top:19px}.passphrase-heading{margin-bottom:7px}.passphrase-heading label{font-size:14px}.passphrase-input{height:46px;padding:0 10px}.passphrase-input input{font-size:12px}.primary-actions{grid-template-columns:1fr;gap:10px;margin-top:21px}.generate-button,.clear-button{min-height:47px;font-size:15px;gap:10px;border-radius:9px;padding:10px}.generate-button .icon{width:22px;height:22px}.clear-button .icon{width:20px;height:20px}.utility-line{font-size:10px;margin-top:14px}.utility-line button{font-size:10px}.page-footer{font-size:10px;margin:16px 12px 20px}.status-message{font-size:12px;padding:9px 11px}dialog{padding:21px;border-radius:16px}.dialog-header{margin-bottom:20px}.theme-options{gap:9px}.theme-option{padding:6px}.theme-preview{height:90px}.theme-preview i,.theme-preview b{height:30px}.theme-option-label strong{font-size:11px}.theme-option-label small{font-size:9px}.theme-check{width:14px}.toast{bottom:18px}}
.workspace{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.hero{padding-bottom:38px}
.card-tools{display:flex;gap:8px}
.card-tools .small-button{padding-inline:12px}
.panel-action{width:100%;margin-top:16px;min-height:50px;font-size:16px}
.decrypt-action{background:transparent;border:1px solid var(--accent);color:var(--accent-text)}
.decrypt-action:hover:not(:disabled){background:var(--output)}
.cipher-field{width:100%;min-height:205px;height:205px;display:block;border:1px solid var(--border);border-radius:11px;background:var(--output);padding:16px;font-size:19px;line-height:1.8;letter-spacing:.03em;color:var(--accent-text);resize:vertical;overflow:auto;overflow-wrap:anywhere;word-break:break-word;min-width:0}
.cipher-field:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus)}
.cipher-field.is-expanded{height:440px}
.output-card{display:flex;flex-direction:column}
.output-card .card-hint{display:block;padding-right:0;flex:1;min-width:0;line-height:1.5;text-align:right;overflow-wrap:anywhere}
.output-card .panel-action{margin-top:auto}
.output-card .card-footer{margin-bottom:16px}
.clear-actions{display:flex;justify-content:center;margin-top:25px}
.clear-all-button{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-width:220px;min-height:51px;padding:12px 34px;border:1px solid var(--muted);border-radius:11px;background:var(--surface);color:var(--ink);font-size:16px;font-weight:650}
.clear-all-button .icon{width:22px;height:22px}
.clear-all-button:hover:not(:disabled){border-color:var(--accent-text);color:var(--accent-text);background:var(--output)}
@media(max-width:700px){.clear-actions{margin-top:21px}.clear-all-button{min-width:210px;min-height:48px;font-size:15px;padding:11px 28px}}
@media(max-width:700px){.hero{padding-bottom:30px}.workspace{gap:28px}.card-tools{gap:7px}.card-tools .small-button{padding-inline:10px}.panel-action{min-height:43px;margin-top:13px;font-size:14px}.cipher-field{height:136px;min-height:110px;font-size:16px;line-height:1.8;padding:12px;border-radius:8px}.cipher-field.is-expanded{height:350px}.card-tools .copy-button{flex:initial}.utility-actions{gap:14px}}
:root{--accent-text:var(--accent)}
:root[data-theme="honey"]{--accent-text:#885b0d}
.step,.result-content,.expand-button,.swap-button .icon,.theme-check{color:var(--accent-text)}
.small-button:hover:not(:disabled),.help-button:hover,.utility-line button:hover{color:var(--accent-text)}

@media(prefers-reduced-motion:no-preference){button,.theme-option{transition:background-color .16s,color .16s,border-color .16s}.toast{animation:toast-in .18s ease-out}@keyframes toast-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}}
