*{box-sizing:border-box}html,body{margin:0;padding:0}
:root{
  --text-color:#111;
  --muted-color:#666;
  --line-color:#e5e7eb;
  --line-soft:#eee;
  --line-strong:#ddd;
  --panel-bg:#f9fafb;
  --panel-bg-alt:#fafafa;
  --surface:#fff;
  --shadow-color:rgba(0,0,0,.04);
}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;color:var(--text-color);background:#fff}
body.theme-dark{
  --text-color:#f8fafc;
  --muted-color:rgba(226,232,240,.9);
  --line-color:rgba(248,250,252,.2);
  --line-soft:rgba(248,250,252,.15);
  --line-strong:rgba(248,250,252,.25);
  --panel-bg:rgba(15,23,42,.55);
  --panel-bg-alt:rgba(15,23,42,.45);
  --surface:rgba(15,23,42,.4);
  --shadow-color:rgba(0,0,0,.35);
}
.site-header{display:flex;gap:1rem;align-items:center;justify-content:flex-start;padding:1rem 1.25rem;border-bottom:1px solid var(--line-soft);background:var(--panel-bg);position:sticky;top:0;z-index:10;flex-wrap:wrap}
.site-header h1{margin:0}
.sub{margin:.25rem 0 0;color:var(--muted-color)}
.back{text-decoration:none;border:1px solid var(--line-strong);padding:.4rem .7rem;border-radius:10px;color:var(--text-color);display:inline-flex;align-items:center;gap:.35rem;line-height:1}
.spacer{flex:1}
.btn{display:inline-block;text-decoration:none;border:1px solid var(--text-color);padding:.5rem .8rem;border-radius:12px;color:var(--text-color);background:transparent}
.btn[hidden]{display:none}
.hidden{display:none !important}
a:focus-visible,.btn:focus-visible,.back:focus-visible{outline:2px solid var(--text-color);outline-offset:2px;border-radius:12px}
.card:focus-visible{outline:none;box-shadow:0 0 0 2px var(--text-color)}
main{padding:1rem 1.25rem}
.page{max-width:980px;margin:0 auto;width:100%}
.page.wide{max-width:1200px}
.site-footer{padding:1rem 1.25rem;border-top:1px solid var(--line-soft);background:var(--panel-bg-alt);color:var(--muted-color)}
.site-footer small{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;white-space:normal;overflow:visible}
.footer-brand{display:inline-flex;align-items:center;gap:0;white-space:nowrap;margin-right:.75rem}
.inline-links{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin-left:auto;}
.inline-links a{display:inline-flex;align-items:center;color:var(--text-color);text-decoration:none;border:1px solid transparent;padding:.15rem .35rem;border-radius:8px;}
.inline-links a:hover{background:var(--surface);border-color:var(--line-color)}
.people-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:.9rem}
.card{display:flex;gap:.75rem;align-items:center;justify-content:flex-start;text-decoration:none;border:1px solid var(--card-line, var(--line-color));background:var(--card-bg, #fff);padding:1rem;border-radius:16px;box-shadow:0 1px 2px var(--shadow-color);min-height:120px;color:var(--card-text, var(--text-color))}
.card:hover{box-shadow:0 4px 16px rgba(0,0,0,.08);transform:translateY(-1px);transition:all .15s ease}
.card .name{margin:.1rem 0 .2rem;font-size:1.05rem;color:var(--card-text, var(--text-color));overflow-wrap:anywhere;word-break:break-word}
.card .title{margin:0;color:var(--card-muted, var(--muted-color));overflow-wrap:anywhere;word-break:break-word}
.card-avatar{flex:0 0 auto;width:64px;height:64px;border-radius:50%;overflow:hidden;background:#f3f4f6;display:flex;align-items:center;justify-content:center}
.card-avatar img{width:100%;height:100%;object-fit:cover}
.card-body{flex:1;min-width:0}
.chevron{font-size:1.8rem;color:var(--card-muted, #bbb);margin-left:auto}
.card.card-dark{--card-text:#f8fafc;--card-muted:#e2e8f0;--card-line:rgba(255,255,255,.2)}
.card.card-dark .chevron{color:var(--card-muted)}
.card.card-dark .chat-tag{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.2);color:#f8fafc}
.card.card-dark .chat-tag .dot{background:#34d399}
.card.card-dark .job-pill.small{background:rgba(16,185,129,.18);border-color:rgba(16,185,129,.5);color:#d1fae5}
#search{width:100%;max-width:420px;border:1px solid var(--line-color);border-radius:12px;padding:.6rem .8rem;background:var(--surface);color:var(--text-color)}
.tip{color:var(--muted-color);margin-top:.75rem}
.error{color:#b00020}.empty{color:var(--muted-color)}
.page h2{margin-top:0}
pre{background:var(--panel-bg-alt);border:1px solid var(--line-color);padding:1rem;border-radius:12px;overflow:auto}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.form-grid{display:grid;grid-template-columns:1fr;gap:.6rem;max-width:620px}
label{display:block;font-weight:600}
input[type="text"],input[type="password"],input[type="search"],input[type="file"],input[type="email"]{width:100%;border:1px solid var(--line-color);border-radius:10px;padding:.55rem .7rem;background:var(--surface);color:var(--text-color)}
.actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.75rem}
.btn-primary{border:1px solid #111;background:#111;color:#fff}
.btn-primary:hover{filter:brightness(1.1)}
.notice{border:1px solid var(--line-color);background:var(--panel-bg);padding:.75rem;border-radius:12px}
.ok{color:green}
.warn{color:#b36b00}
.admin-table{width:100%;border-collapse:collapse;margin-top:1rem;font-size:.9rem}
.admin-table th,.admin-table td{border:1px solid var(--line-color);padding:.6rem .65rem;text-align:left;vertical-align:top}
.admin-table tbody tr:nth-child(odd){background:var(--panel-bg-alt)}
.admin-table-wrapper{overflow-x:auto;margin-top:1rem}
.admin-table-wrapper .admin-table{min-width:720px}
.admin-table input[type="text"],.admin-table input[type="email"]{width:100%;max-width:230px}
.flag-inputs{display:flex;flex-direction:column;gap:.25rem}
.flag-inputs label{font-weight:400;display:flex;align-items:center;gap:.35rem}
.badge{display:inline-block;padding:.2rem .55rem;border-radius:999px;font-size:.75rem;line-height:1;border:1px solid transparent}
.badge.ok{background:#e8f9ef;color:#256029;border-color:#b7e1c5}
.badge.warn{background:#fff5eb;color:#8a4b08;border-color:#f7c99d}


.settings-card{border:1px solid var(--line-color);background:var(--panel-bg);padding:1rem 1.2rem;border-radius:14px;margin-bottom:1rem}
.settings-card h2{margin:0 0 .35rem 0;font-size:1.1rem}
.setting-toggle{display:flex;align-items:center;gap:.5rem;font-weight:500;margin:.35rem 0}
.setting-toggle input{width:18px;height:18px}
.color-row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.color-row input[type="color"]{width:48px;height:40px;padding:0;border:1px solid var(--line-color);border-radius:10px;background:var(--surface)}
.color-row select{border:1px solid var(--line-color);border-radius:10px;padding:.45rem .6rem;font-family:inherit;background:var(--surface);color:var(--text-color)}
.job-pill{display:inline-flex;align-items:center;gap:.35rem;margin-top:.35rem;padding:.25rem .65rem;border-radius:999px;background:#e8f9ef;color:#256029;border:1px solid #b7e1c5;font-size:.8rem;font-weight:600}
.job-pill.small{font-size:.75rem;padding:.2rem .55rem;margin-top:.4rem}
.job-filter{display:flex;align-items:center;gap:.4rem;font-size:.9rem;color:var(--muted-color);margin-left:1rem}
.job-filter input{width:18px;height:18px}
.page-editor-card .page-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}
.page-editor-card .page-tabs .btn{padding:.4rem .8rem}
.page-editor-card textarea{min-height:220px;font-family:inherit;line-height:1.4;width:100%;border:1px solid var(--line-color);border-radius:10px;padding:.55rem .7rem;background:var(--surface);color:var(--text-color)}
.email-template-card .template-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}
.email-template-card .template-tabs .btn{padding:.4rem .8rem}
.email-template-card textarea{min-height:220px;font-family:inherit;line-height:1.4;width:100%;border:1px solid var(--line-color);border-radius:10px;padding:.55rem .7rem;background:var(--surface);color:var(--text-color)}
.email-template-card #templatePlaceholders{margin:.35rem 0 0;color:var(--muted-color)}
.email-template-card .template-hint{margin:.3rem 0 0;color:var(--muted-color)}
.email-template-card .template-preview-toggle{margin:.55rem 0 0;display:flex;align-items:center;gap:.4rem;font-size:.9rem;font-weight:500}
.email-template-card .template-preview-toggle input{width:18px;height:18px}
.email-template-card .template-preview{margin-top:.55rem;border:1px solid var(--line-color);border-radius:10px;padding:.8rem;background:var(--surface);min-height:90px;max-height:320px;overflow:auto}
.email-template-card .template-preview.hidden{display:none}
.email-template-card .template-preview-empty{color:var(--muted-color);margin:0}
.email-settings-card .sub{margin:.35rem 0 0;color:var(--muted-color)}
.image-preview{margin-top:.6rem;padding:.4rem;border:1px solid var(--line-color);border-radius:12px;max-width:260px;background:var(--surface);display:flex;align-items:center;justify-content:center}
.image-preview.hidden{display:none}
.image-preview img{max-width:100%;border-radius:10px;height:auto;display:block}
.image-actions{margin-top:.6rem}
.site-status-card .status-options{display:flex;flex-direction:column;gap:.4rem;margin:.35rem 0 .75rem}
.site-status-card .status-options label{display:flex;align-items:center;gap:.5rem;font-weight:500}
.site-status-card .status-options input[type="radio"]{width:18px;height:18px}
.site-status-card textarea{width:100%;border:1px solid var(--line-color);border-radius:10px;padding:.55rem .7rem;font-family:inherit;line-height:1.4;background:var(--surface);color:var(--text-color)}
.note-card{border:1px solid var(--line-color);background:var(--panel-bg);padding:1.25rem;border-radius:16px;margin-top:1.5rem}
.note-card .note-body{margin:0;line-height:1.5}
.share-card{border:1px solid var(--line-color);background:var(--panel-bg);padding:1.25rem;border-radius:16px;margin-top:1.5rem}
.share-card .sub.ok{color:#256029}
.contact-card{border:1px solid var(--line-color);background:var(--panel-bg);padding:1.25rem;border-radius:16px;margin-top:1.5rem}
.contact-card h2{margin-top:0}
.contact-card textarea{width:100%;border:1px solid var(--line-color);border-radius:10px;padding:.55rem .7rem;font-family:inherit;min-height:160px;background:var(--surface);color:var(--text-color)}
.contact-card .sub.ok{color:#256029}
.chat-tags{display:flex;gap:.35rem;flex-wrap:wrap;margin:.4rem 0;}
.chat-tag{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .5rem;border-radius:10px;font-size:.8rem;line-height:1;border:1px solid var(--line-color);background:var(--panel-bg);color:var(--text-color);}
.chat-tag .dot{width:8px;height:8px;border-radius:50%;background:#10b981;display:inline-block;}
.chat-options{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.35rem;}
.chat-options label{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .65rem;border:1px solid var(--line-color);border-radius:10px;cursor:pointer;}
.chat-options input{width:16px;height:16px;}
.chat-options-wrap{display:flex;flex-direction:column;gap:.5rem;margin-top:.35rem;}
.chat-options .sub{flex-basis:100%;color:#6b7280;font-size:.85rem;margin:0;}
.chat-options.hidden{display:none;}
.donation-card{border:1px solid var(--line-color);background:var(--panel-bg);padding:1.5rem 1.75rem;border-radius:16px;margin:1rem auto;max-width:620px;text-align:center}
.donation-card h2{margin:0 0 .5rem;font-size:1.4rem}
.donation-card .donation-message{margin:.6rem 0 1rem;color:var(--text-color);font-size:1rem}
.donation-card .donation-button{margin-top:.75rem;font-size:1.05rem;padding:.65rem 1.5rem}
.donation-unavailable{margin:1rem 0 0;color:#b00020;font-weight:600}

.image-guard{position:relative;overflow:hidden;-webkit-user-drag:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;}
.image-guard .guard-img{width:100%;height:100%;background-size:cover;background-position:center;background-repeat:no-repeat;}
.image-guard .guard-overlay{position:absolute;inset:0;background:transparent;pointer-events:auto;touch-action:none;}
.image-guard img{display:none;}

.chat-tags{display:flex;gap:.35rem;flex-wrap:wrap;margin:.4rem 0;}
.chat-tag{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .5rem;border-radius:10px;font-size:.8rem;line-height:1;border:1px solid var(--line-color);background:var(--panel-bg);color:var(--text-color);}
.chat-tag .dot{width:8px;height:8px;border-radius:50%;background:#10b981;display:inline-block;}
.chat-box{border:1px solid var(--line-color);background:var(--panel-bg);padding:1rem;border-radius:14px;margin-top:1rem;}
.chat-status{margin:0 0 .5rem;color:var(--muted-color);font-size:.9rem;}
.chat-log{border:1px solid var(--line-color);background:var(--surface);border-radius:10px;min-height:160px;max-height:260px;overflow:auto;padding:.75rem;font-size:.9rem;line-height:1.4;}
.chat-log .me{color:#0f172a;}
.chat-log .peer{color:#0f766e;}
.chat-log .sys{color:#6b7280;font-style:italic;}
.chat-split{display:flex;gap:1rem;align-items:flex-start;}
.chat-queue{flex:0 0 220px;border:1px solid var(--line-color);background:var(--panel-bg);padding:.75rem;border-radius:12px;}
.chat-main{flex:1;min-width:0;}
.chat-input-row{display:flex;gap:.5rem;margin-top:.6rem;flex-wrap:wrap;}
.chat-input-row input{flex:1;min-width:180px;}
.emoji-panel{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:.35rem;margin-top:.5rem;padding:.4rem;border:1px solid var(--line-color);border-radius:10px;background:var(--surface);max-width:360px;width:100%;}
.emoji-panel.hidden{display:none;}
.emoji-btn{border:1px solid var(--line-color);background:var(--panel-bg);border-radius:8px;cursor:pointer;font-size:1.1rem;line-height:1;padding:.35rem;}
.emoji-btn:hover{background:#eef2f7;}
.chat-video-wrap{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.6rem;}
.chat-video-wrap video{width:220px;height:160px;background:#000;border-radius:10px;border:1px solid var(--line-color);object-fit:cover;}
.chat-video-wrap.hidden{display:none;}
.chat-audio-wrap{display:flex;align-items:center;gap:.75rem;margin-top:.6rem;padding:.65rem .8rem;border:1px dashed var(--line-color);border-radius:12px;background:var(--panel-bg);}
.chat-audio-wrap audio{display:none;}
.chat-audio-card strong{display:block;color:#0f172a;}
.chat-audio-wrap.hidden{display:none;}
.chat-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:.6rem 0;}
.chat-actions .btn{padding:.45rem .75rem;}
.chat-diag{border:1px dashed var(--line-color);background:var(--panel-bg);padding:.6rem .75rem;border-radius:12px;margin:.4rem 0;}
.chat-diag-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.35rem;}
.chat-diag-log{max-height:180px;overflow:auto;background:var(--surface);border:1px solid var(--line-color);border-radius:8px;padding:.5rem;font-size:.75rem;line-height:1.4;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;}
.profile-bottom-row{display:flex;align-items:stretch;flex-wrap:wrap;gap:1.25rem;margin:1.25rem 0 0}
.profile-bottom-left{flex:1 1 520px;min-width:260px;display:flex;flex-direction:column;gap:1rem}
.profile-embed-wrap{flex:0 1 clamp(220px,32vw,360px);margin-left:auto;display:flex;justify-content:flex-end;align-self:flex-end}
.profile-embed{width:100%;min-height:180px;height:var(--embed-height, auto);overflow:hidden;border-radius:12px;box-shadow:0 12px 24px rgba(15,23,42,.15);background:#fff;display:block}
.profile-embed > *{max-width:100%;display:block}
.profile-embed iframe,.profile-embed embed,.profile-embed object{border:0;max-width:100%}
.profile-embed.hidden{display:none}
.profile-embed-wrap.hidden{display:none}

@media print {
  body:not(.owner-view) .viewer-wrap{display:none !important;}
  body.print-disabled *{display:none !important;}
  body.print-disabled::before{content:'Printing disabled for this profile.';display:block;text-align:center;padding:4rem;font-size:1.2rem;}
}

@media(max-width: 720px){
  .chat-options{flex-direction:column;}
  .chat-split{flex-direction:column;}
  .chat-queue{width:100%;}
  .chat-actions .btn{flex:1 1 auto;}
  .chat-video-wrap{flex-direction:column;}
  .chat-video-wrap video{width:100%;height:auto;aspect-ratio:4/3;}
  .chat-diag-log{max-height:140px;}
  .profile-bottom-row{margin:1rem 0 0;}
  .profile-bottom-left{flex-basis:100%;}
  .profile-embed-wrap{flex-basis:100%;margin-left:0;justify-content:flex-end;align-self:stretch;}
  .profile-embed{max-width:min(360px,92vw);}
}

@media(max-width: 520px){
  .chat-actions .btn{width:100%;}
  .chat-input-row input{min-width:100%;}
}

.site-header .btn{margin-left:.5rem}


.header-search{max-width:280px;min-width:0;width:100%;border:1px solid var(--line-color);border-radius:12px;padding:.5rem .75rem;margin-left:1rem;background:var(--surface);color:var(--text-color)}

.home-header{display:flex;align-items:center;gap:.75rem;flex-wrap:nowrap;}
.home-header .site-title{margin:0;font-size:1.5rem;white-space:nowrap;overflow-wrap:anywhere;word-break:break-word;}
.home-header .site-tagline{font-size:.95rem;color:var(--muted-color);white-space:nowrap;overflow-wrap:anywhere;word-break:break-word;}
.home-header .header-search{flex:0 0 280px;}
@media(max-width:768px){
  .home-header{flex-wrap:wrap;gap:.5rem;}
  .home-header .site-tagline{white-space:normal;}
  .home-header .header-search{flex:1 1 100%;margin-left:0;}
  .home-header .spacer{display:none;}
  .job-filter{margin-left:0;}
  .site-header{padding:0.85rem 1rem;}
  main{padding:1rem}
  .admin-table{font-size:.82rem}
}

@media(max-width:600px){
  .site-header{gap:.6rem;}
  .site-header .spacer{flex-basis:100%;height:0;}
  .site-footer small{gap:.35rem;justify-content:flex-start;}
  .footer-brand{margin-right:0;flex-basis:100%;}
  .inline-links{margin-left:0;flex-basis:100%;justify-content:flex-start;}
}
@media(max-width:540px){
  .people-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));}
  .card{flex-wrap:wrap;padding:.9rem;}
  .card .chevron{display:none;}
  .actions{width:100%;flex-direction:column;}
  .actions .btn,.actions button{width:100%;text-align:center;}
}
@media(max-width:420px){
  .people-list{grid-template-columns:1fr;}
  .home-header .site-title{font-size:1.25rem;}
  .home-header .site-tagline{font-size:.88rem;}
}
@media(max-width:480px){
  .site-header{padding:.75rem .9rem;}
  .home-header{gap:.6rem;}
  .home-header .site-title{font-size:1.35rem;}
  .home-header .site-tagline{font-size:.9rem;}
  .home-header .header-search{max-width:100%;}
  .job-filter{width:100%;}
  .card{padding:.85rem;gap:.6rem;}
  .card-avatar{width:56px;height:56px;}
}
.responsive-frame{width:100%;max-width:100%}
img,.responsive-img{max-width:100%;height:auto}
iframe{max-width:100%}

.site-maintenance-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:rgba(15,23,42,.9);backdrop-filter:blur(8px);color:#fff;text-align:center;z-index:9999}
.site-maintenance-overlay.hidden{display:none}
.site-maintenance-dialog{max-width:520px;width:100%;background:rgba(17,24,39,.92);padding:1.75rem;border-radius:18px;box-shadow:0 30px 60px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.08)}
.site-maintenance-title{margin:0 0 .75rem;font-size:1.6rem;letter-spacing:-.01em}
.site-maintenance-message{margin:0;font-size:1.05rem;line-height:1.6;color:rgba(255,255,255,.9)}
.site-maintenance-note{margin:1.25rem 0 0;font-size:.95rem;color:rgba(255,255,255,.75)}
.site-maintenance-link{color:#fbbf24;text-decoration:underline}
.site-maintenance-admin-banner{position:sticky;top:0;z-index:9998;background:#fff7d6;color:#7a5400;border-bottom:1px solid #f5db8c;padding:.75rem 1rem;text-align:center;font-weight:500}
.site-maintenance-admin-banner.hidden{display:none}
body.site-maintenance-locked{overflow:hidden}
body.is-noelcore-app [data-browser-only="1"]{display:none !important}
body.is-browser-client [data-app-only="1"]{display:none !important}
.noelcore-open-app-btn{border-color:#0f766e;color:#0f766e;background:rgba(15,118,110,.08)}
.noelcore-open-app-btn:hover{background:rgba(15,118,110,.15)}
body.is-noelcore-app .noelcore-open-app-btn{display:none !important}
.noelcore-app-badge{display:inline-flex;align-items:center;padding:.22rem .55rem;border-radius:999px;border:1px solid rgba(15,118,110,.35);background:rgba(15,118,110,.10);color:#0f766e;font-size:.72rem;font-weight:700;line-height:1;margin-left:.5rem;vertical-align:middle;white-space:nowrap}
body.theme-dark .noelcore-app-badge{border-color:rgba(52,211,153,.5);background:rgba(16,185,129,.18);color:#a7f3d0}

.modal{position:fixed;inset:0;background:rgba(15,23,42,.6);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:1.5rem;z-index:9999}
.modal-card{background:var(--surface);color:var(--text-color);border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.35);border:1px solid var(--line-color);max-width:980px;width:100%;max-height:90vh;overflow:auto}
.modal-head{display:flex;align-items:center;gap:1rem;justify-content:space-between;padding:1.2rem 1.4rem;border-bottom:1px solid var(--line-color);background:var(--panel-bg)}
.modal-head h2{margin:0}
.wizard-body{display:flex;gap:1.2rem;padding:1.2rem 1.4rem}
.wizard-steps{flex:0 0 180px;display:flex;flex-direction:column;gap:.5rem}
.wizard-step{border:1px solid var(--line-color);background:var(--panel-bg);padding:.5rem .7rem;border-radius:10px;text-align:left;color:var(--text-color);cursor:pointer}
.wizard-step.active{border-color:#111;background:#111;color:#fff}
.wizard-panel{flex:1;min-width:0}
.wizard-page.hidden{display:none}
.wizard-footer{display:flex;align-items:center;padding:1rem 1.4rem;border-top:1px solid var(--line-color);background:var(--panel-bg)}
.wizard-list{display:flex;flex-direction:column;gap:.75rem}
.wizard-item{border:1px solid var(--line-color);background:var(--panel-bg);padding:.75rem;border-radius:12px;display:grid;gap:.5rem}
.wizard-item .actions{margin-top:0}
.wizard-preview{border:1px solid var(--line-color);background:var(--surface);padding:1rem;border-radius:12px;max-height:360px;overflow:auto}
.wizard-preview h1{margin:0 0 .25rem 0}
.wizard-preview h2{margin:.9rem 0 .35rem 0;font-size:1rem;text-transform:uppercase;letter-spacing:.04em}
.wizard-preview .muted{color:var(--muted-color)}
.wizard-preview .pdf-theme-modern{padding-left:12px;border-left:3px solid #0f766e}
.wizard-preview .pdf-theme-modern h1{font-size:1.6rem;letter-spacing:.02em}
.wizard-preview .pdf-theme-modern h2{color:#0f766e;border-bottom:1px solid #d1fae5;padding-bottom:4px}
.wizard-preview .pdf-theme-modern .badge{border-color:#0f766e;color:#0f766e}
.wizard-preview .pdf-theme-minimal h1{font-size:1.4rem;font-weight:600}
.wizard-preview .pdf-theme-minimal h2{color:#475569;text-transform:none;letter-spacing:.02em}
.wizard-preview .pdf-theme-minimal .badge{border-color:#94a3b8;color:#475569}
.wizard-preview .pdf-theme-bold h1{font-size:1.8rem;color:#111;text-transform:uppercase;letter-spacing:.04em}
.wizard-preview .pdf-theme-bold h2{color:#111;border-bottom:2px solid #111;padding-bottom:2px}
.wizard-preview .pdf-theme-bold .badge{border-color:#111;color:#111}
.wizard-preview .pdf-theme-professional h1{font-size:1.55rem;letter-spacing:.02em}
.wizard-preview .pdf-theme-professional h2{color:#1f4b99;border-bottom:1px solid rgba(31,75,153,.25);padding-bottom:4px}
.wizard-preview .pdf-theme-professional .badge{border-color:#1f4b99;color:#1f4b99}
.wizard-hint{margin-top:.6rem;color:var(--muted-color)}
@media(max-width:860px){
  .wizard-body{flex-direction:column}
  .wizard-steps{flex-direction:row;flex-wrap:wrap}
  .wizard-step{flex:1 1 140px}
}
