*{box-sizing:border-box}.portal-check{display:flex!important;grid-template-columns:20px 1fr!important;align-items:center;gap:9px!important;font-weight:500!important}.portal-check input{width:18px!important;height:18px;margin:0}.portal-auth-links{display:flex;justify-content:space-between;gap:14px;padding-top:4px;border-top:1px solid #eceaf0}.portal-auth-links a{color:var(--portal-accent);font-weight:650;text-decoration:none}.portal-body{margin:0;background:#f7f7fa;color:#2f2b3d;font-family:Inter,Arial,sans-serif}.portal-header{height:82px;padding:0 max(22px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e7e5ec;position:sticky;top:0;z-index:10}.portal-brand{display:flex;align-items:center;color:var(--portal-primary);font-size:1.2rem;text-decoration:none}.portal-brand img{max-width:220px;max-height:58px}.portal-header nav{display:flex;gap:8px;align-items:center}.portal-header nav a{padding:10px 12px;color:#5d596c;text-decoration:none;border-radius:8px}.portal-header nav a:hover{background:#f1efff;color:var(--portal-accent)}.portal-main{max-width:1180px;margin:0 auto;padding:34px 22px 60px}.portal-auth-card,.portal-card{background:#fff;border:1px solid #e7e5ec;border-radius:14px;box-shadow:0 4px 20px #2f2b3d10;padding:26px}.portal-auth-card{max-width:520px;margin:7vh auto;border-top:5px solid var(--portal-accent)}.portal-auth-card h1,.portal-card h1,.portal-card h2,.portal-welcome h1{color:var(--portal-primary)}.portal-auth-card form,.portal-card form{display:grid;gap:15px;margin:20px 0}.portal-auth-card label,.portal-card label{display:grid;gap:7px;font-weight:650}.portal-auth-card input,.portal-card input,.portal-card select,.portal-card textarea{width:100%;padding:12px;border:1px solid #d8d5df;border-radius:8px;background:#fff;font:inherit}.portal-auth-card button,.portal-card button,.portal-button{display:inline-block;border:0;border-radius:8px;padding:12px 18px;background:var(--portal-accent);color:#fff;font-weight:750;text-decoration:none;cursor:pointer}.portal-eyebrow{font-size:.76rem;letter-spacing:.12em;color:var(--portal-accent);font-weight:800}.portal-notice{max-width:1180px;margin:0 auto 20px;padding:14px 16px;background:#e5f7ed;color:#17653a;border-radius:9px}.portal-notice.error{background:#fdecec;color:#9b1c1c}.portal-welcome{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.portal-welcome h1{margin:.35rem 0}.portal-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.portal-kpis article{background:#fff;border:1px solid #e7e5ec;border-radius:13px;padding:20px}.portal-kpis span{display:block;color:#6f6b7d}.portal-kpis strong{display:block;font-size:2rem;color:var(--portal-primary);margin-top:7px}.portal-grid{display:grid;gap:20px;margin-bottom:20px}.portal-grid.two{grid-template-columns:1fr 1fr}.portal-form-grid{grid-template-columns:1fr 1fr}.portal-form-grid .full{grid-column:1/-1}.portal-table{overflow:auto}.portal-table table{width:100%;border-collapse:collapse;min-width:700px}.portal-table th,.portal-table td{text-align:left;padding:13px;border-bottom:1px solid #eceaf0}.portal-table th{font-size:.76rem;text-transform:uppercase;color:#6f6b7d}.portal-status{display:inline-block;padding:5px 9px;background:#f0eef4;border-radius:20px;font-size:.8rem}.portal-status.paid{background:#dff7e9;color:#17653a}.portal-status.overdue{background:#fde4e4;color:#9b1c1c}.portal-event{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid #eceaf0}.portal-event>span{display:grid;place-items:center;min-width:38px;height:38px;border-radius:10px;background:#f0edff;color:var(--portal-accent);font-weight:800}.portal-event p{margin:5px 0}.portal-message{padding:14px;border-radius:10px;margin:12px 0}.portal-message strong,.portal-message small{display:block}.portal-message.sent{background:#f2f0ff;margin-left:40px}.portal-message.received{background:#f3f7f9;margin-right:40px}.portal-card.narrow{max-width:680px}.portal-footer{max-width:1180px;margin:0 auto;padding:22px;display:flex;justify-content:space-between;color:#777281;border-top:1px solid #e7e5ec}.portal-footer a{color:var(--portal-accent)}details{margin-top:18px}summary{cursor:pointer;font-weight:700}.portal-notification-toggle.active{box-shadow:inset 0 -2px 0 var(--portal-accent)}.portal-alerts-hero{max-width:760px;margin-bottom:24px}.portal-alerts-hero h1{margin:.45rem 0;color:var(--portal-primary);font-size:2.25rem}.portal-alerts-hero p{font-size:1.05rem;color:#696475}.portal-alert-settings .portal-card{min-height:310px}.portal-alert-symbol{display:grid;place-items:center;width:46px;height:46px;margin-bottom:12px;border-radius:13px;background:color-mix(in srgb,var(--portal-accent) 10%,white);font-size:1.35rem}.portal-device-state{display:inline-flex;padding:7px 11px;border-radius:999px;background:#f0eef4;color:#625d70;font-size:.82rem;font-weight:750}.portal-device-state.enabled{background:#e3f7eb;color:#17653a}.portal-device-state.blocked{background:#fdeaea;color:#9b1c1c}.portal-alert-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.portal-alert-actions button{width:auto}.portal-button.secondary{background:#f0eef4!important;color:#4d4859!important}.portal-help{color:#777281;font-size:.9rem;line-height:1.5}.portal-steps{padding-left:22px;line-height:1.65}.portal-steps li{margin:8px 0}.portal-alert-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.portal-alert-facts article{padding:17px;border-radius:12px;background:#f8f7fa}.portal-alert-facts strong,.portal-alert-facts span{display:block}.portal-alert-facts span{margin-top:7px;color:#6d6878;line-height:1.5}.portal-profile-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}.portal-profile-choice{display:flex;flex-direction:column;align-items:flex-start}.portal-profile-choice h2{margin:.8rem 0 .2rem}.portal-profile-choice p{color:#6d6878}.portal-profile-choice .portal-button{margin-top:auto}.portal-new-profile{margin-top:20px}@media(max-width:820px){.portal-header{height:auto;min-height:72px;padding:12px 16px;align-items:flex-start}.portal-brand img{max-width:160px;max-height:45px}.portal-header nav{max-width:56%;overflow:auto;white-space:nowrap}.portal-main{padding:22px 12px 45px}.portal-grid.two,.portal-kpis,.portal-form-grid,.portal-profile-choices{grid-template-columns:1fr}.portal-form-grid .full{grid-column:auto}.portal-welcome{align-items:flex-start;gap:18px}.portal-welcome .portal-button{white-space:nowrap}.portal-card{padding:18px}.portal-footer{padding:18px 12px;gap:12px;flex-direction:column}.portal-alert-facts{grid-template-columns:1fr}.portal-alert-actions{display:grid}.portal-alert-actions button{width:100%}}
.portal-security-grid{align-items:start}
.portal-security-grid code{font-size:.78rem;word-break:break-all}
.portal-security-grid .portal-table{max-height:34rem;overflow:auto}
.portal-ai-helper{display:grid;gap:13px;margin:4px 0;padding:16px;border:1px solid color-mix(in srgb,var(--portal-accent) 24%,#e7e5ec);border-radius:12px;background:linear-gradient(135deg,color-mix(in srgb,var(--portal-accent) 5%,white),#fff)}
.portal-ai-heading{display:flex;align-items:flex-start;gap:11px}.portal-ai-heading>div{display:grid;gap:3px}.portal-ai-heading small{color:#6f6b7d;font-weight:400;line-height:1.45}
.portal-ai-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:9px;background:var(--portal-accent);color:#fff;font-weight:800}
.portal-ai-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.portal-ai-button{justify-self:start;width:auto!important;background:var(--portal-primary)!important}
.portal-ai-button:disabled{cursor:wait;opacity:.65}.portal-ai-status{min-height:1.25em;margin:0;color:#6f6b7d;font-size:.88rem;line-height:1.45}.portal-ai-status.success{color:#17653a}.portal-ai-status.error{color:#9b1c1c}
@media(max-width:620px){.portal-ai-options{grid-template-columns:1fr}.portal-ai-button{width:100%!important}}
.portal-resend-form{margin-top:8px!important;padding-top:14px;border-top:1px solid #eceaf0}.portal-resend-form button{justify-self:start}.portal-resend-form small{color:#6f6b7d}
.portal-ticket-layout{display:grid;grid-template-columns:minmax(260px,34%) minmax(0,1fr);gap:20px;align-items:start}.portal-ticket-list{padding:16px}.portal-ticket-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.portal-ticket-heading h1,.portal-ticket-heading h2{margin:.15rem 0}.portal-ticket-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 10px;border-bottom:1px solid #eceaf0;color:inherit;text-decoration:none;border-radius:9px}.portal-ticket-row:hover,.portal-ticket-row.active{background:color-mix(in srgb,var(--portal-accent) 8%,white)}.portal-ticket-row span,.portal-ticket-row strong,.portal-ticket-row small{display:block;min-width:0}.portal-ticket-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-ticket-row small{margin-top:5px;color:#6f6b7d}.portal-ticket-row em{font-style:normal;white-space:nowrap}.portal-thread-messages{display:grid;gap:10px;margin:20px 0;max-height:52vh;overflow:auto;padding-right:4px}.portal-thread .portal-message{max-width:86%;margin:0}.portal-thread .portal-message.sent{justify-self:end;margin-left:12%;background:#f2f0ff}.portal-thread .portal-message.received{justify-self:start;margin-right:12%;background:#f3f7f9}.portal-attachment{display:block;margin-top:9px;padding:9px 10px;border:1px solid #dedbe6;border-radius:8px;color:var(--portal-accent);text-decoration:none;background:#fff}.portal-reply{padding-top:16px;border-top:1px solid #eceaf0}.portal-ticket-status{margin-top:8px!important}.portal-ticket-status button{width:auto!important}.portal-status.waiting_for_staff{background:#fff1d6;color:#8b5600}.portal-status.waiting_for_customer{background:#e8efff;color:#294f9a}.portal-status.resolved,.portal-status.closed{background:#e1f5e9;color:#17653a}
.portal-upload-progress{display:grid;gap:8px;margin-top:10px}.portal-upload-file{padding:9px 10px;border:1px solid #dedbe6;border-radius:9px;background:#fff}.portal-upload-file-header{display:flex;justify-content:space-between;gap:12px;min-width:0}.portal-upload-file-header span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-upload-file-header small{white-space:nowrap;color:#6f6b7d}.portal-upload-track{height:6px;margin-top:7px;overflow:hidden;border-radius:999px;background:#eceaf2}.portal-upload-track span{display:block;height:100%;border-radius:inherit;background:var(--portal-accent);transition:width .18s ease}.portal-upload-file.complete .portal-upload-track span{background:#28a66a}.portal-upload-error{margin:0;padding:9px 10px;border-radius:8px;background:#fde9e9;color:#a61b1b;font-weight:700}
.portal-native-file-input{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}.portal-file-picker{display:grid;grid-template-columns:max-content 1fr;gap:10px 12px;align-items:center;margin-top:7px;padding:12px;border:1px dashed color-mix(in srgb,var(--portal-accent) 42%,#d8d5df);border-radius:10px;background:#fbfaff}.portal-file-add{width:auto!important;margin:0!important;padding:.65rem .9rem!important;background:var(--portal-accent)!important;color:#fff!important}.portal-file-summary{color:#6f6b7d;font-size:.88rem}.portal-selected-files,.portal-upload-progress{grid-column:1/-1}.portal-selected-files{display:grid;gap:7px}.portal-selected-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e1dfe8;border-radius:8px;background:#fff}.portal-selected-file span,.portal-selected-file strong,.portal-selected-file small{display:block;min-width:0}.portal-selected-file span{overflow:hidden}.portal-selected-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-selected-file small{margin-top:2px;color:#6f6b7d}.portal-selected-file button{width:auto!important;margin:0!important;padding:.4rem .65rem!important;background:#f3f1f6!important;color:#615d6c!important;font-size:.76rem!important}.portal-invoice-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.portal-invoice-actions .portal-button{width:auto!important}.portal-invoice-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.portal-invoice-detail-grid article{padding:14px;border-radius:10px;background:#f8f7fa}.portal-invoice-detail-grid small,.portal-invoice-detail-grid strong{display:block}.portal-invoice-detail-grid strong{margin-top:5px;font-size:1.05rem}.portal-service-page .portal-services{margin-top:0}.portal-table-actions{display:flex;flex-wrap:wrap;gap:10px}.portal-table-actions a{font-weight:700}.portal-public-note{margin-top:18px;padding:14px 16px;border-left:4px solid var(--portal-accent);border-radius:8px;background:#f8f7fa}.portal-public-note p{margin:.35rem 0 0}.portal-invoice-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
@media(max-width:820px){.portal-ticket-layout{grid-template-columns:1fr}.portal-ticket-list{max-height:300px;overflow:auto}.portal-thread .portal-message{max-width:96%}.portal-invoice-detail-grid{grid-template-columns:1fr}.portal-invoice-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.portal-file-picker{grid-template-columns:1fr}.portal-file-add{width:100%!important}.portal-file-summary{text-align:center}}
.recovery-codes{white-space:pre-wrap;word-break:break-word;font-size:1rem;line-height:1.8;letter-spacing:.08em;background:#f7f7fa;border:1px solid #e0e1e7;border-radius:10px;padding:1rem}
.two-factor-secret{display:inline-block;max-width:100%;overflow-wrap:anywhere;font-size:1rem;letter-spacing:.12em;background:#f7f7fa;border:1px solid #e0e1e7;border-radius:8px;padding:.65rem .8rem}
.portal-live-status{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:6px 10px;border-radius:999px;background:#e5f7ed;color:#17653a;font-size:.78rem;font-weight:700}.portal-live-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#28c76f;box-shadow:0 0 0 4px #28c76f20}
.portal-profile-editor{margin-bottom:20px}.portal-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.portal-profile-editor fieldset{min-width:0;margin:0;padding:18px;border:1px solid #e3e0e8;border-radius:12px;background:#faf9fc}.portal-profile-editor legend{padding:0 8px;color:var(--portal-primary);font-weight:800}.portal-profile-editor .portal-form-grid{margin:0}.portal-profile-editor details{padding:14px 0}.portal-profile-editor details p{padding:9px 0;border-bottom:1px solid #eceaf0}
.portal-profile-form{align-items:start}.portal-profile-form>.portal-profile-section{height:100%}.portal-profile-form>button{width:max-content}
.portal-header nav .portal-sign-out{margin-left:4px;border-left:1px solid #e7e5ec;border-radius:0 8px 8px 0}
.portal-footer nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.35rem;line-height:1.5}
.portal-footer nav a{text-underline-offset:3px}
@media(max-width:820px){.portal-header nav .portal-sign-out{margin-left:0;border-left:0}.portal-footer nav{justify-content:flex-start}}
.portal-item-discount{margin-top:.45rem;color:var(--portal-muted,#6f6b7a);font-size:.84rem;line-height:1.4}
.portal-item-discount strong{color:var(--portal-text,#2f2b3d)}
