:root {color-scheme:light; --navy:#153d5b;--navy2:#0d304c;--blue:#17689d;--teal:#1b9eab;--ink:#1c2b3a;--muted:#5e7387;--paper:#fff;--bg:#f2f6fa;--line:#dce6ed;--ring:rgba(35,133,164,.3);font-family:Arial,Helvetica,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}
.topbar{background:linear-gradient(115deg,#10314f,#1a5570 80%);color:#fff;border-bottom:4px solid var(--teal)}.topbar-inner{max-width:1340px;margin:auto;padding:20px 26px;display:flex;align-items:center;gap:15px}.brandmark{background:#fff;width:52px;height:52px;display:grid;place-items:center;border-radius:12px;padding:5px}.brandmark img{max-width:100%;max-height:100%;object-fit:contain}.brand{flex:1;min-width:0}.eyebrow{color:#8fe0ea;font-size:10px;letter-spacing:.16em;font-weight:700}.brand h1{margin:5px 0 0;font-size:clamp(20px,2.4vw,28px);line-height:1.1;letter-spacing:-.02em}.top-pill{font-size:12px;background:#ffffff18;border:1px solid #ffffff30;border-radius:99px;padding:9px 12px;white-space:nowrap}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#82dbc9;margin-right:5px}
.layout{max-width:1340px;margin:24px auto 70px;padding:0 24px;display:grid;grid-template-columns:minmax(380px,445px) minmax(0,1fr);align-items:start;gap:22px}.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 20px rgba(14,43,65,.045)}.editor{padding:24px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head h2,.help-card h2{font-size:20px;letter-spacing:-.035em;line-height:1.2;margin:4px 0 0;color:#1c3549}.overline{margin:0;color:#217b91;font-weight:800;font-size:10px;letter-spacing:.14em}.helper{line-height:1.55;color:var(--muted);margin:13px 0 18px}.text-action{border:0;background:none;color:var(--blue);padding:6px 0;font-weight:700}.text-action:hover{text-decoration:underline}
.field{display:flex;flex-direction:column;gap:7px;min-width:0;margin-bottom:13px}.field span{font-weight:700;color:#34485a;font-size:12px}.field b{color:#be652c}.field input,.field select{height:41px;min-width:0;width:100%;border:1px solid #ccdae4;border-radius:8px;background:#fff;color:#172c3b;padding:9px 11px;outline:0;transition:.15s border,.15s box-shadow}.field input:focus,.field select:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--ring)}.field input::placeholder{color:#a0acb7}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fold{border-top:1px solid var(--line);padding:15px 0 0;margin:2px 0 11px}.fold summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;color:#223d51;font-weight:800;font-size:14px;padding-bottom:13px}.fold summary::-webkit-details-marker{display:none}.fold summary:before{content:'+';display:inline-grid;place-items:center;margin-right:6px;font-size:19px;color:#197794}.fold[open] summary:before{content:'−'}.fold summary .small{color:var(--muted);font-size:10px;font-weight:400;flex:1;text-align:right}.fold-body{padding-top:3px}.micro{font-size:11px;line-height:1.55;color:var(--muted);margin:0 0 14px}#custom-logo-field{display:none}.foot-hint{border-radius:9px;background:#eef8f6;color:#3d6d65;display:flex;align-items:flex-start;gap:10px;padding:13px;font-size:12px;line-height:1.45;margin-top:15px}.foot-hint svg{flex:none}
.preview-column{display:flex;flex-direction:column;gap:17px;min-width:0}.preview-card{padding:26px}.font-tag{border-radius:8px;background:#eaf4f9;color:#1b5d7b;padding:7px 10px;font-size:12px;font-weight:700;white-space:nowrap}.preview-explainer{margin:12px 0 22px;color:var(--muted);font-size:13px}.preview-paper{border:1px solid #e1e7ee;box-shadow:0 5px 14px #20374a08;background:#fff;border-radius:9px;padding:22px;min-height:228px;overflow:hidden;display:flex;align-items:flex-start}#preview-viewport{width:100%;overflow:hidden;position:relative}#preview-content{transform-origin:top left}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:19px}.action{display:flex;justify-content:center;gap:9px;align-items:center;border-radius:9px;padding:13px 8px;font-size:13px;font-weight:750;min-height:46px;transition:background .15s}.action svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.action.primary{background:#17638c;color:#fff;border:1px solid #17638c}.action.primary:hover{background:#114f72}.action.secondary{background:#fff;color:#245474;border:1px solid #c8d9e3}.action.secondary:hover{background:#edf5f8}.status{min-height:24px;padding-top:10px;font-size:12px;color:#1d765b;line-height:1.4}.status.error{color:#ad5232}.note{font-size:12px;line-height:1.55;color:#5c7081;border-top:1px solid var(--line);padding-top:15px;margin-top:12px}.help-card{padding:24px}.steps{margin-top:17px;display:grid;gap:13px}.steps>div{display:flex;gap:11px;align-items:flex-start}.steps p{margin:1px 0 0;line-height:1.5;color:#566c7b;font-size:12px}.step{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#e3f4f5;color:#177486;font-weight:800;font-size:12px}footer{text-align:center;padding:0 16px 25px;font-size:11px;color:#6e8190;line-height:1.5}
@media(max-width:980px){.layout{grid-template-columns:minmax(0,1fr);max-width:720px}.preview-column{grid-row:1}.editor{grid-row:2}.preview-paper{min-height:220px}}
@media(max-width:570px){.topbar-inner{padding:16px;gap:10px}.brandmark{height:43px;width:43px}.eyebrow{font-size:9px}.top-pill{display:none}.layout{padding:0 11px;gap:12px;margin:12px auto 36px}.editor,.preview-card,.help-card{padding:16px;border-radius:12px}.field-grid{grid-template-columns:1fr;gap:0}.preview-paper{padding:12px;min-height:145px}.preview-head h2{font-size:19px}.font-tag{font-size:10px}.action-grid{grid-template-columns:1fr 1fr;gap:8px}.action{font-size:11px;min-height:48px;padding:9px 4px;gap:5px}.action svg{width:15px;height:15px}}

/* v2: employee profile saving / importing / loading */
.saved-panel{margin-top:18px;padding:17px;border:1px solid #cbdde8;background:#f6fafc;border-radius:12px}
.saved-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
.saved-head h3{font-size:17px;margin:5px 0 0;letter-spacing:-.02em;color:#163b56}
.device-badge{background:#e6f4f5;padding:6px 9px;color:#21747d;border-radius:30px;font-size:10px;white-space:nowrap;font-weight:700}
.profile-note{font-size:12px;color:#5b7080;line-height:1.5;margin:10px 0 12px}
.saved-panel .field{margin-bottom:10px}
.profile-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:0;padding:10px 12px;border:1px solid #bdcfda;background:#fff;color:#235375;font-size:12px;font-weight:700;border-radius:8px;text-align:center;cursor:pointer;flex:1}
.profile-button.solid{background:#17638c;border-color:#17638c;color:#fff;width:100%}
.profile-button.danger{color:#a43c36}
.profile-button:hover:not(:disabled),.upload-label:hover{background:#e8f3f8}
.profile-button.solid:hover{background:#114f72}
.profile-buttons{display:flex;gap:8px}
.profile-divider{height:1px;background:#dbe7ee;margin:16px 0}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:570px){.saved-panel{padding:13px}.profile-button{font-size:12px}}
