:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263c32;background:#f8f6f0;font-synthesis:none;--green:#234d3c;--muted:#758176;--line:#e3e6dc;--paper:#fffefa;--orange:#c77043}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #769581;outline-offset:2px}a{color:var(--green)}header{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:26px 28px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-size:22px;font-weight:750;letter-spacing:-.8px}.brand img{width:36px}.brand small{display:block;font-size:10px;letter-spacing:2px;color:var(--muted);margin-top:3px;text-transform:uppercase}.avatar{width:40px;height:40px;border-radius:50%;background:#e7ecdf;color:var(--green);font-weight:700}main{max-width:1080px;margin:0 auto;padding:36px 24px 120px}h1{font-family:Georgia,serif;font-size:clamp(35px,5vw,58px);line-height:1.08;font-weight:400;letter-spacing:-1.8px;margin:15px 0 20px}h2{font-size:24px;letter-spacing:-.6px;margin:0 0 18px}h3{margin:0 0 10px;font-size:17px}p{line-height:1.6}.muted{color:var(--muted)}.eyebrow{font-size:11px;font-weight:750;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:50px;align-items:center;margin:15px 0 42px}.hero p{max-width:360px;color:#647064}.hero .primary{margin-top:12px}.paper{background:repeating-linear-gradient(var(--paper),var(--paper) 29px,#dce3d7 30px);padding:32px 28px 35px 48px;min-height:270px;box-shadow:0 12px 34px #284a3010;border:1px solid #e5e4db;transform:rotate(-3deg);border-radius:3px;position:relative}.paper:before{content:"";position:absolute;left:32px;top:0;bottom:0;border-left:1px solid #d9ad9d}.paper .hand{font-family:"Segoe Print","Bradley Hand",cursive;font-style:italic;font-size:23px;line-height:30px;color:#315b78;margin:4px 0 20px}.paper .tag{display:inline-block;margin-top:15px;background:#e8eddf;padding:8px 12px;font-size:12px;transform:rotate(3deg)}.primary{background:var(--green);color:white;padding:14px 22px;border-radius:12px;font-weight:650}.secondary{background:#e9ede2;color:var(--green);padding:11px 16px;border-radius:10px;font-weight:600}.plain{background:transparent;color:var(--green);padding:8px 4px}.danger{color:#a03d37}.wide{width:100%}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.wrap{flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.two{grid-template-columns:repeat(2,1fr)}.card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:23px;margin-bottom:16px}.card p:last-child{margin-bottom:0}.metric{font-family:Georgia,serif;font-size:32px;margin:10px 0 3px}.section{margin-top:32px}.badge{display:inline-block;font-size:11px;padding:6px 10px;border-radius:20px;background:#edf0e6;color:#46614d;font-weight:650}.badge.warm{background:#f9eddf;color:#9d663c}.badge.gray{background:#efeee9;color:#77796e}.tabs{display:flex;gap:7px;margin:22px 0;flex-wrap:wrap}.tabs button{padding:10px 17px;border-radius:22px;background:transparent;color:var(--muted)}.tabs button.active{background:var(--green);color:white}.font-sample{font-size:29px;line-height:1.6;color:#355a73;padding:17px 0;margin:10px 0;background:repeating-linear-gradient(transparent,transparent 29px,#edf0e8 30px);font-family:"Segoe Print","Bradley Hand",cursive;font-style:italic}.font-sample.soft{font-family:Georgia,serif}.font-sample.compact{font-family:"Palatino",serif;font-size:26px}.font-preview{max-width:100%;height:140px;object-fit:contain}.empty{text-align:center;padding:35px 22px;color:var(--muted)}.empty strong{display:block;color:var(--green);margin-bottom:9px}.steps{counter-reset:steps;display:grid;gap:18px}.step{display:flex;gap:14px;line-height:1.55}.step:before{counter-increment:steps;content:counter(steps);background:#e9edde;border-radius:50%;flex:0 0 29px;height:29px;display:grid;place-items:center;font-weight:700;color:var(--green)}label{display:block;font-size:13px;font-weight:650;margin:18px 0 7px}input,textarea,select{width:100%;padding:13px;background:#fffefa;border:1px solid #d9dfd2;border-radius:10px;color:#263c32;min-width:0}input[type=file]{font-size:12px;border-style:dashed;padding:20px 12px}textarea{min-height:95px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.hint{font-size:12px;color:var(--muted);line-height:1.5}.price{font-family:Georgia,serif;font-size:32px}.summary{background:#edf0e6;padding:18px;border-radius:12px;margin:20px 0}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:5;background:#fffefaee;backdrop-filter:blur(12px);border-top:1px solid var(--line);display:flex;justify-content:center;gap:30px;padding:12px 15px calc(12px + env(safe-area-inset-bottom))}.bottom-nav button{background:none;color:#859081;font-size:11px;min-width:58px;display:grid;gap:5px;justify-items:center}.bottom-nav button.active{color:var(--green);font-weight:750}.bottom-nav svg{width:22px;height:22px}.demo-bar{padding:8px 18px;background:#f0e6d3;font-size:11px;display:flex;align-items:center;justify-content:center;gap:15px}.demo-bar button{background:none;color:#795b33;text-decoration:underline;font-size:11px}.order-title{font-size:18px;margin:14px 0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;font-size:14px}.detail-grid small{display:block;color:var(--muted);margin-bottom:6px}.file{display:block;text-align:left;margin:7px 0;background:#eff1e9;padding:10px 12px;border-radius:8px;color:var(--green);max-width:100%;overflow-wrap:anywhere}.message{background:#eff1e9;border-radius:12px;padding:12px 15px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.message small{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.notice{font-size:13px;background:#f7ecdc;color:#795c39;border-radius:10px;padding:12px 15px;line-height:1.5}.timeline{padding-left:17px;border-left:2px solid #d9e2d1;margin:22px 0}.timeline p{font-size:13px;margin:12px 0}.timeline small{color:var(--muted);display:block}dialog{border:1px solid var(--line);border-radius:20px;padding:25px;width:min(620px,calc(100% - 24px));max-height:88vh;background:var(--paper);color:#263c32}dialog::backdrop{background:#142d2380;backdrop-filter:blur(3px)}dialog h2{padding-right:25px}.close{position:absolute;right:15px;top:12px;font-size:25px;background:none;color:var(--muted)}button svg{pointer-events:none}.statline{display:flex;gap:22px;flex-wrap:wrap}.divider{border:0;border-top:1px solid var(--line);margin:24px 0}.small{font-size:12px}.error{color:#a03d37;padding:10px 0}form>.primary{margin-top:20px}footer{font-size:11px;color:var(--muted);margin-top:30px}@media(max-width:680px){header{padding:18px 20px}.brand{font-size:20px}main{padding:26px 20px 110px}.hero{gap:25px;grid-template-columns:1fr;margin:0 0 32px}.hero h1{font-size:43px}.hero p{max-width:none}.paper{margin:8px 12px 12px;min-height:210px;padding-top:22px;padding-bottom:20px}.paper .hand{font-size:21px}.grid,.two{grid-template-columns:1fr}.card{padding:20px}.grid .card{margin-bottom:0}.bottom-nav{gap:6px;justify-content:space-around}.form-grid{grid-template-columns:1fr 1fr}.detail-grid{gap:14px}.hero .primary{width:100%}.metric{font-size:29px}}@media print{.no-print{display:none!important}}

