.hgfc-app{--ink:#17324d;--muted:#64748b;--line:#dbe5eb;--soft:#f5f8fa;--blue:#176b87;--blue2:#0f526b;--green:#16845b;--amber:#a66712;--red:#9f1d20;direction:rtl;color:var(--ink);font-family:inherit;font-size:14px;line-height:1.8;max-width:1180px;margin:0 auto}.hgfc-app *{box-sizing:border-box}.hgfc-shell{background:#f4f7f9;border:1px solid var(--line);border-radius:18px;overflow:visible}.hgfc-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 26px;background:#fff;border-bottom:1px solid var(--line);border-radius:18px 18px 0 0}.hgfc-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hgfc-help-button{display:inline-flex;align-items:center;gap:7px;border:1px solid #cbdfe7;border-radius:9px;background:#fff;color:var(--blue);padding:8px 12px}.hgfc-help-button span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;color:#fff;background:var(--blue);font-weight:800}.hgfc-top h2,.hgfc-section h3,.hgfc-section h4{margin:0;color:var(--ink)}.hgfc-top h2{font-size:23px}.hgfc-top p,.hgfc-section p{margin:2px 0;color:var(--muted)}.hgfc-body{padding:18px}.hgfc-section{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:14px}.hgfc-section-title,.hgfc-workspace-title,.hgfc-cycle-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.hgfc-workspace-title{align-items:center}.hgfc-help,.hgfc-muted{color:var(--muted);font-size:13px}.hgfc-btn,.hgfc-app button,.hgfc-export a{font:inherit;cursor:pointer}.hgfc-btn{border:0;border-radius:9px;background:var(--blue,#176b87);color:#fff!important;padding:9px 16px;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:6px}.hgfc-btn:hover{background:var(--blue2,#0f526b)}.hgfc-btn.secondary{background:#edf5f8;color:var(--blue,#176b87)!important;border:1px solid #cbdfe7}.hgfc-btn:disabled,.hgfc-app button:disabled{opacity:.5;cursor:not-allowed}.hgfc-banner{background:#fff5dd;border:1px solid #edd59f;color:#6f4b12;padding:11px 14px;border-radius:10px;margin-bottom:14px}.hgfc-empty{text-align:center;padding:28px;border:1px dashed #cbd5e1;border-radius:12px;color:var(--muted);display:grid;gap:6px}.hgfc-empty strong{color:var(--ink)}
.hgfc-nav{display:flex;gap:5px;overflow:auto;margin:0 0 14px;padding:4px;background:#eaf0f3;border-radius:11px}.hgfc-nav button,.hgfc-stage-tabs button{white-space:nowrap;border:0;background:transparent;color:#42576a;border-radius:8px;padding:8px 13px}.hgfc-nav button.active,.hgfc-stage-tabs button.active{background:#fff;color:var(--blue);box-shadow:0 1px 4px rgba(20,50,70,.1)}.hgfc-credit{display:flex;align-items:center;gap:8px;background:#eaf7f2;color:var(--green);padding:8px 12px;border-radius:10px}.hgfc-credit b{font-size:22px}.hgfc-credit span{font-size:12px}.hgfc-grid{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:10px;margin:14px 0}.hgfc-card{border:1px solid var(--line);border-radius:11px;padding:13px;background:#fff}.hgfc-kpi{display:grid;gap:2px}.hgfc-kpi small{color:var(--muted)}.hgfc-kpi b{font-size:24px;color:var(--blue)}.hgfc-kpi.completed b{color:var(--green)}.hgfc-kpi.warning b{color:var(--amber)}.hgfc-kpi.danger b{color:var(--red)}.hgfc-alerts{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.hgfc-alerts div{display:flex;gap:7px;align-items:center;padding:8px 11px;background:#fff5e8;border-radius:9px;color:#7a4b09}.hgfc-queue,.hgfc-cycles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:14px}.hgfc-queue-item,.hgfc-cycle{border:1px solid var(--line);background:#fff;text-align:right;border-radius:11px;padding:13px;display:grid;gap:4px;color:var(--ink)}.hgfc-queue-item:hover,.hgfc-cycle:hover{border-color:#93bccb;background:#f9fcfd}.hgfc-cycle div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.hgfc-badge{display:inline-flex;background:#eef3f6;color:#476070;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:400}.hgfc-badge.warning{background:#fff0d7;color:#8a5209}
.hgfc-form{display:grid;gap:13px;margin-top:14px}.hgfc-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.hgfc-field,.hgfc-form>label{display:grid;gap:5px;flex:1;min-width:180px;font-weight:600}.hgfc-field small{font-weight:400;color:var(--muted)}.hgfc-field-wide{flex:2}.hgfc-app input,.hgfc-app select,.hgfc-app textarea{width:100%;border:1px solid #cbd8df;border-radius:8px;padding:9px 10px;background:#fff;color:var(--ink);font:inherit}.hgfc-app input:focus,.hgfc-app select:focus,.hgfc-app textarea:focus{outline:2px solid #b8dbe7;border-color:var(--blue)}.hgfc-app textarea{min-height:76px;resize:vertical}.hgfc-more{border:1px solid var(--line);border-radius:9px;padding:8px 12px}.hgfc-more summary{cursor:pointer;color:var(--blue)}.hgfc-more[open] summary{margin-bottom:10px}.hgfc-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px!important;font-weight:400!important}.hgfc-check input{width:auto}.hgfc-scopes{display:flex;gap:7px;flex-wrap:wrap}.hgfc-scopes label{display:flex;align-items:center;gap:5px;background:var(--soft);border:1px solid var(--line);padding:5px 9px;border-radius:8px;font-weight:400}.hgfc-scopes input{width:auto}.hgfc-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.hgfc-levels>div{display:grid;border:1px solid var(--line);border-radius:10px;padding:11px}.hgfc-levels span,.hgfc-levels small{color:var(--muted)}.hgfc-members{display:grid;gap:10px}.hgfc-member{border:1px solid var(--line);border-radius:11px;padding:12px;display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:8px}.hgfc-member>div:first-child{display:grid}.hgfc-member span{color:var(--muted);font-size:12px}.hgfc-member.owner{background:#f0f8f5}.hgfc-member.member-edit{display:grid;grid-template-columns:minmax(150px,1fr) 130px minmax(260px,2fr) auto}.hgfc-member-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hgfc-link-danger{border:0;background:transparent;color:var(--red);padding:7px;text-decoration:underline}
.hgfc-template-groups{display:grid;gap:9px;margin-top:14px}.hgfc-template-group{border:1px solid var(--line);border-radius:10px;overflow:hidden}.hgfc-template-group>summary{cursor:pointer;padding:11px 13px;background:var(--soft);font-weight:700}.hgfc-template-group>summary span{float:left;color:var(--muted);font-weight:400}.hgfc-control-editor{border-top:1px solid var(--line)}.hgfc-control-row{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:10px;padding:11px}.hgfc-control-row>div{display:grid}.hgfc-control-row small{color:var(--muted)}.hgfc-control-row>details{min-width:80px}.hgfc-control-row>details>summary{cursor:pointer;color:var(--blue)}.hgfc-control-row>details[open]{grid-column:2/4;width:100%}.hgfc-form.compact{padding-top:10px}.hgfc-switch{position:relative;display:inline-block;width:36px;height:20px;flex:none}.hgfc-app .hgfc-switch input{position:absolute;inset:0;z-index:1;opacity:0;width:36px!important;height:20px!important;min-height:0!important;margin:0!important;padding:0!important;cursor:pointer}.hgfc-switch span{display:block;width:36px;height:20px;background:#a9b7c0;border-radius:20px;position:relative}.hgfc-switch span:after{content:"";position:absolute;width:14px;height:14px;background:#fff;border-radius:50%;top:3px;right:3px;transition:.2s}.hgfc-switch input:checked+span{background:var(--green)}.hgfc-switch input:checked+span:after{right:19px}
.hgfc-cycle-actions,.hgfc-export{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hgfc-export a{color:var(--blue);text-decoration:none;border:1px solid #cbdfe7;border-radius:8px;padding:7px 10px;background:#f4fafc}.hgfc-overall>div:first-child{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.hgfc-overall b{font-size:28px;color:var(--green)}.hgfc-progress{height:8px;background:#e8eff2;border-radius:20px;overflow:hidden;margin-top:10px}.hgfc-progress i{display:block;height:100%;background:var(--green);border-radius:20px}.hgfc-filterbar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;margin:14px 0 8px}.hgfc-stage-tabs{display:flex;gap:4px;overflow:auto;background:#f0f4f6;border-radius:9px;padding:3px;margin-bottom:12px}.hgfc-tasks{display:grid;gap:9px}.hgfc-task{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff}.hgfc-task[hidden]{display:none}.hgfc-task-head{border:0;background:#fff;width:100%;text-align:right;padding:13px;display:flex;justify-content:space-between;align-items:center;color:var(--ink)}.hgfc-task-head>div{display:grid;gap:3px}.hgfc-task-head strong{font-size:14px}.hgfc-task-head small{color:var(--muted)}.hgfc-task-head .hgfc-badge{display:inline-flex;width:max-content}.hgfc-chevron{font-size:20px;transition:.2s}.hgfc-task.open .hgfc-chevron{transform:rotate(180deg)}.hgfc-task-body{display:none;border-top:1px solid var(--line);padding:14px;background:#fbfdfe}.hgfc-task.open .hgfc-task-body{display:block}.hgfc-task-info{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.hgfc-task-info>div{background:#fff;border:1px solid var(--line);padding:10px;border-radius:8px}.hgfc-task-info p{white-space:pre-wrap}.hgfc-timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.hgfc-timeline>div{display:flex;gap:8px;align-items:center;border:1px solid var(--line);padding:9px;border-radius:8px}.hgfc-timeline i{font-style:normal;background:#dce6eb;border-radius:50%;width:25px;height:25px;display:grid;place-items:center}.hgfc-timeline .done i{background:#d9f0e7;color:var(--green)}.hgfc-timeline span{display:grid}.hgfc-timeline small{color:var(--muted)}.hgfc-return-note,.hgfc-action-box,.hgfc-return-box,.hgfc-comments,.hgfc-history{border:1px solid var(--line);border-radius:9px;padding:11px;margin-top:10px;background:#fff}.hgfc-return-note{border-color:#efd39f;background:#fffaf0}.hgfc-action-box,.hgfc-return-box{display:grid;gap:9px}.hgfc-return-box>div{display:flex;gap:8px;flex-wrap:wrap}.hgfc-task-tools{display:flex;gap:8px;margin-top:10px}.hgfc-task-tools button{border:0;background:transparent;color:var(--blue);padding:5px 0;margin-left:12px}.hgfc-event-list{display:grid;gap:8px}.hgfc-event-list>div{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:start}.hgfc-event-list i{width:9px;height:9px;border-radius:50%;background:var(--green);margin-top:8px}.hgfc-event-list span{display:grid}.hgfc-event-list small{color:var(--muted)}.hgfc-event-list em{font-style:normal;color:var(--green)}.hgfc-event-list em.bad{color:var(--red)}.hgfc-comment-list>div{border-bottom:1px solid var(--line);padding:8px 0}.hgfc-comment-list p{white-space:pre-wrap}.hgfc-close-box{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.hgfc-analytics{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:12px}.hgfc-bar{margin:10px 0}.hgfc-bar>div{display:flex;justify-content:space-between}.hgfc-bar i{display:block;height:6px;background:#e8eff2;border-radius:8px;overflow:hidden}.hgfc-bar i b{display:block;height:100%;background:var(--blue)}.hgfc-people{margin-top:16px}.hgfc-people>div{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:8px 0}.hgfc-loading{display:grid;place-items:center;padding:28px;color:var(--muted)}.hgfc-loading span{width:28px;height:28px;border:3px solid #d5e3e9;border-top-color:var(--blue);border-radius:50%;animation:hgfc-spin .8s linear infinite}.hgfc-toast{position:fixed;z-index:999999;left:22px;bottom:22px;max-width:380px;background:#17324d;color:#fff;padding:11px 15px;border-radius:9px;box-shadow:0 8px 25px rgba(0,0,0,.2);direction:rtl}.hgfc-gate{--blue:#176b87;--blue2:#0f526b;--ink:#17324d;--line:#dbe5eb;direction:rtl;border:1px solid var(--line,#dbe5eb);border-radius:12px;padding:20px;background:#fff;color:var(--ink,#17324d)}.hgfc-gate strong{font-size:18px}.hgfc-gate p{color:#64748b}@keyframes hgfc-spin{to{transform:rotate(360deg)}}
.hgfc-trend{display:grid;gap:8px;margin-top:12px}.hgfc-trend button{display:grid;grid-template-columns:1fr auto;gap:4px;border:1px solid var(--line);border-radius:9px;background:#fff;text-align:right;padding:9px 11px;color:var(--ink)}.hgfc-trend button div{display:grid}.hgfc-trend small{color:var(--muted)}.hgfc-trend span{font-weight:700;color:var(--green)}.hgfc-trend i{grid-column:1/-1;display:block;height:5px;background:#e8eff2;border-radius:9px;overflow:hidden}.hgfc-trend i b{display:block;height:100%;background:var(--green)}
.hgfc-date-wrap{position:relative;display:grid;grid-template-columns:1fr 42px;direction:rtl}.hgfc-date-wrap>input{border-radius:0 8px 8px 0!important;direction:ltr;text-align:right;font-variant-numeric:tabular-nums}.hgfc-date-wrap>[data-jalali-open]{border:1px solid #cbd8df;border-right:0;border-radius:8px 0 0 8px;background:#edf5f8;color:var(--blue);font-size:18px}.hgfc-jalali-popover{position:fixed;z-index:999999;width:min(310px,calc(100vw - 16px));padding:10px;border:1px solid #bfcfd7;border-radius:12px;background:#fff;box-shadow:0 14px 35px rgba(16,48,69,.2);direction:rtl;color:#17324d;font:inherit;font-size:14px;line-height:1.7;box-sizing:border-box}.hgfc-calendar-head{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;text-align:center;margin-bottom:7px}.hgfc-calendar-head button,.hgfc-calendar-foot button{border:0;border-radius:7px;background:#edf5f8;color:var(--blue,#176b87);padding:5px}.hgfc-weekdays,.hgfc-calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.hgfc-weekdays b{padding:3px;text-align:center;color:#64748b;font-size:11px}.hgfc-calendar-days button{aspect-ratio:1;border:0;border-radius:7px;background:#fff;color:#17324d;font:inherit}.hgfc-calendar-days button:hover,.hgfc-calendar-days button:focus{background:#e8f3f6;outline:2px solid #7eb3c5}.hgfc-calendar-days button.today{outline:1px solid #176b87}.hgfc-calendar-days button.selected{background:#176b87;color:#fff}.hgfc-calendar-foot{display:flex;justify-content:space-between;gap:8px;margin-top:8px;border-top:1px solid #dbe5eb;padding-top:8px}.hgfc-fye-field{margin:0;min-width:270px;padding:9px 11px 11px;border:1px solid var(--line);border-radius:10px}.hgfc-fye-field legend{padding:0 6px;font-weight:700}.hgfc-fye-field>small{display:block;margin-bottom:8px;color:var(--muted);line-height:1.7}.hgfc-year-end{display:grid;grid-template-columns:minmax(150px,1.35fr) minmax(100px,.65fr);gap:8px}.hgfc-year-end>label{display:grid;gap:4px}.hgfc-year-end>label>span{color:var(--muted);font-size:11px}.hgfc-year-end input{display:none}.hgfc-unit-flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0;padding:11px;border:1px solid #bfdae3;border-radius:10px;background:#eaf6f8;color:#28546a}.hgfc-unit-flow span{border:1px solid #b9d8e1;border-radius:8px;background:#f8fcfd;padding:5px 9px}.hgfc-unit-flow i{font-style:normal;color:var(--blue)}.hgfc-units{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.hgfc-unit-card{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fff}.hgfc-unit-card>div{display:grid}.hgfc-unit-card small{color:var(--muted)}.hgfc-unit-card details{margin-top:8px}.hgfc-unit-card summary{cursor:pointer;color:var(--blue)}.hgfc-unit-card label{display:grid;gap:4px;margin-top:8px}.hgfc-export button{font:inherit;color:var(--muted);text-decoration:none;border:1px dashed #cbd5e1;border-radius:8px;padding:7px 10px;background:#f5f7f8}.hgfc-export a.final{border-color:#a7d8c3;background:#eff9f4;color:var(--green)}.hgfc-final-ready{margin-top:10px!important;padding:8px 11px;border-radius:8px;background:#eff9f4;color:var(--green)!important}
@media(max-width:900px){.hgfc-grid{grid-template-columns:repeat(3,1fr)}.hgfc-member.member-edit{grid-template-columns:1fr 130px}.hgfc-member.member-edit .hgfc-scopes,.hgfc-member.member-edit .hgfc-member-actions{grid-column:1/-1}.hgfc-filterbar{grid-template-columns:1fr 1fr}.hgfc-filterbar input{grid-column:1/-1}}
@media(max-width:620px){.hgfc-shell{border-radius:0;border-left:0;border-right:0}.hgfc-body{padding:9px}.hgfc-top,.hgfc-section{padding:14px}.hgfc-section-title,.hgfc-workspace-title,.hgfc-cycle-head,.hgfc-close-box{display:grid}.hgfc-grid{grid-template-columns:repeat(2,1fr)}.hgfc-levels,.hgfc-analytics,.hgfc-task-info,.hgfc-timeline{grid-template-columns:1fr}.hgfc-row{display:grid}.hgfc-field{min-width:0}.hgfc-fye-field{min-width:0}.hgfc-year-end{grid-template-columns:1fr}.hgfc-member{align-items:stretch;display:grid}.hgfc-member.member-edit{grid-template-columns:1fr}.hgfc-member.member-edit .hgfc-scopes,.hgfc-member.member-edit .hgfc-member-actions{grid-column:auto}.hgfc-filterbar{grid-template-columns:1fr}.hgfc-filterbar input{grid-column:auto}.hgfc-cycle-actions,.hgfc-export{justify-content:stretch}.hgfc-cycle-actions>*{flex:1}.hgfc-control-row{grid-template-columns:auto 1fr}.hgfc-control-row>details{grid-column:2}.hgfc-control-row>details[open]{grid-column:1/-1}.hgfc-toast{left:10px;right:10px;bottom:10px;max-width:none}}
.hgfc-app button:focus-visible,.hgfc-app a:focus-visible,.hgfc-app input:focus-visible,.hgfc-app select:focus-visible,.hgfc-app textarea:focus-visible{outline:3px solid rgba(23,107,135,.25);outline-offset:2px}.hgfc-step-kicker{display:block;color:var(--blue);font-size:11px;font-weight:800}.hgfc-status-chip{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:800}.hgfc-status-chip.current,.hgfc-status-chip.team{color:#075c72;background:#e7f5f8}.hgfc-status-chip.solo,.hgfc-status-chip.confirmed{color:#0d6b4e;background:#e7f7f0}.hgfc-status-chip.dirty{color:#8a5209;background:#fff0d7}
.hgfc-setup-path{margin:0 0 14px;padding:17px;border:1px solid #c8dee7;border-radius:14px;background:linear-gradient(135deg,#f7fcfd,#fff)}.hgfc-setup-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.hgfc-setup-heading small{color:var(--blue);font-weight:800}.hgfc-setup-heading h3{margin:0}.hgfc-setup-path ol{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:7px;margin:0;padding:0;list-style:none}.hgfc-setup-path li button{width:100%;height:100%;display:flex;align-items:center;gap:8px;text-align:right;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:9px}.hgfc-setup-path li button[aria-current=step]{border-color:#6ba7ba;box-shadow:0 0 0 2px rgba(23,107,135,.09)}.hgfc-setup-path li i{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;background:#edf2f5;color:#557083;font-style:normal;font-size:11px;font-weight:800}.hgfc-setup-path li.done i{color:#fff;background:var(--green)}.hgfc-setup-path li.warning i{color:#fff;background:var(--amber)}.hgfc-setup-path li span{min-width:0;display:grid}.hgfc-setup-path li b{font-size:11px}.hgfc-setup-path li small{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.hgfc-support-links{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:12px 0 2px;padding:10px;color:var(--muted);font-size:12px}.hgfc-support-links b,.hgfc-guide-support b{color:var(--ink)}.hgfc-support-links a,.hgfc-guide-support a{border:1px solid #cbdfe7;border-radius:8px;background:#fff;color:var(--blue);padding:5px 9px;text-decoration:none}.hgfc-important-note{display:flex!important;align-items:flex-start;gap:7px;margin:13px 0!important;padding:10px 12px;border:1px solid #e8b9bb;border-radius:9px;background:#fff6f6;color:#8e1c20!important}.hgfc-important-note>span{display:grid;place-items:center;flex:0 0 21px;height:21px;border-radius:50%;color:#fff;background:var(--red);font-weight:900}.hgfc-sod-choice{margin:13px 0}.hgfc-sod-choice fieldset{display:grid;grid-template-columns:repeat(2,1fr) auto;gap:9px;align-items:stretch;margin:0;padding:10px;border:1px solid var(--line);border-radius:11px}.hgfc-sod-choice legend{padding:0 7px;color:var(--ink);font-weight:800}.hgfc-sod-choice label{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fbfdfe}.hgfc-sod-choice label:has(input:checked){border-color:#77b3c4;background:#eff8fa}.hgfc-sod-choice input{width:auto;margin-top:5px}.hgfc-sod-choice span{display:grid}.hgfc-sod-choice small{color:var(--muted);font-size:10px}
.hgfc-unit-card.needs-control{border-color:#e4c98f;background:#fffdf8}.hgfc-unit-warning{display:grid!important;grid-template-columns:auto 1fr;gap:7px;margin-top:10px;padding:9px;border-radius:9px;background:#fff5dd;color:#6f4b12}.hgfc-unit-warning>span{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;color:#fff;background:var(--amber);font-weight:900}.hgfc-unit-warning p{margin:0!important;color:#6f4b12!important;font-size:11px}.hgfc-unit-warning button{grid-column:2;width:max-content;border:0;background:transparent;color:#76510e;padding:1px 0;text-decoration:underline;font-weight:800}
.hgfc-template-summary{display:grid;grid-template-columns:2fr 1fr 1fr;gap:9px;margin:14px 0}.hgfc-template-summary>div{display:grid;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.hgfc-template-summary>div:first-child{grid-template-columns:auto 1fr;align-items:center;gap:9px}.hgfc-template-summary b{font-size:20px;color:var(--blue)}.hgfc-template-summary small,.hgfc-template-summary span{color:var(--muted);font-size:11px}.hgfc-template-toolbar{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fbfdfe}.hgfc-template-toolbar label{display:grid;gap:3px;color:var(--muted);font-size:11px}.hgfc-template-toolbar select{min-width:180px}.hgfc-template-toolbar>div{display:flex;gap:6px;flex-wrap:wrap}.hgfc-template-toolbar button{border:1px solid #cbdfe7;border-radius:7px;background:#fff;color:var(--blue);padding:6px 9px}.hgfc-control-editor.disabled{opacity:.68}.hgfc-template-confirm{position:sticky;bottom:8px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px;border:1px solid #acd2da;border-radius:11px;background:rgba(244,251,252,.96);box-shadow:0 -7px 20px rgba(23,50,77,.08);backdrop-filter:blur(7px)}.hgfc-template-confirm p{margin:0!important}
.hgfc-readiness-score{display:inline-flex;border-radius:999px;padding:7px 11px;font-weight:800}.hgfc-readiness-score.pass{color:#0d6b4e;background:#e7f7f0}.hgfc-readiness-score.warning{color:#8a5209;background:#fff0d7}.hgfc-readiness-score.blocker{color:#8e1c20;background:#fdeced}.hgfc-readiness-summary{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.hgfc-readiness-summary span{border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.hgfc-readiness-summary .pass{color:#0d6b4e;background:#e7f7f0}.hgfc-readiness-summary .warning{color:#8a5209;background:#fff0d7}.hgfc-readiness-summary .blocker{color:#8e1c20;background:#fdeced}.hgfc-check-list{display:grid;gap:8px}.hgfc-check-list article{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-inline-start-width:4px;border-radius:10px}.hgfc-check-list article.pass{border-inline-start-color:var(--green)}.hgfc-check-list article.warning{border-inline-start-color:var(--amber)}.hgfc-check-list article.blocker{border-inline-start-color:var(--red)}.hgfc-check-list article>i{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;font-style:normal;font-weight:900}.hgfc-check-list article.pass>i{color:#0d6b4e;background:#e7f7f0}.hgfc-check-list article.warning>i{color:#8a5209;background:#fff0d7}.hgfc-check-list article.blocker>i{color:#8e1c20;background:#fdeced}.hgfc-check-list article>div{display:grid}.hgfc-check-list article p{margin:0!important;font-size:12px}.hgfc-check-list article>span{color:var(--muted);font-size:10px}.hgfc-check-list article>button{border:0;background:transparent;color:var(--blue);text-decoration:underline}.hgfc-readiness-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.hgfc-guide-layer{position:fixed;z-index:999998;inset:0;display:grid;place-items:center;padding:18px;background:rgba(9,30,44,.62);backdrop-filter:blur(3px)}.hgfc-guide{width:min(650px,100%);max-height:calc(100vh - 36px);overflow:auto;border:1px solid rgba(255,255,255,.35);border-radius:19px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.28)}.hgfc-guide-progress{display:grid;grid-template-columns:repeat(var(--guide-steps,1),1fr);gap:5px;padding:13px 18px 0}.hgfc-guide-progress i{height:4px;border-radius:7px;background:#e0e8ec}.hgfc-guide-progress i.active{background:var(--blue)}.hgfc-guide-visual{display:grid;place-items:center;padding:22px 18px 12px}.hgfc-guide-visual span{display:grid;place-items:center;width:76px;height:76px;border-radius:24px;color:#fff;background:linear-gradient(145deg,var(--blue2),#1295a1);box-shadow:0 12px 27px rgba(15,82,107,.2);font-size:30px;font-weight:900}.hgfc-guide-copy{padding:0 28px 19px;text-align:center}.hgfc-guide-copy>small{color:var(--blue);font-weight:800}.hgfc-guide-copy h3{margin:4px 0 7px;font-size:21px}.hgfc-guide-copy p{max-width:520px;margin:0 auto;color:var(--muted)}.hgfc-guide-support{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:12px}.hgfc-guide-support span{flex-basis:100%;color:var(--muted);font-size:11px}.hgfc-guide-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-top:1px solid var(--line);background:#f8fbfc}.hgfc-guide-actions>div{display:flex;gap:7px;flex-wrap:wrap}.hgfc-guide-link{border:0;background:transparent;color:var(--blue);padding:7px}.hgfc-guide-link.danger{color:var(--red)}
@media(max-width:980px){.hgfc-setup-path ol{grid-template-columns:repeat(3,1fr)}.hgfc-sod-choice fieldset{grid-template-columns:1fr 1fr}.hgfc-sod-choice button{grid-column:1/-1}.hgfc-template-toolbar{align-items:stretch;flex-direction:column}}
@media(max-width:620px){.hgfc-top-actions,.hgfc-setup-heading,.hgfc-template-confirm,.hgfc-guide-actions{align-items:stretch;flex-direction:column}.hgfc-setup-path ol{grid-template-columns:1fr 1fr}.hgfc-sod-choice fieldset,.hgfc-template-summary{grid-template-columns:1fr}.hgfc-template-summary>div:first-child{grid-template-columns:auto 1fr}.hgfc-check-list article{grid-template-columns:auto 1fr}.hgfc-check-list article>span,.hgfc-check-list article>button{grid-column:2}.hgfc-readiness-actions{display:grid}.hgfc-guide-actions>div{display:grid}.hgfc-guide-copy{padding-inline:18px}}
.hgfc-pending-invites article{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff}.hgfc-pending-invites article.preferred{border-color:#77b3c4;background:#f3fbfc}.hgfc-pending-invites article>div{display:grid;gap:3px}.hgfc-pending-invites article>div:last-child{display:flex;gap:7px;flex-wrap:wrap}.hgfc-pending-invites span,.hgfc-pending-invites small{color:var(--muted);font-size:11px}.hgfc-invite-capture-error{color:#8e1c20!important;background:#fff1f2;border:1px solid #e8b9bb;border-radius:8px;padding:8px}.hgfc-ad-hoc{margin:13px 0;border:1px solid #c8dee7;border-radius:11px;background:#f7fcfd}.hgfc-ad-hoc>details>summary{padding:11px 13px;color:var(--blue);cursor:pointer;font-weight:800}.hgfc-ad-hoc form{padding:0 13px 13px}.hgfc-ad-hoc-policy{margin:12px 0!important;padding:9px 11px;border-radius:8px;background:var(--soft)}.hgfc-badge.ad-hoc{color:#075c72;background:#e7f5f8}.hgfc-badge.blocking{color:#8e1c20;background:#fdeced}.hgfc-badge.reminder{color:#76510e;background:#fff0d7}.hgfc-task.cancelled{opacity:.72}.hgfc-cancel-task{margin-top:10px;padding:9px;border:1px solid #e8b9bb;border-radius:9px;background:#fff8f8}.hgfc-cancel-task summary{color:var(--red);cursor:pointer}.hgfc-cancel-task form{display:grid;gap:8px;margin-top:8px}.hgfc-cancel-task textarea{min-height:60px}
@media(max-width:620px){.hgfc-pending-invites article{align-items:stretch;display:grid}.hgfc-pending-invites article>div:last-child{display:grid}}

/* 3.3.0: operation-first IA, compact task cards and the permanent guide. */
.hgfc-product-title{display:grid;gap:2px;min-width:0}.hgfc-product-title h2{margin:0}.hgfc-product-title>b{color:var(--blue);font-size:12px;font-weight:800}.hgfc-product-title>p{margin:2px 0 0!important}.hgfc-top{align-items:flex-start}.hgfc-top-actions{align-items:center}.hgfc-company-switch{display:grid;gap:3px;min-width:190px;color:var(--muted);font-size:10px;font-weight:700}.hgfc-company-switch select{min-height:38px;padding-block:6px;background:#fff;color:var(--ink)}
.hgfc-navigation{display:grid;gap:9px;margin-bottom:14px}.hgfc-operation-nav{margin:0}
.hgfc-kpi-grid{grid-template-columns:repeat(6,minmax(105px,1fr))}.hgfc-kpi{-webkit-appearance:none;appearance:none;width:100%;font:inherit;text-align:right;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}.hgfc-kpi:hover{border-color:#8fbac8;transform:translateY(-1px)}.hgfc-kpi.active{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,107,135,.12)}.hgfc-kpi[aria-pressed=true] small{color:var(--blue)}.hgfc-metric-scope{margin:11px 0 7px!important;color:var(--muted);font-size:11px}
.hgfc-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.hgfc-task{min-width:0}.hgfc-task.open{grid-column:1/-1}.hgfc-task-head{min-height:108px}.hgfc-task-head strong{display:block;margin-top:5px;line-height:1.7}.hgfc-task.open .hgfc-task-head{min-height:0}.hgfc-filter-reset{border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--blue);padding:7px 10px;white-space:nowrap}.hgfc-filter-empty{grid-column:1/-1;margin-top:9px;padding:16px;border:1px dashed var(--line);border-radius:10px;background:var(--soft);color:var(--muted);text-align:center}.hgfc-badge.danger{color:#8e1c20;background:#fdeced}
.hgfc-report-menu{position:relative}.hgfc-report-menu>summary{display:inline-flex;align-items:center;min-height:38px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--blue);padding:7px 11px;cursor:pointer;font-weight:800;list-style:none}.hgfc-report-menu>summary::-webkit-details-marker{display:none}.hgfc-report-menu>summary:after{content:'⌄';margin-inline-start:7px}.hgfc-report-menu[open]>summary:after{transform:rotate(180deg)}.hgfc-report-menu .hgfc-export{position:absolute;z-index:8;inset-inline-end:0;top:calc(100% + 6px);display:grid;min-width:270px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(23,50,77,.15)}.hgfc-report-menu .hgfc-export a,.hgfc-report-menu .hgfc-export button{display:block;margin-top:6px;text-align:center}
.hgfc-invite-result{position:relative;display:grid;gap:10px;margin:14px 0;padding:13px;border:1px solid #b8d9c9;border-radius:11px;background:#f1faf6}.hgfc-invite-result.failed,.hgfc-invite-result.unknown{border-color:#e7c58e;background:#fff9ee}.hgfc-invite-result p{margin:3px 0 0!important;color:var(--muted)}.hgfc-invite-result>label{display:grid;gap:4px}.hgfc-invite-result>label>span:first-child,.hgfc-invite-result small{color:var(--muted);font-size:10px}.hgfc-invite-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;direction:ltr}.hgfc-invite-link input{min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.hgfc-invite-result>[data-dismiss-invite-result]{position:absolute;inset-inline-end:9px;top:9px}
.hgfc-member.member-edit{grid-template-columns:minmax(150px,1fr) minmax(180px,1fr) minmax(150px,.8fr);align-items:end}.hgfc-member.member-edit>.hgfc-scopes,.hgfc-member.member-edit>.hgfc-member-actions{grid-column:1/-1}
.hgfc-invite-capture-error button{border:1px solid #d89a9e;border-radius:7px;background:#fff;color:#8e1c20;padding:6px 9px;cursor:pointer}
.hgfc-manual{display:grid;gap:16px}.hgfc-manual-hero,.hgfc-manual-section{padding:clamp(18px,4vw,32px);border:1px solid var(--line);border-radius:16px;background:#fff}.hgfc-manual-hero{background:linear-gradient(135deg,#f1fafb,#fff)}.hgfc-manual-hero>span{color:var(--blue);font-size:11px;font-weight:800}.hgfc-manual-hero h2{margin:5px 0 2px}.hgfc-manual-hero>b{color:var(--blue);font-size:13px}.hgfc-manual-hero>p{color:var(--muted)}.hgfc-manual-hero>div{display:flex;gap:8px;flex-wrap:wrap}.hgfc-manual-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0 0;padding:0;list-style:none}.hgfc-manual-steps li{display:grid;grid-template-columns:auto 1fr;gap:10px;padding:14px;border:1px solid var(--line);border-radius:11px}.hgfc-manual-steps i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--blue);color:#fff;font-style:normal;font-weight:800}.hgfc-manual-steps h4{margin:0 0 3px}.hgfc-manual-steps p{margin:0!important;color:var(--muted)}.hgfc-manual-member{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.hgfc-manual-member article{display:flex;gap:9px;padding:12px;border:1px solid var(--line);border-radius:10px}.hgfc-manual-member article>b{color:var(--blue)}.hgfc-manual-member article>span{display:grid}.hgfc-manual-member small{color:var(--muted)}.hgfc-manual-faq details{padding:10px 0;border-top:1px solid var(--line)}.hgfc-manual-faq summary{color:var(--ink);cursor:pointer;font-weight:800}.hgfc-manual-faq p{color:var(--muted)}.hgfc-manual-support{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;padding:11px;border-radius:10px;background:var(--soft)}.hgfc-manual-support>span{margin-inline-end:auto}.hgfc-manual-support a{border:1px solid #cbdfe7;border-radius:8px;background:#fff;color:var(--blue);padding:6px 9px;text-decoration:none}
@media(max-width:980px){.hgfc-kpi-grid{grid-template-columns:repeat(3,1fr)}.hgfc-tasks{grid-template-columns:1fr}.hgfc-task.open{grid-column:auto}.hgfc-member.member-edit{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.hgfc-top-actions,.hgfc-company-switch{width:100%}.hgfc-company-switch{min-width:0}.hgfc-kpi-grid{grid-template-columns:repeat(2,1fr)}.hgfc-task-head{min-height:0}.hgfc-report-menu,.hgfc-report-menu>summary{width:100%}.hgfc-report-menu .hgfc-export{position:static;min-width:0;margin-top:7px;box-shadow:none}.hgfc-invite-link{grid-template-columns:1fr}.hgfc-member.member-edit{grid-template-columns:1fr}.hgfc-member.member-edit>.hgfc-scopes,.hgfc-member.member-edit>.hgfc-member-actions{grid-column:auto}.hgfc-manual-steps,.hgfc-manual-member{grid-template-columns:1fr}.hgfc-manual-hero>div{display:grid}.hgfc-manual-support{align-items:stretch;display:grid}.hgfc-manual-support>span{margin:0}}
.hgfc-delivery-chip{display:inline-flex;width:max-content;margin-top:5px;padding:3px 8px;border-radius:999px;background:#edf3f6;color:#385463!important;font-size:10px!important;font-weight:800}.hgfc-delivery-chip.sent{background:#e7f7f0;color:#0d6b4e!important}.hgfc-delivery-chip.failed,.hgfc-delivery-chip.unknown{background:#fff0d7;color:#8a5209!important}.hgfc-delivery-chip.dispatching,.hgfc-delivery-chip.queued{background:#e7f5f8;color:#075c72!important}
.hgfc-guide-progress{grid-template-columns:repeat(var(--guide-steps,1),1fr)}
.hgfc-calendar-days>span{display:grid}.hgfc-calendar-days>span>button{width:100%}
.hgfc-task-provenance{border:1px solid #bfdae5;border-radius:9px;padding:10px;margin-bottom:10px;background:#f3f9fb}.hgfc-task-provenance p{margin:4px 0;white-space:pre-wrap}.hgfc-task-provenance small{color:var(--muted)}
.hgfc-timeline.single{grid-template-columns:minmax(220px,1fr)}
.hgfc-switch input:focus-visible+span{outline:3px solid rgba(23,107,135,.3);outline-offset:3px}
.hgfc-top-link{display:inline-flex;align-items:center;min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--blue);text-decoration:none}.hgfc-top-link:hover{border-color:#9bc4d1;background:#f4fafc}.hgfc-gate-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.hgs-journey-flash{direction:rtl;display:flex;justify-content:space-between;align-items:center;gap:16px;max-width:1180px;margin:0 auto 14px;padding:15px 17px;border:1px solid #9fd6c2;border-radius:13px;background:#edf9f4;color:#145e47}.hgs-journey-flash>div{display:grid;gap:3px}.hgs-journey-flash span{color:#4a6c60}.hgs-journey-flash a{white-space:nowrap;color:#0b6848;font-weight:800}
@media(max-width:620px){.hgfc-top-link{justify-content:center}.hgfc-gate-actions,.hgs-journey-flash{display:grid}.hgs-journey-flash a{white-space:normal}}

/* 3.3.6: one-time setup IA and focused setup forms. */
.hgfc-company-profile-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);gap:14px;align-items:stretch}.hgfc-company-name-card{align-content:start;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fbfdfe}.hgfc-company-name-card small{margin-top:3px;line-height:1.7}.hgfc-company-profile-grid .hgfc-fye-field{height:100%;background:#fbfdfe}.hgfc-form-actions{display:flex;justify-content:flex-start;gap:8px;flex-wrap:wrap}.hgfc-form-actions .hgfc-btn{min-width:180px}
.hgfc-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.hgfc-settings-card{position:relative;display:grid;gap:4px;min-height:96px;padding:15px 16px;border:1px solid var(--line);border-radius:11px;background:#fbfdfe;color:var(--ink);text-align:right}.hgfc-settings-card:hover,.hgfc-settings-card:focus-visible{border-color:#8fbac8;background:#f3fafc}.hgfc-settings-card b{font-size:14px}.hgfc-settings-card span{color:var(--muted);font-size:12px}.hgfc-settings-card i{position:absolute;inset-inline-end:14px;bottom:12px;color:var(--blue);font-style:normal;font-size:17px}
.hgfc-current-draft{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0;padding:15px;border:1px solid #bfdae3;border-radius:12px;background:#f2fafc}.hgfc-current-draft>div{display:grid;gap:3px}.hgfc-current-draft small{color:var(--blue);font-weight:800}.hgfc-current-draft span{color:var(--muted);font-size:12px}.hgfc-cycle-create{padding:14px;border:1px solid var(--line);border-radius:12px;background:#fbfdfe}.hgfc-cycle-title-field{min-width:0}.hgfc-cycle-date-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hgfc-new-draft{margin-top:12px;border:1px dashed #cbd8df;border-radius:11px;background:#fff}.hgfc-new-draft>summary{padding:11px 13px;color:var(--blue);cursor:pointer;font-weight:800}.hgfc-new-draft>p{padding:0 13px;color:var(--muted);font-size:12px}.hgfc-new-draft>.hgfc-cycle-create{margin:0 12px 12px}
.hgfc-sod-choice.needs-confirmation fieldset{border:2px solid #78afc0;background:#f3fafc;box-shadow:0 0 0 3px rgba(23,107,135,.06)}.hgfc-sod-choice fieldset{grid-template-columns:repeat(2,minmax(0,1fr))}.hgfc-sod-choice .hgfc-sod-intro{grid-column:1/-1;margin:0!important;padding:8px 10px;border-radius:8px;background:#edf5f8;color:#38566a}.hgfc-sod-choice button{grid-column:1/-1;justify-self:stretch;min-height:42px}.hgfc-sod-lock,.hgfc-solo-confirmed{display:grid;gap:5px;margin:12px 0 2px;padding:14px;border-radius:11px}.hgfc-sod-lock{border:1px solid #e0c38c;background:#fff8e8;color:#6d4d18}.hgfc-solo-confirmed{border:1px solid #b8d9c9;background:#f1faf6;color:#175f49}.hgfc-sod-lock span,.hgfc-solo-confirmed span,.hgfc-solo-confirmed small{color:inherit;opacity:.85}
@media(max-width:760px){.hgfc-company-profile-grid,.hgfc-settings-grid,.hgfc-cycle-date-grid{grid-template-columns:1fr}.hgfc-current-draft{align-items:stretch;display:grid}.hgfc-form-actions .hgfc-btn{width:100%}.hgfc-sod-choice fieldset{grid-template-columns:1fr}}

/* 3.3.7: automatic link-based invitation activation. */
.hgfc-invite-activated{border-color:#a8d5c0!important;background:linear-gradient(135deg,#f1faf6,#fff)}.hgfc-invite-activated .hgfc-section-title{margin-bottom:12px}.hgfc-invite-activated p{color:#3d6658}.hgfc-status-chip.done{background:#e4f6ed;color:#166447;border-color:#b6ddca}

.hgs-payment-result.success{border-color:#9fd6c2;background:#f6fcf9;box-shadow:0 8px 24px rgba(23,50,77,.06)}.hgs-payment-result.success>.hgfc-gate-actions .hgfc-btn:first-child{font-weight:800;box-shadow:0 5px 14px rgba(23,107,135,.18)}.hgs-payment-result.success>.hgfc-gate-actions .hgfc-btn:focus-visible{outline:3px solid rgba(23,107,135,.25);outline-offset:2px}
.hgfc-team-review{display:grid;gap:9px;margin:14px 0 2px;padding:14px 15px;border:1px solid #bfd4df;border-radius:11px;background:#f7fbfd}.hgfc-team-review-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.hgfc-team-review-head>div{display:grid;gap:3px}.hgfc-team-review-head small,.hgfc-team-review p{color:var(--muted);margin:0}.hgfc-team-review.pending{border-color:#d4dde2;background:#fbfcfd}.hgfc-team-review.blocker{border-color:#e5caa2;background:#fff9ed}.hgfc-team-review.pass{border-color:#abd8c6;background:#f3fbf7}.hgfc-team-review .hgfc-status-chip.blocker{background:#fff0d7;color:#7a4d0d;border-color:#e6c688}.hgfc-team-review .hgfc-status-chip.pass{background:#e7f7ef;color:#14634b;border-color:#abd8c6}.hgfc-team-review-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hgfc-team-review-help{padding-top:2px;font-size:12px;line-height:1.8}.hgfc-team-review-help b{color:var(--ink)}
@media(max-width:620px){.hgfc-team-review-head,.hgfc-team-review-actions{display:grid}.hgfc-team-review-actions .hgfc-btn{width:100%}}


/* Existing alignment retained; fullscreen feature removed in 3.4. */
.hgfc-top>*{min-width:0}.hgfc-product-title{min-width:0}.hgfc-product-title h2,.hgfc-product-title b,.hgfc-product-title p{overflow-wrap:anywhere}
.hgfc-company-switch{display:flex;align-items:center;gap:7px;min-width:210px}.hgfc-company-switch span{white-space:nowrap}.hgfc-company-switch select{min-width:0;min-height:42px}
.hgfc-help-button,.hgfc-btn{min-height:42px}.hgfc-form,.hgfc-form>*{min-width:0}.hgfc-company-profile-grid,.hgfc-cycle-date-grid{min-width:0}.hgfc-company-profile-grid>* ,.hgfc-cycle-date-grid>*{min-width:0}
.hgfc-date-wrap{min-width:0}.hgfc-date-wrap>input{min-width:0;min-height:44px}.hgfc-date-wrap>[data-jalali-open]{min-width:42px;min-height:44px;font-weight:800}
.hgfc-field>small{line-height:1.65}.hgfc-cycle-create .hgfc-form-actions{margin-top:2px}.hgfc-cycle-create .hgfc-btn{min-height:44px}
@media(max-width:760px){.hgfc-top{align-items:stretch;display:grid}.hgfc-top-actions{display:grid;grid-template-columns:1fr 1fr}.hgfc-company-switch{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);width:100%}.hgfc-top-actions .hgfc-help-button{width:100%;justify-content:center}}
/* 3.4: scoped hierarchy, compact controls, accessible sticky context; no fullscreen mode. */
.hgfc-app{--hgfc-chrome-offset:0px;--hgfc-top-height:124px;min-width:0;scroll-margin-top:var(--hgfc-chrome-offset)}
.hgfc-app .hgfc-shell{overflow:visible}.hgfc-app .hgfc-top{position:sticky;top:var(--hgfc-chrome-offset);z-index:40;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 18px;background:#13314c;color:#fff;border-bottom:3px solid #e7b94c;box-shadow:0 5px 13px #11283b24;border-radius:14px 14px 0 0}
.hgfc-top .hgfc-product-title{flex:1;min-width:160px}.hgfc-top .hgfc-product-title h2{font-size:20px;color:#fff;margin:0 0 3px;line-height:1.4}.hgfc-top .hgfc-product-title>b{color:#f2d88c;font-size:12px}.hgfc-top-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.hgfc-top .hgfc-help-button{background:#eff6fc;color:#163957;border-color:#c2d1e0}.hgfc-top .guide-full{background:#e4be4f;color:#182e43;border-color:#e4be4f}
.hgfc-top .hgfc-operation-nav{position:static;flex:0 0 100%;display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:4px 0;margin:0;background:transparent;border:0}.hgfc-top .hgfc-operation-nav button{min-height:40px;white-space:nowrap;color:#e7f2fc;background:#234d70;border:1px solid #52728e;border-radius:7px;padding:7px 13px}.hgfc-top .hgfc-operation-nav button.active{color:#162b40;background:#f5d779;border-color:#f5d779}
.hgfc-app .hgfc-kpi-grid{position:sticky;top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height));z-index:35;display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:8px;background:#f3f7fa;box-shadow:0 4px 8px #102f4318;border-radius:0 0 9px 9px;margin:8px 0 15px}.hgfc-app .hgfc-kpi-grid>.hgfc-kpi{flex:1 0 105px;min-width:105px;padding:8px 10px;min-height:65px;max-height:100px;line-height:1.5}.hgfc-app .hgfc-kpi-grid .hgfc-kpi strong,.hgfc-app .hgfc-kpi-grid .hgfc-kpi b{font-size:23px}.hgfc-app .hgfc-kpi-grid .hgfc-kpi span{font-size:11px;white-space:normal}
.hgfc-app .hgfc-overall{display:block;padding:16px}.hgfc-progress-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px;margin-bottom:10px}.hgfc-progress-pair>div{padding:12px;background:#e9f4fc;border-radius:10px;min-width:0}.hgfc-progress-pair>div:nth-child(2){background:#e7f5ee}.hgfc-progress-pair>div:nth-child(2) i{background:#168267}.hgfc-progress-pair .hgfc-bar{height:auto;min-height:58px}.hgfc-progress-pair .hgfc-bar>i{height:10px}.hgfc-progress-pair>div:nth-child(2) i{background:#c9e3d7}.hgfc-progress-pair>div:nth-child(2) i b{background:#168267}.hgfc-celebration{border:2px solid #ca9c29;border-radius:12px;background:#fff5cc;color:#513c06;padding:15px;margin-top:12px}.hgfc-celebration.closed{background:#dff6eb;color:#125f46;border-color:#238864}.hgfc-celebration b{font-size:20px}.hgfc-celebration p{margin:6px 0;line-height:1.8}
.hgfc-company-card{background:#f1f7fc;border:1px solid #c1d3e4;border-radius:12px;overflow:hidden}.hgfc-company-card>.hgfc-cycle{border:0;width:100%;text-align:right;background:transparent}.hgfc-invite-activated{padding:12px;background:#e0f4e8;color:#145d40;border-top:1px solid #8fc6a5}.hgfc-notices{background:#fff8df!important;border-color:#e4cc78!important}.hgfc-notices article{padding:10px 0;border-bottom:1px solid #e7daad}.hgfc-notices article:last-child{border:0}.hgfc-notices h3{color:#67521d}.hgfc-company-start{background:linear-gradient(110deg,#eff9f6,#f1f5fd)!important;border:2px solid #79aaa1!important}
.hgfc-app .hgfc-task.open{border:2px solid #477d99;border-inline-start:6px solid #176685;background:#edf7fb;box-shadow:0 3px 10px #12375217}.hgfc-app .hgfc-task.open>.hgfc-task-head{background:#daedf6}.hgfc-app .hgfc-task-body{padding:14px}.hgfc-app .hgfc-task-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hgfc-app .hgfc-task-info>div{margin:0;padding:10px;background:#fff;border-radius:7px}.hgfc-app .hgfc-timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin:10px 0}.hgfc-app .hgfc-timeline>div{padding:10px;min-width:0}.hgfc-app .hgfc-task-actions{padding:12px;margin-top:8px}.hgfc-app .hgfc-comments{background:#f5f1fc;border:1px solid #cec3e2;padding:12px;border-radius:9px;margin-top:10px}
.hgfc-app .hgfc-template-panel{background:#edf4fc}.hgfc-app [data-form="custom-control"]{border:2px solid #c09b53;background:#fff7e8;border-radius:12px;padding:16px}.hgfc-app [data-form="workspace-policy"] .is-saved{background:#176d50;color:#fff;border-color:#176d50}.hgfc-app [data-form="workspace-policy"]:has(input:focus) button{outline-offset:3px}
.hgfc-after-start{border-inline-start:5px solid #5089b1;background:#edf6fe;padding:16px;border-radius:8px;margin:12px 0;font-size:14px;line-height:1.9}.hgfc-after-start strong{font-size:17px}.hgfc-app .hgfc-section-title{gap:10px;flex-wrap:wrap}.hgfc-app .hgfc-section,.hgfc-app .hgfc-body,.hgfc-app .hgfc-form{min-width:0}.hgfc-app :is(input,select,textarea){max-width:100%;box-sizing:border-box;scroll-margin-top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + 120px)}.hgfc-app :is(button,a):focus-visible,.hgfc-full-guide-dialog :is(button,a):focus-visible{outline:3px solid #bd7300;outline-offset:3px}.hgfc-app .hgfc-task{scroll-margin-top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + 120px)}
.hgfc-toast{position:fixed!important;inset:auto max(16px,env(safe-area-inset-right)) max(85px,env(safe-area-inset-bottom)) auto!important;z-index:9999999!important;display:flex;align-items:center;gap:12px;max-width:min(520px,calc(100vw - 32px));padding:14px 16px;border:2px solid #2e8469;border-radius:12px;background:#ecfbf4;color:#165743;box-shadow:0 8px 35px #132f4566;font-size:14px;line-height:1.8;transform:none!important}.hgfc-toast.error{background:#fff0f0;border-color:#ba4747;color:#8d2626}.hgfc-toast.warning{background:#fff7df;border-color:#c39329;color:#6f510a}.hgfc-toast.info{background:#eaf4fc;border-color:#5882a7;color:#204f73}.hgfc-toast>b{font-size:24px}.hgfc-toast button{margin:0;border:0;background:transparent;color:inherit;min-width:34px;min-height:34px;font-size:26px;cursor:pointer}
.hgfc-manual .hgfc-manual-hero{position:sticky;top:var(--hgs-public-offset,0px);z-index:38;padding:13px 18px!important;display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;background:#153950;color:#fff;border-radius:10px}.hgfc-manual-hero h2{font-size:21px!important;margin:0!important;color:#fff!important}.hgfc-manual-hero>div{display:flex;gap:7px;flex-wrap:wrap}.hgfc-manual-section{padding:20px;border:1px solid #c2d6e3;border-inline-start:5px solid #4185a4;background:#eef8fc;border-radius:12px;margin:16px 0}.hgfc-manual-section:nth-of-type(3n+1){border-color:#a7ccbd;background:#edf9f2}.hgfc-manual-section:nth-of-type(3n+2){border-color:#d2bb8f;background:#fff8e9}.hgfc-manual-section:nth-of-type(3n){border-color:#c6b6d9;background:#f5effb}.hgfc-manual-section h2{font-size:21px}.hgfc-manual-section h3{font-size:17px}.hgfc-manual-section p{line-height:1.95}.hgfc-manual-section article{min-width:0}
.hgfc-full-guide-dialog{padding:0;border:1px solid #7797b2;border-radius:15px;width:940px;max-width:calc(100vw - 28px);height:min(88dvh,950px);max-height:90dvh;color:#183448;background:#fff;box-sizing:border-box;overflow:auto}.hgfc-full-guide-dialog::backdrop{background:#102740b3}.hgfc-full-guide-dialog>.hgfc-dialog-bar{position:sticky;top:0;background:#163b55;color:white;padding:13px 18px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px}.hgfc-full-guide-dialog>.hgfc-dialog-bar button{background:#fff;color:#163b55;border:1px solid #9fbdcd;border-radius:7px;min-height:44px;min-width:55px}.hgfc-full-guide-dialog .hgfc-dialog-content>.hgfc-manual{padding:10px 18px}.hgfc-full-guide-dialog .hgfc-manual-hero{position:static}.hgfc-full-guide-dialog .hgfc-manual-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
@media(max-width:760px){.hgfc-app .hgfc-top{padding:9px 10px;gap:7px}.hgfc-top .hgfc-product-title h2{font-size:17px}.hgfc-top .hgfc-product-title>b{font-size:11px}.hgfc-top .hgfc-top-actions{display:flex;gap:5px;flex:1 0 100%}.hgfc-top-actions>button{flex:1;padding:7px;min-height:40px;font-size:12px}.hgfc-top .hgfc-operation-nav button{min-height:40px;padding:6px 11px;font-size:12px}.hgfc-app .hgfc-kpi-grid{gap:5px;padding:5px}.hgfc-app .hgfc-kpi-grid>.hgfc-kpi{min-height:60px;min-width:97px;flex-basis:97px;padding:5px 8px}.hgfc-app .hgfc-task-info{grid-template-columns:1fr}.hgfc-app .hgfc-timeline{grid-template-columns:1fr}.hgfc-app .hgfc-section{padding:12px}.hgfc-app .hgfc-task-body{padding:10px}.hgfc-progress-pair{gap:8px;grid-template-columns:1fr 1fr}.hgfc-progress-pair>div{padding:8px}.hgfc-manual .hgfc-manual-hero{padding:10px!important}.hgfc-manual-hero h2{font-size:17px!important}.hgfc-manual-hero .hgfc-btn{font-size:12px;min-height:40px}.hgfc-manual-section{padding:12px}.hgfc-manual-section h2{font-size:19px}.hgfc-full-guide-dialog{max-width:calc(100vw - 14px);height:92dvh;max-height:92dvh}.hgfc-full-guide-dialog .hgfc-dialog-content>.hgfc-manual{padding:5px 10px}.hgfc-app .hgfc-form input,.hgfc-app .hgfc-form select,.hgfc-app .hgfc-form button{min-height:44px}.hgfc-app .hgfc-task-actions button{min-height:44px}.hgfc-toast{font-size:13px;padding:10px;bottom:max(82px,env(safe-area-inset-bottom))!important}.hgfc-toast button{min-width:40px;min-height:40px}}
@media(prefers-reduced-motion:reduce){.hgfc-app *,.hgfc-full-guide-dialog *{scroll-behavior:auto!important;transition:none!important}}

.hgfc-full-guide-dialog .hgfc-dialog-content{padding:10px}.hgfc-full-guide-dialog .hgfc-manual-hero{top:0}.hgfc-manual-hero>span{color:#e1c66f}.hgfc-manual-hero h2{flex:1;min-width:180px}.hgfc-app #hgfc-company-template{background:#edf4fc;border-color:#92b4d2}

@media(max-width:760px){.hgfc-app .hgfc-top-actions .hgfc-help-button,.hgfc-app .hgfc-top-actions .guide-full{width:auto;flex:1 1 0;min-width:0}.hgfc-app .hgfc-top .hgfc-top-actions{flex-wrap:nowrap}}
/* The legacy narrow layout used column flex; these two entry actions stay side-by-side. */
.hgfc-top .guide-full{color:#182e43!important}
@media(max-width:760px){.hgfc-app .hgfc-top .hgfc-top-actions{flex-direction:row;align-items:stretch}.hgfc-app .hgfc-top .hgfc-top-actions>button{justify-content:center;min-height:44px}}

/* 3.4.2 — focused density/navigation polish; no business-state changes. */
.hgfc-app .hgfc-top{
  flex-wrap:nowrap;
  align-items:center;
  gap:8px;
  min-height:58px;
  padding:8px 12px;
}
.hgfc-top .hgfc-product-title{
  flex:0 1 auto;
  min-width:150px;
  max-width:260px;
}
.hgfc-top .hgfc-product-title h2{
  font-size:18px;
  line-height:1.25;
  margin:0 0 1px;
}
.hgfc-top .hgfc-product-title>b{
  font-size:11px;
  line-height:1.35;
}
.hgfc-top .hgfc-operation-nav{
  position:static;
  flex:0 1 auto;
  width:auto;
  min-width:0;
  max-width:min(520px,48vw);
  padding:0;
  margin:0;
  gap:5px;
  background:transparent;
  border:0;
}
.hgfc-top .hgfc-operation-nav button{
  min-height:34px;
  padding:5px 10px;
  font-size:12px;
  line-height:1.3;
}
.hgfc-top .hgfc-top-actions{
  flex:0 0 auto;
  flex-wrap:nowrap;
  gap:5px;
  margin-inline-start:auto;
}
.hgfc-top .hgfc-top-actions>button{
  min-height:34px;
  padding:5px 9px;
  font-size:12px;
  white-space:nowrap;
}
.hgfc-top .hgfc-help-button{
  min-height:34px;
  padding:5px 9px;
}
.hgfc-top .hgfc-help-button span{width:18px;height:18px}

/* Notices: compact, scannable cards rather than one tall yellow panel. */
.hgfc-app .hgfc-notices{
  padding:13px 15px;
  background:linear-gradient(135deg,#fff9e8,#fffdf6)!important;
  border-color:#e3cf91!important;
}
.hgfc-notices>h3{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:16px;
  margin:0;
}
.hgfc-notices>h3:before{
  content:"!";
  display:grid;
  place-items:center;
  width:21px;
  height:21px;
  border-radius:50%;
  background:#e8c75f;
  color:#513f08;
  font-size:12px;
  font-weight:900;
}
.hgfc-notices .hgfc-alerts{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:8px;
  margin:8px 0 0;
}
.hgfc-notices .hgfc-notice-card{
  position:relative;
  display:grid;
  align-content:start;
  gap:2px;
  min-width:0;
  padding:9px 11px;
  border:1px solid #eadcae;
  border-inline-start:4px solid #d4aa2a;
  border-radius:9px;
  background:rgba(255,255,255,.82);
}
.hgfc-notices .hgfc-notice-card b{font-size:13.5px;line-height:1.55;color:#40320c}
.hgfc-notices .hgfc-notice-card p{margin:0;font-size:12.5px;line-height:1.65;color:#665c40}
.hgfc-notices .hgfc-notice-card small{font-size:11.5px;color:#786b4c}
.hgfc-notices .hgfc-notice-card .hgfc-btn{justify-self:start;margin-top:5px}

/* Cycle heading: destination/back and export belong to the same action cluster. */
.hgfc-app .hgfc-cycle-summary{padding:13px 15px}
.hgfc-app .hgfc-cycle-head{align-items:center}
.hgfc-app .hgfc-cycle-head>div:first-child{min-width:0}
.hgfc-app .hgfc-cycle-head h3{font-size:20px;line-height:1.35}
.hgfc-app .hgfc-cycle-head p{font-size:12.5px;line-height:1.55}
.hgfc-app .hgfc-cycle-actions{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:6px;
  margin-inline-start:auto;
}
.hgfc-app .hgfc-cycle-actions>.hgfc-btn,
.hgfc-app .hgfc-cycle-actions>.hgfc-report-menu>summary{
  min-height:36px;
  padding:6px 10px;
  white-space:nowrap;
}

/* Sticky live KPI rail: one compact line per metric. */
.hgfc-app .hgfc-kpi-grid{
  top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height));
  gap:5px;
  padding:5px 6px;
  margin:6px 0 10px;
  border:1px solid #d8e4eb;
  border-radius:0 0 8px 8px;
  background:#f4f8fa;
  box-shadow:0 4px 9px #102f4315;
}
.hgfc-app .hgfc-kpi-grid>.hgfc-kpi{
  display:flex;
  flex:1 0 155px;
  min-width:155px;
  min-height:40px;
  max-height:40px;
  padding:5px 9px;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius:8px;
  line-height:1.2;
}
.hgfc-app .hgfc-kpi-grid .hgfc-kpi strong,
.hgfc-app .hgfc-kpi-grid .hgfc-kpi b{
  flex:0 0 auto;
  margin:0;
  font-size:19px;
  line-height:1;
}
.hgfc-app .hgfc-kpi-grid .hgfc-kpi span{
  flex:0 0 auto;
  font-size:11.5px;
  line-height:1.2;
  white-space:nowrap;
}

/* Open control: reduce vertical travel while keeping every field and action visible. */
.hgfc-app .hgfc-task.open{
  border-width:1px;
  border-inline-start-width:5px;
  box-shadow:0 2px 7px #12375212;
}
.hgfc-app .hgfc-task.open>.hgfc-task-head{
  min-height:0;
  padding:9px 11px;
  background:#dfeff6;
}
.hgfc-app .hgfc-task.open .hgfc-task-head>div{gap:2px}
.hgfc-app .hgfc-task.open .hgfc-task-head strong{font-size:13.5px;line-height:1.45}
.hgfc-app .hgfc-task.open .hgfc-task-head small{font-size:11.5px;line-height:1.45}
.hgfc-app .hgfc-task.open .hgfc-task-body{padding:9px 10px 11px}
.hgfc-app .hgfc-task.open .hgfc-task-info{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.hgfc-app .hgfc-task.open .hgfc-task-info>div{
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:start;
  gap:6px;
  padding:7px 9px;
  border-radius:7px;
}
.hgfc-app .hgfc-task.open .hgfc-task-info>div>b{
  color:#31546c;
  font-size:12px;
  line-height:1.6;
  white-space:nowrap;
}
.hgfc-app .hgfc-task.open .hgfc-task-info>div>p{
  margin:0;
  color:#40586a;
  font-size:12.5px;
  line-height:1.6;
}
.hgfc-app .hgfc-task.open .hgfc-timeline{gap:6px;margin:8px 0}
.hgfc-app .hgfc-task.open .hgfc-timeline>div{padding:7px 8px}
.hgfc-app .hgfc-task.open .hgfc-timeline i{width:22px;height:22px;font-size:11px}
.hgfc-app .hgfc-task.open .hgfc-action-box,
.hgfc-app .hgfc-task.open .hgfc-return-box,
.hgfc-app .hgfc-task.open .hgfc-return-note,
.hgfc-app .hgfc-task.open .hgfc-task-actions{
  padding:9px 10px;
  margin-top:7px;
}
.hgfc-app .hgfc-task.open .hgfc-task-tools{margin-top:7px}

/* Responsive: keep density, but never force unreadable one-row navigation. */
@media(max-width:900px){
  .hgfc-app .hgfc-top{flex-wrap:wrap}
  .hgfc-top .hgfc-product-title{flex:1 1 170px;max-width:none}
  .hgfc-top .hgfc-operation-nav{order:3;flex:1 0 100%;max-width:100%}
  .hgfc-top .hgfc-top-actions{margin-inline-start:0}
}
@media(max-width:620px){
  .hgfc-app .hgfc-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:7px 8px}
  .hgfc-top .hgfc-product-title{grid-column:1/2;min-width:0}
  .hgfc-top .hgfc-top-actions{grid-column:2/3;width:auto;display:flex;gap:4px}
  .hgfc-top .hgfc-top-actions>button{min-width:0;min-height:34px;padding:5px 7px;font-size:11px}
  .hgfc-top .hgfc-operation-nav{grid-column:1/-1;width:100%;max-width:100%;padding:0;overflow-x:auto}
  .hgfc-top .hgfc-operation-nav button{min-height:34px;padding:5px 9px;font-size:11.5px}
  .hgfc-app .hgfc-kpi-grid{padding:4px}
  .hgfc-app .hgfc-kpi-grid>.hgfc-kpi{flex-basis:145px;min-width:145px;min-height:38px;max-height:38px;padding:4px 8px}
  .hgfc-app .hgfc-kpi-grid .hgfc-kpi b{font-size:18px}
  .hgfc-notices .hgfc-alerts{grid-template-columns:1fr}
  .hgfc-app .hgfc-cycle-head{display:grid;gap:8px}
  .hgfc-app .hgfc-cycle-actions{margin:0;overflow-x:auto;justify-content:flex-start}
  .hgfc-app .hgfc-cycle-actions>.hgfc-btn,
  .hgfc-app .hgfc-cycle-actions>.hgfc-report-menu{flex:0 0 auto;width:auto}
  .hgfc-app .hgfc-cycle-actions>.hgfc-report-menu>summary{width:auto}
  .hgfc-app .hgfc-task.open .hgfc-task-info{grid-template-columns:1fr}
  .hgfc-app .hgfc-task.open .hgfc-task-info>div{grid-template-columns:max-content minmax(0,1fr)}
}


/* 3.4.2 mobile finishing pass from real screenshot review. */
.hgfc-app .hgfc-task.open .hgfc-action-box textarea,
.hgfc-app .hgfc-task.open .hgfc-return-box textarea{min-height:60px}
@media(max-width:620px){
  .hgfc-app .hgfc-cycle-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    overflow:visible;
    width:100%;
  }
  .hgfc-app .hgfc-cycle-actions>.hgfc-btn,
  .hgfc-app .hgfc-cycle-actions>.hgfc-report-menu,
  .hgfc-app .hgfc-cycle-actions>.hgfc-report-menu>summary{
    width:100%;
    min-width:0;
    justify-content:center;
  }
  .hgfc-app .hgfc-task.open .hgfc-task-info{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .hgfc-app .hgfc-task.open .hgfc-task-info>div{
    grid-template-columns:1fr;
    gap:2px;
    align-content:start;
  }
  .hgfc-app .hgfc-task.open .hgfc-task-info>div>b{white-space:normal}
}


/* 3.4.3: explicit stale-version recovery; visible even when the previous filter no longer matches. */
.hgfc-task.conflict-recovery{outline:2px solid color-mix(in srgb,currentColor 20%,transparent);outline-offset:2px}
.hgfc-conflict-recovery{margin:0 0 12px;padding:10px 12px;border:1px solid #d8b04c;border-radius:10px;background:#fff8df;color:#594100}
.hgfc-conflict-recovery b{display:block;margin-bottom:3px}
.hgfc-conflict-recovery p{margin:0;line-height:1.7}

/* 3.4.4-rc1: progress cards must use the available content width.
 * Override the older .hgfc-overall>div:first-child flex rule explicitly. */
.hgfc-app .hgfc-overall > .hgfc-progress-pair{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.hgfc-app .hgfc-bar{width:100%;min-width:0}
.hgfc-app .hgfc-progress-pair > .hgfc-bar:only-child{grid-column:1/-1}
.hgfc-app .hgfc-bar > div{gap:8px;align-items:baseline}
.hgfc-app .hgfc-bar > div > span{min-width:0;overflow-wrap:anywhere}
.hgfc-app .hgfc-bar > div > small{flex-shrink:0;white-space:nowrap}
.hgfc-app .hgfc-bar > i{width:100%}
@media(max-width:620px){
  .hgfc-app .hgfc-overall > .hgfc-progress-pair{grid-template-columns:minmax(0,1fr)}
}

/* 3.4.6: clear entry action and responsive company navigation. */
.hgfc-app .hgfc-company-enter{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;padding:9px 18px;min-height:44px;border-radius:10px;background:#176451;color:#fff;font-size:15px;font-weight:700;line-height:1.5}
.hgfc-app .hgfc-company-card .hgfc-cycle:focus-visible{outline:3px solid #ba810c;outline-offset:3px}
.hgfc-app .hgfc-company-card [aria-busy=true]{opacity:.75;cursor:progress}
.hgfc-app .hgfc-top-company .hgfc-company-menu{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.hgfc-app .hgfc-menu-toggle{display:none}
.hgfc-app .hgfc-queue-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:18px;padding:16px;border:1px solid #c9dfdc;border-radius:12px;background:#f0f8f5}
.hgfc-app .hgfc-queue-footer p{margin:0}.hgfc-app .hgfc-queue-footer small{flex-basis:100%;color:#45665e}
#hgfc-cycle-controls{scroll-margin-top:calc(var(--hgfc-chrome-offset,0px) + var(--hgfc-top-height,64px) + 18px)}
@media(max-width:760px){
.hgfc-app .hgfc-top.hgfc-top-company{display:flex;flex-wrap:nowrap;gap:12px;padding:10px 12px;min-height:64px;overflow:visible}
.hgfc-app .hgfc-top-company .hgfc-product-title{flex:1;min-width:0;max-width:none}
.hgfc-app .hgfc-top-company .hgfc-product-title h2{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.6}
.hgfc-app .hgfc-top-company .hgfc-product-title>b{display:block;font-size:11px}
.hgfc-app .hgfc-menu-toggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #e7ce72;border-radius:10px;background:#ffe18b;color:#17374c;font-size:24px;cursor:pointer}
.hgfc-app .hgfc-top-company .hgfc-company-menu{display:none;position:absolute;inset-inline:0;top:100%;flex-direction:column;align-items:stretch;gap:10px;max-height:calc(100vh - var(--hgfc-chrome-offset,0px) - 160px);max-height:calc(100dvh - var(--hgfc-chrome-offset,0px) - 160px);overflow:auto;padding:14px;background:#17394f;border:1px solid #3b617b;border-radius:0 0 14px 14px;box-shadow:0 12px 24px #132a3933;z-index:4}
.hgfc-app .hgfc-top-company.is-menu-open .hgfc-company-menu{display:flex}
.hgfc-app .hgfc-company-menu .hgfc-operation-nav,.hgfc-app .hgfc-company-menu .hgfc-top-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:none;margin:0;padding:0;gap:8px;order:0;flex:none}
.hgfc-app .hgfc-company-menu .hgfc-top-actions>button,.hgfc-app .hgfc-company-menu .hgfc-operation-nav>button{width:100%;min-height:46px!important;font-size:14px!important;justify-content:center;white-space:normal!important}
.hgfc-app .hgfc-company-menu [data-view=overview]{background:#ffe18b;color:#243b4d}.hgfc-app .hgfc-company-menu [data-view=cycles]{background:#dcecfb;color:#1d4c72}.hgfc-app .hgfc-company-menu [data-view=settings],.hgfc-app .hgfc-company-menu [data-go-view]{background:#dff3e8;color:#1c614a}
.hgfc-app .hgfc-company-menu [data-home]{background:#f1e9ff;color:#62417c}.hgfc-app .hgfc-company-menu [data-open-guide]{background:#fff0d7;color:#764d12}
.hgfc-app .hgfc-company-menu button.active{outline:2px solid #fff;outline-offset:1px}
.hgfc-app .hgfc-queue-footer{align-items:stretch}.hgfc-app .hgfc-queue-footer .hgfc-btn{width:100%;min-height:46px}
.hgfc-app input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.hgfc-app select,.hgfc-app textarea{font-size:max(16px,1em)!important}
}

/* 4.3.0: staged onboarding, contextual help, role-safe work queues and plan presentation. */
.hgfc-stage-guide{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 14px;padding:14px 16px;border:1px solid #cfe1dc;border-radius:12px;background:#f2f9f6;color:#23473f}
.hgfc-stage-guide>div{min-width:0}.hgfc-stage-guide small{display:block;margin-bottom:3px;color:#56756d;font-weight:700}.hgfc-stage-guide b{display:block;color:#173f38;font-size:15px}.hgfc-stage-guide p{margin:4px 0 0!important;line-height:1.8}
.hgfc-step-continue{display:flex;align-items:center;justify-content:space-between;gap:16px;border-color:#cfe1dc;background:#f6fbf9}.hgfc-step-continue p{margin:3px 0 0!important}
.hgfc-template-finalize{border-color:#a9d2ca;background:#f4fbf8}.hgfc-template-finalize .hgfc-template-confirm{margin:0}.hgfc-template-confirm>div{min-width:0}.hgfc-template-confirm small{display:block;color:#56756d;font-weight:800;margin-bottom:3px}
.hgfc-role-tasks{display:grid;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.hgfc-role-tasks h4,.hgfc-role-tasks p{margin:0}.hgfc-role-tasks>button{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 10px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:right;color:var(--ink)}.hgfc-role-tasks>button strong{min-width:0}.hgfc-role-tasks>button small{grid-column:2;color:var(--muted)}
.hgfc-stage-tabs{background:rgba(255,255,255,.97);backdrop-filter:blur(7px)}

.hgfc-plans-process{direction:rtl;margin:0 auto 22px;padding:22px 24px;border:1px solid #cfe4df;border-radius:16px;background:#edf7f4;color:#285047;line-height:1.9;box-shadow:0 7px 22px rgba(25,61,67,.045)}
.hgfc-plans-process>span{display:inline-flex;margin-bottom:5px;padding:3px 9px;border-radius:7px;background:#dcefeb;color:#12675d;font-size:13px;font-weight:800}.hgfc-plans-process h2{margin:0 0 7px;color:#173f38;font-size:clamp(20px,3vw,27px);line-height:1.55}.hgfc-plans-process p{margin:0;color:#4f6862}
#hg-close-intro{--hg-text:#20343b;--hg-title:#102f38;--hg-muted:#60727a;--hg-border:#dce8e7;--hg-bg:#f7faf9;--hg-card:#fff;--hg-primary:#176c62;--hg-primary-dark:#12554d;direction:rtl;margin:28px auto 0;padding:30px;border:1px solid var(--hg-border);border-radius:18px;background:linear-gradient(180deg,#fbfdfc 0%,var(--hg-bg) 100%);color:var(--hg-text);font-family:inherit;line-height:1.9;box-shadow:0 8px 28px rgba(25,61,67,.055)}
#hg-close-intro .hg-kicker{display:inline-flex;align-items:center;gap:7px;margin:0 0 8px;padding:4px 10px;border-radius:8px;background:#e9f4f1;color:var(--hg-primary-dark);font-size:13px;font-weight:700}#hg-close-intro .hg-kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--hg-primary)}#hg-close-intro h2{margin:0 0 9px;color:var(--hg-title);font-size:clamp(22px,3vw,30px);line-height:1.5;font-weight:800}#hg-close-intro .hg-lead{margin:0 0 23px;color:var(--hg-muted);font-size:15.5px;line-height:2}
#hg-close-intro ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}#hg-close-intro li{--accent:#176c62;--accent-soft:#edf7f4;position:relative;padding:14px 15px 14px 14px;border-radius:13px;background:var(--hg-card);border:1px solid #e1eae9;border-right:3px solid var(--accent);transition:border-color .2s ease,box-shadow .2s ease}#hg-close-intro li:nth-child(1){--accent:#176c62;--accent-soft:#e9f5f2}#hg-close-intro li:nth-child(2){--accent:#28729a;--accent-soft:#edf6fa}#hg-close-intro li:nth-child(3){--accent:#7b659e;--accent-soft:#f4f0f8}#hg-close-intro li:nth-child(4){--accent:#a67525;--accent-soft:#faf4e8}#hg-close-intro li:hover{border-color:#cedfdd;border-right-color:var(--accent);box-shadow:0 5px 16px rgba(29,55,60,.055)}#hg-close-intro .hg-item-title{display:flex;align-items:center;gap:9px;margin-bottom:2px;color:#263b42;font-weight:800;line-height:1.7}#hg-close-intro .hg-item-title::before{content:"✓";display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-size:14px;font-weight:900}#hg-close-intro .hg-item-desc{display:block;padding-right:34px;color:#718087;font-size:13px;line-height:1.8}
#hg-close-intro .hg-support{display:flex;align-items:center;gap:11px;margin:22px 0 0;padding:14px 16px;border:1px solid #cfe4df;border-radius:12px;background:#edf7f4;color:#285047}#hg-close-intro .hg-support-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#dcefeb;color:var(--hg-primary);font-size:17px;font-weight:900}#hg-close-intro .hg-support-text{min-width:0}#hg-close-intro .hg-support strong{color:#173f38}#hg-close-intro .hg-phone{display:inline-block;direction:ltr;unicode-bidi:isolate;margin-right:3px;color:#12675d;font-weight:800;white-space:nowrap}

@media(min-width:981px){
 .hgfc-app .hgfc-setup-path{position:sticky;top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + 8px);z-index:32;box-shadow:0 5px 14px rgba(17,51,70,.08)}
 .hgfc-app .hgfc-readiness-summary{position:sticky;top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + 8px);z-index:31;padding:9px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 12px rgba(17,51,70,.06)}
 .hgfc-app .hgfc-stage-tabs{position:sticky;top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + 8px);z-index:30;padding:8px 0}
 .hgfc-app .hgfc-cycle-summary{position:sticky;top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + 8px);z-index:29;box-shadow:0 5px 14px rgba(17,51,70,.06)}
}
@media(max-width:650px){#hg-close-intro{padding:22px 18px}#hg-close-intro ul{grid-template-columns:1fr}#hg-close-intro .hg-support{align-items:flex-start}.hgfc-stage-guide,.hgfc-step-continue{flex-direction:column;align-items:stretch}}

/* 4.3.1: compact, non-overlapping desktop status summaries. */
@media(min-width:1000px){
 .hgfc-app .hgfc-template-summary,.hgfc-app .hgfc-readiness-summary{position:sticky;top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + var(--hgfc-setup-height,0px) + 16px);z-index:31;background:#f3f8fc;border:1px solid #bcd1df;border-radius:10px;padding:10px;box-shadow:0 4px 12px #17384c18}
 .hgfc-app .hgfc-stage-tabs{top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + var(--hgfc-summary-height,0px) + 16px);background:#fff}
 .hgfc-app .hgfc-cycle-summary{z-index:32}
 .hgfc-app .hgfc-kpi-grid{position:static}
}
@media(max-width:999px){.hgfc-app .hgfc-template-summary,.hgfc-app .hgfc-cycle-summary,.hgfc-app .hgfc-readiness-summary,.hgfc-app .hgfc-stage-tabs,.hgfc-app .hgfc-kpi-grid{position:static}}

.hgfc-app .hgfc-action-hint{padding:12px 15px;background:#fff6df;color:#765009;border:1px solid #e9ce91;border-radius:10px;line-height:1.9}

.hgfc-app .hgfc-cycle-progress{display:flex;flex-wrap:wrap;gap:8px 16px;border-top:1px solid var(--line);padding-top:8px;margin-top:9px;font-size:12px;color:var(--muted)}
.hgfc-app .hgfc-cycle-progress span{display:inline-flex;gap:6px;align-items:center}.hgfc-app .hgfc-cycle-progress b{color:var(--ink);font-size:14px}

.hgfc-member-progress{margin-top:1.25rem;padding:1rem;border:1px solid #d8e2ec;border-radius:12px;background:#f8fafc}
.hgfc-member-progress article{margin-top:1rem;padding:1rem;background:#fff;border:1px solid #e2e8f0;border-radius:10px}
.hgfc-member-progress h5{font-size:1rem;margin:0 0 .8rem}.hgfc-member-progress h5 small{font-weight:400;color:#475569}
.hgfc-member-unit{padding:.65rem 0;border-top:1px solid #e2e8f0}.hgfc-member-unit>b{display:block;margin-bottom:.5rem}.hgfc-member-unit>small{display:block;color:#475569}

/* 4.4.1 — requested compact navigation, independent click targets and member summaries. */
.hgfc-app .hgfc-control-row>details>summary{display:block;min-height:40px;min-width:86px;padding:7px 15px;border:1px solid #bad0dd;border-radius:7px;background:#f1f7fa;text-align:center}
.hgfc-app .hgfc-filterbar{grid-template-columns:minmax(180px,2fr) minmax(120px,1fr) minmax(120px,1fr) auto;align-items:center;padding:9px;background:#f1f6fa;border:1px solid #d4e1e9;border-radius:9px}
.hgfc-app .hgfc-filterbar>*{min-width:0}.hgfc-app .hgfc-filter-reset{white-space:nowrap}
.hgfc-app .hgfc-member-collapse{border:1px solid var(--line);border-inline-start:4px solid var(--role-color,#8296a3);border-radius:9px;background:var(--role-bg,#f5f8fa);margin:8px 0}
.hgfc-app .hgfc-member-collapse>summary{display:flex;gap:10px;align-items:center;padding:11px 13px;cursor:pointer;list-style:none}
.hgfc-app .hgfc-member-collapse>summary>span{flex:1;color:#4b6274;font-size:12px}.hgfc-app .hgfc-member-collapse>summary>b{font-size:12px;color:#176b87}
.hgfc-app .hgfc-member-collapse .member-edit{margin:0;border:0;border-top:1px solid var(--line);border-radius:0 0 8px 8px;background:white;grid-template-columns:minmax(160px,1fr) 160px minmax(180px,2fr) auto}
.hgfc-role-9{--role-color:#238b5d;--role-bg:#eef9f1}.hgfc-role-1{--role-color:#287eba;--role-bg:#eef6ff}.hgfc-role-2{--role-color:#8a57b5;--role-bg:#f7f1fc}.hgfc-role-3{--role-color:#ad7820;--role-bg:#fff7e8}
.hgfc-app .hgfc-activity-row{display:grid;gap:3px;padding:9px 12px;margin:7px 0;background:var(--role-bg);border-inline-start:3px solid var(--role-color);border-radius:7px}.hgfc-activity-row small,.hgfc-activity-row span{font-size:12px}.hgfc-member-activity>button{margin-top:8px}
.hgfc-app .hgfc-stats-dialog{width:850px;max-width:calc(100vw - 28px);max-height:86vh;padding:16px;border:1px solid #abc1d0;border-radius:12px;color:var(--ink);font:inherit;background:white}.hgfc-stats-dialog::backdrop{background:#15324b99}.hgfc-stats-bar{display:flex;gap:10px;align-items:center;justify-content:space-between;position:sticky;top:-16px;background:white;padding:8px 0;z-index:1}.hgfc-stats-bar h3{margin:0}.hgfc-stats-dialog .hgfc-member-progress article{background:var(--role-bg);border-inline-start:4px solid var(--role-color);padding:12px;margin:12px 0;border-radius:8px}
.hgfc-return-target{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:9px 0}.hgfc-return-target label{display:grid;gap:4px;flex:1;min-width:180px}.hgfc-return-target small{flex-basis:100%}.hgfc-unsent-drafts label{display:grid;margin:10px 0}
@media(min-width:1000px){
 .hgfc-app .hgfc-setup-path,.hgfc-app .hgfc-cycle-summary{top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height))}
 .hgfc-app .hgfc-template-summary,.hgfc-app .hgfc-readiness-summary{top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + var(--hgfc-setup-height,0px))}
 .hgfc-app .hgfc-stage-tabs{top:calc(var(--hgfc-chrome-offset) + var(--hgfc-top-height) + var(--hgfc-summary-height,0px))}
}
@media(max-width:900px){.hgfc-app .hgfc-filterbar{grid-template-columns:1fr 1fr}.hgfc-app .hgfc-filterbar input{grid-column:1/-1}.hgfc-app .hgfc-member-collapse .member-edit{grid-template-columns:1fr 1fr}.hgfc-member-collapse>summary{flex-wrap:wrap}}
@media(max-width:620px){.hgfc-app .hgfc-filterbar{grid-template-columns:1fr}.hgfc-app .hgfc-member-collapse .member-edit{grid-template-columns:1fr}.hgfc-app .hgfc-member-collapse>summary>span{flex-basis:100%}.hgfc-stats-bar h3{font-size:16px}}
/* Period selection and the structural edit boundary. */
.hgfc-draft-choices{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}
.hgfc-draft-choices [aria-current="true"]{outline:2px solid #187568;outline-offset:2px}
.hgfc-structure-lock{margin:16px 0}
.hgfc-structure-lock p{margin:8px 0 12px}
.hgfc-owner-undo small{display:block;margin-top:8px}
.hgfc-unit-card.is-inactive{opacity:.72;background:#f6f8fa;border-style:dashed}
.hgfc-task-tools button{display:inline-flex;align-items:center;gap:6px}
.hgfc-task-dots{display:inline-flex;align-items:center;gap:4px;margin-inline-start:4px;vertical-align:middle}
.hgfc-task-dots i{width:8px;height:8px;border-radius:50%;display:inline-block}
.hgfc-task-dots .dot-msg{background:#16a34a;box-shadow:0 0 0 2px rgba(22,163,74,.16)}
.hgfc-task-dots .dot-return{background:#c9a227;box-shadow:0 0 0 2px rgba(201,162,39,.18)}
.hgfc-event-list>.hgfc-thread-comment{display:grid;gap:2px;grid-template-columns:1fr;padding:8px 0;border-bottom:1px solid var(--line)}
.hgfc-event-list>.hgfc-thread-comment b{color:var(--ink)}
.hgfc-event-list>.hgfc-thread-comment p{margin:0;white-space:pre-wrap}
.hgfc-event-list>.hgfc-thread-event{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:start}

/* Stable geometry at the sticky boundary; selected filters stay distinct. */
.hgfc-app .hgfc-stage-tabs{background:#eaf2f7;border:1px solid #b7cddd;padding:6px;margin:0 0 12px;border-radius:10px}
.hgfc-app .hgfc-stage-tabs button.active{background:#153b56;color:#fff;box-shadow:none}
.hgfc-app .hgfc-stage-tabs button:focus-visible{outline:2px solid #237b99;outline-offset:2px}
.hgfc-member-mobile{display:inline-block;font-size:13px;font-weight:400;margin-inline-start:8px;white-space:nowrap}
.hgfc-app .hgfc-trend-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hgfc-app .hgfc-trend-metric{display:grid;gap:3px;text-align:center}
.hgfc-app .hgfc-trend-metric strong{font-size:24px;line-height:1.4;color:var(--blue)}
.hgfc-app .hgfc-trend-metric small{white-space:normal}
@media(max-width:620px){.hgfc-app .hgfc-trend>button{grid-template-columns:1fr}.hgfc-app .hgfc-trend-metrics{gap:6px}.hgfc-app .hgfc-trend-metric strong{font-size:22px}.hgfc-app .hgfc-trend-metric small:first-child{min-height:2.8em}}
/* 4.5.3: scoped stage progress and the purchased home guide. */
.hgfc-app .hgfc-overall > .hgfc-stage-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.hgfc-app .hgfc-stage-progress .hgfc-bar>div{align-items:center;gap:8px;flex-wrap:wrap}
.hgfc-app .hgfc-stage-percent{font-size:20px;font-weight:800;color:#15354b;white-space:nowrap}
.hgfc-app .hgfc-progress-basis{display:block;margin-top:12px;line-height:1.9}
.hgfc-app .hgfc-progress-basis>span{display:inline-block;padding:2px 10px;margin-inline-end:8px;border-radius:8px;background:#edf4fa;color:#173b55;font-weight:700}
.hgfc-app .hgfc-btn.hgfc-continue-controls{background:#b4232d;border-color:#b4232d;color:#fff}
.hgfc-app .hgfc-btn.hgfc-continue-controls:hover{background:#931c25;border-color:#931c25}
.hgfc-app .hgfc-home-intro{margin:0 0 18px;border:1px solid #ddbc49;border-radius:14px;overflow:clip;background:#fff}
.hgfc-app .hgfc-home-intro>summary{cursor:pointer;list-style-position:inside;background:#f9dc70;color:#17344b;padding:16px 20px;font-weight:800;line-height:1.9}
.hgfc-app .hgfc-home-intro>summary:focus-visible{outline:3px solid #168cbe;outline-offset:-4px}
.hgfc-app .hgfc-intro-hint{display:inline-block;font-size:12px;font-weight:500;margin-inline-start:16px}
.hgfc-app .hgfc-home-intro-content{padding:22px;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
.hgfc-app .hgfc-home-intro-content.has-video{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.hgfc-app .hgfc-home-intro-text{line-height:2.1;overflow-wrap:anywhere}
.hgfc-app .hgfc-home-intro-text p:first-child{margin-top:0}
.hgfc-app .hgfc-home-intro-media{position:sticky;top:calc(var(--hgfc-chrome-offset,0px) + var(--hgfc-top-height,68px) + 12px);align-self:start}
.hgfc-app .hgfc-home-video{aspect-ratio:16/9;background:#edf4f2;border-radius:12px;overflow:hidden}
.hgfc-app .hgfc-home-video iframe,.hgfc-app .hgfc-home-video video{display:block;width:100%;height:100%;border:0;object-fit:contain}
@media(max-width:700px){.hgfc-app .hgfc-overall > .hgfc-stage-progress{grid-template-columns:1fr;gap:14px}.hgfc-app .hgfc-home-intro-content.has-video{grid-template-columns:1fr}.hgfc-app .hgfc-home-intro-content{padding:16px}.hgfc-app .hgfc-home-intro-media{position:static}}

/* Only the purchased introduction body accepts these text styles. */
.hgfc-app .hgfc-home-intro-text p{text-align:justify}
.hgfc-app .hgfc-home-intro-text h2,.hgfc-app .hgfc-home-intro-text h3,.hgfc-app .hgfc-home-intro-text h4{color:#17344b;line-height:1.7;margin:1.4em 0 .65em}
.hgfc-app .hgfc-home-intro-text h2{font-size:24px}.hgfc-app .hgfc-home-intro-text h3{font-size:21px}.hgfc-app .hgfc-home-intro-text h4{font-size:18px}
.hgfc-app .hgfc-home-intro .hgfc-home-video video,.hgfc-app .hgfc-home-intro .hgfc-home-video iframe{height:100%}

/* Keep the account workspace title and access count on the same row. */
.hgpc-service-bridge .hgfc-summary-workspaces .hgfc-summary-heading{display:flex;align-items:center}
/* Period-copy UI only; no global form, notice, scrolling or sticky rules. */
.hgfc-app .hgfc-definition-copy,.hgfc-app .hgfc-copy-notice{background:#eef8fb;border:1px solid #8dbbc9;border-inline-start:5px solid #16677f;color:#153448}
.hgfc-app .hgfc-definition-copy h3,.hgfc-app .hgfc-copy-notice b{color:#12384f}
.hgfc-app .hgfc-definition-copy p,.hgfc-app .hgfc-copy-notice p{line-height:1.95}
.hgfc-app .hgfc-definition-copy label{display:block;margin:12px 0;font-weight:600}
.hgfc-app .hgfc-definition-copy select,.hgfc-app .hgfc-definition-copy input[data-copy-unit-name]{display:block;box-sizing:border-box;width:100%;max-width:100%;margin-top:7px;padding:10px;border:1px solid #6c929f;background:#fff;color:#153448;border-radius:8px}
.hgfc-app .hgfc-copy-preview{border-top:1px solid #9fc4cf;padding-top:16px;margin-top:18px}
.hgfc-app .hgfc-copy-preview details{background:#fff;border:1px solid #bad1d8;border-radius:8px;padding:12px;margin:12px 0}
.hgfc-app .hgfc-copy-preview summary{cursor:pointer;font-weight:700}
.hgfc-app .hgfc-copy-preview ul{max-height:320px;overflow:auto;padding-inline-start:24px;line-height:1.9}
.hgfc-app .hgfc-copy-legacy{background:#fff8e5;border:1px solid #b8973e;border-radius:8px;padding:12px;margin:14px 0;color:#533e09}
.hgfc-app .hgfc-definition-copy :focus-visible,.hgfc-app .hgfc-copy-notice :focus-visible{outline:3px solid #124b67;outline-offset:3px}
.hgfc-copy-wait{position:fixed;inset:0;z-index:100000;background:rgba(15,37,52,.65);display:grid;place-items:center;padding:20px;direction:rtl;font-family:inherit}
.hgfc-copy-wait>div{box-sizing:border-box;width:100%;max-width:480px;background:#fff;color:#153448;border-radius:14px;padding:28px;text-align:center;line-height:1.9;box-shadow:0 12px 45px #0004}
.hgfc-copy-wait b{display:block;font-size:18px}
.hgfc-copy-spinner{display:inline-block;width:32px;height:32px;border:4px solid #d4e7ee;border-top-color:#176a81;border-radius:50%;animation:hgfc-copy-spin 1s linear infinite}
@keyframes hgfc-copy-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hgfc-copy-spinner{animation:none}}
