:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Malgun Gothic',sans-serif;color:#293139;background:#f1f2ee;color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,textarea,select{font:inherit}button{min-height:44px;padding:10px 14px;border:1px solid transparent;border-radius:12px;background:#edf0e8;color:#394432;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #73923e;outline-offset:2px}button[aria-pressed=true]{background:#eff5df;color:#27361b;border-color:#c9dca4}.primary{background:#bedb71;color:#293719;font-weight:600}#brand{padding:calc(15px + env(safe-area-inset-top)) 23px 15px;background:#fff;border-bottom:1px solid #e0e5da}#brand strong{font-size:16px}#brand span{color:#86a641;font-size:28px;margin-right:7px}body.has-document #brand{display:none}main{max-width:1050px;margin:auto}#welcome{max-width:500px;margin:auto;padding:65px 28px 36px}.eyebrow{font-size:12px;color:#69765b;letter-spacing:1px}h1{font-size:40px;line-height:1.25;letter-spacing:-1.6px;margin:22px 0}p{line-height:1.8;color:#606d71}#start{width:100%;margin:26px 0 12px;padding:17px}small{font-size:12px;color:#717d7a}#welcome>small{display:block;text-align:center}.info{border-top:1px solid #dce2d5;margin-top:42px;padding-top:25px}.info p{font-size:13px}.filebar{display:flex;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 15px 12px;background:#fff;border-bottom:1px solid #dde3d9;position:sticky;top:0;z-index:10}.filebar>div{flex:1;min-width:0}.filebar strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600}.filebar small{display:block;margin-top:3px;font-size:11px}#close{background:transparent;padding:6px;width:44px;font-size:22px}#save{padding:10px 20px}.context{display:flex;align-items:center;gap:10px;padding:14px 22px;font-size:12px;color:#64716c;flex-wrap:wrap}#mode-label{color:#303b32}#hint{border-left:1px solid #d4dccb;padding-left:10px}#dirty{color:#775216;margin-left:auto}.workspace{display:flex;flex-direction:column;gap:12px;padding:0 16px}.document-area{min-width:0;flex:1}#content{position:relative;min-height:160px;background:#fffefa;box-shadow:0 4px 20px #00000009;overflow:hidden;border-radius:3px}.paper-surface{position:relative;background:#fffefa;line-height:0}.paper-surface>canvas.base{display:block;width:100%;height:auto}.ink-layer{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}.ink-layer.active{pointer-events:auto;touch-action:none;cursor:crosshair}.text-document{padding:32px 25px;line-height:1.85;overflow-wrap:anywhere;min-height:400px;color:#293139}.text-document p{white-space:pre-wrap;color:#293139;font-size:16px;line-height:1.85;min-height:1.85em;margin:12px 0}.text-document img{max-width:100%;height:auto;display:block}.editable{border-radius:3px}.editing .editable{outline:1px dashed #b3c693;outline-offset:3px;cursor:text}.editing .editable:focus{outline:2px solid #8bab52}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px;white-space:pre-wrap}td,th{border:1px solid #dce3d6;padding:11px;min-width:78px;max-width:280px;overflow-wrap:anywhere}th{background:#eef2e6;position:sticky;top:0}td:focus{outline:2px solid #9eb669;outline-offset:-2px}.sheet-wrap{overflow:auto;max-height:65vh}.sheet-wrap table{width:max-content;min-width:100%}#sheets{display:flex;gap:7px;overflow:auto;padding:0 17px 12px}#sheets button{flex:none}#notice{font-size:12px;line-height:1.65;color:#6b7568;margin:0 17px 12px}#ink-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:9px;background:#fff;border:1px solid #dfe5d7;border-radius:17px}#ink-tools .tool-group{display:flex;gap:3px}#ink-tools button{font-size:12px;padding:8px}#ink-tools label{font-size:12px;display:flex;gap:5px;align-items:center;min-height:44px}#pen-size{width:75px;accent-color:#87a747}.check input{accent-color:#87a747;width:17px;height:17px}.colors{display:flex}.colors button{width:44px;position:relative;border-radius:50%}.colors button:after{content:'';width:17px;height:17px;border-radius:50%;display:block;background:var(--pen-color)}[data-color='#284fbe']{--pen-color:#284fbe}[data-color='#c04735']{--pen-color:#c04735}[data-color='#242830']{--pen-color:#242830}#edit-tools,#page-tools{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}#edit-tools button,#page-tools button{background:#fff;border:1px solid #e0e5d9;font-size:12px}#controls{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0;font-size:13px;color:#6b7568}#controls button{background:transparent;font-size:12px}.undo-row{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;flex-wrap:wrap}.undo-row button{font-size:12px;background:transparent;color:#616e66}#modes{position:sticky;bottom:0;z-index:10;display:flex;gap:9px;padding:10px 15px calc(12px + env(safe-area-inset-bottom));border:1px solid #dce3d4;border-radius:24px 24px 0 0;background:#fff}#modes button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;flex:1;min-height:68px;background:transparent;color:#657067;font-size:13px}#modes button>span[aria-hidden]{font-size:25px;line-height:1}#modes button[aria-pressed=true]{background:#f0f6df;color:#26331d;border-color:transparent}#status{font-size:12px;margin:0;padding:10px 20px;color:#626d63;min-height:36px}dialog{border:1px solid #dce2d6;border-radius:24px;padding:24px;max-width:480px;width:calc(100% - 28px);max-height:85dvh;overflow:auto;color:#293139;background:#fff}dialog::backdrop{background:#15201875}dialog form{margin:0}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.dialog-head h2{font-size:19px;margin:0}.dialog-head button{font-size:24px;background:none}dialog p{font-size:12px;line-height:1.7}dialog label{display:block;font-size:13px}dialog input[type=text],dialog textarea,dialog select{display:block;width:100%;padding:13px;border:1px solid #d5decc;border-radius:9px;background:#fafbf8;color:#293139;font-size:16px;margin:7px 0 14px}dialog textarea{resize:vertical}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}#save-options{display:flex;flex-direction:column;gap:10px}#save-options button{padding:16px;text-align:left;display:block}#save-options button small{display:block;margin-top:5px;font-size:12px;line-height:1.5}#save-options a{display:block;padding:15px;color:#3d671e;background:#eff6e2;border-radius:10px}#dialog-options{display:flex;gap:10px;flex-wrap:wrap}.presentation-frame{border:0;width:100%;height:320px;min-height:200px;display:block;background:#fff}.ppt-license{display:block;font-size:11px;color:#66705f;padding:10px;background:#f1f3eb}#received-files{padding:12px 17px;display:flex;gap:8px;overflow:auto;align-items:center}#received-files strong{flex:none;font-size:12px}#received-files button{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}.ppt-text-list{padding:18px;display:flex;flex-direction:column;gap:10px}.ppt-text-list button{text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:700px){.workspace{flex-direction:row;padding:0 24px;gap:20px}#ink-tools{flex-direction:column;flex-wrap:nowrap;align-self:flex-start;position:sticky;top:100px;width:90px;flex-shrink:0;gap:10px}#ink-tools .tool-group,.colors{flex-direction:column}#ink-tools .tool-group button{min-width:66px}#ink-tools label{flex-direction:column}.text-document{padding:48px 54px}#modes{max-width:900px;margin:auto;border-radius:24px}#modes button{flex-direction:row;gap:12px;min-height:58px}#reader{padding-bottom:10px}.filebar{padding-left:25px;padding-right:25px}.context{padding:17px 27px}#notice{margin-left:25px}.sheet-wrap{max-height:70vh}}
@media(max-width:360px){.workspace{padding:0 10px}.filebar{padding-left:7px;padding-right:10px;gap:5px}.text-document{padding:25px 18px}.context{padding:11px 14px;font-size:11px}#modes{gap:3px;padding-left:8px;padding-right:8px}#ink-tools button{font-size:11px}#save{padding:10px 14px}}
/* Quiet welcome: typography, spacing and a single brand-colored action. */
body:not(.has-document){background:#fafbf8;min-height:100dvh}body:not(.has-document) #brand{background:transparent;border:0;max-width:1060px;margin:auto;padding:24px 28px}#brand strong{display:flex;align-items:center;gap:10px;font-weight:600;letter-spacing:-.6px;font-size:16px}#brand span{font-size:31px;line-height:1;margin:0;color:#88a841}#welcome{max-width:460px;padding:56px 28px 32px;display:block}#welcome .eyebrow{font-size:11px;letter-spacing:.3px;font-weight:500;color:#849078}#welcome .eyebrow i{display:none}#welcome h1{font-size:36px;line-height:1.3;letter-spacing:-1.9px;font-weight:600;color:#28332c;margin:22px 0 21px}.headline-dot{color:#8eaa54}#welcome .welcome-intro p{font-size:14px;line-height:1.85;color:#737e6a;margin:0}#welcome #start{display:flex;align-items:center;gap:12px;min-height:57px;padding:16px 19px;margin:43px 0 18px;background:#bedb71;color:#2c391d;border-radius:12px;font-size:14px;letter-spacing:-.2px;font-weight:600;border:0;box-shadow:none}#start svg{width:20px;height:20px;flex:none}#start .open-arrow{font-size:23px;font-weight:400;margin-left:auto}#welcome #start:hover{background:#b4d369}#welcome #start:active{background:#aaca5f}.supported-formats{display:flex;justify-content:center;gap:0;font-size:10px;color:#6b755f}.supported-formats span{padding:0 10px;border-right:1px solid #e1e6da;line-height:1}.supported-formats span:last-child{border:0}#welcome .info{display:flex;align-items:flex-start;gap:10px;margin:47px 0 0;padding-top:23px;border-top:1px solid #e3e8da}#welcome .info strong{font-size:12px;color:#68755d;font-weight:500}#welcome .info p{font-size:12px;color:#6b755f;line-height:1.8;margin:6px 0 0}.privacy-symbol{display:flex;align-items:center;justify-content:center;width:20px;height:22px;color:#8d9d79;flex:none}.privacy-symbol svg{width:19px;height:19px}body:not(.has-document) #status:empty{display:none}
@media(min-width:700px){body:not(.has-document) #brand{padding:30px 42px}#welcome{max-width:490px;padding:70px 28px 55px}#welcome h1{font-size:43px;letter-spacing:-2.3px;margin:24px 0}#welcome .welcome-intro p{font-size:15px}#welcome .eyebrow{font-size:12px}#welcome #start{margin-top:46px;min-height:60px;font-size:15px}.supported-formats{font-size:11px}.supported-formats span{padding:0 12px}#welcome .info{margin-top:51px}}
@media(max-width:360px){#welcome{padding:42px 24px 28px}#welcome h1{font-size:31px;letter-spacing:-1.7px}#welcome .welcome-intro p{font-size:13px}.supported-formats span{padding:0 8px}#welcome #start{margin-top:35px}#welcome .info{margin-top:39px}}

/* A quiet, touch-anywhere cover. Native button supports keyboard activation. */
body.intro-active{overflow:hidden}body.intro-active>header,body.intro-active>main{visibility:hidden}
#intro{position:fixed;inset:0;z-index:100;width:100%;height:100dvh;min-height:0;border:0;border-radius:0;padding:0;background:#f5f6f0;color:#29362e;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;-webkit-tap-highlight-color:transparent}
.intro-brand{position:absolute;top:calc(28px + env(safe-area-inset-top));left:30px;font-size:33px;font-weight:750;letter-spacing:-3px;line-height:1}.intro-brand>span{color:#9abb51}
.intro-art{position:relative;display:block;width:210px;height:260px;margin:0 0 43px;animation:paper-float 7s ease-in-out infinite}
.intro-sheet{position:absolute;inset:0;display:block;border-radius:5px}.intro-sheet.rear{background:#bedb71;transform:rotate(-10deg) translate(-7px,5px)}.intro-sheet.front{background:#fffefa;transform:rotate(5deg);padding:29px 24px;text-align:left;box-shadow:0 15px 35px #28362b0d;border:1px solid #e7eade}
.paper-label{display:block;font-size:7px;letter-spacing:1.6px;font-weight:500;color:#879079}.paper-title{display:block;font-size:21px;letter-spacing:-1px;font-weight:600;margin:27px 0 18px}.paper-line{display:block;height:2px;background:#e4e7dd;width:100%;margin-top:10px}.paper-line.short{width:65%}.intro-sheet svg{display:block;width:155px;height:55px;margin-top:9px;overflow:visible}.intro-sheet path{fill:none;stroke:#95b649;stroke-width:3;stroke-linecap:round;stroke-dasharray:260;stroke-dashoffset:260;animation:ink-reveal 7s ease-in-out infinite}.paper-footer{position:absolute;bottom:19px;font-size:19px;font-weight:700;color:#8caa50}
.intro-copy{display:flex;flex-direction:column;gap:13px}.intro-name{font-size:28px;letter-spacing:-1.3px;font-weight:600}.intro-tagline{font-size:13px;letter-spacing:1px;font-weight:400;color:#778170}.intro-enter{position:absolute;bottom:calc(38px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:.1px;font-weight:400;color:#687460}.intro-enter>span:last-child{margin-left:12px;font-size:18px}.enter-dot{width:5px;height:5px;border-radius:50%;background:#98b953}
#intro:focus-visible{outline:3px solid #88a841;outline-offset:-8px}
@keyframes paper-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-9px) rotate(1deg)}}
@keyframes ink-reveal{0%,12%{stroke-dashoffset:260}48%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:260}}
@media(max-height:650px){.intro-art{width:175px;height:215px;margin-bottom:25px}.intro-sheet.front{padding:22px 18px}.paper-title{font-size:18px;margin-top:18px}.intro-sheet svg{width:130px;height:43px}.intro-name{font-size:25px}.intro-enter{bottom:22px}}
@media(prefers-reduced-motion:reduce){.intro-art,.intro-sheet path{animation:none}.intro-sheet path{stroke-dashoffset:0}}

/* Luminous particle cover, with the brand lime held in the highlights. */
#intro{background:#060e10;color:#f0f3e9}#intro-particles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.intro-brand{color:#eef3e4;z-index:1}.intro-brand>span{color:#bedb71}.intro-copy{position:relative;z-index:1;gap:14px;text-shadow:0 2px 24px #000;pointer-events:none}.intro-name{font-size:30px;font-weight:500;letter-spacing:-1px}.intro-tagline{color:#a6b4a8;font-size:12px;letter-spacing:2px}.intro-enter{color:#a7b6a6;z-index:1}.enter-dot{background:#bedb71;box-shadow:0 0 10px #bedb7166}

/* User-supplied artwork, without overlaid copy. */
#intro{background:#030c10}.intro-brand{display:flex;align-items:baseline;letter-spacing:-2px;z-index:2}.intro-brand .intro-brand-name{margin-left:13px;color:#e6ece8;font-size:14px;font-weight:500;letter-spacing:-.4px}.intro-reference{position:absolute;inset:0;background-image:url('./intro-reference.png');background-repeat:no-repeat;background-position:center;background-size:cover;pointer-events:none}
@media(min-aspect-ratio:1/1){.intro-reference{background-size:auto 100%;}}

/* Keep the supplied artwork contained, with generous space around the ring. */
#intro .intro-reference{inset:auto;left:50%;top:50%;width:min(76vw,58vh,460px);height:min(76vw,58vh,460px);transform:translate(-50%,-50%);background-size:contain;background-position:center;mask-image:radial-gradient(ellipse at center,#000 55%,transparent 72%);-webkit-mask-image:radial-gradient(ellipse at center,#000 55%,transparent 72%)}

#intro .intro-reference{width:min(72vw,54vh,420px);height:min(72vw,54vh,420px);background-size:contain;background-repeat:no-repeat;mask-image:none;-webkit-mask-image:none}

.intro-brand .intro-brand-tagline{font-size:10px;font-weight:400;letter-spacing:0;color:#a0aba6;margin-left:12px}

/* Full-screen nebula: crop the screenshot frame outside the viewport. */
#intro .intro-reference{inset:0;width:100%;height:100%;left:0;top:0;transform:scale(var(--nebula-growth,1));background:none;overflow:hidden;mask-image:none;-webkit-mask-image:none;animation:nebula-breathe 24s ease-in-out infinite alternate}
.intro-reference img{position:absolute;left:50%;top:50%;width:calc(100% + 100px);height:calc(100% + 190px);object-fit:cover;transform:translate(-50%,-50%);max-width:none}
#intro .intro-brand{text-shadow:0 2px 12px #000;background:#04101455;padding:10px 14px;border-radius:12px;left:16px;top:calc(16px + env(safe-area-inset-top))}
@keyframes nebula-breathe{from{transform:scale(var(--nebula-growth,1))}to{transform:scale(calc(var(--nebula-growth,1) + .025))}}
@media(prefers-reduced-motion:reduce){#intro .intro-reference{animation:none}}

/* Brand stays fixed and legible while only the nebula grows. */
#intro:after{content:'';position:absolute;inset:0 0 auto;height:150px;background:linear-gradient(#031015c9,#03101555 65%,transparent);pointer-events:none;z-index:1}
#intro .intro-brand{background:none;z-index:2;text-shadow:0 2px 12px #000;align-items:center}
#intro .intro-brand-name{font-size:17px;font-weight:600;color:#f4f6ef;white-space:nowrap}
#intro .intro-brand-tagline{font-size:10px;color:#c0c9c1}

/* Brand lime leads the cover; supporting copy stays secondary. */
#intro .intro-brand,#intro .intro-brand>span:not(.intro-brand-tagline){color:#bedb71}
#intro .intro-brand-name{font-size:19px;font-weight:700;letter-spacing:-.5px}
#intro .intro-brand-tagline{color:#e1e8d8;font-size:10px;font-weight:400;letter-spacing:-.2px;margin-left:12px}
#intro:after{height:170px;background:linear-gradient(#020b0fec 0%,#020b0fa6 45%,transparent 100%)}
@media(max-width:360px){#intro .intro-brand{left:8px;padding-left:10px;padding-right:10px}#intro .intro-brand-name{font-size:17px;margin-left:10px}#intro .intro-brand-tagline{font-size:9px;margin-left:9px}}

body.file-dragging:after{content:'파일을 놓아 열기';position:fixed;inset:12px;z-index:500;display:grid;place-items:center;border:2px dashed #bedb71;border-radius:18px;background:#101b10db;color:#bedb71;font-size:20px;font-weight:600;pointer-events:none}

/* Larger brand name, with the secondary line below on narrow screens. */
#intro .intro-brand{display:grid;grid-template-columns:auto auto;column-gap:12px;row-gap:5px;text-align:left}
#intro .intro-brand>span:first-child{display:none}
#intro .intro-brand{font-size:0;letter-spacing:0}
#intro .intro-brand:before{content:'b.';grid-column:1;grid-row:1 / 3;font-size:40px;line-height:1;font-weight:750;letter-spacing:-3px;color:#bedb71}
#intro .intro-brand .intro-brand-name{grid-column:2;grid-row:1;font-size:33px;line-height:1.15;margin:0;font-weight:700;letter-spacing:-1px}
#intro .intro-brand .intro-brand-tagline{grid-column:2;grid-row:2;margin:0;font-size:10px;line-height:1.5}
@media(max-width:360px){#intro .intro-brand .intro-brand-name{font-size:30px}}

#intro .intro-brand .intro-brand-tagline{margin-left:24px}

#intro .intro-brand .intro-brand-tagline{font-size:14px;line-height:1.5}

#intro .intro-brand{grid-template-columns:auto auto auto;column-gap:10px;row-gap:0;align-items:baseline;left:12px;padding:10px}
#intro .intro-brand:before{grid-row:1;grid-column:1;font-size:36px}
#intro .intro-brand .intro-brand-name{grid-column:2;grid-row:1;font-size:33px}
#intro .intro-brand .intro-brand-tagline{grid-column:3;grid-row:1;margin:0;font-size:14px;white-space:nowrap;letter-spacing:-.5px}
@media(max-width:390px){#intro .intro-brand{column-gap:8px}#intro .intro-brand .intro-brand-name{font-size:30px}#intro .intro-brand .intro-brand-tagline{font-size:12px}}
@media(max-width:350px){#intro .intro-brand{left:8px;padding:8px;column-gap:7px}#intro .intro-brand:before{font-size:30px}#intro .intro-brand .intro-brand-name{font-size:27px}#intro .intro-brand .intro-brand-tagline{font-size:11px}}

@media(max-width:390px){#intro .intro-brand .intro-brand-tagline{font-size:11px;letter-spacing:-.6px}}
@media(max-width:350px){#intro .intro-brand .intro-brand-tagline{font-size:10px;letter-spacing:-.7px}}

#intro{touch-action:none;cursor:grab}#intro.touching-nebula{cursor:grabbing}
#intro .intro-reference img{transform:translate(calc(-50% + var(--nebula-x,0px)),calc(-50% + var(--nebula-y,0px)));transition:transform .8s ease-out;user-select:none;-webkit-user-drag:none}
#intro.touching-nebula .intro-reference img{transition:transform .06s linear}
#enter-workspace{position:absolute;z-index:3;bottom:calc(32px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(260px,calc(100% - 64px));min-height:54px;background:#bedb71;color:#253019;border-radius:16px;font-size:16px;font-weight:650;box-shadow:0 6px 30px #0005;display:flex;justify-content:center;align-items:center;gap:28px;cursor:pointer}
#enter-workspace:hover{background:#cce68b}#enter-workspace:active{background:#aac65f}

/* Compact entrance control, quiet against the nebula. */
#enter-workspace{width:176px;min-height:52px;padding:10px 12px 10px 23px;justify-content:space-between;gap:18px;border:1px solid #bedb7166;border-radius:28px;background:#0a161cdd;color:#e9efdf;font-size:14px;font-weight:500;letter-spacing:.3px;box-shadow:0 4px 18px #0003;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
#enter-workspace span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#bedb71;color:#26331d;font-size:18px;line-height:1}
#enter-workspace:hover{background:#17262b;border-color:#bedb71}#enter-workspace:active{background:#223530}

#enter-workspace{width:144px;font-size:15px;font-weight:600;letter-spacing:-.3px;padding-left:25px}

#enter-workspace{width:60px;height:60px;min-height:60px;padding:0;display:grid;place-items:center;border-radius:50%;border:1px solid #bedb7199;background:#12231eac;color:#bedb71;box-shadow:0 0 0 7px #bedb7108,0 0 28px #bedb7115;transition:background .2s,box-shadow .2s}
#enter-workspace svg{width:25px;height:25px}
#enter-workspace:hover{background:#bedb71;color:#203021;box-shadow:0 0 0 9px #bedb7114,0 0 30px #bedb7122}
#enter-workspace:active{background:#a9c865;color:#203021}

#intro.touching-nebula .intro-reference img{filter:brightness(1.13);transition:transform .035s linear,filter .15s}

/* The landing workspace continues the cover's dark palette. */
body:not(.has-document){background:#030c10;color:#e7eee5}
body:not(.has-document) #brand{display:flex;align-items:baseline;gap:16px;padding:26px 22px;background:transparent;max-width:1060px}
#brand strong{font-size:33px;font-weight:700;letter-spacing:-1px;color:#bedb71;gap:10px;white-space:nowrap}
#brand strong>span{font-size:36px;color:#bedb71;letter-spacing:-3px}
#back-to-intro{background:transparent;color:#c2cdbd;border:1px solid #bedb7133;border-radius:20px;font-size:12px;padding:8px 13px;white-space:nowrap;min-height:40px}
#back-to-intro span{font-size:14px;color:#bedb71;margin-left:5px;letter-spacing:0}
#back-to-intro:hover{background:#bedb7115;color:#bedb71}
#welcome h1{color:#eef2e8}#welcome .eyebrow{color:#9aaa91}#welcome .welcome-intro p{color:#b2beb0}
#welcome .info{border-color:#bedb7126}#welcome .info strong,#welcome .info p{color:#aebcaa}.supported-formats{color:#b3bfab}.supported-formats span{border-color:#bedb7133}.privacy-symbol{color:#bedb71}body:not(.has-document) #status{color:#c5cfbd}
@media(max-width:390px){#brand strong{font-size:30px}body:not(.has-document) #brand{gap:12px}}
@media(max-width:350px){#brand strong{font-size:27px}#brand strong>span{font-size:30px}body:not(.has-document) #brand{padding:24px 16px;gap:10px}#back-to-intro{font-size:11px;padding:7px 10px}}

/* Give the main action a lower, balanced position on taller phones. */
#welcome .welcome-action{margin-top:clamp(48px,13dvh,120px)}
@media(max-height:650px){#welcome .welcome-action{margin-top:12px}}

/* Privacy note anchors the bottom without covering content on short screens. */
#welcome{display:flex;flex-direction:column;min-height:calc(100dvh - 100px);padding-bottom:calc(24px + env(safe-area-inset-bottom))}
#welcome .info{margin-top:auto;padding-top:23px}
#welcome .welcome-action{margin-bottom:40px}

#welcome .maker-credit{display:block;margin-top:18px;font-size:11px;line-height:1.5;color:#8e9d90;letter-spacing:-.2px}

#welcome .info>div{flex:1;min-width:0}#welcome .maker-credit{text-align:right;width:100%}

/* Keep history controls with the mobile tool dock. */
#bottom-tools{position:sticky;bottom:0;z-index:10;background:#fff;border:1px solid #dce3d4;border-radius:20px 20px 0 0;box-shadow:0 -4px 16px #0000000a}
#bottom-tools .undo-row{justify-content:flex-start;padding:5px 12px;gap:8px;border-bottom:1px solid #e8ecdf}
#bottom-tools .undo-row button{min-height:44px;font-size:13px;color:#35472b}
#bottom-tools #modes{position:static;border:0;border-radius:0;background:transparent}
@media(min-width:700px){#bottom-tools{max-width:900px;margin:auto;border-radius:20px}}
#dialog-options select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #b5c699;border-radius:10px;background:#f2f6e8;color:#293719;margin:6px 0 14px}#dialog-options select:focus-visible{outline:3px solid #73923e;outline-offset:2px}