/* Consistent native controls in Safari and Telegram webviews. */
input:not([type=file]):not([type=hidden]),select{height:48px;line-height:20px;font-size:16px}
select{appearance:none;-webkit-appearance:none;padding:13px 40px 13px 13px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23263c32' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
input[type=date]{appearance:none;-webkit-appearance:none;display:block}
input[type=date]::-webkit-date-and-time-value{text-align:left}
.summary .price{font-size:clamp(20px,4vw,32px)}

.order-intro{margin:0 0 30px}.order-intro h1{font-family:inherit;font-size:clamp(28px,4vw,40px);font-weight:700;letter-spacing:-1px;margin:0 0 14px}.intro-description{max-width:680px;margin:0;color:#647064;font-size:16px}.intro-actions{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.order-steps{list-style:none;counter-reset:order-step;padding:0;margin:28px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.order-steps li{counter-increment:order-step;position:relative;padding-left:36px;font-size:14px}.order-steps li:before{content:counter(order-step);position:absolute;left:0;top:0;width:26px;height:26px;display:grid;place-items:center;background:#e9ede2;border-radius:50%;font-weight:700;color:var(--green)}.order-steps strong,.order-steps span{display:block}.order-steps span{color:var(--muted);font-size:12px;line-height:1.5;margin-top:5px}.price-list{padding:24px}.price-list h2{margin-bottom:4px}.price-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.price-list-row:last-child{border-bottom:0;padding-bottom:0}.price-list-row>div>strong{font-size:15px}.price-list-row span{display:block;font-size:12px;color:var(--muted);margin-top:6px;line-height:1.5}.tariff{font-size:18px;white-space:nowrap;font-variant-numeric:tabular-nums}.pricing-note{margin:0;padding:14px 0;border-bottom:1px solid var(--line)}.empty strong:only-child{margin-bottom:0}@media(max-width:680px){.order-steps{grid-template-columns:1fr;gap:16px}.intro-actions .primary{flex:1}.intro-actions .secondary{flex:1}.price-list{padding:20px}.price-list-row{gap:12px}.tariff{font-size:16px}.price-list-row>div>strong{font-size:14px}}

.select-wrap{position:relative;width:100%;min-width:0}.native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0!important;border:0!important}.select-trigger{position:relative;display:block;width:100%;height:48px;border:1px solid #d9dfd2;border-radius:10px;background:var(--paper);color:#263c32;font-size:16px;line-height:20px;text-align:left;padding:13px 40px 13px 13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger:after{content:"";position:absolute;right:17px;top:18px;width:7px;height:7px;border-right:2px solid var(--green);border-bottom:2px solid var(--green);transform:rotate(45deg)}.select-trigger[aria-expanded=true]{border-color:var(--green)}.select-trigger[aria-invalid=true]{border-color:#a03d37}.select-menu{position:absolute;top:calc(100% + 6px);left:0;width:100%;z-index:15;padding:5px;background:var(--paper);border:1px solid #d9dfd2;border-radius:12px;box-shadow:0 8px 24px #203f3120;max-height:240px;overflow:auto;overscroll-behavior:contain}.select-menu[hidden]{display:none}.select-option{position:relative;padding:12px 30px 12px 10px;border-radius:8px;font-size:15px;line-height:1.4;color:#263c32;cursor:pointer;overflow-wrap:anywhere}.select-option:hover,.select-option:focus{background:#edf0e6;outline:none}.select-option[aria-selected=true]{background:#e4ebdf;color:var(--green);font-weight:600}.select-option[aria-selected=true]:after{content:"✓";position:absolute;right:10px;top:12px}.select-option[aria-disabled=true]{opacity:.5;cursor:default}

.order-font-preview{margin-top:14px;padding:18px;background:#f3f5ed;border:1px solid var(--line);border-radius:12px}.order-font-preview .font-sample{font-size:22px;margin:8px 0;padding:8px 0}.order-font-preview .font-preview{display:block;width:100%;height:130px;margin-top:12px}.order-font-preview .hint{margin:8px 0 0}.order-font-preview .row strong{font-size:14px}

/* Shared visual language for all customer and management pages. */
:root{--radius:18px;--muted:#69766c;--soft:#edf1e7}
.icon{display:inline-block;width:22px;height:22px;flex-shrink:0;vertical-align:middle}
main{padding-top:30px}h1{font-family:inherit;font-size:clamp(27px,4vw,36px);line-height:1.2;font-weight:720;letter-spacing:-1px}h2{font-size:22px;line-height:1.3}h3{line-height:1.4}
.page-heading{display:flex;align-items:flex-start;gap:16px;margin:0 0 26px}.page-heading>div{min-width:0}.page-heading h1,.order-intro .page-heading h1{margin:0;font:inherit;font-size:clamp(27px,4vw,36px);font-weight:720;line-height:1.2;letter-spacing:-1px}.page-heading p{margin:9px 0 0;max-width:630px;color:var(--muted);font-size:14px;line-height:1.6}.section-icon{display:grid;place-items:center;width:52px;height:52px;flex:0 0 52px;border:1px solid #dce5d8;border-radius:16px;background:var(--soft);color:var(--green)}.section-icon .icon{width:27px;height:27px}.section-title{display:flex;align-items:center;gap:10px}.section-title .icon{color:#62816c}
.card{border-radius:var(--radius);box-shadow:0 3px 12px #234d3c04}.primary,.secondary{min-height:46px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.4}.primary{box-shadow:0 3px 8px #234d3c12}.secondary{background:var(--soft)}.primary .icon,.secondary .icon{width:19px;height:19px}.plain{min-height:40px}.avatar{display:grid;place-items:center;border:1px solid #dce5d8;border-radius:14px;background:var(--soft);width:44px;height:44px}.avatar .icon{width:21px;height:21px}
.tabs{gap:5px;background:#ecefe6;padding:5px;border-radius:14px;width:fit-content;max-width:100%}.tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:10px;min-height:42px;padding:9px 15px;font-size:13px;font-weight:600;color:#617065}.tabs button.active{background:var(--paper);color:var(--green);box-shadow:0 2px 6px #234d3c0d}.tabs .icon{width:18px;height:18px}
.bottom-nav{gap:12px;padding-top:8px;padding-bottom:calc(9px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #234d3c05}.bottom-nav button{min-width:74px;gap:3px;color:#69786d;padding:2px 4px;font-size:11px}.nav-icon{display:grid;place-items:center;width:54px;height:34px;border-radius:12px;transition:background .15s,color .15s}.bottom-nav button.active .nav-icon{background:#e6eddf;color:var(--green)}.bottom-nav svg{width:23px;height:23px}.heart{display:grid;place-items:center;border-radius:12px;background:#f4f1e9;color:#92765f}.heart[aria-pressed=true]{background:#f6e8df;color:#af6648}.heart[aria-pressed=true] .icon{fill:currentColor;stroke:currentColor}.heart .icon{width:21px;height:21px}.empty{padding:30px 22px;border-style:dashed;background:#fcfbf6}.empty strong{font-size:16px;font-weight:600}.statline{gap:12px;margin-bottom:22px}.statline p{flex:1;min-width:140px;margin:0;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);font-size:13px;color:var(--muted)}.statline strong{display:block;font-size:26px;color:var(--green);margin-bottom:4px;font-variant-numeric:tabular-nums}.order-intro{margin-bottom:26px}.order-steps{background:var(--soft);padding:20px;border-radius:var(--radius)}.price,.metric{font-family:inherit;font-weight:650;letter-spacing:-.6px}.summary{gap:16px}.summary .price{flex-shrink:0}dialog .page-heading{padding-right:20px}dialog .page-heading h1{font-size:25px}dialog .section-icon{width:42px;height:42px;flex-basis:42px;border-radius:13px}dialog h2{font-size:23px;letter-spacing:-.6px}form.card>label:first-child{margin-top:0}
@media(hover:hover){.primary:hover{background:#193f2e}.secondary:hover,.avatar:hover{background:#e1e9d9}.bottom-nav button:hover .nav-icon{background:var(--soft)}}
@media(max-width:680px){main{padding:24px 18px 115px}.page-heading{gap:12px;margin-bottom:23px}.section-icon{width:44px;height:44px;flex-basis:44px;border-radius:14px}.section-icon .icon{width:24px;height:24px}.page-heading h1,.order-intro .page-heading h1{font-size:28px}.page-heading p{font-size:13px}.card{padding:19px}.bottom-nav{gap:0;padding-left:8px;padding-right:8px}.bottom-nav button{min-width:0;flex:1;max-width:100px;font-size:10px}.tabs button{padding:9px 12px}.row>h2{margin-bottom:12px}.section-title{font-size:20px}.order-steps{padding:18px}.summary{flex-wrap:wrap}.summary .price{font-size:27px}dialog{padding:22px 18px}.statline p{min-width:100px}}
@media(prefers-reduced-motion:reduce){.nav-icon{transition:none}}

/* Full-width section controls; the home page remains scrollable. */
html.home-view,html.home-view body{scrollbar-width:none}
html.home-view::-webkit-scrollbar,html.home-view body::-webkit-scrollbar{display:none;width:0;height:0}
.tabs.tabs-wide{width:100%;flex-wrap:nowrap}.tabs-wide>button{flex:1;min-width:0;padding-left:8px;padding-right:8px}
.personal-font-card .primary{margin:18px auto 0;display:flex}.personal-font-card p{margin-bottom:0}
.order-intro>.intro-actions:first-child{margin-top:0}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
dialog.support-chat[open]{display:flex;flex-direction:column;padding:0;width:min(620px,calc(100% - 24px));height:min(720px,88dvh);max-height:88dvh;overflow:hidden}.support-chat .close{z-index:2}.chat-header{display:flex;align-items:center;gap:12px;padding:20px 48px 18px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.chat-header>div{min-width:0}.chat-header h2{margin:0;padding:0;font-size:20px}.chat-header p{margin:5px 0 0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.chat-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px;display:flex;flex-direction:column;gap:12px;background:#f4f5ee}.chat-bubble{align-self:flex-start;max-width:85%;background:var(--paper);border:1px solid var(--line);border-radius:16px 16px 16px 4px;padding:11px 14px}.chat-bubble.mine{align-self:flex-end;background:#e3ecdd;border-color:#d8e3d1;border-radius:16px 16px 4px 16px}.chat-author{font-size:11px;font-weight:650;color:var(--green);margin-bottom:5px}.chat-text{font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.chat-time{display:block;font-size:10px;color:var(--muted);text-align:right;margin-top:7px}.chat-composer{display:flex;align-items:flex-end;gap:10px;padding:14px;background:var(--paper);border-top:1px solid var(--line);flex-shrink:0}.chat-composer textarea{flex:1;min-height:48px;max-height:120px;resize:none;font-size:16px}.chat-composer>.primary{margin:0;padding:12px 14px;flex-shrink:0}@media(max-width:480px){.chat-header{padding-left:16px}.chat-header h2{font-size:18px}.chat-messages{padding:14px}.chat-bubble{max-width:90%}.chat-composer{padding:10px;gap:7px}.chat-composer>.primary{font-size:13px;padding:12px}}
.support-chat-actions{padding:14px;background:var(--paper);border-top:1px solid var(--line);flex-shrink:0}

/* Calm interaction states and aligned chat composer. */
input:focus,textarea:focus,.select-trigger:focus{border-color:#769581;outline:none;box-shadow:0 0 0 2px #234d3c12}
.chat-composer{align-items:center}.chat-composer textarea{height:48px;min-height:48px;max-height:48px;padding:12px;line-height:22px}.chat-composer>.primary{height:48px;min-height:48px}

/* Phone-friendly screen preview of a lecture page. */
dialog.lecture-preview[open]{display:flex;flex-direction:column;gap:0;padding:0;width:min(630px,calc(100% - 20px));height:min(790px,90dvh);max-height:90dvh;overflow:hidden}
.lecture-preview .close{z-index:2}
.lecture-preview-head{flex:none;padding:20px 52px 12px 20px;border-bottom:1px solid var(--line)}
.lecture-preview-head h2{margin:0;padding:0;font-size:21px}
.lecture-preview-head p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.lecture-preview-note{flex:none;margin:0;padding:12px 20px;background:#f5f1e8;color:#6b6658;font-size:12px;line-height:1.5}
.lecture-preview-reference{display:flex;align-items:center;gap:10px;padding:8px 20px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}
.lecture-preview-reference img{max-width:90px;height:38px;object-fit:contain}
.lecture-page-stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#e8ebe2;padding:18px;touch-action:pan-y}
.lecture-page{width:min(100%,420px);aspect-ratio:1/1.414;margin:auto;padding:35px 25px 35px 38px;background:repeating-linear-gradient(to bottom,#fffefa 0,#fffefa 31px,#dfe6df 32px);border:1px solid #dde2d9;border-radius:5px;box-shadow:0 8px 24px #253b2920;position:relative;color:#355a73;font-family:"Segoe Print","Bradley Hand",cursive;font-size:19px;line-height:32px;font-style:italic;overflow-wrap:anywhere;overflow:hidden}
.lecture-page:before{content:"";position:absolute;top:0;bottom:0;left:27px;border-left:1px solid #d9ad9d}
.lecture-page.soft{font-family:Georgia,serif}.lecture-page.compact{font-family:Palatino,serif;font-size:18px}
.lecture-page.a4{font-size:15px;line-height:26px}.lecture-page.a4.compact{font-size:14px}
.lecture-page-title{font-family:inherit;font-weight:700;margin-bottom:20px}.lecture-page-text{white-space:pre-wrap}
.lecture-page.kdraw .lecture-page-text{white-space:pre;overflow:hidden}
.lecture-preview-footer{flex:none;display:flex;align-items:center;justify-content:center;gap:18px;padding:11px 16px calc(11px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}
.lecture-preview-footer button{width:50px;padding:8px}.lecture-page-counter{min-width:105px;text-align:center;font-size:13px;color:var(--green);font-weight:650}
@media(max-width:480px){.lecture-page-stage{padding:12px}.lecture-page{padding:28px 19px 28px 33px;font-size:17px;line-height:29px;background:repeating-linear-gradient(to bottom,#fffefa 0,#fffefa 28px,#dfe6df 29px)}.lecture-page:before{left:24px}.lecture-page.compact{font-size:16px}.lecture-page.a4{font-size:13px;line-height:23px}.lecture-page.a4.compact{font-size:12px}.lecture-preview-note{padding:10px 16px}}

.order-detail-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:18px}
.order-detail-actions button{width:100%;min-height:48px;padding:12px 14px;border-radius:12px;font-weight:650;line-height:1.3}
.order-font-preview .inline-lecture-sample{min-height:100px;max-height:220px;overflow:hidden;overflow-wrap:anywhere;white-space:normal}
.kdraw-glyph-preview{display:block;width:100%;height:auto;max-height:175px;fill:none;stroke:#23465d;stroke-width:20;stroke-linecap:round;stroke-linejoin:round}
.lecture-page-glyphs{display:block;width:100%;height:auto;fill:none;stroke:#23465d;stroke-width:20;stroke-linecap:round;stroke-linejoin:round}
#pages[readonly]{background:#f3f5ed;color:var(--green);font-weight:700}

/* Keep pages and dialogs scrollable without visible system scrollbars or focus frames. */
html,body,dialog,.chat-messages,.lecture-page-stage,.select-menu{scrollbar-width:none;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar,dialog::-webkit-scrollbar,.chat-messages::-webkit-scrollbar,.lecture-page-stage::-webkit-scrollbar,.select-menu::-webkit-scrollbar{display:none;width:0;height:0}
button:focus-visible,a:focus-visible,.close:focus{outline:none;box-shadow:none}
input:focus,textarea:focus,.select-trigger:focus{outline:none;box-shadow:none;border-color:#d9dfd2}
button:not(.close):focus-visible{filter:brightness(.94)}

.inline-error{margin:12px 0;padding:12px 14px;border-radius:10px;background:#faece8;color:#8f3d38;font-size:13px;line-height:1.45}
#order-form input.order-field-invalid,#order-form textarea.order-field-invalid,#order-form .select-trigger.order-field-invalid{border-color:#b94943;background:#fff7f6;box-shadow:0 0 0 2px #b9494324}
#order-form .file-controls.order-field-invalid{padding:10px;border:1px solid #b94943;border-radius:12px;background:#fff7f6;box-shadow:0 0 0 2px #b9494324}
#order-form .order-field-error{margin:6px 0 0;color:#a03d37;font-size:12px;line-height:1.4}

/* Visible insertion point and room for the mobile keyboard. */
input:not([type=file]),textarea{caret-color:#111;scroll-margin-block:24px 38vh}
html{scroll-padding-bottom:38vh}
.template-download{margin:20px 0;text-align:center;text-decoration:none}
.file-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.file-controls .primary{flex:1 0 170px}.file-controls span{flex:1 1 180px;color:var(--muted);font-size:12px;line-height:1.4}
.upload-help{margin:8px 0 16px}.upload-help .plain{display:inline;color:var(--green);font-size:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;min-height:0;padding:2px 0}
.nav-icon{position:relative}.nav-unread,.ticket-unread{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#cc4740;color:#fff;font-size:11px;font-weight:750;line-height:1;font-variant-numeric:tabular-nums}.nav-unread{position:absolute;top:-4px;right:-8px;border:2px solid #fffefa;min-width:21px;height:21px;font-size:10px}.ticket-card.is-unread{border-color:#b8d1b9;background:#f5faf1}.ticket-card .row{align-items:flex-start;gap:12px}.ticket-card .row h3{min-width:0;overflow-wrap:anywhere;margin:0}.ticket-card .row .ticket-unread{flex:none}.ticket-preview{margin:8px 0 15px;color:var(--muted);font-size:13px;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}.ticket-card.is-unread .ticket-preview{color:#263c32;font-weight:650}.ticket-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}.ticket-actions button{min-width:0;min-height:44px}
.selected-files ul{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px}.selected-files li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#f3f5ed}.selected-files li span{min-width:0;overflow-wrap:anywhere}.selected-files li strong{display:block;font-size:13px}.selected-files li small{display:block;color:var(--muted);margin-top:3px}.selected-files li button{flex:none;background:#e3eade;color:var(--green);border-radius:9px;padding:9px 10px;font-size:12px;font-weight:650}.selected-files>p{margin:10px 0 0}

/* Real photo samples replace the old on-screen handwriting render. */
.font-photo{position:relative;display:block;width:100%;aspect-ratio:3/2;overflow:hidden;padding:0;margin:12px 0 16px;border:1px solid var(--line);border-radius:14px;background:#edece5;text-align:left;cursor:zoom-in}
.font-photo img,.font-photo .font-preview{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.font-photo-label{position:absolute;left:12px;bottom:12px;padding:7px 10px;border-radius:8px;background:#fffefaed;color:var(--green);font-size:12px;font-weight:700;box-shadow:0 2px 8px #263c321a}
.order-font-preview .font-photo{margin:14px 0 8px}
.order-font-preview .font-photo img,.order-font-preview .font-photo .font-preview{width:100%;height:100%;object-fit:cover}
.font-photo-large{max-height:65dvh;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#edece5;touch-action:pan-x pan-y pinch-zoom}
.font-photo-large img,.font-photo-large .font-preview{display:block;width:100%;height:auto;max-width:none;object-fit:contain}
.font-photo-large.is-zoomed img{width:max(100%,900px)}
.font-photo-zoom{display:block;width:100%;margin-top:12px;min-height:42px}
.font-photo.scan-photo img,.order-font-preview .font-photo.scan-photo img{object-fit:contain;background:#fff}

/* Uploaded filenames can become order titles and may have no spaces. */
.order-title,dialog h2{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.notice[hidden]{display:none}
