@font-face{font-family:DIN;src:url('/static/fonts/dinpro.otf');font-weight:400;font-display:swap}
@font-face{font-family:DIN;src:url('/static/fonts/dinpro_bold.otf');font-weight:700;font-display:swap}
@font-face{font-family:Condensed;src:url('/static/fonts/dinpro_condensedbold.otf');font-weight:700;font-display:swap}
@font-face{font-family:Condensed;src:url('/static/fonts/dinpro_condensedregular.otf');font-weight:400;font-display:swap}
:root{--red:#e60000;--ink:#282827;--muted:#626260;--line:#c8c8c8;--paper:#fff;--wash:#f5f5f5;--soft-red:#fff0f1;--safe-top:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));--safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));color-scheme:light;font-family:DIN,Arial,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:active:not(:disabled){filter:brightness(.9)}button,a{transition:background .15s,color .15s,opacity .15s}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--ink);outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid var(--red);outline-offset:2px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.skip{position:fixed;top:-100px}.skip:focus{top:8px;background:#fff;z-index:30;padding:12px}a{color:inherit}.app-header{max-width:1000px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:calc(20px + var(--safe-top)) 24px 20px;border-bottom:1px solid var(--line)}.wordmark{display:flex;align-items:center;gap:10px;text-decoration:none;font:700 15px/.95 Condensed,sans-serif;letter-spacing:.4px}.brand-mark{display:flex;align-items:center;justify-content:center;width:42px;height:42px;background:var(--red);color:#fff;font:700 30px Condensed,sans-serif;letter-spacing:-4px;padding-right:5px}.brand-mark span{font-size:34px}.header-label{font:700 13px/1.1 Condensed,sans-serif;text-align:right;letter-spacing:1.4px}main{max-width:1000px;margin:auto}.home{padding:36px 24px 28px;max-width:600px;margin:auto}.eyebrow{font:700 12px/1.4 DIN,sans-serif;letter-spacing:1.2px;display:flex;align-items:center;gap:8px}.eyebrow>span{width:6px;height:6px;background:var(--red)}h1,h2,p{margin:0}h1{font:700 clamp(38px,10.5vw,58px)/.98 Condensed,sans-serif;letter-spacing:-.5px;margin:20px 0 16px}h1 span{color:var(--red)}.intro{max-width:390px;font-size:17px;line-height:1.45;color:var(--muted)}label{display:block;font-size:15px;font-weight:700;margin-bottom:8px}input[type=url],textarea,select{display:block;width:100%;border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:var(--paper);font-size:16px;line-height:1.4}input[type=url]{padding-right:46px;height:56px}textarea{resize:vertical;min-height:100px;max-height:40dvh}textarea::placeholder,input::placeholder{color:var(--muted)}.link-form{margin:28px 0}.url-wrap{position:relative;margin-bottom:14px}.url-wrap .icon-button{position:absolute;right:4px;top:4px}.primary,.secondary{min-height:52px;border-radius:10px;padding:14px 18px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:16px;font-weight:700;border:1px solid transparent}.primary{color:#fff;background:var(--red);justify-content:space-between}.primary:hover{background:#c90000}.secondary{background:var(--paper);border-color:var(--line)}.secondary:hover{background:var(--wash)}.wide{width:100%}.icon-button{width:48px;height:48px;min-width:48px;padding:12px;border:0;border-radius:10px;background:transparent;display:inline-flex;align-items:center;justify-content:center}.icon-button:hover{background:var(--wash)}.home-note{display:flex;gap:16px;border-top:1px solid var(--line);padding-top:20px;margin:28px 0 36px}.note-number{font:700 24px Condensed;color:var(--red);white-space:nowrap}.home-note p{font-size:15px;line-height:1.5;color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}h2{font:700 24px/1.1 Condensed}.section-heading>span{border:1px solid var(--line);border-radius:20px;min-width:26px;text-align:center;padding:3px;font-size:13px}.muted{font-size:14px;line-height:1.5;color:var(--muted)}.draft-section{margin-bottom:32px}.draft-row{width:100%;text-align:left;border:0;border-top:1px solid var(--line);background:transparent;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px}.draft-row strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:17px;line-height:1.3}.draft-row small{color:var(--muted);font-size:12px;display:block;margin-top:4px}.notice{padding:20px;background:var(--wash);border-left:3px solid var(--red);border-radius:0 10px 10px 0;margin-bottom:20px}.notice p{font-size:14px;line-height:1.5;margin:8px 0 16px;color:var(--muted)}.text-link{font-size:14px;display:inline-flex;align-items:center;gap:10px;text-decoration:none;min-height:44px}.text-link svg{width:18px}.field-error{font-size:14px;line-height:1.4;color:#ad0000;margin:10px 0 14px}.editor-heading{padding:16px 16px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line)}.editor-heading>div{flex:1}.editor-heading h1{font:700 26px/1 Condensed;margin:0 0 5px}.editor-heading p{font-size:12px;line-height:1.3;color:var(--muted)}.demo-notice{padding:10px 24px;color:#9a0000;background:var(--soft-red);font-size:11px;letter-spacing:1px;font-weight:700}.editor-workspace{padding:16px 20px 0}.canvas-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;letter-spacing:1px;font-weight:700}.canvas-toolbar>div{display:flex;gap:6px}.small-button{display:inline-flex;align-items:center;gap:5px;min-height:44px;background:transparent;border:0;border-radius:8px;padding:6px;font-size:13px;letter-spacing:0}.small-button svg{width:18px}.small-button[aria-pressed=true],.small-button[aria-expanded=true]{background:var(--soft-red);color:#b00000}.canvas-hint{font-size:13px;color:var(--muted);margin:0 0 14px}.canvas-mat{padding:20px 14px;background:var(--wash);border:1px solid #e7e7e7;border-radius:10px}.card{--s:1;background:#fff;position:relative;box-shadow:0 2px 12px #2828270a;overflow:visible;min-height:40px}.card-block{position:relative;min-height:12px;background:#fff}.block-content img{display:block;width:100%;height:auto}.block-hit{position:absolute;inset:0;width:100%;height:100%;background:transparent;border:1px dashed #28282740;min-height:0;padding:0;z-index:1}.card-block.selected .block-hit{border:2px solid var(--red);background:#e6000005}.block-badge{position:absolute;left:4px;top:4px;border-radius:4px;background:#fff;color:var(--muted);font-size:10px;font-weight:700;padding:3px 5px;box-shadow:0 1px 4px #0001;pointer-events:none;z-index:2}.block-remove{position:absolute;right:-8px;top:-8px;z-index:3;width:44px;height:44px;border:0;border-radius:50%;background:var(--red);color:white;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0002}.block-remove svg{width:18px}.card.clean .block-hit,.card.clean .block-badge,.card.clean .block-remove{display:none}.caption-preview{width:100%;display:block;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;padding:16px;border:1px dashed var(--line);border-top:0;font-size:calc(16px * var(--s,1));line-height:1.45;border-radius:0 0 8px 8px;min-height:52px}.caption-preview .caption-label{font-size:10px;letter-spacing:1px;color:var(--muted);display:block;margin-bottom:8px;font-weight:700}.caption-preview .source-link{font-size:13px;display:block;color:#1c54aa;margin-top:10px}.caption-preview .empty-caption{color:var(--muted);font-size:14px}.source-note{font-size:12px;color:var(--muted);margin:12px 0;overflow-wrap:anywhere}.add-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 20px 0}.add-actions .secondary{padding:12px 8px;font-size:14px}.editor-tip{padding:16px 24px calc(104px + var(--safe-bottom));text-align:center;font-size:12px;color:var(--muted);line-height:1.5}.bottom-bar{position:fixed;bottom:0;left:0;right:0;max-width:1000px;margin:auto;padding:12px 20px calc(12px + var(--safe-bottom));border-top:1px solid var(--line);background:var(--paper);display:flex;gap:12px;z-index:5}.bottom-bar .primary{flex:1}.download{background:var(--wash);height:52px;width:52px}.layers{border:1px solid var(--line);border-radius:10px;padding:16px;margin-top:20px;background:var(--paper)}.layers .section-heading{margin-bottom:4px}.layer-row{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:8px;padding:8px 0}.layer-edit{border:0;background:transparent;text-align:left;flex:1;min-height:48px;font-weight:700}.layer-controls{display:flex;gap:4px}.layer-controls button{width:44px;height:44px;border:1px solid var(--line);background:var(--paper);border-radius:8px;font-size:20px}.sheet{position:fixed;inset:auto 0 0;width:100%;max-width:600px;max-height:calc(100dvh - var(--safe-top) - 24px);margin:0 auto;border:0;border-radius:20px 20px 0 0;padding:10px 24px calc(20px + var(--safe-bottom));background:var(--paper);overflow:auto;overscroll-behavior:contain;color:var(--ink)}.sheet::backdrop{background:#28282780}.sheet[open]{animation:sheet-in .18s ease-out}.sheet-handle{width:36px;height:4px;border-radius:4px;background:var(--line);margin:0 auto 12px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.sheet-heading .eyebrow{font-size:10px;color:var(--muted);margin-bottom:4px}.sheet-heading h2{font-size:30px}.sheet-heading .icon-button{margin-right:-12px}.input-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-top:8px}.sheet-actions{display:flex;gap:12px;margin-top:24px}.sheet-actions button{flex:1}.sheet-actions .primary{justify-content:center}.danger{color:#b00000}.style-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.style-grid label{font-size:13px}select{font-size:14px;padding:12px 8px;min-height:48px}.sheet details{margin-top:20px;border-top:1px solid var(--line);padding-top:8px}.sheet summary{min-height:44px;display:flex;align-items:center;font-size:14px;cursor:pointer}.sheet summary::after{content:'+';margin-left:auto;font-size:20px}.sheet details[open] summary::after{content:'−'}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;padding:16px 0;margin-top:12px;border-top:1px solid var(--line)}input[type=checkbox]{width:44px;height:28px;accent-color:var(--red);flex-shrink:0}.sheet #sheet-image{width:100%;max-height:220px;object-fit:contain;background:var(--wash);border-radius:10px;margin-bottom:16px}.sheet #image-controls .muted{margin-top:12px}.toast{position:fixed;z-index:30;bottom:calc(104px + var(--safe-bottom));left:20px;right:20px;max-width:560px;margin:auto;background:var(--ink);color:#fff;padding:16px 20px;border-radius:10px;font-size:14px;line-height:1.5;box-shadow:0 4px 20px #0002}.loading{position:fixed;inset:0;z-index:40;background:#fffffff2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:32px;text-align:center}.loading strong{font:700 32px Condensed}.loading>span:last-child{font-size:14px;color:var(--muted)}.spinner{width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--red);border-radius:50%;animation:spin .8s linear infinite}#tass-title-wrap{margin:16px 0}.error-status{color:#b00000!important}@keyframes spin{to{transform:rotate(360deg)}}@keyframes sheet-in{from{transform:translateY(24px);opacity:.5}to{transform:translateY(0);opacity:1}}
@media(min-width:720px){.home{padding-top:56px}.editor-workspace{display:flex;gap:24px;padding:24px}.canvas-column{max-width:480px;margin:auto;min-width:0;flex:1}.layers{width:290px;margin:0;align-self:flex-start}.add-actions{max-width:528px;margin:auto;padding:20px 24px 0}.bottom-bar{justify-content:flex-end}.bottom-bar .primary{flex:0 1 380px}.sheet{inset:50% auto auto 50%;transform:translate(-50%,-50%);border-radius:16px;max-height:90dvh}.sheet[open]{animation:none}.sheet-handle{display:none}.editor-tip{padding-bottom:120px}}
@media(max-width:359px){.app-header,.home{padding-left:16px;padding-right:16px}.editor-workspace{padding-left:12px;padding-right:12px}.editor-heading{padding-left:8px;padding-right:8px}.editor-heading h1{font-size:23px}.canvas-mat{padding:16px 10px}.small-button{font-size:12px}.sheet{padding-left:16px;padding-right:16px}.add-actions{padding-left:12px;padding-right:12px;gap:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.delivery-notice{margin:0 20px calc(104px + var(--safe-bottom));padding:20px;background:var(--soft-red);border:1px solid var(--red);border-radius:10px}.delivery-notice p{font-size:15px;line-height:1.5;margin-bottom:16px}.delivery-notice .secondary{font-size:14px}
