:root{--paper:#fcfaf6;--surface:#fffefb;--soft:#f4eee4;--ink:#202d3d;--muted:#59616a;--accent:#b61c33;--line:#d9d2c8;--focus:#2852a5;--green:#236343;--radius:14px}*{box-sizing:border-box}html{scroll-behavior:smooth}.employment-tool-scope{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans TC','PingFang HK','Microsoft JhengHei',system-ui,sans-serif;font-size:16px;line-height:1.7}:where(.employment-tool-scope) button,:where(.employment-tool-scope) input,:where(.employment-tool-scope) select,:where(.employment-tool-scope) textarea{font:inherit}:where(.employment-tool-scope) a{color:var(--accent);text-underline-offset:4px}:where(.employment-tool-scope) a:hover{text-decoration-thickness:2px}:where(.employment-tool-scope) button,:where(.employment-tool-scope) .button{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:9px 15px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-weight:650;cursor:pointer;text-decoration:none;line-height:1.5}:where(.employment-tool-scope) button:hover,:where(.employment-tool-scope) .button:hover{background:var(--soft);border-color:#b3a897}:where(.employment-tool-scope) button:disabled{opacity:.55;cursor:not-allowed}:where(.employment-tool-scope) button.primary{background:var(--accent);color:white;border-color:var(--accent)}:where(.employment-tool-scope) button.primary:hover{background:#92152a}:where(.employment-tool-scope) .quiet{background:transparent}:where(.employment-tool-scope) .danger{color:#ad1d2e}:where(.employment-tool-scope) button:focus-visible,:where(.employment-tool-scope) a:focus-visible,:where(.employment-tool-scope) summary:focus-visible,:where(.employment-tool-scope) input:focus-visible,:where(.employment-tool-scope) select:focus-visible,:where(.employment-tool-scope) textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}:where(.employment-tool-scope) input[aria-invalid=true]{border-color:#af1c32}:where(.employment-tool-scope) h1,:where(.employment-tool-scope) h2,:where(.employment-tool-scope) h3,:where(.employment-tool-scope) p{margin-top:0}:where(.employment-tool-scope) h1{font-size:clamp(30px,4vw,46px);letter-spacing:-1px;line-height:1.25;margin-bottom:14px}:where(.employment-tool-scope) h2{font-size:24px;line-height:1.4;margin-bottom:10px}:where(.employment-tool-scope) h3{font-size:18px;margin-bottom:10px}:where(.employment-tool-scope) p{margin-bottom:14px}:where(.employment-tool-scope) small,:where(.employment-tool-scope) .hint{font-size:13px;color:var(--muted)}.skip{position:absolute;top:-100px;left:15px;background:white;padding:14px;z-index:1000}.skip:focus{top:10px}:where(.employment-tool-scope) .site-header{background:#fff;border-bottom:1px solid #e5e7eb}:where(.employment-tool-scope) .header-inner{max-width:1240px;margin:auto;min-height:84px;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}:where(.employment-tool-scope) .brand{display:flex;gap:12px;align-items:center;color:#10233f;text-decoration:none;line-height:1.3;flex-shrink:0}:where(.employment-tool-scope) .brand img{border-radius:50%}:where(.employment-tool-scope) .brand strong{display:block;font-size:19px}:where(.employment-tool-scope) .brand small{font-size:10px;letter-spacing:2px;color:#59616a}:where(.employment-tool-scope) .header-inner nav{display:flex;gap:25px;align-items:center}:where(.employment-tool-scope) .header-inner nav a{font-size:14px;color:#344054;text-decoration:none;padding:8px 0}:where(.employment-tool-scope) .page{max-width:1240px;margin:auto;padding:24px}:where(.employment-tool-scope) .breadcrumb{font-size:12px;color:var(--muted);display:flex;flex-wrap:wrap;gap:7px;align-items:center}:where(.employment-tool-scope) .preview-tag{font-size:11px;color:#71511c;background:#f4eee4;padding:2px 8px;border-radius:4px;margin-left:auto}:where(.employment-tool-scope) .intro{display:grid;grid-template-columns:1fr 285px;gap:40px;align-items:center;padding:35px 0}:where(.employment-tool-scope) .eyebrow{font-size:13px;font-weight:700;letter-spacing:1px;color:var(--accent);margin-bottom:12px}:where(.employment-tool-scope) .lead{color:var(--muted);font-size:16px;margin:0}:where(.employment-tool-scope) .intro-note{border-left:1px solid var(--line);padding-left:26px;font-size:13px}:where(.employment-tool-scope) .intro-note strong{font-size:14px}:where(.employment-tool-scope) .intro-note p{color:var(--muted);margin:8px 0 0}:where(.employment-tool-scope) .privacy-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:8px}:where(.employment-tool-scope) .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px}:where(.employment-tool-scope) .profile{border-top:3px solid var(--accent)}:where(.employment-tool-scope) .section-head{display:flex;justify-content:space-between;gap:20px;align-items:center}:where(.employment-tool-scope) .step{font-size:11px;color:var(--accent);font-weight:700;letter-spacing:1px}:where(.employment-tool-scope) .section-head h2{font-size:21px;margin-top:4px}:where(.employment-tool-scope) .fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}:where(.employment-tool-scope) .profile-fields{grid-template-columns:repeat(3,minmax(0,1fr))}:where(.employment-tool-scope) .field{min-width:0}:where(.employment-tool-scope) .field label{display:block;font-size:14px;font-weight:650;margin-bottom:6px}:where(.employment-tool-scope) .field input:not([type=checkbox]),:where(.employment-tool-scope) .field select,:where(.employment-tool-scope) .field textarea{width:100%;min-width:0;min-height:46px;padding:9px 12px;background:white;border:1px solid #b7b5af;border-radius:7px;color:var(--ink)}:where(.employment-tool-scope) .field small{display:block;font-size:12px;margin-top:5px}:where(.employment-tool-scope) .field input[type=checkbox]{width:20px;height:20px;margin-right:8px;accent-color:var(--accent);vertical-align:middle}:where(.employment-tool-scope) .field:has(input[type=checkbox]){align-self:end;padding:12px 0}:where(.employment-tool-scope) .wide{grid-column:1/-1}:where(.employment-tool-scope) .data-controls{border-top:1px solid #e7e1d9;margin-top:22px;padding-top:14px;font-size:13px}:where(.employment-tool-scope) .data-controls summary{cursor:pointer;min-height:35px}:where(.employment-tool-scope) .data-controls summary span{color:var(--muted);margin-left:10px}:where(.employment-tool-scope) .data-controls p{margin-top:8px}:where(.employment-tool-scope) .actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}:where(.employment-tool-scope) .status{min-height:0;font-size:13px;color:var(--green);margin:8px 0 0}:where(.employment-tool-scope) .status:empty{display:none}:where(.employment-tool-scope) .workspace{display:grid;grid-template-columns:205px minmax(0,1fr);gap:26px;margin:30px 0 40px}:where(.employment-tool-scope) .tool-sidebar nav{display:flex;flex-direction:column;gap:7px;position:sticky;top:18px}:where(.employment-tool-scope) .tool-sidebar nav button{text-align:left;justify-content:flex-start;border-color:transparent;background:transparent;padding:14px 12px;gap:12px;width:100%;font-size:14px}:where(.employment-tool-scope) .tool-sidebar nav button span:first-child{font-variant-numeric:tabular-nums;color:#777469;font-size:12px}:where(.employment-tool-scope) .tool-sidebar nav button[aria-current=true]{background:#f3e9df;border-color:#dfcdbb;color:#8d182b}:where(.employment-tool-scope) .tool-sidebar nav button[aria-current=true] span:first-child{color:#8d182b}:where(.employment-tool-scope) .aside-note{font-size:12px;color:var(--muted);padding:18px 12px;border-top:1px solid var(--line);margin-top:16px}:where(.employment-tool-scope) .panel[hidden]{display:none!important}:where(.employment-tool-scope) .panel h2{font-size:25px}:where(.employment-tool-scope) .panel-heading{padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:22px}:where(.employment-tool-scope) .panel-heading p{font-size:14px;color:var(--muted);margin-bottom:0}:where(.employment-tool-scope) .subsection{padding:22px 0;border-bottom:1px solid #e8e2d9}:where(.employment-tool-scope) .subsection:first-of-type{padding-top:0}:where(.employment-tool-scope) .subsection:last-of-type{border-bottom:0;padding-bottom:0}:where(.employment-tool-scope) .result{margin-top:22px;border-top:1px solid var(--line);padding-top:22px}:where(.employment-tool-scope) .metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}:where(.employment-tool-scope) .metric{background:var(--soft);border-radius:10px;padding:18px 16px}:where(.employment-tool-scope) .metric span{font-size:12px;display:block;color:var(--muted)}:where(.employment-tool-scope) .metric strong{display:block;font-size:27px;line-height:1.3;margin:8px 0 4px;font-variant-numeric:tabular-nums}:where(.employment-tool-scope) .metric small{font-size:12px}:where(.employment-tool-scope) .metric.accent{background:#eaf1e9}:where(.employment-tool-scope) .metric.accent strong{color:#23513a}:where(.employment-tool-scope) .alert{padding:14px 16px;background:#fff4e6;border-left:3px solid #a56923;border-radius:4px;font-size:13px;margin-bottom:16px}:where(.employment-tool-scope) .alert.error{background:#fff0f1;border-color:#b61c33;color:#862135}:where(.employment-tool-scope) .alert ul{margin:4px 0;padding-left:20px}:where(.employment-tool-scope) .alert a{color:inherit}:where(.employment-tool-scope) .table-wrap{max-width:100%;overflow:auto}:where(.employment-tool-scope) table{width:100%;border-collapse:collapse;font-size:13px}:where(.employment-tool-scope) caption{text-align:left;font-weight:bold;margin:4px 0 10px}:where(.employment-tool-scope) th,:where(.employment-tool-scope) td{padding:11px 8px;border-bottom:1px solid #e5dfd5;text-align:left;vertical-align:top}:where(.employment-tool-scope) th{font-weight:650;background:#f7f3ec;white-space:nowrap}:where(.employment-tool-scope) td.number,:where(.employment-tool-scope) th.number{text-align:right;font-variant-numeric:tabular-nums}:where(.employment-tool-scope) td input{width:80px;padding:6px;border:1px solid #b7b5af;border-radius:6px}:where(.employment-tool-scope) tfoot{font-weight:700}:where(.employment-tool-scope) .document-preview{background:white;border:1px solid var(--line);border-radius:8px;padding:18px;font-size:13px;overflow-wrap:anywhere}:where(.employment-tool-scope) .document-preview h1{font-size:22px}:where(.employment-tool-scope) .document-preview h2{font-size:18px}:where(.employment-tool-scope) .document-preview table{font-size:12px}:where(.employment-tool-scope) .document-preview header,:where(.employment-tool-scope) .document-preview footer{background:transparent;color:var(--ink);padding:0}:where(.employment-tool-scope) .muted{color:var(--muted)}:where(.employment-tool-scope) .sources{font-size:13px;margin-bottom:30px}:where(.employment-tool-scope) .sources h2{font-size:18px}:where(.employment-tool-scope) .source-links{display:flex;gap:8px 22px;flex-wrap:wrap}:where(.employment-tool-scope) .source-links a{padding:5px 0}:where(.employment-tool-scope) footer{border-top:1px solid var(--line);text-align:center;font-size:12px;color:var(--muted);padding:30px 20px;background:#f4eee4}:where(.employment-tool-scope) footer p{margin:5px 0 0}:where(.employment-tool-scope) .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;margin:16px 0}:where(.employment-tool-scope) .day-head{text-align:center;background:var(--soft);font-size:12px;padding:6px}:where(.employment-tool-scope) .day{border:1px solid #e5dfd5;min-height:88px;padding:6px 5px;font-size:12px;overflow-wrap:anywhere;border-radius:4px;background:white}:where(.employment-tool-scope) .day.outside{opacity:.4}:where(.employment-tool-scope) .day.today{outline:2px solid var(--accent);outline-offset:-2px}:where(.employment-tool-scope) .day-number{font-weight:700;display:block}:where(.employment-tool-scope) .day-label{display:block;font-size:10px;line-height:1.35;margin-top:4px;border-radius:2px;padding:2px 3px;background:#f2ede4}:where(.employment-tool-scope) .day-label.statutory,:where(.employment-tool-scope) .day-label.compensatory{background:#fce8e9;color:#8d182b}:where(.employment-tool-scope) .day-label.annual{background:#e6f1e4;color:#2d5d2c}:where(.employment-tool-scope) .day-label.rest{color:#616468}:where(.employment-tool-scope) .legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:12px;margin:8px 0}:where(.employment-tool-scope) .legend span:before{content:'';display:inline-block;width:10px;height:10px;background:#fce8e9;margin-right:6px}:where(.employment-tool-scope) .legend .annual:before{background:#e6f1e4}:where(.employment-tool-scope) .legend .rest:before{background:#f2ede4}:where(.employment-tool-scope) .event-list{display:grid;gap:8px}:where(.employment-tool-scope) .event-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e5dfd5;font-size:13px}:where(.employment-tool-scope) .event-row span{overflow-wrap:anywhere}:where(.employment-tool-scope) dialog{width:min(960px,95vw);height:min(900px,94vh);max-height:94vh;border:1px solid var(--line);border-radius:14px;padding:24px;background:var(--surface)}:where(.employment-tool-scope) dialog::backdrop{background:#13203199}:where(.employment-tool-scope) .dialog-top{display:flex;justify-content:space-between;align-items:center;gap:15px}:where(.employment-tool-scope) .dialog-top h2{font-size:20px;margin:0}:where(.employment-tool-scope) dialog iframe{width:100%;height:calc(100% - 190px);min-height:200px;border:1px solid var(--line);background:white}:where(.employment-tool-scope) .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:where(.employment-tool-scope) .button:has(+input:focus-visible){outline:3px solid var(--focus)}:where(.employment-tool-scope) [hidden]{display:none!important}
@media(max-width:900px){:where(.employment-tool-scope) .profile-fields{grid-template-columns:repeat(2,minmax(0,1fr))}:where(.employment-tool-scope) .workspace{grid-template-columns:1fr;gap:16px}:where(.employment-tool-scope) .tool-sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;position:static}:where(.employment-tool-scope) .tool-sidebar nav button{display:block;text-align:center;font-size:13px;padding:9px 4px}:where(.employment-tool-scope) .tool-sidebar nav button span:first-child{display:block}:where(.employment-tool-scope) .aside-note{display:none}:where(.employment-tool-scope) .intro{grid-template-columns:1fr 240px;gap:20px}:where(.employment-tool-scope) .header-inner nav{gap:14px}}
@media(max-width:600px){:where(.employment-tool-scope) .page{padding:18px 14px}:where(.employment-tool-scope) .header-inner{padding:12px 14px;min-height:73px}:where(.employment-tool-scope) .brand strong{font-size:15px}:where(.employment-tool-scope) .brand small{font-size:8px;letter-spacing:1.5px}:where(.employment-tool-scope) .brand img{width:42px;height:42px}:where(.employment-tool-scope) .brand{gap:8px}:where(.employment-tool-scope) .header-inner nav a{font-size:12px}:where(.employment-tool-scope) .header-inner nav a:not(:last-child){display:none}:where(.employment-tool-scope) .intro{display:block;padding:27px 0}:where(.employment-tool-scope) .intro-note{border-left:0;padding:14px 0 0;margin-top:17px;border-top:1px solid var(--line)}:where(.employment-tool-scope) .intro-note p{display:inline;margin-left:6px;font-size:12px}:where(.employment-tool-scope) .intro-note strong{font-size:12px}:where(.employment-tool-scope) .lead{font-size:14px}:where(.employment-tool-scope) .card{padding:20px 16px}:where(.employment-tool-scope) .section-head{gap:8px;align-items:flex-start}:where(.employment-tool-scope) .section-head h2{font-size:19px}:where(.employment-tool-scope) .section-head button{font-size:12px;white-space:nowrap;padding:8px 10px}:where(.employment-tool-scope) .profile-fields,:where(.employment-tool-scope) .fields{grid-template-columns:1fr;gap:14px}:where(.employment-tool-scope) .tool-sidebar nav button{font-size:12px;padding:8px 3px;min-height:65px;border-radius:7px}:where(.employment-tool-scope) .tool-sidebar nav button span:first-child{font-size:10px}:where(.employment-tool-scope) .panel h2{font-size:23px}:where(.employment-tool-scope) .metric-grid{grid-template-columns:1fr}:where(.employment-tool-scope) .metric{display:grid;grid-template-columns:1fr auto;align-items:center;padding:13px 16px}:where(.employment-tool-scope) .metric strong{font-size:25px;margin:0;grid-column:2;grid-row:1/3}:where(.employment-tool-scope) .metric small{grid-column:1}:where(.employment-tool-scope) .calendar-grid{gap:2px}:where(.employment-tool-scope) .day{min-height:70px;padding:4px 2px;font-size:11px}:where(.employment-tool-scope) .day-label{font-size:10px;padding:2px 0}:where(.employment-tool-scope) .legend{font-size:11px}:where(.employment-tool-scope) dialog{padding:16px}:where(.employment-tool-scope) .dialog-top h2{font-size:16px}:where(.employment-tool-scope) .sources{font-size:12px}:where(.employment-tool-scope) .preview-tag{margin-left:0}:where(.employment-tool-scope) .breadcrumb{font-size:11px}:where(.employment-tool-scope) .actions button{font-size:13px}:where(.employment-tool-scope) .table-wrap{margin:0 -2px}:where(.employment-tool-scope) td,:where(.employment-tool-scope) th{padding:9px 6px;font-size:12px}}:where(.employment-tool-scope) .panels,:where(.employment-tool-scope) .panel{min-width:0}:where(.employment-tool-scope) .table-wrap{width:100%}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}:where(.employment-tool-scope) .tool-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:16px 0 30px}:where(.employment-tool-scope) .tool-choice{display:flex;align-items:flex-start;flex-direction:column;text-align:left;gap:10px;padding:24px;border-radius:14px;min-height:235px;background:var(--surface)}:where(.employment-tool-scope) .tool-choice strong{font-size:23px}:where(.employment-tool-scope) .choice-number{font-size:12px;letter-spacing:1px;color:var(--accent)}:where(.employment-tool-scope) .choice-description{font-size:14px;font-weight:400;color:var(--muted);line-height:1.8}:where(.employment-tool-scope) .choice-open{font-size:13px;color:var(--accent);margin-top:auto;padding-top:12px}:where(.employment-tool-scope) .back-tools{margin-top:4px}:where(.employment-tool-scope) .draft-card{margin:28px 0}:where(.employment-tool-scope) .draft-card .section-head p{margin:0}:where(.employment-tool-scope) .draft-card .data-controls{margin-top:12px}:where(.employment-tool-scope) .optional-fields{margin:20px 0;padding:15px;background:var(--soft);border-radius:8px}:where(.employment-tool-scope) .optional-fields summary,:where(.employment-tool-scope) .document-names summary{cursor:pointer;font-weight:650;font-size:14px;min-height:32px}:where(.employment-tool-scope) .optional-fields[open] summary,:where(.employment-tool-scope) .document-names[open] summary{margin-bottom:14px}:where(.employment-tool-scope) .form-heading{margin-top:22px}:where(.employment-tool-scope) .document-names{border-top:1px solid var(--line);margin-top:22px}:where(.employment-tool-scope) .field[hidden]{display:none!important}
@media(max-width:900px){:where(.employment-tool-scope) .tool-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){:where(.employment-tool-scope) .tool-choices{grid-template-columns:1fr;gap:12px}:where(.employment-tool-scope) .tool-choice{min-height:0;padding:20px;gap:7px}:where(.employment-tool-scope) .tool-choice strong{font-size:21px}:where(.employment-tool-scope) .choice-open{padding-top:5px}:where(.employment-tool-scope) .draft-card .section-head{flex-wrap:wrap}}

