:root{color-scheme:light;--ink:#111;--muted:#747474;--line:#e8e8e8}*{box-sizing:border-box}body,html{min-height:100%}body{margin:0;background:#fff;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a:focus-visible{outline:2px solid #111;outline-offset:5px}.site{min-height:100dvh;display:grid;grid-template-rows:auto 1fr auto}.header{display:flex;justify-content:center;align-items:center;padding:35px 20px}.logo{font-size:22px;font-weight:650;letter-spacing:-1px}.home-hero{width:min(100% - 40px,920px);margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;padding:70px 0 110px}.eyebrow{font-size:12px;letter-spacing:.025em;color:var(--muted);margin:0 0 26px}h1{font-size:clamp(62px,9vw,116px);line-height:.99;letter-spacing:-.075em;font-weight:550;margin:0 0 32px}h1 em{font-family:Georgia,Times New Roman,serif;font-weight:400;letter-spacing:-.065em}.home-description{max-width:550px;margin:0;color:var(--muted);font-size:clamp(16px,1.8vw,19px);line-height:1.65}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:36px}.action,.hero-actions{justify-content:center;align-items:center}.action{display:inline-flex;gap:28px;border-radius:10px;padding:16px 21px;font-size:14px;font-weight:600;min-width:183px;transition:background .15s ease}.action-primary{background:#111;color:#fff}.action-primary:hover{background:#333}.action-secondary{border:1px solid #d8d8d8}.action-secondary:hover{background:#f6f6f6}.footer{text-align:center;color:#999;font-size:12px;padding:28px 20px}.center{display:flex;align-items:center;justify-content:center;padding:40px 20px 90px}.login-card{width:min(100%,400px);border:1px solid var(--line);border-radius:16px;padding:36px;box-shadow:0 8px 30px rgba(0,0,0,.025)}.login-card h1{font-size:29px;line-height:1.15;letter-spacing:-1.3px;font-weight:600;margin:0}.description{color:var(--muted);font-size:14px;line-height:1.6;margin:12px 0 28px}.notice{padding:20px;background:#f8f8f8;border-radius:9px}.notice p{font-size:14px;font-weight:600;margin:0 0 6px}.notice span{color:var(--muted);font-size:13px;line-height:1.5}.login-action{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:22px;background:#111;color:#fff;border-radius:9px;padding:14px 18px;font-size:14px;font-weight:600}.return-link{display:block;margin-top:22px;text-align:center;color:var(--muted);font-size:13px}@media(max-width:600px){.header{padding:28px 16px}.home-hero{padding:58px 0 90px}h1{font-size:clamp(53px,12vw,78px)}.login-card{padding:28px 24px}.hero-actions{flex-direction:column;width:100%}.action{width:min(100%,310px)}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.dashboard-eyebrow,.form-kicker,.panel-kicker,.sidebar-caption{font-size:10px;letter-spacing:.11em;font-weight:700;color:#909090}.form-kicker{display:block;margin-bottom:16px}.auth-form{display:flex;flex-direction:column;gap:11px;margin-top:22px}.auth-form label{font-size:12px;font-weight:600;margin-top:6px}.auth-form input{width:100%;height:48px;padding:0 14px;border:1px solid #dedede;border-radius:9px;font:inherit;font-size:14px;background:#fff;outline:none}.auth-form input:focus{border-color:#111;box-shadow:0 0 0 2px #eee}.auth-submit{width:100%;margin-top:11px;cursor:pointer;border:0}.auth-submit:disabled{opacity:.62;cursor:wait}.auth-text-action{display:block;border:0;padding:16px 0 0;margin:auto;background:none;color:#737373;text-decoration:underline;font:inherit;font-size:12px;cursor:pointer}.auth-message{margin-top:17px;font-size:13px;line-height:1.5;color:#333;background:#f5f5f5;padding:12px 14px;border-radius:7px}.auth-error{color:#9b3027;background:#fff3f1}.portal-shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100dvh;background:#fafafa}.portal-sidebar{background:#fff;border-right:1px solid #eaeaea;padding:30px 16px 23px;display:flex;flex-direction:column;min-height:100dvh}.portal-brand{font-size:19px;font-weight:700;letter-spacing:-.075em;padding:4px 12px 41px;white-space:nowrap}.brand-dot{color:#aaa}.sidebar-caption{padding-left:12px;margin-bottom:14px}.client-identity{border:1px solid #ededed;border-radius:12px;display:flex;align-items:center;gap:11px;padding:12px;background:#fafafa}.client-icon{flex:none;display:grid;place-items:center;background:#111;color:#fff;width:35px;height:35px;border-radius:9px;font-size:13px;font-weight:700}.client-identity strong{display:block;font-size:12px;line-height:1.5}.client-identity small{display:block;color:#8b8b8b;font-size:11px;line-height:1.4}.nav-caption{margin:37px 0 10px}.portal-nav{display:flex;flex-direction:column;gap:4px}.portal-nav-item{padding:12px 14px;display:flex;align-items:center;gap:13px;font-size:13px;color:#666;font-weight:500;border-radius:9px}.portal-nav-item:hover{background:#f5f5f5}.portal-nav-item.is-active{background:#111;color:#fff}.nav-symbol{display:inline-block;width:17px;font-size:18px;font-weight:400;line-height:1;text-align:center}.sidebar-bottom{margin-top:auto;padding:24px 12px 0}.sidebar-help{font-size:11px;line-height:1.9;color:#888}.sidebar-help a{color:#222}.sign-out{margin-top:23px;width:100%;text-align:left;padding:13px 0;border:0;border-top:1px solid #eaeaea;font:inherit;font-size:12px;background:transparent;cursor:pointer;color:#666}.sign-out:hover{color:#111}.portal-main{min-width:0}.portal-topbar{height:78px;padding:0 44px;border-bottom:1px solid #ececec;background:#fff;display:flex;align-items:center;justify-content:space-between;color:#999;font-size:10px;letter-spacing:.12em;font-weight:700}.portal-top-right{display:flex;align-items:center;gap:22px}.privacy-pill{letter-spacing:0;font-size:11px;color:#888;border:1px solid #ededed;border-radius:999px;padding:9px 12px;font-weight:500}.privacy-pill i{display:inline-block;width:6px;height:6px;background:#999;border-radius:50%;margin-right:7px}.portal-avatar{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#ededed;color:#444;font-size:12px}.portal-body{width:min(100% - 88px,1320px);margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:47px 0 32px}.dashboard-eyebrow{margin:0 0 14px}.page-heading h1{font-size:clamp(35px,4vw,51px);line-height:1.1;letter-spacing:-.055em;margin:0;font-weight:600}.heading-period{font-size:18px;font-weight:400;color:#b0b0b0;letter-spacing:-.025em}.dashboard-subtitle{font-size:13px;color:#858585;line-height:1.6;margin:13px 0 0}.client-switch{font-size:11px;color:#999}.client-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.client-links a{display:inline-block;padding:7px 9px;border-radius:6px;border:1px solid #ddd;color:#555}.client-links a.selected{background:#111;color:#fff;border-color:#111}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:15px;gap:15px;margin-bottom:21px}.kpi-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.kpi{border:1px solid #ededed;background:#fff;border-radius:13px;min-height:164px;padding:22px 21px;display:flex;flex-direction:column;gap:17px}.kpi-accent{background:#111;color:#fff;border-color:#111}.kpi-label{color:#888;font-size:12px}.kpi-accent .kpi-label{color:#aaa}.kpi-value{font-size:clamp(23px,2.25vw,33px);letter-spacing:-.045em;font-weight:600;line-height:1;white-space:nowrap}.kpi-detail{font-size:11px;color:#999;line-height:1.5;margin-top:auto}.kpi-accent .kpi-detail{color:#aaa}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);grid-gap:20px;gap:20px;margin-bottom:20px}.panel{border:1px solid #ededed;border-radius:13px;background:#fff;padding:26px;margin-bottom:21px;min-width:0}.dashboard-columns .panel{margin-bottom:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.panel-heading h2{font-size:18px;font-weight:600;letter-spacing:-.035em;margin:7px 0 0}.panel-link{font-size:12px;color:#777;white-space:nowrap}.panel-link:hover{color:#111}.panel-footnote{font-size:11px;color:#a1a1a1;line-height:1.8;margin:24px 0 0}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:212px;border:1px dashed #eaeaea;border-radius:9px;padding:28px 24px}.empty-symbol{font-size:25px;color:#c9c9c9;margin-bottom:13px}.empty-state strong{font-size:13px;font-weight:600}.empty-state p{max-width:350px;font-size:12px;line-height:1.7;color:#999;margin:8px 0 0}.agreement-list>div{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #f0f0f0;padding:14px 0;font-size:12px}.agreement-list>div:last-child{border-bottom:0}.agreement-list span{color:#999}.agreement-list strong{font-weight:600;text-align:right}.agreement-list .agreement-total{padding-top:20px;border-top:1px solid #ddd;margin-top:10px}.table-scroll{width:100%;overflow:auto}.data-table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.data-table th{text-align:left;color:#aaa;letter-spacing:.02em;font-weight:500;border-bottom:1px solid #ededed;padding:12px 18px 15px 0}.data-table td{padding:18px 18px 18px 0;border-bottom:1px solid #f0f0f0;color:#555}.data-table tr:last-child td{border-bottom:0}.status-chip{display:inline-block;border:1px solid #e1e1e1;border-radius:999px;padding:6px 12px;text-transform:capitalize;color:#555}.table-link{color:#111;text-decoration:underline;text-underline-offset:3px}.bars{display:flex;justify-content:space-between;gap:14px;height:254px;align-items:stretch;padding:20px 8px 0}.bar-column{display:flex;flex:1 1;min-width:0;flex-direction:column;align-items:center;gap:9px}.bar-value{font-size:10px;color:#aaa;white-space:nowrap}.bar-track{height:185px;width:min(100%,46px);position:relative;display:flex;align-items:end;background:#fafafa}.bar-fill{position:relative;background:#111;width:100%;border-radius:4px 4px 0 0;min-height:0}.bar-baseline{position:absolute;left:-5px;right:-5px;border-top:1px dashed #aaa;z-index:2}.bar-label{color:#999;font-size:11px}.chart-key{display:flex;gap:24px;margin:20px 0 0;color:#aaa;font-size:11px}.chart-key i{display:inline-block;width:10px;height:10px;margin-right:6px}.chart-key-bar{background:#111;border-radius:2px}.chart-key-line{border-top:1px dashed #999}.dashboard-alert{padding:14px 18px;background:#fff6f0;border:1px solid #f5dac4;color:#8d512b;border-radius:8px;font-size:12px;margin-bottom:22px}.portal-footer{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#aaa;padding:31px 0 38px}@media(max-width:1150px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-columns{grid-template-columns:1fr}.portal-topbar{padding:0 28px}.portal-body{width:calc(100% - 56px)}}@media(max-width:760px){.portal-shell{grid-template-columns:1fr}.portal-sidebar{min-height:0;border-right:0;border-bottom:1px solid #ededed;padding:12px 16px;display:block}.portal-brand{display:block;padding:5px 0 14px;font-size:19px}.client-identity,.portal-sidebar>.sidebar-caption,.sidebar-bottom{display:none}.portal-nav{flex-direction:row;overflow-x:auto;padding-bottom:4px}.portal-nav-item{flex:none;padding:10px 12px;font-size:12px;gap:6px}.nav-symbol{font-size:15px;width:14px}.portal-topbar{height:56px;padding:0 20px}.portal-body{width:calc(100% - 32px)}.page-heading{margin:32px 0 22px;display:block}.page-heading h1{font-size:38px}.client-switch{margin-top:18px}.kpi-grid,.kpi-grid.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi{min-height:144px;padding:17px 14px}.kpi-value{font-size:23px}.panel{padding:20px}.privacy-pill{display:none}.portal-footer{display:block;line-height:2}.portal-footer span{display:block}}@media(max-width:420px){.kpi-grid,.kpi-grid.three{grid-template-columns:1fr}.bar-value{font-size:9px}.heading-period{display:block;font-size:15px;margin-top:8px}.portal-nav-item{font-size:11px}.portal-topbar{font-size:9px}}.agency-selector{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:-3px 0 24px}.agency-selector>span{font-size:11px;color:#999}.agency-selector>div{display:flex;flex-wrap:wrap;gap:7px}.agency-selector a{border-radius:100px;background:#fff;border:1px solid #e8e8e8;padding:9px 13px;font-size:11px;color:#666}.agency-selector a.selected{background:#111;color:#fff;border-color:#111}.agency-client-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.agency-client-item{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #eaeaea;border-radius:11px}.agency-client-item.is-selected,.agency-client-item:hover{border-color:#111}.agency-client-item strong{display:block;font-size:13px;font-weight:600}.agency-client-item small{display:block;margin-top:6px;color:#999;font-size:11px}.client-arrow{margin-left:auto;font-size:17px;color:#999}.agency-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px;align-items:end;margin-top:22px}.agency-field{display:flex;flex-direction:column;gap:8px;min-width:0}.agency-field>span{font-size:11px;font-weight:600;color:#666}.agency-field input,.agency-field select{width:100%;min-height:45px;border:1px solid #ddd;border-radius:8px;background:#fff;font:inherit;font-size:13px;padding:10px 12px;color:#111}.agency-field input:focus,.agency-field select:focus{outline:2px solid #ddd;outline-offset:1px}.agency-save{border:0;width:max-content;min-height:45px;margin:0;padding:13px 22px;cursor:pointer}.agency-caption{font-size:12px;line-height:1.8;color:#888}.agency-notification{padding:14px 18px;background:#f6f6f6;border:1px solid #e6e6e6;color:#333;border-radius:8px;font-size:12px;margin-bottom:22px}.agency-light-button{border:1px solid #ddd;background:#fff;border-radius:7px;font-size:11px;padding:8px 13px;cursor:pointer}.agency-light-button:hover{background:#f4f4f4}.agency-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.agency-agreement{padding:24px 0;border-bottom:1px solid #ededed}.agency-agreement:first-of-type{padding-top:0}.agency-agreement:last-of-type{border-bottom:0}.agency-agreement-header h3{font-size:16px;font-weight:600;margin:0 0 8px}.agency-agreement-header p{font-size:12px;color:#888;margin:0}.agency-agreement .agency-form{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.agency-agreement .agency-save{grid-column:1/-1}@media(max-width:760px){.agency-agreement .agency-form,.agency-client-list,.agency-form{grid-template-columns:1fr}.agency-agreement .agency-save{grid-column:auto}.agency-code{font-size:10px}.agency-selector{margin-top:0}}.agency-overview-settings{border:1px solid #e8e8e8;border-radius:13px;margin-bottom:18px;background:#fff}.agency-overview-settings>summary{cursor:pointer;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;list-style:none}.agency-overview-settings>summary::-webkit-details-marker{display:none}.agency-overview-settings[open]>summary{border-bottom:1px solid #eee}.agency-overview-config{display:flex;flex-direction:column;gap:18px;padding:19px 20px 21px}.agency-overview-config .agency-field{max-width:460px}.agency-overview-card-choices{margin:0;padding:0;border:0;min-width:0}.agency-overview-card-choices legend{font-size:11px;font-weight:600;color:#666;margin-bottom:11px}.agency-overview-card-choices>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:10px;gap:10px}.agency-overview-card-choices label{display:flex;align-items:center;gap:9px;border:1px solid #eee;border-radius:8px;padding:11px 12px;font-size:12px;color:#555;cursor:pointer;min-height:45px}.agency-overview-card-choices input{accent-color:#111;width:15px;height:15px;flex:none}.agency-overview-card-choices label:has(input:checked){border-color:#a9a9a9;color:#111}.agency-overview-period{border-bottom:1px solid #ebebeb;padding:11px 0 24px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:center;gap:22px}.agency-overview-period h2{font-size:23px;line-height:1.15;font-weight:580;letter-spacing:-.045em;margin:8px 0}.agency-overview-period p{font-size:12px;line-height:1.7;color:#888;max-width:660px;margin:3px 0}.agency-overview-period .agency-report-warning{color:#7d542d}.agency-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.agency-kpi-grid .kpi-value{white-space:normal;overflow-wrap:anywhere;font-size:clamp(22px,2vw,31px)}@media(max-width:840px){.agency-overview-card-choices>div{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:570px){.agency-overview-card-choices>div{grid-template-columns:1fr}.agency-overview-period{display:block}.agency-kpi-grid{grid-template-columns:1fr}}.agency-legal-warning{border:1px solid #e4dfd4;background:#fdfbf7;border-radius:12px;padding:19px 22px;margin-bottom:22px}.agency-legal-warning strong{font-size:11px;letter-spacing:.07em;color:#5c4939}.agency-legal-warning p{font-size:12px;color:#695f52;line-height:1.75;margin:8px 0 0}.agency-agreement-editor{display:flex;flex-direction:column;gap:12px;margin:22px 0}.agency-agreement-editor label{display:flex;flex-direction:column;gap:5px;font-size:12px}.agency-agreement-editor label strong{font-weight:600;color:#222}.agency-agreement-editor label span{font-size:11px;color:#888}.agency-agreement-editor textarea{resize:vertical;width:100%;min-height:310px;border:1px solid #e5e5e5;border-radius:9px;background:#fff;color:#222;font-size:12px;line-height:1.7;padding:20px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.agency-agreement-editor textarea:focus{outline:2px solid #cfcfcf;outline-offset:2px}.agency-agreement-preview-toggle{border:1px solid #e7e7e7;border-radius:10px;margin:18px 0}.agency-agreement-preview-toggle summary{font-size:12px;font-weight:600;cursor:pointer;padding:17px 20px}.agency-agreement-preview-toggle[open] summary{border-bottom:1px solid #eee}.agency-contract-preview{font-size:12px;line-height:1.8;padding:20px;max-height:650px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.agency-contract-preview h2{font-size:19px;line-height:1.35;margin:20px 0 9px;font-weight:650}.agency-contract-preview h3{font-size:13px;line-height:1.5;margin:18px 0 9px;font-weight:650}.agency-contract-preview p{font-size:12px;color:#505050;margin:0 0 8px}.agency-contract-preview .agency-contract-todo{color:#8d512b}.agency-contract-spacer{height:8px}.agency-contract-status{font-size:12px;color:#695f52;background:#faf8f4;border:1px solid #eee6db;border-radius:8px;padding:12px 14px;margin:15px 0}.agency-contract-status strong{font-size:13px;font-weight:600}.agency-budget-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px;margin:0 0 16px}.agency-budget-summary>div{background:#f9f9f9;border:1px solid #efefef;border-radius:10px;padding:17px 16px;display:flex;flex-direction:column;gap:9px;min-width:0}.agency-budget-summary>div span{font-size:11px;color:#808080;line-height:1.45}.agency-budget-summary>div strong{font-size:18px;font-weight:590;letter-spacing:-.04em;line-height:1.3;overflow-wrap:anywhere}.agency-budget-pending{border:1px solid #d8d8d8;background:#fafafa;border-radius:11px;padding:19px 21px;margin:18px 0}.agency-budget-pending strong{font-size:14px;letter-spacing:-.02em}.agency-budget-pending p,.agency-budget-reason{font-size:13px;line-height:1.65;color:#555;white-space:pre-wrap;overflow-wrap:anywhere}.agency-budget-history{margin-top:32px}.agency-budget-history h3{font-size:14px;letter-spacing:-.025em}.agency-budget-request{border-color:#d5d5d5}.agency-budget-decisions{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-top:20px}.agency-budget-decisions form{margin:0}.agency-budget-decisions .agency-light-button{min-height:42px;padding:10px 18px}.agency-wrap-text{white-space:pre-wrap;overflow-wrap:anywhere;text-align:right;max-width:65%}.agency-form textarea{width:100%;border:1px solid #dedede;background:white;border-radius:8px;padding:12px 13px;font:inherit;color:#222;resize:vertical;min-height:90px}.agency-form textarea:focus-visible{outline:2px solid #111;outline-offset:2px}@media(max-width:900px){.agency-budget-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.agency-budget-summary{grid-template-columns:1fr}.agency-budget-decisions{flex-direction:column;align-items:stretch}.agency-budget-decisions button,.agency-budget-decisions form{width:100%}}.agency-contract-preview-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:26px 0 12px;font-size:10px;letter-spacing:.09em;color:#8b8b8b}.agency-contract-preview-caption span:first-child{font-weight:700;color:#525252}.agency-contract-preview-caption span:last-child{letter-spacing:0;font-size:11px}.agency-contract-paper{margin:0 auto 20px;width:100%;max-width:870px;background:white;border:1px solid #e6e6e6;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.035);color:#222;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}.agency-contract-letterhead{padding:29px clamp(20px,7%,65px) 24px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #e8e8e8}.agency-contract-letterhead strong{font-size:17px;letter-spacing:-.05em;font-weight:650;color:#161616}.agency-contract-letterhead>span{font-size:9px;letter-spacing:.16em;color:#979797;font-weight:650}.agency-contract-document{padding:42px clamp(20px,7%,65px) 58px;min-width:0}.agency-contract-document h1{font-size:clamp(27px,3vw,35px);font-weight:600;letter-spacing:-.045em;line-height:1.18;margin:0 0 19px;color:#191919}.agency-contract-document .agency-contract-intro{font-size:13px;line-height:1.9;color:#5e5e5e;margin:0 0 27px}.agency-contract-section{border-top:1px solid #e2e2e2;margin:34px 0 22px;padding-top:21px}.agency-contract-section>span{display:block;font-size:9px;font-weight:700;color:#888;letter-spacing:.14em;margin-bottom:7px}.agency-contract-section h2{font-size:21px;font-weight:600;letter-spacing:-.045em;margin:0;line-height:1.35}.agency-contract-detail{display:grid;grid-template-columns:minmax(175px,43%) minmax(0,1fr);grid-gap:16px;gap:16px;align-items:start;padding:10px 0;border-bottom:1px solid #f0f0f0;font-size:12px;line-height:1.65}.agency-contract-detail-label{color:#696969;font-weight:530}.agency-contract-detail-value{color:#232323;overflow-wrap:anywhere}.agency-contract-subhead{font-size:12px;margin:24px 0 11px;font-weight:650;color:#333}.agency-contract-document .agency-contract-bullet{display:flex;gap:10px;align-items:start;font-size:12px;line-height:1.8;color:#3e3e3e;margin:8px 0;padding-left:8px}.agency-contract-bullet-icon{font-size:15px;line-height:1.5;color:#858585;flex:none}.agency-contract-document>h3:not(.agency-contract-subhead){font-size:13px;letter-spacing:-.012em;font-weight:650;color:#222;margin:29px 0 9px;line-height:1.5}.agency-contract-document .agency-contract-prose{font-size:12px;line-height:1.9;color:#414141;margin:0 0 15px;overflow-wrap:anywhere}.agency-contract-blank{color:#8a7f72;border-bottom:1px dotted #cfc9bf;background:#faf9f7;border-radius:2px;padding:0 3px;white-space:nowrap;font-size:11px}.agency-contract-signatures{margin-top:39px}.agency-contract-signature-row{padding:13px 0}.agency-contract-letterfoot{padding:20px clamp(20px,7%,65px);border-top:1px solid #ededed;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#aaa;font-size:9px;letter-spacing:.08em}.agency-contract-edit-toggle{border:1px solid #e7e7e7;border-radius:10px;margin:23px 0 12px;background:#fcfcfc}.agency-contract-edit-toggle>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 21px;cursor:pointer;font-size:13px;font-weight:600;color:#333;list-style:none}.agency-contract-edit-toggle>summary::-webkit-details-marker{display:none}.agency-contract-edit-toggle[open]>summary{border-bottom:1px solid #ebebeb}.agency-contract-edit-toggle[open]>summary span:last-child{transform:rotate(45deg)}.agency-contract-edit-toggle .agency-agreement-editor{padding:0 21px 20px;margin:20px 0 0}.agency-contract-edit-toggle textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;font-size:13px;line-height:1.8;min-height:320px}.agency-contract-edit-toggle textarea:focus{outline:2px solid #a1a1a1;outline-offset:2px}@media(max-width:690px){.agency-contract-letterhead{padding:22px}.agency-contract-document{padding:26px 22px 38px}.agency-contract-detail{grid-template-columns:1fr;gap:3px}.agency-contract-letterfoot{padding:17px 22px}.agency-contract-preview-caption span:last-child{width:100%}}@media print{.agency-contract-paper{border:0;box-shadow:none;max-width:none;overflow:visible}.agency-contract-document{padding:26px 0}.agency-contract-detail,.agency-contract-document h3,.agency-contract-section{page-break-inside:avoid;break-inside:avoid}.agency-contract-edit-toggle,.agency-contract-preview-caption{display:none}}.invoice-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.95fr);grid-gap:24px;gap:24px;align-items:start;margin:4px 0 26px}.invoice-editor{padding:29px}.invoice-editor .panel-heading{margin-bottom:7px}.invoice-pill{font-size:10px;padding:7px 11px;border:1px solid #e6e6e6;border-radius:99px;color:#777;white-space:nowrap}.invoice-section-label{font-size:10px;font-weight:750;letter-spacing:.12em;color:#888;border-top:1px solid #eee;padding-top:22px;margin:25px 0 17px}.invoice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:15px;gap:15px}.invoice-span{grid-column:1/-1}.invoice-grid textarea{font:inherit;font-size:13px;line-height:1.6;resize:vertical;border:1px solid #ddd;border-radius:8px;padding:12px;width:100%;color:#111}.invoice-grid textarea:focus{outline:2px solid #ddd}.invoice-items{display:flex;flex-direction:column;gap:12px}.invoice-item{display:grid;grid-template-columns:minmax(0,1fr) 74px 116px 28px;grid-gap:9px;gap:9px;align-items:end}.invoice-item .agency-field input{min-width:0}.invoice-remove{background:transparent;border:0;height:45px;cursor:pointer;font-size:22px;color:#888}.invoice-remove:disabled{opacity:.25;cursor:not-allowed}.invoice-add{border:1px solid #e7e7e7;border-radius:9px;padding:11px 15px;background:#fafafa;color:#333;font:inherit;font-size:12px;cursor:pointer;margin-top:13px}.invoice-tax-switch{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:22px 0 0;font-size:12px;font-weight:600}.invoice-tax-switch input{accent-color:#111}.invoice-tax-switch small{width:100%;padding-left:22px;font-weight:400;line-height:1.6;color:#888;font-size:11px}.invoice-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:25px}.invoice-actions span{font-size:11px;line-height:1.5;color:#999;flex:1 1}.invoice-print{cursor:pointer;border:0;min-width:180px;padding:14px 16px}.invoice-print:disabled{opacity:.35;cursor:not-allowed}.invoice-preview-wrap{position:-webkit-sticky;position:sticky;top:20px;min-width:0}.invoice-preview-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:7px 0 15px;font-size:10px;letter-spacing:.09em;color:#aaa}.invoice-paper{background:#fff;border:1px solid #e9e9e9;border-radius:12px;min-height:650px;padding:36px;box-shadow:0 12px 36px rgba(0,0,0,.025);overflow-wrap:anywhere}.invoice-paper-foot,.invoice-paper-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.invoice-paper-head strong{font-size:18px;letter-spacing:-.065em}.invoice-paper-head>span{font-size:10px;letter-spacing:.18em;font-weight:700}.invoice-paper-intro{display:flex;justify-content:space-between;gap:16px;margin:55px 0}.invoice-paper-intro h2{font-size:clamp(39px,4vw,60px);letter-spacing:-.085em;font-weight:550;margin:0}.invoice-paper-intro h2 span{color:#999}.invoice-paper-intro p{margin:9px 0 0;font-size:12px;color:#777}.invoice-dates{min-width:105px}.invoice-dates p{display:flex;flex-direction:column;gap:4px;margin:0 0 12px}.invoice-dates p span{font-size:10px;color:#999}.invoice-dates strong{font-size:11px;font-weight:600}.invoice-party-grid{display:grid;grid-template-columns:1fr 1fr;grid-gap:22px;gap:22px;margin-bottom:41px}.invoice-paper-kicker{display:block;color:#999;letter-spacing:.11em;font-weight:700;font-size:9px;margin-bottom:12px}.invoice-party-grid strong{font-size:12px}.invoice-paper-note p,.invoice-party-grid p{font-size:11px;line-height:1.7;color:#777;margin:5px 0}.invoice-multiline{white-space:pre-line}.invoice-paper-table{border-collapse:collapse;width:100%;font-size:11px}.invoice-paper-table th{font-size:9px;font-weight:700;letter-spacing:.07em;color:#999;text-align:right;padding:15px 5px;border-bottom:1px solid #ddd}.invoice-paper-table td:first-child,.invoice-paper-table th:first-child{text-align:left}.invoice-paper-table td{text-align:right;padding:16px 5px;border-bottom:1px solid #efefef;vertical-align:top}.invoice-total-block{width:min(100%,235px);margin:30px 0 36px auto}.invoice-total-block>div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;font-size:11px}.invoice-total-block>div span{color:#888}.invoice-total-block strong{font-weight:600}.invoice-total-block .invoice-grand-total{border-top:1px solid #111;margin-top:10px;padding-top:18px;align-items:center}.invoice-grand-total span{color:#111!important;font-weight:600}.invoice-grand-total strong{font-size:23px;letter-spacing:-.055em}.invoice-paper-note{border-top:1px solid #eee;padding:18px 0 10px}.invoice-paper-foot{font-size:9px;color:#aaa;letter-spacing:.07em;margin-top:50px;padding-top:15px;border-top:1px solid #eee}@media(max-width:1250px){.invoice-workspace{grid-template-columns:1fr}.invoice-preview-wrap{position:static}.invoice-paper{max-width:800px;margin:auto}}@media(max-width:600px){.invoice-editor{padding:18px}.invoice-grid{grid-template-columns:1fr}.invoice-item{grid-template-columns:minmax(0,1fr) 64px 90px 24px;gap:6px}.invoice-paper{padding:20px}.invoice-paper-intro{margin:38px 0}.invoice-party-grid{gap:12px}}@media print{@page{size:A4;margin:0}.invoice-workspace,.portal-body,.portal-main,.portal-shell,body,html{width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}.invoice-workspace,.portal-body,.portal-main,.portal-shell{display:block!important;max-width:none!important;min-width:0!important}.agency-notification,.agency-selector,.dashboard-alert,.invoice-editor,.invoice-preview-heading,.page-heading,.portal-body>.kpi-grid,.portal-body>.panel,.portal-body>:not(.invoice-workspace),.portal-footer,.portal-sidebar,.portal-topbar{display:none!important}.invoice-preview-wrap{inset:auto!important;padding:0!important}.invoice-paper,.invoice-preview-wrap{display:block!important;position:static!important;width:100%!important;max-width:none!important;margin:0!important;overflow:visible!important}.invoice-paper{min-height:0!important;height:auto!important;padding:14mm!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#111!important;box-sizing:border-box!important}.invoice-paper-table{page-break-inside:auto}.invoice-paper-note,.invoice-paper-table tr,.invoice-total-block{break-inside:avoid;page-break-inside:avoid}}.invoice-paper .invoice-dates p span,.invoice-paper .invoice-paper-foot,.invoice-paper .invoice-paper-head>span,.invoice-paper .invoice-paper-kicker,.invoice-paper .invoice-paper-table th{color:#555}.invoice-paper .invoice-paper-intro p,.invoice-paper .invoice-paper-note p,.invoice-paper .invoice-party-grid p,.invoice-paper .invoice-total-block>div span{color:#4b4b4b}.invoice-paper .invoice-paper-intro h2 span{color:#555}@media print{.invoice-paper,.invoice-paper *{-webkit-print-color-adjust:exact;print-color-adjust:exact}.invoice-paper .invoice-dates p span,.invoice-paper .invoice-paper-foot,.invoice-paper .invoice-paper-head>span,.invoice-paper .invoice-paper-kicker,.invoice-paper .invoice-paper-table th{color:#4b4b4b!important}.invoice-paper .invoice-paper-intro p,.invoice-paper .invoice-paper-note p,.invoice-paper .invoice-party-grid p,.invoice-paper .invoice-total-block>div span{color:#3f3f3f!important}}