:root{--navy:#102e40;--ink:#173041;--muted:#697989;--line:#dfe7eb;--bg:#f5f8f8;--green:#186e67;--mint:#dff3eb;--danger:#ae2c31;--radius:18px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #87cfc3;outline-offset:2px}[hidden]{display:none!important}.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:22px;background:radial-gradient(ellipse at 80% 8%,#d6f5e8 0%,transparent 47%),radial-gradient(ellipse at 5% 80%,#c7dfea 0%,transparent 50%),#f5f8f8}.auth-panel{width:100%;max-width:430px;padding:clamp(24px,5vw,46px);background:white;border-radius:25px;box-shadow:0 18px 65px #1730411c;border:1px solid #e3ecec}.auth-panel h1,.intro h1{font-size:clamp(27px,4vw,34px);letter-spacing:-.05em;line-height:1.12;margin:8px 0 10px}.brand-mark,.small-mark{width:54px;height:54px;border-radius:17px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:850;font-size:27px;position:relative}.brand-mark span,.small-mark span{position:absolute;font-size:15px;right:8px;top:3px;color:#8bd2ba}.eyebrow{letter-spacing:.16em;font-size:10px;font-weight:800;color:var(--green);margin-top:24px}.muted{color:var(--muted);font-size:14px;line-height:1.5}.auth-foot{text-align:center;margin:28px 0 0;font-size:12px;color:#697989;line-height:1.9}.auth-foot small{font-size:11px}.form-grid{display:flex;flex-direction:column;gap:11px;margin-top:21px}.form-grid>label:not(.file-zone),.form-grid>div>label{font-size:13px;font-weight:750;margin:7px 0 -4px}.form-grid>div>label{display:block;margin-bottom:9px}.form-grid input:not([type=file]):not([type=range]):not([type=color]),.form-grid select,textarea{width:100%;border:1px solid #d4e0e3;border-radius:11px;padding:14px 15px;background:#fff;color:var(--ink);font-size:16px;min-height:50px}.form-grid input[type=color]{width:100%;height:47px;background:#fff;border:1px solid #d4e0e3;border-radius:10px;padding:5px}.form-grid input[type=file]{font-size:13px;max-width:100%}.field-error{color:#9a2630;font-size:13px}.btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:45px;padding:11px 16px;border:1px solid transparent;border-radius:10px;font-size:14px;font-weight:750;text-decoration:none;white-space:normal;text-align:center}.btn.primary{background:var(--navy);color:white}.btn.outline{background:white;border-color:#cedcdf;color:var(--navy)}.btn.ghost{background:transparent;color:var(--green)}.btn.full{width:100%}.btn.small{min-height:34px;padding:7px 12px;font-size:12px}.btn:hover:not(:disabled){filter:brightness(.96)}.topbar{background:white;border-bottom:1px solid var(--line)}.topbar-inner{max-width:1060px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 18px}.app-brand{display:flex;align-items:center;gap:10px;min-width:0}.app-brand strong{font-size:15px;letter-spacing:-.035em;display:block}.app-brand small{color:var(--muted);font-size:10px;display:block;white-space:nowrap}.small-mark{width:39px;height:39px;font-size:19px;border-radius:12px;flex-shrink:0}.small-mark span{font-size:10px}.header-actions{display:flex;align-items:center;gap:3px}.nav-button{background:transparent;border:none;padding:10px 12px;color:#697989;font-size:12px;font-weight:750;border-radius:9px;white-space:nowrap}.nav-button.active{color:var(--navy);background:#e7f3ef}.nav-button.logout{border-left:1px solid var(--line);border-radius:0}.main-wrap{max-width:850px;margin:0 auto;padding:20px 16px 45px;min-height:calc(100vh - 170px)}.intro{margin:8px 0 22px}.intro .eyebrow{margin-top:0}.intro h1{font-size:30px}.intro p{margin-top:0}.steps{display:flex;gap:4px;justify-content:space-between;margin-bottom:18px;background:white;border:1px solid var(--line);padding:10px;border-radius:15px}.step{flex:1;display:flex;gap:7px;align-items:center;justify-content:center;background:transparent;border:none;color:#8da0a9;padding:4px 2px}.step span{display:grid;place-items:center;width:26px;height:26px;border:1px solid #d8e5e7;border-radius:50%;font-weight:750;font-size:12px}.step small{font-size:12px;font-weight:700}.step.active{color:var(--green)}.step.active span{background:var(--green);color:white;border-color:var(--green)}.step.completed{color:var(--ink)}.step.completed span{border-color:#b7cfc5;background:#e2f4ec}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:clamp(18px,4vw,30px);box-shadow:0 6px 28px #102e4008}.panel h2{font-size:22px;letter-spacing:-.035em;margin:0 0 6px}.panel h3{font-size:16px;margin:0 0 10px}.subline{margin:0 0 15px}.required{color:#c13637}.optional{color:#87959b;font-weight:500}.file-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px 14px;border:1.5px dashed #a9c6c7;border-radius:13px;background:#f8fcfb;gap:5px;cursor:pointer}.file-zone.compact{padding:18px 14px}.file-zone small{color:var(--muted);font-size:11px;font-weight:450}.file-zone strong{font-size:14px}.upload-icon{display:grid;place-items:center;width:38px;height:38px;background:#e1f1eb;color:var(--green);border-radius:10px;font-size:22px}.file-strip{display:flex;align-items:center;gap:8px;background:#f1f7f6;border-radius:10px;padding:7px}.file-strip img{width:43px;height:43px;object-fit:cover;border-radius:7px}.file-strip span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:12px}.link-btn{border:none;background:transparent;color:#13635c;font-size:13px;font-weight:750;padding:9px}.helper-note,.status-message{background:#edf6f2;color:#37594d;border-radius:10px;padding:12px;font-size:12px;line-height:1.5}.status-message.warning{background:#fff8e5;color:#765720}.status-message.error{background:#fceced;color:#8b2732}.segmented{background:#f0f5f5;border-radius:11px;padding:4px;display:flex;gap:4px;margin:18px 0}.segmented button{flex:1;background:transparent;border:none;border-radius:8px;min-height:39px;font-size:13px;font-weight:750;color:#687f87}.segmented button.selected{background:white;color:var(--navy);box-shadow:0 2px 5px #0000000f}.editor-stage{max-width:480px;margin:12px auto 22px;background:#ecf1f2;padding:12px 12px 8px;border-radius:14px;text-align:center;touch-action:pan-y}.editor-stage canvas{display:block;max-width:100%;height:auto;margin:auto;touch-action:none;cursor:grab;background:white;border-radius:4px;user-select:none}.editor-stage canvas:active{cursor:grabbing}.editor-stage.wide-stage{max-width:720px}.canvas-hint{color:#6c858a;font-size:11px;margin-top:9px}.control-line{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:750;margin:15px 0 6px}.control-line output{color:var(--muted);font-weight:600}.range{width:100%;accent-color:var(--green);height:32px}.editor-actions{display:flex;gap:9px;justify-content:space-between;margin-top:16px}.editor-actions .btn{flex:1}.footer{text-align:center;font-size:11px;color:#83949c;padding:18px 10px;border-top:1px solid var(--line)}.row-between{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.template-list{display:grid;gap:10px;margin:16px 0 20px}.template-row{display:flex;gap:12px;align-items:center;background:#f8fbfb;border:1px solid #e3eded;border-radius:12px;padding:9px}.template-row img{width:53px;height:67px;object-fit:cover;border-radius:5px;flex-shrink:0}.template-row .info{flex:1;min-width:0}.template-row strong{display:block;font-size:13px}.template-row small{display:block;margin-top:3px;color:#6b848a}.template-row .actions{display:flex;flex-direction:column;gap:1px}.template-row .actions button{background:transparent;border:0;text-align:right;padding:5px 2px;color:#146d67;font-size:12px;font-weight:700}.template-row .actions button.danger{color:#aa3839}.backup-actions{display:flex;gap:9px;flex-wrap:wrap}.divider{height:1px;background:var(--line);margin:24px 0}.manager-canvas-wrap{max-width:370px;margin:0 auto;background:#edf2f2;padding:10px;border-radius:12px}.manager-canvas-wrap canvas{display:block;width:100%;height:auto;touch-action:manipulation;cursor:crosshair}.output-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.output-card{border:1px solid var(--line);border-radius:12px;padding:12px;text-align:center}.output-card h3{font-size:14px;margin:0}.output-card .muted{font-size:11px;margin:5px 0 12px}.output-card canvas{width:100%;height:auto;display:block;background:#f0f4f4;border-radius:7px;margin:0 auto 10px}.output-card .link-btn{margin-top:5px}.caption-section{margin-top:25px}.caption-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.caption-header h3{margin:0}textarea{resize:vertical;min-height:110px;line-height:1.5;margin-bottom:2px}.confirm-dialog{border:0;box-shadow:0 25px 90px #0004;border-radius:17px;padding:24px;max-width:380px;width:calc(100% - 32px)}.confirm-dialog::backdrop{background:#152b3c88}.confirm-dialog h3{margin-top:0}.confirm-dialog p{font-size:14px;line-height:1.5}#toast{position:fixed;z-index:50;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));transform:translate(-50%,120px);opacity:0;pointer-events:none;background:#143b40;color:#fff;padding:12px 18px;box-shadow:0 8px 25px #0004;border-radius:12px;text-align:center;max-width:min(94vw,420px);font-size:13px;transition:transform .2s,opacity .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast.error{background:#862f32}@media(max-width:560px){.topbar-inner{padding:10px 12px}.app-brand small{display:none}.app-brand strong{font-size:13px}.header-actions .nav-button{font-size:11px;padding:8px 7px}.desktop-only{display:none}.main-wrap{padding:14px 10px 35px}.intro{margin:10px 5px 18px}.intro h1{font-size:26px}.intro p{font-size:12px}.steps{padding:8px 3px}.step{gap:4px}.step small{font-size:10px}.step span{width:22px;height:22px}.panel{border-radius:14px;padding:16px}.panel h2{font-size:20px}.editor-actions .btn{font-size:12px;padding:9px 8px}.output-grid{gap:9px}.output-card{padding:8px}.output-card h3{font-size:12px}.output-card .btn{font-size:11px;padding:7px 5px;min-height:38px}.caption-header h3{font-size:14px}.nav-button.logout{padding-left:6px}.auth-panel{border-radius:18px}.editor-stage{padding:8px}.template-row{gap:8px}.template-row img{width:45px;height:57px}}@media(max-width:340px){.app-brand strong{font-size:11px}.step small{font-size:9px}.topbar-inner{gap:3px}.nav-button{font-size:10px!important}}

/* Version 0.2: Futuh Tech brand presentation. The image, not typed text,
   represents the agency on both the login screen and the in-app header. */
.login-branding{display:flex;flex-direction:column;gap:9px;margin:4px 0 8px}
.login-branding h1{font-size:clamp(26px,3vw,34px);line-height:1.15;margin:0;letter-spacing:-.045em}
.powered-by{display:flex;flex-direction:column;align-items:flex-start;gap:1px;line-height:1}
.powered-by span{font-size:11px;color:#788891;font-weight:600}
.powered-by img{width:182px;max-width:85%;height:auto;display:block;object-fit:contain}
.auth-panel .powered-by{margin-top:3px}
.auth-foot{margin-top:32px}
.app-brand .brand-heading{display:flex;flex-direction:column;gap:3px}
.app-brand strong{font-size:16px;white-space:normal;line-height:1.2}
.powered-by.compact{flex-direction:column;align-items:flex-start;gap:2px}
.powered-by.compact img{width:98px;max-width:none}
.powered-by.compact span{font-size:10px;align-self:center}
@media(max-width:560px){
  .topbar-inner{flex-direction:column;gap:10px;align-items:stretch}
  .app-brand{justify-content:center;text-align:center}
  .app-brand strong{font-size:17px}
  .app-brand .brand-heading{align-items:center}
  .powered-by.compact{justify-content:center;align-items:center}
  .powered-by.compact img{width:105px}
  .header-actions{width:100%;justify-content:center}
  .header-actions .nav-button{min-height:39px;padding:9px 15px;font-size:12px}
  .auth-panel .powered-by img{width:172px}
}

/* v0.3: centered login brand, compact after-login title */
.auth-panel {max-width:460px; padding:clamp(25px,5vw,43px)}
.login-branding {align-items:center; text-align:center; gap:10px; margin:2px 0 17px}
.login-branding h1 {font-size:clamp(26px,5vw,34px); line-height:1.13; letter-spacing:-.047em; margin:0}
.login-branding h1 span {display:block}
.login-branding h1 span + span {font-size:.84em; letter-spacing:-.03em; margin-top:5px}
.auth-panel .powered-by {align-items:center; gap:4px; margin-top:2px}
.auth-panel .powered-by span {font-size:12px}
.auth-panel .powered-by img {width:158px; max-width:100%}
.auth-panel > .muted {text-align:center; margin:22px 0 7px}
.auth-panel > .form-grid {margin-top:20px}
.auth-foot {margin-top:28px}
.app-brand strong {font-size:15px; font-weight:800; line-height:1.28; letter-spacing:-.025em}
.brand-divider {color:#789196; padding:0 3px; font-weight:500}
@media(max-width:560px){
  .auth-panel .powered-by img {width:154px}
  .login-branding h1 {font-size:clamp(25px,7.5vw,33px)}
  .topbar-inner {padding:12px 12px 10px; gap:8px}
  .app-brand strong {font-size:15px; text-align:center}
  .app-brand {justify-content:center}
  .header-actions {justify-content:center; gap:6px}
}