/* Line icons and in-page flow guidance, scoped to the practical forms. */
:where(.employment-tool-scope) .record-list{display:grid;gap:18px;margin:18px 0}
:where(.employment-tool-scope) .record-card{min-width:0;margin:0;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
:where(.employment-tool-scope) .record-card legend{padding:0 8px;font-weight:650;font-size:15px}
:where(.employment-tool-scope) .record-remove{margin-top:16px;min-height:44px;font-size:13px}
:where(.employment-tool-scope) .record-empty{padding:20px;margin:0;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:14px}
:where(.employment-tool-scope) .record-summary{padding:18px;border-left:3px solid var(--accent);background:var(--soft);margin-top:18px;overflow-wrap:anywhere}
:where(.employment-tool-scope) .record-summary p{margin:8px 0 0}
:where(.employment-tool-scope) .record-total{padding:16px 0;font-size:17px;border-bottom:1px solid var(--line)}
:where(.employment-tool-scope) .record-total small{font-size:13px;color:var(--muted)}
@media(min-width:901px){:where(.employment-tool-scope) .tool-sidebar{position:sticky;top:104px;align-self:start;max-height:calc(100vh - 120px);overflow-y:auto}:where(.employment-tool-scope) .tool-sidebar nav{position:static}}
@media(max-width:900px){:where(.employment-tool-scope) .tool-sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){:where(.employment-tool-scope) .record-card{padding:14px 12px}:where(.employment-tool-scope) .record-card .fields{gap:14px}}
:where(.employment-tool-scope) .tool-icon{display:block;flex-shrink:0}
:where(.employment-tool-scope) .choice-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:4px}
:where(.employment-tool-scope) .choice-icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:12px;background:var(--soft);color:var(--ink)}
:where(.employment-tool-scope) .panel-tool-label{display:flex;align-items:center;gap:9px;margin-bottom:12px;font-size:13px;letter-spacing:0}
:where(.employment-tool-scope) .panel-tool-label .tool-icon{width:24px;height:24px}
:where(.employment-tool-scope) .form-flow{padding:16px;background:var(--soft);border-radius:10px;margin-bottom:28px}
:where(.employment-tool-scope) .flow-caption{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;font-size:13px;font-weight:650;margin:0 0 10px}
:where(.employment-tool-scope) .flow-caption span{font-size:12px;font-weight:400;color:var(--muted)}
:where(.employment-tool-scope) .form-flow ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;list-style:none;padding:0;margin:0}
:where(.employment-tool-scope) .form-flow li{position:relative;min-width:0}
:where(.employment-tool-scope) .form-flow li:not(:last-child)::after{content:'';position:absolute;width:12px;height:1px;right:-16px;top:50%;background:#b3a897;pointer-events:none}
:where(.employment-tool-scope) .form-flow button{position:relative;width:100%;min-height:60px;justify-content:flex-start;gap:8px;padding:8px;font-size:13px;text-align:left;border-color:transparent;background:var(--surface);font-weight:600}
:where(.employment-tool-scope) .form-flow button:hover{border-color:var(--accent);color:var(--accent);background:var(--surface)}
:where(.employment-tool-scope) .flow-number{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;border:1px solid #c8b6aa;border-radius:50%;font-size:12px;line-height:1;font-weight:600;color:var(--accent);font-variant-numeric:tabular-nums}
:where(.employment-tool-scope) .form-step{padding-top:24px;margin-top:24px;border-top:1px solid var(--line)}
:where(.employment-tool-scope) .form-flow + .form-step{padding-top:0;margin-top:0;border-top:0}
:where(.employment-tool-scope) .form-step-heading{display:flex;align-items:center;gap:10px;margin:0 0 18px;font-size:18px;scroll-margin-top:112px}
:where(.employment-tool-scope) .form-step-heading:focus{outline:3px solid var(--focus);outline-offset:6px;border-radius:2px}
:where(.employment-tool-scope) .form-step .result{margin-top:0;border-top:0;padding-top:0}
:where(.employment-tool-scope) .form-step .document-names{margin-top:0;border-top:0;padding-top:0}
:where(.employment-tool-scope) .form-step h4{font-size:16px;margin:0 0 10px;font-weight:650}
:where(.employment-tool-scope) .form-step h4.form-heading{margin-top:22px}
:where(.employment-tool-scope) .form-step > .subsection:first-of-type{padding-top:0}
:where(.employment-tool-scope) .form-step > .subsection:last-child{border-bottom:0;padding-bottom:0}
@media(max-width:600px){
 :where(.employment-tool-scope) .choice-icon{width:44px;height:44px;border-radius:10px}
 :where(.employment-tool-scope) .choice-icon .tool-icon{width:28px;height:28px}
 :where(.employment-tool-scope) .form-flow{padding:12px;margin-bottom:24px}
 :where(.employment-tool-scope) .form-flow ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}
 :where(.employment-tool-scope) .form-flow li:nth-child(even)::after{display:none}
 :where(.employment-tool-scope) .form-flow li:nth-child(odd)::after{width:10px;right:-14px}
 :where(.employment-tool-scope) .form-flow button{min-height:62px;font-size:12px;padding:8px 6px;gap:6px}
 :where(.employment-tool-scope) .form-step-heading{font-size:17px;scroll-margin-top:100px}
}

:where(.employment-tool-scope) .record-details{border-top:1px solid var(--line);margin:18px 0;padding-top:14px}
:where(.employment-tool-scope) .record-details summary{cursor:pointer;font-weight:650;margin-bottom:14px}
:where(.employment-tool-scope) .medical-reimbursement{margin-top:16px}

/* Keep document controls usable while the preview takes the remaining space. */
:where(.employment-tool-scope) dialog[open]{display:flex;flex-direction:column;gap:12px;height:min(900px,94dvh);max-height:94dvh;overflow:hidden}
:where(.employment-tool-scope) .dialog-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;flex-shrink:0}
:where(.employment-tool-scope) .dialog-top h2{min-width:0;overflow-wrap:anywhere}
:where(.employment-tool-scope) #close-document{white-space:nowrap;min-width:84px;min-height:44px;flex-shrink:0}
:where(.employment-tool-scope) dialog > .hint{margin:0;flex-shrink:0}
:where(.employment-tool-scope) dialog > .actions{margin:0;flex-shrink:0}
:where(.employment-tool-scope) dialog iframe{display:block;flex:1 1 0;height:auto;min-height:120px;min-width:0}
:where(.employment-tool-scope) .draft-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:0 0 20px;padding:12px 14px;background:var(--soft);border-radius:8px}
:where(.employment-tool-scope) .draft-toolbar > p{flex:1 1 190px;margin:0;font-size:13px;color:var(--muted)}
:where(.employment-tool-scope) .draft-toolbar button{font-size:13px;white-space:nowrap}
:where(.employment-tool-scope) #draft-recovery{margin:0 0 22px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
:where(.employment-tool-scope) #draft-recovery p{margin-bottom:8px}
:where(.employment-tool-scope) #draft-recovery .actions{margin-bottom:0}
:where(.employment-tool-scope) .field-error{display:block;font-size:13px;color:#862135;margin:6px 0 0;overflow-wrap:anywhere}
:where(.employment-tool-scope) select[aria-invalid=true],:where(.employment-tool-scope) textarea[aria-invalid=true]{border-color:#af1c32}
:where(.employment-tool-scope) .error-link{display:inline-flex;min-height:44px;justify-content:flex-start;padding:4px 0;border:0;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;text-align:left;font-size:inherit;font-weight:400;white-space:normal}
:where(.employment-tool-scope) .error-link:hover{background:transparent;text-decoration-thickness:2px}
:where(.employment-tool-scope) .calendar-view-switch{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
:where(.employment-tool-scope) .calendar-view-switch button{min-width:72px;white-space:nowrap;font-size:14px}
:where(.employment-tool-scope) .calendar-view-switch button[aria-pressed=true]{background:var(--soft);border-color:var(--accent);color:var(--accent)}
:where(.employment-tool-scope) .calendar-list{list-style:none;margin:16px 0;padding:0}
:where(.employment-tool-scope) .calendar-list li{display:grid;grid-template-columns:minmax(100px,auto) minmax(0,1fr);align-items:start;gap:6px 16px;padding:12px 0;border-bottom:1px solid var(--line)}
:where(.employment-tool-scope) .calendar-list li strong{font-size:14px;font-variant-numeric:tabular-nums}
:where(.employment-tool-scope) .calendar-list .day-label{display:inline-block;font-size:14px;line-height:1.5;padding:3px 7px;margin:0 6px 6px 0;overflow-wrap:anywhere}
@media(max-width:600px){
 :where(.employment-tool-scope) .history-table,:where(.employment-tool-scope) .history-table caption{display:block;min-width:0;width:100%}
 :where(.employment-tool-scope) .history-table thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 :where(.employment-tool-scope) .history-table tbody{display:grid;gap:12px;width:100%}
 :where(.employment-tool-scope) .history-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
 :where(.employment-tool-scope) .history-table td{display:block;min-width:0;padding:0;border:0;font-size:14px;overflow-wrap:anywhere}
 :where(.employment-tool-scope) .history-table td:first-child{grid-column:1/-1;font-weight:650}
 :where(.employment-tool-scope) .history-table td:first-child small{display:block;font-size:13px;font-weight:400}
 :where(.employment-tool-scope) .history-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
 :where(.employment-tool-scope) .history-table td:first-child::before{display:none}
 :where(.employment-tool-scope) .history-table td input{width:100%;min-width:0;min-height:44px;font-size:16px}
 :where(.employment-tool-scope) .history-table td button{width:100%;min-height:44px;white-space:nowrap}
 :where(.employment-tool-scope) .calendar-list li{grid-template-columns:minmax(0,1fr)}
 :where(.employment-tool-scope) .calendar-list .day-label{font-size:14px}
}
@media(max-height:600px){
 :where(.employment-tool-scope) dialog[open]{overflow:auto}
 :where(.employment-tool-scope) dialog iframe{flex:none;height:50dvh;min-height:200px}
}
:where(.employment-tool-scope) .field label .field-required{display:inline;margin-left:8px;font-size:11px;font-weight:400;color:var(--muted)}
:where(.employment-tool-scope) .draft-toolbar{position:sticky;top:80px;z-index:3;background:var(--surface);border-bottom:1px solid var(--line)}
:where(.employment-tool-scope) input[aria-invalid=true],:where(.employment-tool-scope) select[aria-invalid=true]{scroll-margin:150px 0 60px}

:where(.employment-tool-scope) dialog.choice-dialog[open]{width:min(620px,94vw);height:fit-content;max-height:90dvh;overflow:auto}
:where(.employment-tool-scope) .medical-payment-list{margin-top:14px}
:where(.employment-tool-scope) .medical-payment-list .record-card{margin-bottom:12px}

:where(.employment-tool-scope) #panel-notice textarea[data-field="termination.noticeReason"] {
  display: block;
  field-sizing: content;
  min-height: 8.5em;
  line-height: 1.5;
  overflow-wrap: anywhere;
  resize: none;
}
:where(.employment-tool-scope) .document-preview .notice-reason > div {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

:where(.employment-tool-scope) #panel-notice .panel-heading {
  margin-bottom: 12px;
  padding-bottom: 0;
  border: 0;
}
:where(.employment-tool-scope) #panel-notice .panel-heading h2 {
  margin: 0;
}
:where(.employment-tool-scope) #panel-notice .draft-toolbar {
  position: static;
  margin-bottom: 16px;
}
:where(.employment-tool-scope) #notice-step-1 {
  padding-top: 0;
  margin-top: 0;
  border: 0;
}
:where(.employment-tool-scope) #notice-step-2 > .field {
  margin-top: 18px;
}
:where(.employment-tool-scope) .notice-inline summary {
  padding: 10px 0;
  cursor: pointer;
}
@media (max-width: 760px) {
  :where(.employment-tool-scope) .notice-page .intro {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    padding: 0;
  }
  :where(.employment-tool-scope) .notice-page .workspace {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
    margin-top: 8px;
  }
  :where(.employment-tool-scope) .notice-page .tool-sidebar nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  :where(.employment-tool-scope) .notice-page .tool-sidebar nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    padding: 6px 12px;
  }
  :where(.employment-tool-scope) .notice-page .tool-sidebar nav button span:first-child {
    display: none;
  }
  :where(.employment-tool-scope) #panel-notice .draft-toolbar {
    gap: 6px;
    padding: 4px 0 8px;
  }
  :where(.employment-tool-scope) #panel-notice .draft-toolbar > p {
    flex: 1 1 auto;
  }
}


