/* 云森木业宣传创作台：手机 App 式布局（顶栏 + 单列卡片 + 底部标签栏）。颜色沿用 style.css 的木色变量。
   首页只有一件事：选照片出视频；其余功能收在「更多」。 */
:root{--app-width:560px;--bar-h:56px;--tab-h:60px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--radius-card:16px;--radius-control:12px;--surface:#fff;--app-shadow:0 1px 2px rgba(46,35,26,.05),0 4px 14px rgba(46,35,26,.05)}
[hidden]{display:none!important}
html{scroll-padding-top:calc(var(--bar-h) + var(--safe-top) + 12px);scroll-padding-bottom:calc(var(--tab-h) + var(--safe-bottom) + 150px)}
h1[tabindex='-1']:focus{outline:none}
/* style.css hides overflow on html and body; a hidden-overflow body becomes a scroll container and breaks the sticky bars, so clip instead. */
body{background:#ebe5dc;min-height:100vh;min-height:100dvh;overflow:visible;overflow-x:clip}
button,input,select,textarea{font:inherit}
button,a,input,textarea,select,summary,label{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #315c45;outline-offset:3px}
button:disabled{cursor:not-allowed;opacity:.55}
.skip-link{position:fixed;left:16px;top:-100px;z-index:40;background:#fff;padding:10px 14px;border-radius:8px}
.skip-link:focus{top:calc(12px + var(--safe-top))}

/* App 外壳 */
.app{position:relative;max-width:var(--app-width);margin:0 auto;min-height:100vh;min-height:100dvh;background:var(--bg-page)}
@media(min-width:600px){.app{box-shadow:0 0 0 1px var(--border-light),0 10px 40px rgba(46,35,26,.08)}}
.app-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:calc(var(--bar-h) + var(--safe-top));padding:var(--safe-top) 16px 0;background:rgba(247,244,239,.94);border-bottom:1px solid var(--border-light);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px)}
.app-brand{display:flex;align-items:center;gap:10px;min-height:44px;min-width:0;color:var(--text-main);text-decoration:none}
.app-logo{flex:0 0 34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--wood-accent);color:#fff;font-weight:700;font-size:17px}
.app-brand-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.app-brand-text strong{font-size:16px;font-weight:650}
.app-brand-text span{font-size:12px;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-bar-action{flex:0 0 auto;display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid var(--wood-border);border-radius:18px;background:var(--surface);color:var(--wood-accent-hover);font-size:13px;font-weight:600;text-decoration:none}
.app-bar-action:active{background:var(--wood-soft)}
.app-main{padding:16px 16px calc(var(--tab-h) + var(--safe-bottom) + 28px)}
.view{display:flex;flex-direction:column;gap:14px}

/* 底部标签栏 */
.tab-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;max-width:var(--app-width);margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);height:calc(var(--tab-h) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:rgba(255,255,255,.96);border-top:1px solid var(--border-light);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px)}
.tab-bar a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;color:var(--text-muted);font-size:11px;text-decoration:none;-webkit-tap-highlight-color:transparent}
.tab-bar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tab-bar a[aria-current=page]{color:var(--wood-accent-hover);font-weight:650}
.tab-bar a[aria-current=page] svg{stroke-width:2.2}
.tab-bar a:active{background:var(--bg-subtle)}
.tab-badge{position:absolute;top:6px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#c0392b;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}

/* 通用：标题、卡片、文字 */
.view-head h1{margin:2px 0 4px;font-size:22px;font-weight:700;line-height:1.35;letter-spacing:-.01em}
.view-head p{margin:0;color:var(--text-secondary);font-size:14px;line-height:1.65}
.view-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.app .card{margin:0;padding:16px;border:0;border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--app-shadow)}
.card-title{margin:0 0 12px;font-size:16px;font-weight:650}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px}
.section-head>div:first-child{display:flex;align-items:center;gap:9px;min-width:0}
.section-head h2{margin:0;font-size:17px;font-weight:650;line-height:1.4}
.step-number{flex:0 0 auto;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--wood-accent-hover);background:var(--wood-soft);padding:3px 7px;border-radius:7px}
.eyebrow{font-size:12px;letter-spacing:.12em;color:var(--wood-accent-hover);margin:0 0 6px}
.muted,.hint{color:var(--text-secondary);font-size:13px;line-height:1.65}
.muted{font-size:12px;white-space:nowrap}
.hint{margin:8px 0 12px}
.text-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--wood-accent-hover);text-underline-offset:4px}
.empty-state{margin:0;padding:22px 12px;text-align:center;color:var(--text-secondary);font-size:13px;line-height:1.8;background:var(--surface);border-radius:var(--radius-card)}
.card .empty-state{background:var(--bg-subtle);border-radius:var(--radius-control)}
.notice{padding:12px 14px;border-left:3px solid var(--wood-accent);border-radius:10px;background:var(--wood-soft);font-size:13px;line-height:1.7;margin:0;overflow-wrap:anywhere}
.card .notice{margin:12px 0}
.notice.error{border-color:var(--error-text);color:var(--error-text);background:var(--error-bg)}
.notice ul{padding-left:20px;margin:8px 0}

