/* The shared preview design remains unchanged; these rules only style real accounts. */
.account-app [hidden]{display:none!important}
.account-app{min-height:100vh;background:radial-gradient(ellipse at 10% 0%,#eeebfc 0,transparent 42%),#f7f8fa}
.account-app h1{max-width:none;overflow-wrap:anywhere}
.account-app button:disabled{opacity:.55;transform:none}
.account-app .button{text-decoration:none}
.account-app .topbar{min-height:88px;height:auto;padding-top:14px;padding-bottom:14px;gap:18px}
.account-app .topbar-end{flex-wrap:wrap;justify-content:flex-end;gap:8px}
.account-app .brand{flex-shrink:0}
.account-app .brand img{width:40px;height:40px}
.account-app .topbar .text-button{padding:0 10px}
.account-app .topbar .text-button[aria-current=page]{background:var(--tint);border-radius:10px}
.account-shell{max-width:1180px;margin:0 auto;padding:44px 28px 20px;min-height:calc(100vh - 180px)}
.account-shell.narrow{max-width:860px}
.account-loading{min-height:65vh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:32px;text-align:center}
.account-loading h1{font-size:2rem}
.account-login{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,440px);gap:clamp(28px,7vw,100px);align-items:center;padding:40px 0 55px}
.account-intro h1{font-size:clamp(2.5rem,4.2vw,4.1rem);max-width:610px}
.account-intro .lead{max-width:530px;font-size:1.05rem}
.account-intro ul{list-style:none;display:grid;gap:17px;padding:0;margin:32px 0}
.account-intro li{display:flex;gap:12px;align-items:center;color:#4f596d;font-size:.94rem}
.account-intro li .icon{color:var(--accent);width:19px;height:19px}
.account-auth-card{padding:30px;background:white;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow)}
.account-auth-card h2{font-size:1.5rem;line-height:1.3;margin-bottom:9px}
.account-auth-card>p{font-size:.9rem;line-height:1.65;margin-bottom:24px}
.account-auth-card .button{width:100%}
.account-form{display:grid;gap:13px}
.account-field{display:grid;gap:7px;min-width:0}
.account-field>span,.account-form>label{font-size:.86rem;font-weight:650;color:#3a4354}
.account-field input{width:100%;min-width:0;min-height:50px;padding:12px 14px;border:1px solid #bdc6d7;border-radius:10px;background:white;color:#272b39;font:inherit;font-size:16px}
.account-field input[readonly]{background:#f4f5f8;color:#586174}
.account-field small{font-size:.76rem;line-height:1.6;color:var(--muted);font-weight:400}
.account-field .account-code{font-size:1.6rem;font-variant-numeric:tabular-nums;letter-spacing:.18em}
.account-email{overflow-wrap:anywhere;font-weight:650;color:#414a5d}
.account-divider{display:flex;align-items:center;gap:12px;color:#8790a0;font-size:.75rem;margin:23px 0}
.account-divider:before,.account-divider:after{content:"";height:1px;background:var(--border);flex:1}
.account-auth-card .field-hint{margin-top:12px}
.account-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}
.account-actions.spread{justify-content:space-between}
.account-error{margin:0 0 22px;scroll-margin-top:20px;font-size:.9rem;overflow-wrap:anywhere}
.account-error:focus{outline:2px solid #a03f2a;outline-offset:3px}
.account-notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;max-width:min(620px,calc(100% - 32px));padding:14px 20px;background:#243c35;color:white;border-radius:12px;box-shadow:0 10px 30px #0002;line-height:1.5;font-size:.88rem}
.account-banner{background:#edf3fa;border:1px solid #d9e4f2;border-radius:12px;padding:17px 20px;margin:0 0 24px;line-height:1.6;color:#486077;font-size:.87rem}
.account-banner strong{display:block;color:#334e68;margin-bottom:3px}
.account-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:30px}
.account-heading h1{font-size:clamp(2rem,4vw,3rem)}
.account-heading p{margin-top:12px;max-width:650px;line-height:1.65}
.account-heading>.button{flex-shrink:0}
.account-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.account-group-card{display:flex;flex-direction:column;align-items:flex-start;gap:15px;background:white;border:1px solid var(--border);border-radius:18px;padding:25px;min-width:0}
.account-group-card h2{font-size:1.4rem;overflow-wrap:anywhere}
.account-group-card p{font-size:.85rem}
.account-group-card .button{margin-top:auto;width:100%}
.account-card-top{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px}
.account-module-tags{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0;list-style:none}
.account-module-tags li{font-size:.74rem;background:#f1f3f7;border-radius:7px;padding:6px 9px;color:#596579}
.account-empty{text-align:center;background:white;border:1px solid var(--border);border-radius:20px;padding:50px 25px}
.account-empty>.workspace-icon{margin:0 auto 22px;width:56px;height:56px;border-radius:17px}
.account-empty h2{font-size:1.6rem;margin-bottom:12px}
.account-empty p{max-width:540px;line-height:1.7;margin:0 auto 24px}
.account-wizard .steps{width:100%;max-width:720px;margin-bottom:32px;list-style:none;padding:0}
.account-wizard .step{cursor:default}
.account-wizard .step:not(:last-child):after{right:4%;width:17%}
.account-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.account-choice{position:relative;cursor:pointer;background:white;border:1.5px solid var(--border);padding:22px 19px;border-radius:17px;display:flex;flex-direction:column;gap:14px;min-width:0}
.account-choice:has(:checked){border-color:var(--accent);background:var(--tint);box-shadow:0 0 0 1px var(--accent)}
.account-choice .choice-top{display:flex;justify-content:space-between;align-items:center;gap:15px}
.account-choice input{width:20px;height:20px;margin:0;flex-shrink:0}
.account-choice strong{font-size:1.06rem;line-height:1.5}
.account-choice p{font-size:.83rem;line-height:1.65}
.account-choice .workspace-icon{background:white}
.account-wizard .form-card{display:grid;gap:24px}
.account-wizard .color-field{margin:0}
.account-wizard .color-choice{min-height:66px;min-width:64px}
.account-wizard .color-choice input{position:absolute;opacity:0;width:1px;height:1px}
.account-wizard .soft-note{margin-top:0}
.account-wizard .module-row{min-height:84px}
.account-wizard .module-row>input{position:static;opacity:1;width:20px;height:20px;margin:0;flex-shrink:0;order:2}
.account-summary{display:grid;gap:22px;background:white;border:1px solid var(--border);border-radius:17px;padding:26px}
.account-summary h2{font-size:1.55rem;overflow-wrap:anywhere}
.account-summary dl{margin:0;display:grid;grid-template-columns:150px 1fr;gap:12px 20px;font-size:.9rem}
.account-summary dt{color:var(--muted)}
.account-summary dd{margin:0;overflow-wrap:anywhere;font-weight:550}
.account-wizard .wizard-actions{align-items:center}
.account-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.account-section-grid .panel{min-width:0}
.account-section-grid .panel>p{font-size:.87rem;line-height:1.7}
.account-module-empty{background:#f7f8fa;border-radius:11px;margin-top:19px;padding:17px;font-size:.8rem;line-height:1.6;color:#6b7485}
.account-group-details{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 25px;font-size:.85rem;color:var(--muted)}
.account-settings{display:grid;gap:22px}
.account-settings .panel>h2{font-size:1.3rem;margin-bottom:10px}
.account-settings .panel>p{font-size:.88rem;line-height:1.7;margin-bottom:20px}
.account-settings .account-form{max-width:560px}
.account-settings .account-form .button{justify-self:start}
.account-passkey-list{list-style:none;margin:25px 0;padding:0;display:grid;gap:10px}
.account-passkey-list li{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px;border:1px solid var(--border);border-radius:12px}
.account-passkey-list li>div{min-width:0;overflow-wrap:anywhere}
.account-passkey-list strong,.account-passkey-list small{display:block}
.account-passkey-list small{margin-top:3px;color:var(--muted)}
.account-settings .danger{color:#9c3b34;border-color:#e5c8c4}
.account-confirm{border:1px solid #e5c8c4;padding:20px;border-radius:12px;background:#fff9f8;margin-top:20px}
.account-confirm h3{font-size:1rem;margin-bottom:10px}
.account-confirm p{font-size:.85rem;line-height:1.7}
.account-confirm .account-actions{margin-top:15px}
.account-reauth{border:1px solid #d9d5f0;background:#f8f7fe;border-radius:14px;padding:24px;margin-bottom:25px;scroll-margin-top:20px}
.account-reauth h2{font-size:1.2rem;margin-bottom:10px}
.account-reauth>p{font-size:.86rem;line-height:1.65;margin-bottom:18px}
.account-reauth .account-form{max-width:520px}
.account-footer{max-width:1180px;margin:0 auto;padding:24px 28px 28px;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;color:#727c8b;font-size:.77rem}
.account-footer a{text-underline-offset:3px;min-height:30px;display:inline-flex;align-items:center}
@media(max-width:800px){.account-login{grid-template-columns:1fr;gap:28px;padding-top:0}.account-intro h1{max-width:600px}.account-intro ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 0}.account-intro li{align-items:flex-start;font-size:.8rem}.account-auth-card{max-width:520px;width:100%;margin:0 auto}.account-choices{grid-template-columns:1fr}.account-choice{display:grid;grid-template-columns:80px 1fr;gap:4px 18px}.account-choice .choice-top{grid-row:span 2}.account-choice p{grid-column:2}.account-choice strong{align-self:center}.account-heading{flex-wrap:wrap}.account-heading h1{max-width:none}}
@media(max-width:600px){.account-shell{padding:27px 18px 16px}.account-app .topbar{padding:14px 18px;flex-wrap:wrap;gap:10px}.account-app .topbar-end{gap:3px}.account-app .topbar .text-button{font-size:.77rem;padding:0 8px;min-height:44px}.account-app .brand img{width:34px;height:34px}.account-intro h1{font-size:2.5rem}.account-intro .lead{font-size:.94rem;margin-bottom:18px}.account-intro ul{display:none}.account-auth-card{padding:24px 21px;border-radius:18px}.account-groups,.account-section-grid{grid-template-columns:1fr}.account-heading{gap:18px}.account-heading>.button{width:100%}.account-group-card{padding:22px}.account-summary{padding:20px}.account-summary dl{grid-template-columns:1fr;gap:4px}.account-summary dd{margin-bottom:12px}.account-wizard .step:not(:last-child):after{right:-28%;width:48%}.account-wizard .wizard-actions{gap:12px;align-items:stretch}.account-wizard .wizard-actions .button{flex:1}.account-wizard .wizard-actions>.button.primary{flex:1.4}.account-passkey-list li{align-items:flex-start;flex-wrap:wrap}.account-passkey-list .button{width:100%}.account-settings .account-form .button{width:100%;justify-self:stretch}.account-reauth{padding:20px 17px}.account-actions.spread{align-items:stretch}.account-confirm .account-actions .button{width:100%}.account-footer{padding:20px 18px}.account-empty{padding:34px 20px}.account-notice{bottom:16px;font-size:.82rem}}

.account-footer nav { display:flex; flex-wrap:wrap; gap:1rem; }

/* Real collaboration: single-column controls remain usable on small phones. */
.collaboration-tabs{display:flex;gap:10px;margin:0 0 22px;flex-wrap:wrap}
.collaboration-join{max-width:720px;margin:0 auto}
.collaboration-join h1{font-size:clamp(1.8rem,5vw,2.7rem);margin:12px 0 20px}
.collaboration-join p,.collaboration-invitation p{line-height:1.65}
.collaboration-calendar .panel-heading{gap:15px;flex-wrap:wrap;align-items:center}
.collaboration-calendar .panel-heading h2{font-size:1.3rem}
.collaboration-editor,.collaboration-invitation{margin:22px 0;padding:22px;border:1px solid var(--border);border-radius:14px;background:#f7f8fc}
.collaboration-editor h3,.collaboration-invitation h3{font-size:1.1rem;margin:0 0 12px}
.collaboration-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.account-field textarea,.account-field select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:12px 14px;border:1px solid #bdc6d7;border-radius:10px;background:white;color:#272b39;font:inherit;font-size:16px}
.account-field textarea{resize:vertical;line-height:1.6}
.collaboration-editor .account-actions{margin-top:6px}
.collaboration-day{margin:28px 0 14px;font-size:1.06rem;line-height:1.5;color:#3a4354}
.collaboration-event,.collaboration-person{padding:20px;border:1px solid var(--border);border-radius:14px;margin:12px 0;background:white;overflow-wrap:anywhere;min-width:0}
.collaboration-event-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px}
.collaboration-event h4,.collaboration-person h4{font-size:1.05rem;line-height:1.5;margin:0}
.collaboration-event p,.collaboration-person p{font-size:.92rem;line-height:1.65;margin:6px 0}
.collaboration-event .pill{flex-shrink:0}
.collaboration-meta{display:block;font-size:.78rem;color:#586477;line-height:1.65;margin-top:8px}
.collaboration-notes{white-space:pre-wrap}
.collaboration-event.is-cancelled{border-color:#d89090;background:#fff6f5}
.collaboration-event.is-cancelled h4,.collaboration-event.is-cancelled .pill{color:#982b2b}
.collaboration-event.is-cancelled .pill{background:#ffe0de}
.collaboration-empty{padding:28px 0;line-height:1.65;color:#586477}
.collaboration-error{margin:12px 0;line-height:1.6;overflow-wrap:anywhere}
.collaboration-permissions{display:grid;gap:10px;margin:18px 0 0;padding:14px;border:1px solid var(--border);border-radius:10px}
.collaboration-permissions legend{padding:0 6px;font-size:.88rem;font-weight:650}
.collaboration-permissions label{display:flex;align-items:center;gap:12px;min-height:44px;font-size:.9rem;line-height:1.5;cursor:pointer}
.collaboration-permissions input{width:22px;height:22px;flex-shrink:0;accent-color:var(--accent)}
.collaboration-permissions small{line-height:1.65;color:#586477}
.collaboration-person .account-actions{margin-top:15px}
.collaboration-unavailable{margin:24px 0;line-height:1.7}
.account-app .danger{color:#982b2b;border-color:#d89090}
.account-app :is(button,input,select,textarea):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.account-app .panel{min-width:0}
@media(max-width:600px){
  .collaboration-dates{grid-template-columns:1fr}
  .collaboration-editor,.collaboration-invitation{padding:16px 13px;margin:18px 0}
  .collaboration-event,.collaboration-person{padding:16px 13px}
  .collaboration-event-heading{flex-wrap:wrap;gap:8px}
  .collaboration-event .account-actions .button,.collaboration-person .account-actions .button,.collaboration-editor .account-actions .button,.collaboration-invitation .account-actions .button,.collaboration-join .account-actions .button{width:100%}
  .collaboration-calendar .panel-heading .button{width:100%}
  .collaboration-tabs .button{flex:1;min-height:48px}
  .collaboration-person .account-confirm .button{width:100%;margin-top:8px}
  .collaboration-editor input[type=datetime-local]{max-width:100%;min-width:0}
}
