/* Beta 1.1: portal presentation; data and permissions remain server owned. */
:root{--ink:#22243a;--muted:#6b7185;--line:#e7e9f1;--violet:#7354dc}
body[data-surface=app]{background:#f6f7fb}
body[data-surface=app] .content{max-width:1550px}
body[data-surface=app] .page-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.page-heading>div:first-child{min-width:0;flex:1}
.page-heading h1{margin:7px 0 10px}
.page-heading p{margin-bottom:0}
.page-actions,.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.form-actions{justify-content:flex-end;margin-top:12px}
body[data-surface=app] .page-heading:not(:has(>div)){display:block}
body[data-surface=app] .form-grid>div:has(>button){grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
body[data-surface=app] .form-grid>button{grid-column:1/-1;justify-self:end}
body[data-surface=app] main button:not(.day-number):not(.calendar-more):not(.brand-info-link):not(.password-toggle):not(.icon-button),body[data-surface=app] .button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 17px;border:1px solid transparent;border-radius:10px;background:var(--violet);color:#fff;font-size:13px;font-weight:600;line-height:1.45;text-align:center;text-decoration:none;transition:background .15s,box-shadow .15s}
body[data-surface=app] main button:hover:not(:disabled):not(.day-number):not(.calendar-more):not(.brand-info-link):not(.password-toggle){box-shadow:0 4px 12px #7354dc1c}
body[data-surface=app] main .secondary,body[data-surface=app] main .quiet,body[data-surface=app] a.button.secondary{background:#fff!important;color:#64519a!important;border:1px solid #ded7ed!important}
body[data-surface=app] main .danger{background:#fff1f2!important;color:#ae354f!important;border-color:#f5d9df!important}
button:disabled{cursor:not-allowed;opacity:.5}
button.is-loading{opacity:.65;cursor:wait}
button.is-loading:after{content:"";width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:beta-spin .8s linear infinite}
.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#5e4a92;padding:9px;font-size:19px;line-height:1}
.table-wrap{overflow:auto;max-width:100%;border-radius:10px}
td{overflow-wrap:anywhere}
body[data-surface=app] td{vertical-align:middle}
body[data-surface=app] .panel{border-radius:18px;padding:26px;border-color:var(--line)}
.panel>h2{margin-bottom:12px}
.panel details{border-color:var(--line)}
.panel summary{min-height:36px;display:list-item}
.panel .form-grid,.calendar-filters{gap:20px}
.panel label,.calendar-filters label,.profile-savebar label{font-size:13px;font-weight:500;color:#555c73}
.panel input:not([type=checkbox]):not([type=radio]),.panel select,.panel textarea,.calendar-filters input,.calendar-filters select,.profile-savebar input{min-width:0;width:100%;min-height:45px;padding:11px 13px;border:1px solid #dfe3ee;border-radius:9px;background:#fcfdff;color:var(--ink);font:inherit;font-size:14px}
.panel input[type=file]{padding:9px;max-width:100%}
.panel .form-grid>label{display:flex;flex-direction:column;gap:8px}
.panel .form-grid>label.check{flex-direction:row}
.panel .inline{gap:16px}
.panel .inline label{min-width:170px}
.empty-state{padding:28px;color:var(--muted);text-align:center}
.back-link{display:inline-block;font-size:13px;margin-bottom:20px}
.profile-header{display:flex;align-items:center;gap:24px;padding:28px;background:linear-gradient(110deg,#fff 60%,#f2effb);border:1px solid var(--line);border-radius:20px}
.profile-avatar{height:106px;width:106px;flex-shrink:0;border-radius:28px;background:linear-gradient(145deg,#e8dfff,#dce7ff);display:grid;place-items:center;border:4px solid #fff;box-shadow:0 5px 20px #35266c0d}
.profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:23px}
.profile-avatar>span{font-size:43px;color:#7354c9}
.profile-identity{flex:1;min-width:0}
.profile-identity h1{font-size:clamp(25px,3vw,37px);margin:0 0 10px;overflow-wrap:anywhere;letter-spacing:-1px}
.profile-identity p{margin-bottom:13px;font-size:13px}
.profile-identity p span{padding:0 7px}
.profile-identity .eyebrow{margin-bottom:8px}
.profile-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:14px;margin:16px 0 25px}
.profile-facts>div{padding:20px;border-right:1px solid var(--line)}
.profile-facts>div:last-child{border:0}
.profile-facts span,.profile-facts strong{display:block;overflow-wrap:anywhere}
.profile-facts span{font-size:11px;color:var(--muted);margin-bottom:9px}
.profile-facts strong{font-size:14px}
.profile-tabs{display:flex;gap:5px;overflow-x:auto;border-bottom:1px solid #dfe3ee;margin:0 0 24px;scrollbar-width:thin;padding-bottom:1px}
.profile-tabs a{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 15px;font-size:13px;border-bottom:3px solid transparent;color:#7a7f91}
.profile-tabs a:hover{text-decoration:none;color:var(--violet)}
.profile-tabs a[aria-selected=true]{color:#6746ca;border-color:#7950f2;font-weight:650}
.profile-workspace [data-tab-panel]{scroll-margin-top:20px}
.profile-workspace [data-profile-fields]{opacity:1}
.profile-workspace [data-profile-fields]:disabled input,.profile-workspace [data-profile-fields]:disabled select,.profile-workspace [data-profile-fields]:disabled textarea{background:#f7f8fb;color:#42485d;opacity:1;-webkit-text-fill-color:#42485d}
.account-email{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:#f7f8fc;border-radius:12px;margin:20px 0}
.account-email span,.account-email strong{display:block;overflow-wrap:anywhere}
.account-email span{font-size:11px;color:var(--muted);margin-bottom:7px}
.account-email strong{font-size:14px}
.form-subheading{border-top:1px solid var(--line);padding-top:24px;margin-top:26px;font-size:15px}
.bank-block{border:1px solid var(--line);border-radius:13px;padding:20px;margin-top:18px}
.bank-block h3{font-size:14px;margin:0}
.profile-savebar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;position:sticky;bottom:12px;z-index:4;box-shadow:0 8px 35px #342c5714}
.profile-savebar>label{flex:1;max-width:650px;display:flex;flex-wrap:wrap;gap:8px}
.profile-savebar label small{width:100%}
.profile-savebar .form-actions{flex-shrink:0}
.required-marker{color:#b94563}
.quota-overview{display:flex;align-items:center;gap:28px;background:linear-gradient(110deg,#efeafa,#fff 65%);border:1px solid #e4dcf3;padding:24px 28px;border-radius:18px;margin-bottom:28px}
.quota-overview>div:first-child{flex:1;min-width:0}
.quota-overview h2{font-size:20px;margin-bottom:7px}
.quota-overview p{font-size:12px;max-width:500px;margin:0}
.quota-overview .eyebrow{color:#8a77af;margin-bottom:8px}
.quota-overview-value{display:flex;flex-direction:column;gap:8px;border-right:1px solid #e1daed;padding-right:28px}
.quota-overview-value>strong{font-size:34px;letter-spacing:-1px;color:#6549b4}
.quota-overview-value small{display:inline;font-size:13px;letter-spacing:0}
.quota-overview-value>span,.quota-expiry>span{font-size:11px;color:var(--muted)}
.quota-expiry{display:flex;flex-direction:column;gap:9px}
.quota-expiry strong{font-size:14px}
.quota-expiry a{font-size:12px}
.quota-types{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}
.quota-types .card{margin:0;display:flex;flex-direction:column;gap:14px;min-width:0}
.quota-types .card>span{font-size:13px;color:var(--muted)}
.quota-types .card>strong{font-size:25px;color:#534177}
.week-strip{margin-top:10px;margin-bottom:30px;gap:12px}
.week-day{border-radius:14px;padding:15px 5px;gap:9px;transition:background .15s,border-color .15s}
.week-day:hover{background:#f1ecfc;border-color:#c6b6ed;text-decoration:none}
.week-day>span{font-size:12px;color:#888ca0}
.week-day>strong{font-size:26px;font-weight:600}
.week-day.today{background:#7354dc;color:white;box-shadow:0 6px 16px #7354dc24;border-color:#7354dc}
.week-day.today>span,.week-day.today>small{color:#e7ddff}
.calendar-panel{padding:0!important;overflow:hidden}
.calendar-toolbar{padding:25px 26px 17px;justify-content:space-between;gap:15px}
.calendar-toolbar h2{font-size:25px;letter-spacing:-.7px}
.calendar-toolbar .eyebrow{margin-bottom:8px}
.calendar-nav{display:flex;gap:8px;align-items:center}
.calendar-filters{display:flex;flex-wrap:wrap;align-items:flex-end;padding:0 26px 20px;margin:0}
.calendar-filters>label{display:flex;flex-direction:column;gap:8px;flex:1;min-width:135px}
.calendar-filters>button{flex-shrink:0}
.calendar-meta{padding:17px 26px;border-top:1px solid var(--line);background:#fcfcfe}
.calendar-meta>span{font-size:12px;color:var(--muted)}
.calendar-legend{gap:14px;margin-bottom:0;margin-top:13px}
.legend-item{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#71768c;--kind:#92a7d0}
.legend-item i{width:7px;height:7px;border-radius:50%;background:var(--kind);display:inline-block}
.kind-work{--kind:#6e8fd2}.kind-rest{--kind:#9ba2b4}.kind-holiday{--kind:#d86b7d}.kind-joint{--kind:#a084cf}.kind-pending{--kind:#d5a641}.kind-approved,.kind-cancel_requested{--kind:#4eaa89}.kind-unpaid{--kind:#d58c53}
.calendar-grid{background:#e8ebf3;border:0;border-top:1px solid var(--line);border-radius:0;gap:1px;min-width:665px;grid-template-columns:repeat(7,minmax(94px,1fr));color:var(--ink)}
.calendar-grid .weekday{background:#fafbfe;color:#8d93a6;font-size:11px;font-weight:500;padding:14px 6px}
.calendar-cell{background:#fff;min-height:148px;padding:10px 8px;gap:5px;position:relative}
.calendar-cell.is-rest{background:#fafbfe}
.calendar-cell.outside{opacity:1;background:#f8f9fc}
.calendar-cell.outside .day-number{color:#b8bdca!important}
.calendar-cell.today{box-shadow:inset 0 0 0 2px #aa96e0}
.calendar-cell.range-selected{background:#eee8fc;box-shadow:inset 0 0 0 2px #9477d7}
.calendar-grid .day-number{display:inline-flex;align-items:center;justify-content:center;color:#626981;background:transparent;border:0;border-radius:50%;width:44px;min-height:44px;font-size:13px;font-weight:600;padding:0;flex-shrink:0}
.calendar-cell.today .day-number{background:#7354dc;color:#fff!important}
.day-number:hover{background:#efebf8}
.calendar-tag{font-size:10px;font-weight:500;line-height:1.55;border-left:3px solid var(--kind,#9ba2b4);border-radius:4px;padding:4px 5px;min-width:0;overflow-wrap:anywhere;background:#f4f5fa;color:#60667b}
.calendar-tag.kind-approved,.calendar-tag.kind-cancel_requested{background:#eaf6f1;color:#44856e}
.calendar-tag.kind-holiday{background:#fff0f2;color:#ae6070}
.calendar-tag.kind-joint{background:#f1ecfa;color:#80609d}
.calendar-tag.kind-pending{background:#fff7e7;color:#a5853e}
.calendar-tag.kind-unpaid{background:#fff2e8;color:#ad774e}
.calendar-tag.kind-work,.calendar-tag.kind-rest{background:transparent;font-size:9px;color:#8990a4}
.calendar-extra{display:none}
.calendar-more{background:transparent;border:0;color:#795bb6;font-size:10px;padding:7px 0;min-height:32px;text-align:left}
.calendar-instruction{padding:0 26px;margin:12px 0;font-size:11px;color:#8d85a0}
.calendar-selection{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:15px 25px;padding:16px;background:#f3eefc;border:1px solid #e2d7f4;border-radius:12px}
.calendar-selection strong{font-size:12px;color:#6a519d}
.calendar-selection small{margin-top:6px;font-size:10px}
.date-detail{border-top:1px solid var(--line);padding:22px 26px;background:#fbfaff}
.date-detail h3{font-size:15px;margin:0}
.date-detail [data-date-items]{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}
.date-detail .calendar-tag{font-size:12px;padding:9px 12px;max-width:100%}
.calendar-grid[data-editable]{user-select:none;-webkit-user-select:none;touch-action:pan-y}
.calendar-grid.is-selecting{touch-action:none}
.brand-info-link{border:0;padding:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:left}
.brand-info-link:hover{text-decoration:underline}
.brand-dialog{max-width:480px;width:calc(100% - 32px);border:1px solid #dfd7ef;border-radius:22px;padding:30px;box-shadow:0 28px 100px #24163940;color:var(--ink)}
.brand-dialog::backdrop{background:#171124a6;backdrop-filter:blur(4px)}
.brand-dialog h2{font-size:23px;line-height:1.3;margin-top:20px}
.brand-dialog p{font-size:14px}
.brand-monogram{font-size:35px;letter-spacing:-2px;font-weight:700;color:#7354c9;padding:18px 0}
.beta-auth{gap:58px;grid-template-columns:1.15fr 1fr;align-items:center}
.guest:has(.beta-auth){max-width:1320px;padding-top:40px}
.login-hero{position:relative;min-height:640px;border-radius:25px;background:#141424;color:#fff;padding:42px 38px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;border:1px solid #28233e}
.login-hero .hero-copy{position:relative;z-index:2}
.login-hero .pill{color:#c9b6ff;border-color:#a38bd23d;font-size:9px}
.login-hero h1{font-size:clamp(36px,3.7vw,51px);font-weight:600;letter-spacing:-2px;margin:23px 0 20px;max-width:430px}
.login-hero p{color:#b1adc3;font-size:14px;line-height:1.8;max-width:330px}
.hero-grid{position:absolute;inset:0;background:radial-gradient(ellipse at 75% 70%,#6950aa36,transparent 60%),linear-gradient(90deg,#c0a9ff06 1px,transparent 1px),linear-gradient(#c0a9ff06 1px,transparent 1px);background-size:auto,45px 45px,45px 45px;pointer-events:none}
.hero-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.hero-chips span{background:#ffffff07;border:1px solid #ffffff12;border-radius:20px;font-size:10px;padding:7px 10px;color:#d5cce6}
.hero-orbit{width:270px;height:230px;position:relative;align-self:center;margin:12px 0 30px;flex-shrink:0}
.orbit-ring{position:absolute;inset:25px 0;border:1px solid #a78ad264;border-radius:50%;transform:rotate(-30deg);box-shadow:0 0 25px #a78ad20a,inset 0 0 25px #a78ad20a}
.orbit-ring.two{inset:38px 12px;transform:rotate(35deg);border-color:#c9b2f947}
.orbit-ring.three{inset:0 50px;transform:rotate(15deg);border-color:#9c88d65e}
.orbit-core{position:absolute;left:95px;top:73px;width:78px;height:78px;border-radius:23px;background:linear-gradient(145deg,#b79ae4,#7952c6);display:grid;place-items:center;font-size:60px;font-weight:600;line-height:1;color:#fff;box-shadow:0 0 65px #8f5add4d;font-family:Arial,sans-serif}
.orbit-core span{height:9px;width:9px;border-radius:50%;background:#d8ffb3;position:absolute;right:12px;top:14px}
.orbit-node{position:absolute;width:10px;height:10px;background:#c9b8ec;border:2px solid #f2eaff;border-radius:50%;box-shadow:0 0 16px #baa0f0}
.n1{top:47px;left:25px}.n2{right:20px;bottom:57px;background:#c9efb3}.n3{top:24px;right:65px;width:7px;height:7px}
.orbit-label{position:absolute;bottom:-15px;width:100%;text-align:center;font-size:8px;letter-spacing:2px;color:#9385b1}
.hero-brand{position:relative;z-index:2;color:#9791ac;font-size:10px!important;display:flex;gap:5px;align-items:center}
.hero-brand strong{color:#d4c7ec}
.hero-brand>span{margin-left:auto;color:#bca4e9}
.beta-auth .auth-card{border:0;box-shadow:none;background:transparent;margin:0;padding:20px 0}
.beta-auth .auth-card h2{font-size:38px;letter-spacing:-1.5px;font-weight:600}
.welcome-dot{color:#a493cd}
.beta-auth .auth-card .eyebrow{letter-spacing:1.4px;color:#a19aad;font-size:9px}
.beta-auth .auth-card>p{margin-bottom:30px;color:#9692a4}
.beta-auth .stack{gap:21px}
.beta-auth .field{font-size:12px;color:#746b87}
.beta-auth .field input{min-height:50px;background:#fff;border-color:#e2dfeb;border-radius:10px}
.beta-auth .primary{min-height:50px;border-radius:10px;margin-top:7px;width:100%}
.password-label{display:flex;justify-content:space-between;gap:12px;align-items:center}
.password-label a{font-size:11px;font-weight:400;color:#9683b5}
.password-control{display:block;position:relative}
.password-control input{padding-right:65px}
.password-toggle{position:absolute;right:5px;top:3px;min-width:54px;min-height:44px;border:0;background:transparent;color:#8b77a7;font-size:11px;padding:8px}
.login-footnote{font-size:10px;color:#a29aac;border-top:1px solid #e8e3ef;padding-top:20px;margin-top:25px;line-height:1.8}
.login-footnote .status-dot{height:5px;width:5px;margin-right:6px;background:#b5a5cd}
.languages button{min-height:34px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes beta-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:no-preference){.orbit-ring.one{animation:orbit-one 16s linear infinite}.orbit-ring.two{animation:orbit-two 20s linear infinite}.orbit-core{animation:core-float 5s ease-in-out infinite}.orbit-node{animation:node-glow 4s ease-in-out infinite alternate}.n2{animation-delay:2s}@keyframes orbit-one{to{transform:rotate(330deg)}}@keyframes orbit-two{to{transform:rotate(-325deg)}}@keyframes core-float{50%{transform:translateY(-8px)}}@keyframes node-glow{to{opacity:.45;box-shadow:0 0 25px #baa0f0}}}
@media(max-width:1100px){.beta-auth{gap:35px}.login-hero{padding:35px 28px;min-height:620px}.login-hero h1{font-size:40px}.profile-header{gap:18px}.profile-header>button{align-self:flex-start}.profile-facts>div{padding:17px}.quota-overview{gap:20px;padding:22px}.quota-overview-value{padding-right:20px}.profile-savebar{flex-wrap:wrap}.profile-savebar>label{max-width:none;min-width:240px}}
@media(max-width:800px){.quota-overview{flex-wrap:wrap}.quota-overview>div:first-child{flex-basis:100%}.quota-overview-value{flex:1}.calendar-toolbar,.calendar-filters,.calendar-meta,.date-detail{padding-left:18px;padding-right:18px}.calendar-selection{margin-left:18px;margin-right:18px;flex-wrap:wrap}.profile-header{flex-wrap:wrap}.profile-avatar{width:80px;height:80px;border-radius:24px}.profile-avatar img{border-radius:19px}.profile-header>button{margin-left:auto}.profile-facts{grid-template-columns:1fr 1fr}.profile-facts>div:nth-child(2){border-right:0}.profile-facts>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:720px){.guest:has(.beta-auth){padding-top:20px}.beta-auth{display:flex;flex-direction:column;gap:24px;align-items:stretch}.login-hero{min-height:0;padding:26px;border-radius:19px}.login-hero h1{font-size:35px;max-width:430px;margin-top:17px;margin-bottom:13px}.login-hero p{max-width:400px;font-size:12px}.hero-chips{margin-top:15px}.hero-orbit{display:none}.hero-brand{margin-top:26px}.beta-auth .auth-card{padding:5px 4px 20px}.beta-auth .auth-card h2{font-size:31px}.topbar{padding:0 15px;gap:8px}.languages button{padding:7px 8px;font-size:10px}.topbar .brand{width:115px}.topbar .brand img{left:-24px}.top-actions{gap:8px}.signed .topbar>div:first-child{font-size:10px}.signed .topbar .quiet{font-size:10px;padding:8px}.profile-header{padding:20px;gap:15px}.profile-identity{min-width:150px}.profile-identity h1{font-size:25px}.profile-identity p{font-size:12px}.profile-header>button{width:100%}.profile-tabs a{padding:12px;font-size:12px}.profile-savebar{position:static;padding:18px!important;gap:12px}.profile-savebar>label{min-width:100%}.profile-savebar .form-actions{width:100%}.account-email{align-items:flex-start;flex-direction:column}.bank-block{padding:16px}.quota-overview-value>strong{font-size:30px}.week-strip{gap:5px}.week-day{border-radius:11px;padding:12px 2px}.week-day>span{font-size:10px}.week-day>strong{font-size:21px}.week-day small{font-size:9px}.calendar-filters{gap:12px}.calendar-filters>label{flex-basis:calc(50% - 10px);min-width:110px}.calendar-filters>button{width:100%}.calendar-toolbar h2{font-size:22px}.calendar-instruction{padding:0 18px}.calendar-grid{min-width:595px;grid-template-columns:repeat(7,minmax(85px,1fr))}.calendar-cell{min-height:138px;padding:7px}.calendar-nav{gap:5px}.page-actions{width:100%}.page-actions .button{flex:1}.form-actions{gap:8px}.form-actions>*{flex:1}.panel .inline>button{width:100%}.calendar-selection .page-actions .button{font-size:11px}.quota-expiry{min-width:110px}.profile-facts>div{padding:16px 14px}.panel .form-grid{grid-template-columns:1fr}.brand-dialog{padding:23px}.profile-header .chips .badge{font-size:9px}.section-heading{gap:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.profile-tabs,.profile-header>button,.profile-savebar,.calendar-selection,.brand-info-link{display:none!important}.profile-workspace [data-tab-panel]{display:block!important}.profile-workspace [data-profile-form]{display:block!important}.calendar-scroll{overflow:visible}.calendar-grid{min-width:0}}