.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-title-copy { min-width: 0; }
.panel-title-copy h2 { margin: 0; text-wrap: balance; }
.panel-title-copy .panel-tool-label { margin-bottom: 4px; }
.panel-title-row + p { margin-top: 8px; }
.panel-heading .sample-button {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #204c40;
  font-size: 12px;
  line-height: 1.4;
  cursor: zoom-in;
}
.sample-button img {
  display: block;
  width: 52px;
  height: auto;
  border: 1px solid #b8c2bb;
  box-shadow: 0 1px 3px #213e2924;
}
.panel-heading .sample-button:hover { background: #edf2ec; border-color: #bcc9bc; }
@media (max-width: 600px) {
  .sample-button img { width: 44px; }
}
@media (max-width: 360px) {
  .panel .panel-title-copy h2 { font-size: 20px; }
}
#sample-dialog{width:min(860px,95vw);max-height:92dvh;box-sizing:border-box;padding:0;border:0;border-radius:12px;color:#253b30;background:#e8ece8}
#sample-dialog::backdrop{background:rgb(15 27 22 / .7)}
#sample-dialog .dialog-top{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;margin:0;padding:12px 16px}
#sample-title{margin:0;font-size:1.1rem}
.sample-pages{padding:10px;display:grid;gap:10px}.sample-pages img{display:block;width:100%;height:auto;background:white}
@media(max-width:600px){#sample-dialog{width:98vw;max-width:98vw}.sample-pages{padding:4px}}
@media print{.sample-button,#sample-dialog{display:none!important}}

#sample-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.sample-actions{display:flex;align-items:center;gap:6px;flex:none}.sample-actions button{min-height:44px}
#sample-dialog .dialog-top{flex:none}.sample-pages{overflow:auto;min-height:0;display:block}.sample-pages img+img{margin-top:10px}
#sample-dialog.zoomed .sample-pages img{width:1100px;max-width:none}
@media(max-width:480px){#sample-dialog .dialog-top{padding:8px}#sample-title{font-size:1rem}.sample-actions button{padding:.35rem .55rem}}
