@font-face{font-family:"MesloLGL Nerd Font";src:url("/fonts/MesloLGLNerdFont-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"MesloLGL Nerd Font";src:url("/fonts/MesloLGLNerdFont-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"MesloLGL Nerd Font";src:url("/fonts/MesloLGLNerdFont-Italic.ttf") format("truetype");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:Huninn;src:url("/fonts/jf-openhuninn-2.1.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
:root{--bg:#f5f0e8;--paper:#fffdf9;--ink:#392e27;--muted:#827263;--brown:#75513d;--caramel:#ad7851;--line:#e8dfd3;--soft:#ede4d8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"MesloLGL Nerd Font",Huninn,"Microsoft JhengHei",monospace;font-size:16px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid var(--caramel);outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #b48b68;outline-offset:2px}[hidden]{display:none!important}.header{max-width:1240px;margin:auto;padding:26px 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-size:24px;font-weight:700;letter-spacing:-.7px}.brand-icon{width:38px;height:38px;background:var(--brown);color:#fff5e5;border-radius:12px;display:grid;place-items:center;font:italic 30px Georgia}.brand-light{font-weight:700;color:var(--muted)}.header-right{display:flex;gap:26px;align-items:center}.domain{font-size:12px;letter-spacing:2px;color:var(--muted)}.small-pill{background:#ece6da;padding:9px 13px;border-radius:30px;font-size:13px;color:#6f6654}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#80916b;margin-right:5px}main{max-width:1080px;margin:auto;padding:0 32px}.hero{display:flex;align-items:center;justify-content:space-between;padding:53px 14px 45px;min-height:300px}.eyebrow{color:#9c7757;font-size:12px;font-weight:700;letter-spacing:2.6px;margin:0 0 20px}h1{font-size:clamp(34px,3.8vw,50px);font-weight:700;line-height:1.5;letter-spacing:1px;margin:0}.accent{color:#997253}.intro{color:var(--muted);line-height:1.9;font-size:15px;margin:17px 0 0}.hero-art{position:relative;width:260px;height:215px;margin-right:45px}.art-orbit{position:absolute;border:1px solid #dfd0bb;border-radius:50%;width:203px;height:203px;left:30px;top:0}.cup{position:absolute;top:68px;left:65px;width:115px;height:104px;background:linear-gradient(100deg,#f0dfc6,#d2b48e);border-radius:10px 10px 46px 46px;box-shadow:inset 7px 0 12px #fff5}.cup:after{content:'';position:absolute;right:-30px;top:15px;width:34px;height:43px;border:11px solid #d4b893;border-left:0;border-radius:0 25px 25px 0}.cup span{position:absolute;top:35px;left:40px;color:#876648;font:italic 38px Georgia}.tea{height:18px;border:5px solid #e8d3b5;background:#957052;border-radius:50%;position:relative;top:-7px}.saucer{position:absolute;top:165px;left:43px;width:164px;height:27px;border-radius:50%;background:#ddcbb3;z-index:-1;box-shadow:0 15px 22px #75513d12}.code-tag{position:absolute;z-index:2;right:7px;top:45px;background:var(--paper);border:1px solid var(--line);box-shadow:0 8px 18px #75513d08;padding:11px 13px;border-radius:12px;transform:rotate(10deg);color:var(--brown);font:18px monospace}.steam{position:absolute;width:8px;height:31px;border-left:2px solid #baa185;border-radius:50%;top:24px}.steam-one{left:104px;transform:rotate(12deg)}.steam-two{left:126px;top:17px;transform:rotate(-8deg)}.art-caption{position:absolute;bottom:-9px;left:66px;font-size:9px;letter-spacing:2px;color:#9b8167}.workspace{background:var(--paper);border:1px solid var(--line);border-radius:19px;box-shadow:0 12px 45px #70503906;overflow:hidden}.workspace-top{padding:24px 28px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.workspace-top>div{display:flex;align-items:center;gap:11px}h2{font-size:18px;margin:0;font-weight:700}.step-number{font:12px Georgia;color:#a17d5f;background:#f0e7da;padding:7px;border-radius:7px}.expiry-pill{font-size:13px;color:#8b735b;background:#f3ece1;padding:7px 11px;border-radius:20px}form{padding:25px 28px 26px}.fields{display:flex;gap:18px;margin-bottom:24px}label{display:flex;flex-direction:column;gap:9px;font-size:14px;font-weight:700}.fields label{position:relative}.fields label>span{position:absolute;left:64px;color:#a29588;font-size:12px;font-weight:700;top:1px}.title-field{flex:1}input,select{background:#fffefa;border:1px solid var(--line);border-radius:8px;padding:12px;color:var(--ink);min-width:0}input::placeholder,textarea::placeholder{color:#ae9c89}select{min-width:175px}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;background:#f0e8dd;border:1px solid #e5d9c9;border-bottom:0;border-radius:10px 10px 0 0;padding:0 14px;min-height:46px}.tabs{display:flex;align-self:stretch;gap:18px}.tab{padding:0 2px;border:0;border-bottom:2px solid transparent;color:#95816d;background:none;font-size:14px}.tab.active{border-bottom-color:var(--brown);color:var(--brown);font-weight:700}.text-button{background:none;border:0;color:#8d7056;font-size:13px;padding:8px}.editor-shell{display:flex;background:#faf7f1;border:1px solid #e5d9c9;border-top:0;height:310px;overflow:hidden}.line-numbers{padding:19px 12px 19px 16px;min-width:48px;text-align:right;font:14px/28px "MesloLGL Nerd Font",Huninn,monospace;white-space:pre;color:#b4a38f;border-right:1px solid #ede5da;overflow:hidden;user-select:none}textarea,.code-preview{font:15px/28px "MesloLGL Nerd Font",Huninn,monospace;tab-size:2;color:#5d4939;white-space:pre;overflow:auto;flex:1;min-width:0;padding:19px 18px;margin:0;border:0;background:transparent;resize:none}.editor-shell textarea:focus{outline:none}.editor-shell:focus-within{box-shadow:inset 0 0 0 2px #b48b68}.editor-status{border:1px solid #e5d9c9;border-top:0;border-radius:0 0 10px 10px;background:#f6f0e7;padding:9px 14px;display:flex;justify-content:space-between;color:#99836c;font-size:12px}.form-bottom{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.password-field{width:300px}.password-field input{padding:10px 12px;font-size:14px}.password-field>span{color:#9a8a7b;font-size:12px;font-weight:700}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:16px;background:var(--brown);color:#fff9f0;border:1px solid var(--brown);border-radius:9px;padding:13px 21px;font-size:15px;font-weight:700;transition:background .2s,transform .2s}.primary-button:hover{background:#5d3e2d;transform:translateY(-1px)}button:disabled{opacity:.55;cursor:wait}.secondary-button{background:#f8f2e9;color:var(--brown);border:1px solid var(--line);border-radius:9px;padding:13px 18px}.notes{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:31px 5px 45px}.notes article{display:flex;gap:12px}.note-icon{color:#9a7855;background:#ece3d6;border-radius:11px;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;font-size:21px}.notes h3{margin:1px 0 8px;font-size:14px;font-weight:700}.notes p{margin:0;font-size:13px;line-height:1.8;color:#978674}footer{display:flex;justify-content:space-between;gap:20px;max-width:1176px;margin:auto;border-top:1px solid var(--line);padding:24px 10px 30px;color:#a08f7d;font-size:12px}.footer-brand{font-weight:700;color:#8c715b}#message{margin:0 28px 22px;padding:12px 15px;border-radius:8px;background:#f8e9de;color:#8f482c;line-height:1.7}#share-result{margin:0 28px 28px;padding:22px;background:#f0f1e7;border:1px solid #dce0cb;border-radius:12px}#share-result strong{font-size:16px}.success-mark{color:#68754f;margin-right:9px}#share-result p{font-size:14px;color:#7b816b;margin:10px 0 17px}.result-link{display:flex;gap:10px}.result-link input{flex:1;font-size:14px}#open-share{display:inline-block;margin-top:12px;color:#65704c;font-size:14px}.read-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:14px;margin:23px 28px}.read-code-wrap{margin:0 28px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#faf7f1}.read-code{margin:0;padding:23px;font:15px/1.9 "MesloLGL Nerd Font",Huninn,monospace;overflow:auto;tab-size:2;max-height:65vh}.read-actions{padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.read-actions>span{font-size:13px;color:var(--muted)}.read-actions>div{display:flex;gap:10px}#loading-view,#error-view{text-align:center;padding:65px 25px;color:var(--muted)}.empty-icon{font-size:46px;color:var(--caramel)}#error-view h3{font-size:25px;color:var(--ink)}#error-view p{margin:20px 0 30px;line-height:1.8}.token-comment{color:#929179;font-style:italic}.token-string{color:#788155}.token-keyword{color:#a16b72}.token-number{color:#b07b43}
@media(min-width:1400px){.hero{padding-top:65px;padding-bottom:55px}.editor-shell{height:340px}}@media(max-width:700px){.header{padding:20px}.domain{display:none}.header-right{gap:0}.small-pill{font-size:12px;padding:7px 9px}.brand{font-size:20px;gap:8px}.brand-icon{width:32px;height:32px;font-size:30px}main{padding:0 16px}.hero{padding:35px 5px;min-height:0}.hero-art{width:130px;transform:scale(.63);transform-origin:right center;margin-right:0;margin-left:-80px}.eyebrow{font-size:9px;letter-spacing:1.4px}h1{font-size:32px;letter-spacing:0}.intro{font-size:14px}.workspace-top{padding:19px 16px}.expiry-pill{font-size:10px;padding:6px 8px}h2{font-size:16px}form{padding:20px 16px}.fields{gap:12px}.fields label{font-size:13px}.fields label>span{left:57px}select{min-width:115px;max-width:130px}.editor-shell{height:310px}.form-bottom{align-items:stretch;flex-direction:column;gap:18px}.password-field{width:100%}.notes{grid-template-columns:1fr;gap:20px;margin:27px 3px}.notes p{font-size:14px}.notes h3{font-size:15px}footer{margin:0 20px;padding:20px 0;flex-wrap:wrap;gap:12px}footer>span:last-child{display:none}.read-actions{flex-direction:column;align-items:stretch;padding:20px 16px}.read-actions>div{justify-content:flex-end}.read-code-wrap{margin:0 16px}.read-meta{margin:20px 16px;gap:10px;flex-wrap:wrap}.result-link{flex-direction:column}#share-result{margin:0 16px 20px;padding:16px}#message{margin:0 16px 20px}.editor-status{font-size:10px}.editor-toolbar{padding:0 10px}.tabs{gap:13px}.hero-art .art-caption{white-space:nowrap}}

/* MesloLGL is primary; Huninn supplies Traditional Chinese glyphs. */
.brand-logo{display:block;object-fit:contain;width:40px;height:40px;flex-shrink:0}.brand{font-weight:700;letter-spacing:0}.hero h1{font-weight:700;line-height:1.6}h2,.notes h3,label,.tab.active{font-weight:700}.intro{font-size:16px;line-height:2}.fields label>span{left:78px}.brand-icon{display:none}@media(max-width:700px){.brand-logo{width:34px;height:34px}.intro{font-size:14px}}

/* A text-only color layer tracks the textarea without executing pasted code. */
body{font-weight:700}
.editing-surface{position:relative;flex:1;min-width:0;height:100%;overflow:hidden}
.editing-surface textarea,.live-highlight{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:19px 18px;border:0;box-sizing:border-box;font:700 15px/28px "MesloLGL Nerd Font",Huninn,monospace;letter-spacing:normal;tab-size:2;white-space:pre;overflow:auto;scrollbar-gutter:stable}
.live-highlight{pointer-events:none;color:#5d4939;background:transparent;scrollbar-width:none}
.live-highlight::-webkit-scrollbar{display:none}
.editing-surface textarea{color:transparent;-webkit-text-fill-color:transparent;caret-color:#5d4939;background:transparent;resize:none}
.editing-surface textarea::placeholder{-webkit-text-fill-color:#ae9c89;color:#ae9c89}
.editing-surface textarea::selection{background:#bca07f55}
.line-numbers,.code-preview,.read-code,.live-highlight code{font-weight:700}
.token-comment{color:#727960;font-style:normal}.token-string{color:#617541}.token-keyword{color:#9b506f}.token-number{color:#a8632c}
@media(forced-colors:active){.live-highlight{display:none}.editing-surface textarea{color:CanvasText;-webkit-text-fill-color:CanvasText}}

@media(max-width:700px){.header{flex-wrap:wrap;gap:14px}.workspace-top{flex-wrap:wrap}.editor-toolbar{flex-wrap:wrap;gap:6px}.tabs{min-height:46px}.editor-status{flex-wrap:wrap;gap:6px}.notes p{line-height:1.9}}

.public-sharing-note{display:flex;flex-direction:column;gap:9px;font-size:14px;color:var(--brown);line-height:1.7}.public-sharing-note span{font-size:12px;color:var(--muted)}
.workspace-top>div{min-width:0}#panel-title{overflow-wrap:anywhere;min-width:0}

.header-right{flex-wrap:wrap;gap:16px}.header-nav{display:flex;align-items:center;gap:10px}.header-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #d8c5b1;background:#fffaf3;color:var(--brown);border-radius:10px;padding:10px 14px;font-size:13px;line-height:1.5;white-space:nowrap;transition:background .18s,border-color .18s}.header-link:hover{background:#e9dccb;border-color:#b89879}.header-link span{color:#a17b59}@media(max-width:700px){.header-right{width:100%;justify-content:space-between;gap:10px}.header-link{font-size:12px;padding:9px 12px}.header-right .small-pill{font-size:10px}}@media(max-width:390px){.header-right .small-pill{display:none}}

.share-mode{display:flex;gap:8px;padding:20px 28px 0}.mode-button{border:1px solid var(--line);background:#f7f0e5;border-radius:10px;padding:11px 18px;font-size:14px;color:var(--muted)}.mode-button.active{background:var(--brown);color:#fff9ef;border-color:var(--brown)}
.file-intro{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.file-intro h3{margin:0 0 10px;font-size:19px}.file-intro p{margin:0;font-size:13px;line-height:1.8;color:var(--muted)}
.dropzone{display:flex;align-items:center;justify-content:center;gap:12px;min-height:230px;padding:28px;border:2px dashed #cfb79a;border-radius:14px;background:#faf5ed;text-align:center;cursor:pointer;position:relative;transition:background .15s,border-color .15s}.dropzone:hover,.dropzone.dragging,.dropzone:focus-within{background:#f0e6d6;border-color:var(--brown)}.dropzone:focus-within{outline:2px solid var(--brown);outline-offset:3px}.dropzone strong{font-size:18px}.dropzone>span:last-of-type{font-size:13px;color:var(--muted)}.upload-symbol{font:700 34px/1 "MesloLGL Nerd Font",monospace;color:#b18a63;background:#ede0cb;padding:16px;border-radius:18px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.selected-file{display:flex;align-items:center;gap:15px;padding:17px;margin-top:16px;background:#f2ecdf;border-radius:12px;border:1px solid var(--line)}.selected-file>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}.selected-file strong{overflow-wrap:anywhere;font-size:14px}.selected-file span{color:var(--muted);font-size:12px}.file-badge{display:inline-grid;place-items:center;background:#e9ddc9;color:var(--brown);border-radius:12px;min-width:42px;height:42px;font-size:22px}.file-hint{color:var(--muted);font-size:12px;line-height:1.9}.shared-file-card{margin:0 28px;padding:28px;background:#faf6ee;border:1px solid var(--line);border-radius:12px;text-align:center}.shared-file-card h3{overflow-wrap:anywhere;font-size:19px;line-height:1.8}.shared-file-card>p{color:var(--muted);font-size:13px}.shared-file-card img{display:block;max-width:100%;max-height:65vh;width:auto;height:auto;margin:24px auto 0;border-radius:8px;object-fit:contain}
@media(max-width:700px){.share-mode{padding:18px 16px 0}.mode-button{font-size:13px;padding:10px 14px}.file-intro{align-items:flex-start;flex-direction:column}.file-intro h3{font-size:18px}.dropzone{min-height:210px;padding:20px}.dropzone strong{font-size:16px}.shared-file-card{margin:0 16px;padding:20px}.selected-file{gap:10px}.selected-file strong{font-size:12px}}

.upload-rules{margin:0 0 22px;padding:22px;background:#f3ecdf;border:1px solid #dfcfb9;border-radius:14px}.upload-rules h4{font-size:16px;margin:0 0 17px;color:var(--brown)}.upload-rules dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:0 0 19px}.upload-rules dt{font-size:12px;color:var(--muted);margin-bottom:7px}.upload-rules dd{font-size:13px;line-height:1.8;margin:0;color:var(--ink)}.upload-rules p{font-size:12px;line-height:1.9;margin:10px 0 0;overflow-wrap:anywhere}.upload-rules .rules-caution{padding:12px;border-radius:8px;background:#eadcc9;color:#6f4b32}.upload-rules .rules-reset{font-size:11px;color:var(--muted)}@media(max-width:700px){.upload-rules{padding:17px}.upload-rules dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.upload-rules dd{font-size:12px}.upload-rules h4{font-size:15px}}@media(max-width:350px){.upload-rules dl{grid-template-columns:1fr}}
