:root{--calm-bg:#17181d;--calm-panel:#23242a;--calm-panel-soft:#292a30;--calm-line:#393a42;--calm-gold:#ffb703;--calm-orange:#fb8500;--calm-text:#f7f5ef;--calm-muted:#aaaab3}
body.calm-launch{background:var(--calm-bg)}
body.calm-launch>.appbar,body.calm-launch>.bottom-nav{display:none!important}
body.calm-launch main{width:min(680px,100%);padding:clamp(28px,7vh,72px) 18px 40px}
body.calm-launch #launch{min-height:calc(100dvh - 80px)}
.calm-launch .creation-choice{max-width:620px;margin:0 auto;background:transparent;border:0;box-shadow:none;padding:0}
.calm-launch .creation-choice h2{font-size:clamp(2rem,7vw,3.15rem);line-height:1.08;letter-spacing:-.035em;margin:0 0 30px;max-width:560px;color:var(--calm-text)}
.calm-launch .creation-grid{display:grid;grid-template-columns:1fr;gap:12px}
.calm-launch .creation-card{min-height:104px;border:1px solid var(--calm-line);border-radius:20px;background:linear-gradient(145deg,#25262c,#202126);color:var(--calm-text);padding:20px 22px;display:grid;grid-template-columns:58px 1fr 22px;grid-template-rows:auto auto;align-items:center;column-gap:16px;text-align:left;box-shadow:none}
.calm-launch .creation-card:after{content:'›';grid-column:3;grid-row:1/3;color:#898a92;font-size:32px;font-weight:300}
.calm-launch .creation-card:active{transform:scale(.985);border-color:#5c5135}
.calm-launch .creation-icon{grid-column:1;grid-row:1/3;width:54px;height:54px;border-radius:16px;background:#322c1d;color:var(--calm-gold);display:grid;place-items:center;font-size:26px}
.calm-launch .creation-card b{grid-column:2;grid-row:1;font-size:1.2rem;align-self:end}
.calm-launch .creation-card small{grid-column:2;grid-row:2;font-size:.9rem;line-height:1.35;color:var(--calm-muted);align-self:start}
.calm-recent{margin-top:32px}.calm-recent>span{display:block;margin:0 0 9px;color:var(--calm-muted);font-size:.9rem;font-weight:750}.calm-recent article{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:17px 18px;border-radius:18px;background:#222329;border:1px solid var(--calm-line)}.calm-recent article div{display:flex;flex-direction:column;min-width:0}.calm-recent small{font-size:.75rem;color:var(--calm-muted)}.calm-recent b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calm-recent button{min-height:48px;flex:none;background:linear-gradient(135deg,var(--calm-gold),var(--calm-orange));color:#18130a;border:0;border-radius:14px;padding:10px 17px;font-weight:900}

body.calm-project main{width:min(760px,100%);padding-bottom:40px}
.calm-project #project>.section-head{position:sticky;top:0;z-index:11;margin:-20px -16px 0;padding:18px 18px 12px;background:rgba(23,24,29,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--calm-line)}
.calm-project #project>.section-head .eyebrow{display:none}.calm-project #project>.section-head h2{font-size:1.35rem;margin:0}.calm-project #wizardStepLabel{background:transparent;color:var(--calm-muted);padding:0;font-size:.85rem}
.calm-project #wizardProgress{display:flex;align-items:center;justify-content:center;gap:8px;margin:18px 0 12px;height:18px}
.calm-project #wizardProgress button{width:9px;height:9px;min-width:9px;min-height:9px;padding:0;border:0;border-radius:999px;background:#55565e;transition:width .2s ease,background .2s ease}
.calm-project #wizardProgress button.done{background:#48d89a}.calm-project #wizardProgress button.active{width:28px;background:var(--calm-gold)}
.wizard-swipe-hint{margin:-7px 0 12px;text-align:center;color:var(--calm-muted);font-size:.78rem}.wizard-swipe-hint span{color:var(--calm-gold);padding:0 5px}
.calm-project #projectForm{padding:0;background:transparent;border:0;box-shadow:none;overflow:hidden;touch-action:pan-y}
.calm-project .wizard-step{min-height:calc(100dvh - 230px);padding:22px 18px 112px;border:1px solid var(--calm-line);border-radius:22px;background:linear-gradient(155deg,#25262c,#1f2025);animation:calmStepIn .22s ease}
.calm-project .wizard-step legend{width:100%;font-size:1.45rem;font-weight:850;color:var(--calm-text);padding:0;margin:0 0 3px}.calm-project .step-help{font-size:.94rem;line-height:1.45;margin:0 0 12px;color:var(--calm-muted)}
.calm-project .wizard-step label,.calm-project .wizard-step>div>b{font-size:.95rem;color:#ece9e1}.calm-project .wizard-step input,.calm-project .wizard-step select,.calm-project .wizard-step textarea{min-height:50px;border-color:#464751;background:#17181d;font-size:1rem}.calm-project .field-help{display:none}
.calm-project .wizard-actions{position:fixed;left:50%;bottom:max(16px,env(safe-area-inset-bottom));z-index:35;transform:translateX(-50%);width:min(720px,calc(100% - 24px));margin:0;padding:9px;border:1px solid #43444c;border-radius:18px;background:rgba(31,32,37,.96);backdrop-filter:blur(16px);box-shadow:0 14px 40px rgba(0,0,0,.45)}
.calm-project .wizard-actions button{min-height:52px}.calm-project #wizardNext,.calm-project #wizardSave{background:linear-gradient(135deg,var(--calm-gold),var(--calm-orange));color:#17130a;border:0}.calm-project .project-tools{display:none}
.legacy-page-count{display:none!important}
.page-slider-card{grid-column:1/-1;margin:4px 0 12px;padding:18px;border:1px solid #464751;border-radius:18px;background:#1b1c21;color:var(--calm-text)}
.page-slider-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.page-slider-head>div{display:grid;gap:4px}.page-slider-head b{font-size:1rem}.page-slider-head small{color:var(--calm-muted);line-height:1.35}.page-slider-head output{flex:none;border-radius:999px;background:#342d1b;color:var(--calm-gold);padding:7px 11px;font-weight:850}
.page-slider-controls{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:10px;margin:18px 0 12px}.page-slider-controls button{min-height:48px;border:1px solid #50515a;border-radius:14px;background:#292a30;color:var(--calm-text);font-size:1.35rem}.page-slider-controls input[type=range]{width:100%;min-height:44px;accent-color:var(--calm-gold);touch-action:pan-y}
.page-number-label{display:flex!important;align-items:center;justify-content:space-between;gap:14px;color:var(--calm-muted)!important}.page-number-label input{width:100px!important;min-height:44px!important;text-align:center}.page-estimate{min-height:1.25em;margin:10px 0 0;color:var(--calm-muted);font-size:.82rem;line-height:1.4}
@keyframes calmStepIn{from{opacity:.35;transform:translateX(12px)}to{opacity:1;transform:none}}

@media(max-width:699px){
  .studio-dock.calm-collapsed{max-height:150px}.studio-dock.calm-collapsed .studio-handle,.studio-dock.calm-collapsed .studio-dock-title,.studio-dock.calm-collapsed .studio-tabs,.studio-dock.calm-collapsed .studio-dock-content{display:none}.studio-dock.calm-collapsed .calm-tools-toggle{order:2}.studio-dock.calm-collapsed .studio-primary{order:1}
  .calm-tools-toggle{order:-2;position:sticky;top:0;z-index:8;min-height:46px;border:0;border-bottom:1px solid var(--calm-line);background:rgba(32,33,39,.995);color:#f5d77a;padding:9px;font-weight:850}.studio-primary{order:3}.studio-dock-content{order:1}.studio-dock-title{order:0}.studio-tabs{order:0}
  body.studio-active .studio-stage{padding-bottom:calc(var(--studio-dock-height,48dvh) + 24px);scroll-padding-bottom:calc(var(--studio-dock-height,48dvh) + 24px)}.studio-dock:not(.calm-collapsed){max-height:min(52dvh,460px)}.studio-dock:not(.calm-collapsed) .studio-dock-content{max-height:none}.studio-dock:not(.calm-collapsed) .calm-tools-toggle{border-top:1px solid var(--calm-line)}
}
@media(min-width:700px){.calm-tools-toggle{display:none}.calm-project .wizard-step{padding:28px 30px 104px}.calm-launch .creation-grid{grid-template-columns:repeat(3,1fr)}.calm-launch .creation-card{min-height:180px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end}.calm-launch .creation-card:after{display:none}.calm-launch .creation-icon{margin-bottom:auto}.calm-launch .creation-card b{font-size:1.12rem}.calm-launch .creation-card small{font-size:.82rem}}
@media(prefers-reduced-motion:reduce){.calm-project .wizard-step{animation:none}}
 .rac-start-error{position:fixed;inset:calc(env(safe-area-inset-top) + 16px) 16px auto;z-index:10001;max-width:680px;margin:auto;padding:18px;border:2px solid #ffb703;border-radius:16px;background:#17181d;color:#f7f5ef;box-shadow:0 18px 48px #0008}.rac-start-error strong{font-size:1.1rem}.rac-start-error p{margin:.65rem 0 1rem;line-height:1.45}.rac-start-error button{min-height:48px}