/* 按钮与表单 */
.app .btn{min-height:48px;border-radius:var(--radius-control);font-size:15px;font-weight:650;padding:10px 16px}
.app .btn-secondary{background:var(--surface)}
.app .btn:active:not(:disabled){transform:scale(.98)}
.icon-btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:1px solid var(--wood-border);border-radius:22px;background:var(--surface);color:var(--text-main);font-size:14px;cursor:pointer}
.icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.app label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.app input:not([type=checkbox]):not([type=range]):not([type=file]),.app select,.app textarea{width:100%;min-height:48px;padding:11px 13px;border:1px solid var(--wood-border);border-radius:var(--radius-control);background:#fff;color:var(--text-main);font-size:16px;-webkit-appearance:none;appearance:none}
.app select{background-image:linear-gradient(45deg,transparent 50%,var(--text-secondary) 50%),linear-gradient(135deg,var(--text-secondary) 50%,transparent 50%);background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px;background-size:5px 5px;background-repeat:no-repeat;padding-right:34px}
.app textarea{resize:vertical;line-height:1.7}
.app textarea::placeholder,.app input::placeholder{color:#8a7d70;font-size:14px}
.field{margin:0 0 14px}
.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.app .check-label{display:flex;align-items:center;gap:10px;min-height:48px;font-weight:500}
.check-label input{width:20px;height:20px;accent-color:var(--wood-accent)}
.app details{border-top:1px solid var(--border-light);margin-top:4px}
.app summary{display:flex;align-items:center;min-height:48px;cursor:pointer;font-size:15px;font-weight:600}
.app details .field:first-of-type{margin-top:6px}
.app input[type=range]{width:calc(100% - 52px);height:32px;vertical-align:middle;accent-color:var(--wood-accent)}
.app output{display:inline-block;width:44px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums;color:var(--text-secondary)}

/* 首页：一步出片 */
.quick{padding:22px 18px 18px;border-radius:20px;background:linear-gradient(150deg,#f3e6d4 0%,#e6cfb1 100%);color:var(--text-main)}
.quick h1{margin:0 0 6px;font-size:23px;font-weight:700;line-height:1.35;letter-spacing:-.01em}
.quick-lead{margin:0 0 16px;font-size:14px;line-height:1.7;color:#5b4a3a}
.app .btn-hero{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;border-radius:16px;font-size:19px;font-weight:700;box-shadow:0 6px 18px rgba(124,78,36,.28)}
.btn-hero svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
.quick-title{margin-top:16px}
.app .quick-title label{font-size:13px;font-weight:600;color:#5b4a3a}
.optional{margin-left:4px;font-size:12px;font-weight:400;color:var(--text-secondary)}
.quick-note{margin:10px 0 0;font-size:12px;line-height:1.6;color:#6b5a4a}
.stage-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.stage-head strong{font-size:17px;font-weight:650}
.stage-thumbs{display:flex;flex-wrap:wrap;gap:6px;padding:2px;margin-bottom:12px}
.stage-thumbs:empty{display:none}
.stage-thumbs img,.stage-thumbs span{flex:0 0 44px;width:44px;height:44px;border-radius:8px;object-fit:cover;background:var(--bg-subtle);display:grid;place-items:center;font-size:11px;color:var(--text-secondary)}
.stage progress,.job-meter{display:block;width:100%;height:10px;border:0;border-radius:5px;overflow:hidden;background:var(--wood-soft);accent-color:var(--wood-accent);-webkit-appearance:none;appearance:none}
.stage progress::-webkit-progress-bar,.job-meter::-webkit-progress-bar{background:var(--wood-soft);border-radius:5px}
.stage progress::-webkit-progress-value,.job-meter::-webkit-progress-value{background:var(--wood-accent);border-radius:5px;transition:width .5s ease}
.stage progress::-moz-progress-bar,.job-meter::-moz-progress-bar{background:var(--wood-accent);border-radius:5px}
.stage .hint{margin:10px 0 0}
.stage-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.app .stage-actions .btn{flex:1 1 auto;min-height:48px;white-space:nowrap}
.app .stage-actions .btn-quiet{flex:0 0 auto;border-color:transparent;background:transparent;color:var(--text-secondary)}
.stage-thumbs .failed{outline:2px solid var(--error-text);opacity:.55}
.quick-result{display:flex;flex-direction:column;gap:10px}
.hero-heading{margin:4px 0 0;font-size:17px;font-weight:650}
.hero-card{outline:2px solid var(--wood-accent)}
/* Keep 「保存到手机」 on the first screen under a tall film: the film gives way on short screens,
   and the line of playback status text shows only when it has something to report. */
/* A declaration that uses var() is never thrown away when the page is read, so a browser without dvh would end up with no
   limit at all: each richer form sits behind @supports, and the plain one always applies. */
.hero-card .job-preview video{max-height:46vh}
@supports (height:max(1px,1vh)){.hero-card .job-preview video{max-height:max(170px,min(46vh,calc(100vh - 372px - var(--safe-bottom))))}}
@supports (height:1dvh){.hero-card .job-preview video{max-height:max(170px,min(46dvh,calc(100dvh - 372px - var(--safe-bottom))))}}
.hero-card .playback-hint:not(.notice){display:none}
.hero-card .playback-controls{padding:8px 14px}
.more-list{display:flex;flex-direction:column;border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--app-shadow);overflow:hidden}
.more-list a{display:flex;align-items:center;gap:12px;min-height:68px;padding:10px 14px;color:var(--text-main);text-decoration:none;border-top:1px solid var(--border-light)}
.more-list a:first-child{border-top:0}
.more-list a:active{background:var(--bg-subtle)}
.more-list a:after{content:'›';margin-left:auto;font-size:22px;color:var(--text-muted)}
.more-icon{flex:0 0 40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--wood-soft);color:var(--wood-accent-hover)}
.more-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.more-list a>span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}
.more-list strong{font-size:15px;font-weight:650}
.more-list small{font-size:12px;line-height:1.5;color:var(--text-secondary)}
.tile-tag{display:inline-block;vertical-align:middle;margin-left:4px;padding:2px 7px;border-radius:10px;background:var(--wood-soft);color:var(--wood-accent-hover);font-size:11px;font-weight:600;font-style:normal;line-height:1.4}
.guide ol{margin:0;padding-left:20px;font-size:14px;line-height:1.8;color:var(--text-main)}
.guide li+li{margin-top:6px}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 10px}
.list-head h2{margin:0;font-size:17px;font-weight:650}
.list-head-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--wood-accent-hover);text-decoration:none}
.recent-list{display:flex;flex-direction:column;border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--app-shadow);overflow:hidden}
.recent-list:empty{display:none}
.recent-item{display:flex;align-items:center;gap:12px;min-height:72px;padding:10px 14px;color:var(--text-main);text-decoration:none;border-top:1px solid var(--border-light)}
.recent-item:first-child{border-top:0}
.recent-item:active{background:var(--bg-subtle)}
.recent-thumb{flex:0 0 52px;height:52px;border-radius:10px;overflow:hidden;display:grid;place-items:center;background:#2b231c;color:#fff;font-size:12px}
.recent-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.recent-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.recent-text strong{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-text span{font-size:12px;color:var(--text-secondary)}
.recent-item:after{content:'›';font-size:22px;color:var(--text-muted)}

/* 创作：素材 */
.upload-area{display:flex;flex-direction:column;align-items:center;gap:10px;border:1.5px dashed #c7b39b;border-radius:var(--radius-card);background:#fcfaf7;padding:20px 14px;text-align:center}
.upload-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--wood-soft);color:var(--wood-accent-hover)}
.upload-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.upload-area .btn{min-width:200px}
.upload-area p{font-size:12px;color:var(--text-secondary);margin:0}
.upload-progress{margin:12px 0}
.upload-progress>div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}
.upload-progress progress{width:100%;height:8px;accent-color:var(--wood-accent)}
#assets-empty{margin-top:12px}
.asset-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.asset-list:empty{display:none}
.asset-item{position:relative;border:2px solid transparent;border-radius:12px;overflow:hidden;min-width:0;background:var(--bg-subtle)}
.asset-item.selected{border-color:var(--wood-accent)}
.app .asset-item label{display:block;margin:0;cursor:pointer;font-weight:400}
.asset-thumb{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;background:var(--bg-subtle);font-size:12px;color:var(--text-secondary)}
.asset-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.asset-thumb em{position:absolute;right:4px;bottom:4px;padding:1px 6px;border-radius:8px;background:rgba(28,22,18,.72);color:#fff;font-size:11px;font-style:normal;font-variant-numeric:tabular-nums}
.asset-item .media-placeholder{width:100%;aspect-ratio:1;background:var(--bg-subtle)}
/* 40 px tap area; the visible disc is the smaller pseudo-element. */
/* z-index gives the button its own layer, so the dark disc behind the × is painted over the photo and not under the page */
.asset-remove{position:absolute;top:0;right:0;z-index:1;width:40px;height:40px;border:0;background:transparent;color:#fff;font-size:18px;line-height:1;cursor:pointer}
.asset-remove:before{content:'';position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:13px;background:rgba(28,22,18,.6);z-index:-1}
.asset-remove:active:before{background:rgba(28,22,18,.9)}
.media-placeholder{display:grid!important;place-items:center;padding:6px;font-size:12px;line-height:1.4;text-align:center;color:var(--text-secondary)}
.asset-name{display:flex;gap:6px;padding:7px;align-items:center;font-size:11px;background:#fff}
.asset-name span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.asset-name input{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:var(--wood-accent)}
.selection-list{margin-top:6px}
.selected-row{padding:10px 0;border-top:1px solid var(--border-light);font-size:14px}
.selected-row:first-child{margin-top:8px}
.selected-top{display:flex;align-items:center;gap:6px}
.selected-name{flex:1;min-width:0;overflow-wrap:anywhere}
.order-button{flex:0 0 44px;min-height:44px;border:1px solid var(--wood-border);border-radius:10px;background:#fff;color:var(--text-main);font-size:16px}
.trim-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.app .trim-fields label{font-size:12px;font-weight:500;margin:0}
.trim-fields input{margin-top:4px}

/* 创作：要求与方案 */
.examples{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.examples button{min-height:36px;padding:6px 12px;border:1px solid var(--wood-border);border-radius:18px;background:#fff;color:var(--text-secondary);font-size:13px;cursor:pointer}
.examples button:active{background:var(--wood-soft)}
#parse-ai{margin-top:4px}
.cta-bar{position:sticky;bottom:calc(var(--tab-h) + var(--safe-bottom) + 10px);z-index:10;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:var(--radius-card);background:rgba(255,255,255,.97);box-shadow:0 6px 24px rgba(46,35,26,.16)}
.cta-bar .hint{margin:0;text-align:center;font-size:13px}
.cta-works-link{color:var(--wood-accent-hover);font-weight:650;text-decoration:underline;text-underline-offset:3px}
.cta-works-link:active{opacity:.75}
.cta-bar .btn{min-height:52px;font-size:16px}

/* 作品 */
.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:14px;background:#e9e1d6}
.segmented button{min-height:40px;border:0;border-radius:10px;background:transparent;color:var(--text-secondary);font-size:14px;font-weight:600;cursor:pointer}
.segmented button[aria-pressed=true]{background:#fff;color:var(--text-main);box-shadow:0 1px 3px rgba(46,35,26,.12)}
.job-list{display:flex;flex-direction:column;gap:14px}
.job-list:empty{display:none}
.job-card{min-width:0;overflow:hidden;border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--app-shadow);scroll-margin-top:calc(var(--bar-h) + var(--safe-top) + 12px)}
.job-preview{background:#1c1612}
.job-preview video,.job-card>img{display:block;width:100%;aspect-ratio:var(--ratio,16/9);max-height:68vh;object-fit:contain;background:#1c1612}
.job-card>img{background:#ebe7df}
.job-cover{position:relative;display:block;width:100%;aspect-ratio:var(--ratio,16/9);max-height:68vh;padding:0;border:0;background:#1c1612;cursor:pointer}
.job-cover img{width:100%;height:100%;object-fit:contain;display:block}
.play-mark{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(28,22,18,.62)}
.play-mark:after{content:'';position:absolute;left:25px;top:19px;border-style:solid;border-width:13px 0 13px 21px;border-color:transparent transparent transparent #fff}
.playback-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:10px 14px;background:#fff}
.playback-controls .btn{min-height:40px;min-width:96px;padding:6px 14px;font-size:14px}
.playback-time{font-size:13px;font-variant-numeric:tabular-nums;color:var(--text-secondary);white-space:nowrap}
.playback-controls .text-link{margin-left:auto;font-size:13px}
.playback-hint{margin:0;padding:0 14px 8px;background:#fff;font-size:12px;overflow-wrap:anywhere}
.playback-hint.notice{margin:0 14px 10px;padding:8px 12px}
.job-body{padding:12px 14px 14px}
.job-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.job-head h3{margin:0;font-size:16px;font-weight:650;line-height:1.45;overflow-wrap:anywhere}
.job-status{flex:0 0 auto;display:inline-block;margin-top:1px;padding:3px 9px;border-radius:12px;background:var(--status-run-bg);color:var(--status-run-text);font-size:12px;font-weight:600}
.job-status.done,.job-status.recovered{background:var(--status-done-bg);color:var(--status-done-text)}
.job-status.failed{background:var(--error-bg);color:var(--error-text)}
.job-time{margin:4px 0 0;font-size:12px;color:var(--text-secondary)}
.job-body .hint{margin:8px 0 0}
.job-meter{margin-top:12px;height:8px}
.job-body>.btn-block{margin-top:12px;min-height:52px;font-size:16px}
.save-tip{margin:8px 0 0!important;padding:10px 12px;border-radius:10px;background:var(--wood-soft);color:var(--text-main)}
.app .job-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.app .job-actions .btn{flex:1 1 auto;min-height:44px;padding:6px 12px;font-size:14px;white-space:nowrap}
.app .job-actions .btn-quiet{flex:0 0 auto;border-color:transparent;background:transparent;color:var(--text-secondary)}

/* 定向发送 */
.delivery-choice{display:flex!important;align-items:flex-start;gap:12px;margin:0!important;padding:12px 0;border-bottom:1px solid var(--border-light);font-weight:400!important;line-height:1.6}
.delivery-choice:last-child{border-bottom:0}
.delivery-choice input{width:20px;height:20px;flex-shrink:0;margin-top:2px;accent-color:var(--wood-accent)}
.delivery-choice span{overflow-wrap:anywhere;font-size:14px}
#match-targets{margin-top:10px}
.confirmation{outline:2px solid var(--wood-accent);background:#fbf5ec!important}
.confirmation ul{padding-left:20px;font-size:14px}
.confirmation p{font-size:13px;color:var(--text-secondary)}
.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.delivery-record{padding:12px 0;border-top:1px solid var(--border-light);font-size:14px;overflow-wrap:anywhere}
.delivery-record:first-child{border-top:0;padding-top:0}
.delivery-record p{margin:4px 0;font-size:13px}
#delivery-history .empty-state{padding:14px}

/* Under the top bar, so it never covers the generate button or the tab bar; taps pass through. */
.toast{pointer-events:none;position:fixed;left:50%;top:calc(var(--bar-h) + var(--safe-top) + 10px);z-index:50;transform:translateX(-50%);width:max-content;max-width:min(88vw,480px);padding:12px 18px;border-radius:14px;background:rgba(46,35,26,.94);color:#fff;font-size:14px;line-height:1.5;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.18)}

@media(max-width:359px){.app-main{padding-left:12px;padding-right:12px}.quick{padding:18px 14px 14px}.quick h1{font-size:21px}.app-bar-action{padding:0 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.app .btn:active:not(:disabled){transform:none}}
