:root {
  color-scheme:dark;
  --bg:#000000;--card:#101010;--card2:#151515;--card3:#1b1b1b;
  --border:#292929;--border2:#363636;--fg:#f6f6f6;--muted:#8c8c8c;--red:#A20000;
  --red-tint:#2b0b0b;--radius:18px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden}
body{margin:0;background:#000;color:var(--fg);font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;min-width:320px;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.33}a{color:inherit}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--red);outline-offset:3px}
[hidden]{display:none!important}
.shell{width:min(1410px,calc(100% - 74px));margin-inline:auto}
.topbar{position:relative;z-index:6;border-bottom:1px solid #242424;background:#000}
.topbar-inner{height:103px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:17px;min-width:0;text-decoration:none}
.brand-image{display:block;width:187px;height:auto;object-fit:contain}
.brand-tag{border-left:1px solid #383838;padding-left:16px;white-space:nowrap;color:#858585;font-size:10px;font-weight:800;letter-spacing:.16em;line-height:1.8}
.header-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}
.sync-badge{display:flex;align-items:center;gap:8px;border:1px solid #333;background:#111;color:#b7b7b7;padding:12px 15px;border-radius:99px;font-weight:760;font-size:10px;letter-spacing:.07em;white-space:nowrap}
.status-light{height:8px;width:8px;background:#aaa;border-radius:50%;flex:none}
.sync-badge.online{border-color:#27412d;color:#a6d2af}.sync-badge.online .status-light{background:#72c987}
.sync-badge.demo .status-light{background:var(--red)}
.btn{border-radius:11px;border:1px solid #444;background:#161616;color:#fff;min-height:46px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:11px;font-weight:820;letter-spacing:.08em;text-decoration:none;white-space:nowrap;transition:background .16s,border-color .16s,transform .16s}
.btn:active,.round-icon:active,.square-nav:active{transform:scale(.97)}
.btn-red{background:var(--red);border-color:var(--red)}.btn-red:hover{background:#870000;border-color:#870000}
.btn-outline{background:transparent;border-color:#484848}.btn-outline:hover{border-color:#878787;background:#171717}
.btn svg{height:16px;width:16px}
.round-icon{border:1px solid #454545;border-radius:50%;display:grid;place-items:center;color:#f3f3f3;background:transparent;width:45px;height:45px;flex-shrink:0}
.round-icon:hover{border-color:#929292;background:#161616}
.main-content{padding-top:65px}
.intro{display:flex;justify-content:space-between;align-items:end;gap:30px;padding-bottom:57px}
.eyebrow{display:flex;gap:11px;align-items:center;letter-spacing:.18em;font-size:11px;font-weight:740;color:#b0b0b0;margin:0 0 22px}
.red-signal{display:block;width:9px;height:9px;background:var(--red);border-radius:50%}
.intro h1{font-weight:860;letter-spacing:-.075em;font-size:clamp(42px,5.8vw,78px);line-height:1.03;margin:0}
.intro h1 .accent-headline{color:var(--red)}
.intro h1 .white-period{color:#fff}
.red-period,.intro h1 .red-period{color:var(--red)}
.intro-side{font-size:13px;line-height:1.85;max-width:260px;color:#999;margin:0 7px 4px 0}
.notice{border:1px solid #643030;background:#220b0b;padding:15px 17px;border-radius:13px;display:flex;align-items:center;gap:15px;margin-bottom:18px}
.notice>svg{color:#d08a8a;align-self:flex-start;width:22px}
.notice-copy{flex:1}.notice-copy b{font-size:10px;letter-spacing:.1em}.notice-copy p{margin:3px 0 0;font-size:12px;line-height:1.5;color:#cba6a6}
.notice-action{background:none;color:#fff;border:0;display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.1em;font-weight:800;white-space:nowrap}.notice-action svg{width:13px}
.workspace{display:grid;grid-template-columns:minmax(0,1.78fr) minmax(285px,.76fr);gap:19px;align-items:start}
.calendar-panel,.day-panel,.next-panel,.member-panel{background:var(--card);border:1px solid #2d2d2d;border-radius:var(--radius);min-width:0}
.calendar-panel{overflow:hidden}
.calendar-panel-inner{padding:29px 28px 0}
.panel-kicker{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;letter-spacing:.14em;font-weight:750;color:#aaa}
.panel-kicker span:first-child{color:var(--red)}.panel-right{color:#696969}
.month-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:32px 0 29px}
.month-copy{display:flex;align-items:center;gap:15px;min-width:0}.month-line{width:4px;height:36px;background:var(--red);border-radius:5px;flex:none}
.month-top h2{font-size:clamp(25px,2.9vw,40px);font-weight:840;line-height:1.03;letter-spacing:-.06em;margin:0;white-space:nowrap}
.month-top h2 span{font-weight:480;color:#848484;letter-spacing:-.05em}
.month-nav{display:flex;align-items:center;gap:7px;flex:none}
.square-nav,.today-nav{display:grid;place-items:center;height:39px;color:#eee;background:#191919;border:1px solid #373737;border-radius:9px}
.square-nav{width:39px}.square-nav svg{width:16px;height:16px}.square-nav:not(:disabled):hover{background:#252525}
.today-nav{padding:0 13px;font-weight:800;letter-spacing:.075em;font-size:9px}.today-nav:hover{border-color:#777}
.legend{display:flex;align-items:center;gap:20px;padding-bottom:20px;color:#999;font-weight:700;font-size:10px;letter-spacing:.035em}
.legend>div{display:flex;align-items:center;gap:7px}.legend-mark{width:8px;height:8px;display:block;border-radius:2px;background:var(--red)}
.person-a-mark{background:#6e6e6e}.person-b-mark{background:#efefef}
.weekday-header{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #313131;border-bottom:0;border-radius:10px 10px 0 0;background:#1a1a1a;overflow:hidden}
.weekday-header span{display:grid;place-items:center;font-size:10px;font-weight:790;color:#969696;letter-spacing:.1em;padding:13px 0}
.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #313131;border-top:1px solid #313131}
.calendar-day{display:flex;flex-direction:column;align-items:stretch;gap:7px;border:0;border-right:1px solid #313131;border-bottom:1px solid #313131;background:#111;min-width:0;height:110px;padding:10px 7px 7px;text-align:left;color:#eee;transition:background .14s;position:relative}
.calendar-day:hover{background:#202020}.calendar-day.other-month{color:#5e5e5e;background:#0d0d0d}.calendar-day.other-month:hover{background:#171717}
.calendar-day.selected{background:#2b1111;box-shadow:inset 0 0 0 1px #a2000066}.calendar-day.selected:hover{background:#321616}
.calendar-day.today-day .number{color:#fff;background:var(--red);border-radius:6px;width:25px;height:25px;display:grid;place-items:center;margin:-4px 0 -2px -3px}
.calendar-day .number{font-weight:690;font-size:12px;display:block;width:25px;height:25px;line-height:24px;text-align:center;flex:none}
.day-pills{display:flex;flex-direction:column;gap:3px;min-width:0}
.calendar-pill{border-radius:4px;font-weight:760;font-size:9px;letter-spacing:-.025em;line-height:1.4;min-height:19px;padding:3px 5px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}
.calendar-pill.both{background:#8b0808}.calendar-pill.a{background:#454545}.calendar-pill.b{background:#eee;color:#181818}
.more-pills{font-size:10px;color:#999;line-height:1.4;padding-left:3px}
.calendar-day.other-month .day-pills{opacity:.44}
.calendar-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 1px 19px;color:#858585;font-size:9px;font-weight:740;letter-spacing:.075em}
.calendar-foot span:first-child{display:flex;align-items:center;gap:8px}.tiny-red-dot{width:5px;height:5px;border-radius:50%;background:var(--red)}
.side-column{display:grid;gap:18px;min-width:0}
.day-panel,.next-panel,.member-panel{padding:25px 24px}
.side-kicker{font-size:10px;letter-spacing:.15em;font-weight:780;color:var(--red)}
.side-head{display:flex;align-items:end;justify-content:space-between;gap:10px;padding-top:22px}
.day-micro{font-size:10px;color:#9c9c9c;letter-spacing:.14em;font-weight:700}
.side-head h2{margin:5px 0 0;font-size:clamp(22px,2.2vw,28px);font-weight:830;letter-spacing:-.055em;line-height:1.14}
.side-head h2 span{color:var(--red)}.day-plus{border-color:#5b2121;background:#2b0b0b}.day-plus:hover{border-color:var(--red)}
.day-events{display:flex;flex-direction:column;gap:9px;margin:24px 0 21px;min-height:105px}
.empty-day{text-align:center;padding:20px 10px 12px;display:flex;align-items:center;flex-direction:column;gap:10px;color:#8c8c8c}
.empty-day .empty-symbol{display:grid;place-items:center;width:48px;height:48px;border:1px solid #353535;background:#171717;border-radius:14px}
.empty-day .empty-symbol svg{height:22px;width:22px;color:#777}.empty-day b{font-size:12px;font-weight:670;color:#ccc}
.empty-day span{font-size:11px;max-width:195px;line-height:1.6}
.day-event{display:flex;gap:12px;align-items:center;text-align:left;width:100%;padding:12px 11px;background:#191919;border:1px solid #2d2d2d;border-radius:10px;color:#f3f3f3;min-width:0}
.day-event:hover{border-color:#555}.day-event .event-stroke{align-self:stretch;width:3px;border-radius:3px;background:var(--red);flex:none}.day-event .event-stroke.a{background:#747474}.day-event .event-stroke.b{background:#fff}
.event-main{min-width:0;flex:1}.event-main b{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:12px;font-weight:770}.event-main small{display:block;color:#969696;font-size:10px;margin-top:5px}.event-chevron{color:#777;width:15px;height:15px}
.full-btn{width:100%;font-size:10px;min-height:43px}.full-btn svg{color:var(--red)}
.next-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:17px 0 16px}.next-top h3{font-size:22px;letter-spacing:-.05em;line-height:1.15;margin:0}.next-top h3 span{color:var(--red)}.next-top>span{font-size:9px;font-weight:750;letter-spacing:.075em;color:#777}
.upcoming-list{display:flex;flex-direction:column;gap:0;border-top:1px solid #282828}
.upcoming-item{display:flex;align-items:center;gap:12px;min-width:0;padding:11px 0;border-bottom:1px solid #282828;background:transparent;border-left:0;border-right:0;border-top:0;color:#eee;text-align:left;width:100%}
.upcoming-date{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #414141;background:#1b1b1b;width:39px;height:43px;border-radius:8px;flex:none;color:#e6e6e6}.upcoming-date b{font-size:16px;line-height:1;font-weight:810}.upcoming-date small{font-size:8px;letter-spacing:.1em;margin-top:4px;color:#999}
.upcoming-detail{min-width:0;flex:1}.upcoming-detail b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.upcoming-detail small{display:block;color:#999;font-size:10px;margin-top:3px}
.upcoming-dot{width:7px;height:7px;border-radius:2px;background:var(--red);flex:none}.upcoming-dot.a{background:#777}.upcoming-dot.b{background:#e8e8e8}
.next-empty{padding:23px 0 10px;color:#999;font-size:12px;line-height:1.6}
.member-row{display:flex;align-items:center;gap:14px;margin:19px 0 22px}.avatar-stack{display:flex;padding-left:1px}.avatar-stack span{width:39px;height:39px;border-radius:12px;background:#970000;color:#fff;font-size:12px;font-weight:790;display:grid;place-items:center;border:2px solid #111}.avatar-stack span+span{margin-left:-9px;background:#383838;color:#fff}
.member-row b{display:block;font-size:13px}.member-row small{display:block;font-size:11px;color:#939393;margin-top:3px}
.text-arrow{display:inline-flex;align-items:center;gap:12px;justify-content:flex-start;background:none;border:0;color:#cfcfcf;padding:0;text-align:left;font-size:9px;font-weight:800;letter-spacing:.09em}.text-arrow:hover{color:white}.text-arrow svg{width:15px;height:15px;color:var(--red)}
.footer{border-top:1px solid #282828;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:31px 0 37px;margin-top:65px;letter-spacing:.09em;font-size:10px;font-weight:800}.footer-muted{font-size:9px;color:#888;font-weight:600}.footer>span:last-child{color:#777;font-size:9px}
/* Modals: mobile-first, with keyboard-safe scrolling */
.overlay{position:fixed;inset:0;background:#000c;z-index:50;display:flex;align-items:center;justify-content:center;padding:22px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.auth-dialog,.event-dialog,.help-dialog{background:#111;border:1px solid #3d3d3d;border-radius:22px;width:min(100%,560px);box-shadow:0 30px 110px #000b;max-height:min(90dvh,850px);overflow:auto;scrollbar-width:thin;padding:33px;flex:none;margin:auto}
.auth-dialog{max-width:440px;text-align:center;padding:39px 33px 36px}.auth-logo{width:min(225px,86%);margin:0 auto 29px;display:block;height:auto}.auth-kicker{letter-spacing:.19em;font-weight:800;font-size:10px;color:var(--red)}.auth-dialog h2{font-size:34px;letter-spacing:-.065em;line-height:1.1;margin:11px 0 12px}.auth-dialog h2 span,.event-dialog h2 span,.help-dialog h2 span{color:var(--red)}.auth-description{font-size:13px;color:#a0a0a0;margin:0 auto 27px;max-width:310px;line-height:1.65}
.auth-dialog form{text-align:left}.auth-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:14px}
.auth-dialog label,.field{font-size:10px;letter-spacing:.08em;color:#d0d0d0;font-weight:750;display:block;min-width:0}
.auth-dialog input,.field input,.field select,.field textarea{display:block;background:#1d1d1d;border:1px solid #3e3e3e;border-radius:10px;color:#fff;outline:0;width:100%;padding:13px 12px;min-width:0;margin-top:9px;font-size:16px;letter-spacing:0;font-weight:490;line-height:1.25}
.field textarea{resize:vertical;min-height:70px;line-height:1.5}.auth-dialog input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--red)}
.auth-hint{font-size:11px;color:#8f8f8f;margin:11px 0 20px;line-height:1.5}.auth-submit{width:100%;min-height:50px}.auth-submit svg{margin-left:auto}
.person-pick{margin:0 0 16px}.person-pick>span{display:block;font-size:10px;color:#ccc;font-weight:750;letter-spacing:.08em;margin-bottom:9px}.person-pick>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.person-choice{background:#1a1a1a;color:#a6a6a6;border:1px solid #404040;border-radius:10px;padding:13px 6px;font-size:10px;font-weight:810;letter-spacing:.04em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-choice.active{border-color:var(--red);background:#270909;color:#fff}
.form-error{color:#ffa9a9;border:1px solid #6a2525;background:#260b0b;font-size:12px;line-height:1.5;border-radius:9px;padding:11px;margin:12px 0}
.dialog-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding-bottom:23px;border-bottom:1px solid #323232;margin-bottom:21px}.dialog-top h2{font-size:31px;margin:9px 0 0;letter-spacing:-.065em;line-height:1.06}.close-modal{width:38px;height:38px}
.block-field{margin-bottom:17px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:18px}.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23bbb' fill='none' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-size:18px;background-repeat:no-repeat;padding-right:35px}.field select option{background:#171717;color:#fff}
.all-day-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:1px 0 17px;padding:11px 0;border-top:1px solid #2b2b2b;border-bottom:1px solid #2b2b2b}.all-day-row b{font-size:10px;letter-spacing:.07em}.all-day-row small{display:block;color:#929292;font-size:11px;margin-top:3px}.toggle{position:relative;display:flex;cursor:pointer;flex:none}.toggle input{opacity:0;position:absolute}.toggle span{display:block;width:42px;height:25px;border-radius:40px;background:#444;transition:background .2s;position:relative}.toggle span::after{content:'';position:absolute;left:3px;top:3px;width:19px;height:19px;background:#fff;border-radius:50%;transition:transform .2s}.toggle input:checked+span{background:var(--red)}.toggle input:checked+span::after{transform:translateX(17px)}.toggle input:focus-visible+span{outline:2px solid #fff;outline-offset:2px}
.repeat-fields{margin-top:4px}.repeat-days{padding:0 0 19px}.repeat-days>span{font-size:10px;font-weight:750;letter-spacing:.08em;color:#c3c3c3;display:block;margin-bottom:9px}.weekday-buttons{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday-buttons button{border:1px solid #424242;background:#1c1c1c;color:#b7b7b7;border-radius:8px;min-width:0;padding:10px 0;font-size:10px;font-weight:820}.weekday-buttons button.active{color:#fff;border-color:var(--red);background:#5b0808}
.note-field>span{color:#6b6b6b;letter-spacing:0;font-size:9px}.repeat-edit-note{background:#1e1815;border:1px solid #493b34;border-radius:9px;padding:10px;color:#d7bdab;font-size:11px;line-height:1.5}.modal-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:23px}.modal-actions .btn-red{flex:1;justify-content:space-between}.btn-delete{border-color:#663030;background:transparent;color:#e0a7a7;padding-inline:13px}.btn-delete:hover{background:#2a1111}
.help-dialog{max-width:540px}.help-mainline{color:#a8a8a8;margin:-3px 0 22px;font-size:13px}.info-block{border-top:1px solid #333;padding:21px 0}.info-block h3{font-size:11px;letter-spacing:.1em;margin:0 0 9px}.info-block p{margin:0 0 14px;color:#9f9f9f;font-size:12px;line-height:1.8}.info-block code{color:#fff;font-weight:800;background:#262626;padding:3px 6px;border-radius:4px}.help-dialog .text-arrow{margin-top:9px}
.toast{position:fixed;z-index:100;bottom:max(18px,env(safe-area-inset-bottom));left:50%;width:max-content;max-width:calc(100% - 28px);transform:translate(-50%,130px);opacity:0;pointer-events:none;transition:transform .22s,opacity .22s;color:#f4f4f4;background:#202020;border:1px solid #555;box-shadow:0 12px 35px #000b;border-radius:14px;padding:12px 18px;text-align:center;font-weight:640;font-size:12px}
.toast.show{transform:translate(-50%,0);opacity:1}
@media(min-width:1160px){.side-column{position:sticky;top:18px}}
@media(max-width:1100px){.shell{width:calc(100% - 46px)}.workspace{grid-template-columns:minmax(0,1.45fr) minmax(270px,.75fr)}.calendar-panel-inner{padding:23px 18px 0}.calendar-day{height:92px;padding:7px 4px 4px}.calendar-pill{font-size:8px;padding:3px}.legend{gap:11px}.panel-right{display:none}.day-panel,.next-panel,.member-panel{padding:21px 18px}}
@media(max-width:860px){.workspace{grid-template-columns:1fr}.side-column{display:grid;grid-template-columns:1fr 1fr;align-items:start}.member-panel{grid-column:1/-1}.calendar-day{height:105px;padding:8px}.calendar-pill{font-size:9px}.intro{padding-bottom:40px}}
@media(max-width:600px){
  .shell{width:calc(100% - 28px)}.topbar-inner{height:83px;gap:8px}.brand-image{width:139px}.brand{gap:8px}.brand-tag{display:none}.header-actions{gap:7px}.sync-badge{padding:9px 11px;gap:6px;font-size:8px}.status-light{width:7px;height:7px}.header-share{display:none}.header-create{min-height:37px;padding:0 11px;border-radius:9px;font-size:9px;gap:3px}.header-create svg{height:15px;width:15px}
  .main-content{padding-top:39px}.intro{display:block;padding-bottom:36px}.eyebrow{font-size:9px;letter-spacing:.1em;margin-bottom:20px}.intro h1{font-size:clamp(40px,11.7vw,61px);letter-spacing:-.065em}.intro-side{font-size:12px;max-width:340px;margin:14px 0 0;line-height:1.65}.notice{align-items:start;flex-wrap:wrap;gap:8px;padding:13px}.notice-copy{flex:1}.notice-action{margin-left:31px}
  .workspace{gap:13px}.calendar-panel{border-radius:16px}.calendar-panel-inner{padding:18px 11px 0}.panel-kicker{font-size:9px;letter-spacing:.06em}.month-top{padding:21px 0 21px;gap:8px}.month-copy{gap:8px}.month-line{height:28px;width:3px}.month-top h2{font-size:clamp(22px,6.4vw,29px)}.month-nav{gap:4px}.square-nav{width:31px;height:33px}.square-nav svg{width:15px}.today-nav{font-size:8px;height:33px;padding:0 7px}.legend{font-size:9px;gap:13px;padding-bottom:17px;flex-wrap:wrap}.legend-mark{width:7px;height:7px}
  .weekday-header span{padding:11px 0;font-size:9px}.calendar-day{height:80px;padding:7px 3px 3px;gap:4px}.calendar-day .number{font-size:11px;width:20px;height:20px;line-height:20px}.calendar-day.today-day .number{margin:-2px 0 0 -1px;height:20px;width:20px;border-radius:5px}.day-pills{gap:2px}.calendar-pill{font-size:7.7px;line-height:1.35;min-height:16px;padding:2px 3px;border-radius:3px}.more-pills{font-size:8px;padding-left:2px}.calendar-foot{padding:13px 1px 15px;letter-spacing:0;font-size:8px}.calendar-foot span:first-child{gap:5px}
  .side-column{display:flex;flex-direction:column;gap:13px}.side-column>section{width:100%}.side-head h2{font-size:27px}.day-panel,.next-panel,.member-panel{padding:22px 20px}.day-events{min-height:80px}.member-panel{grid-column:auto}.footer{margin-top:43px;padding:22px 0 36px;gap:12px;flex-wrap:wrap}.footer>span:last-child{font-size:8px}
  .overlay{padding:10px;align-items:flex-end}.auth-dialog,.event-dialog,.help-dialog{padding:24px 20px;border-radius:19px 19px 13px 13px;max-height:min(91dvh,820px);width:100%}.auth-dialog{padding:30px 24px}.auth-logo{width:min(194px,85%);margin-bottom:20px}.auth-dialog h2{font-size:29px}.auth-description{font-size:12px}.dialog-top h2{font-size:27px}.form-two{gap:9px}.field{font-size:9px}.field input,.field select,.field textarea{padding:13px 10px}.modal-actions{margin-top:18px}.btn-delete{font-size:9px}.modal-actions .btn-red{font-size:10px}
}
@media(max-width:375px){.brand-image{width:116px}.sync-badge{padding:8px 7px;font-size:7px}.header-create{padding:0 8px}.month-top h2{font-size:22px}.calendar-panel-inner{padding-inline:8px}.calendar-day{height:76px}.intro h1{font-size:41px}.legend{gap:10px;font-size:8px}}
@media(display-mode:standalone){body{padding-top:max(0px,env(safe-area-inset-top,0px))}.topbar{padding-top:0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.delete-options{background:#210e0e;border:1px solid #6d2929;border-radius:10px;padding:13px;margin-top:17px}.delete-options>span{display:block;font-weight:800;color:#efb0b0;font-size:10px;letter-spacing:.06em;margin-bottom:10px}.delete-options>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}.delete-options button{background:#141414;border:1px solid #653232;border-radius:8px;color:#eee;padding:11px 8px;font-size:9px;font-weight:820;letter-spacing:.03em}
body.modal-open{overflow:hidden}

.month-top h2 span{margin-left:7px}.side-head h2{word-spacing:.11em}


/* SCHEDULE. v2 — responsive polish / safe bounds. Matches QR., STRETCH. */
:root{--red:#A20000}
/* Keep text within its own flex track; navigation can wrap without colliding with the year. */
.month-top{flex-wrap:wrap;row-gap:17px;min-width:0}
.month-copy{flex:1 1 auto;min-width:0;max-width:100%}
.month-top h2{min-width:0;white-space:normal;overflow-wrap:normal}
.month-top h2 span{display:inline-block;white-space:nowrap}
.month-nav{margin-left:auto;max-width:100%;min-width:0}
.legend{flex-wrap:wrap;min-width:0;row-gap:8px}
.legend>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
.calendar-foot{min-width:0;flex-wrap:wrap;row-gap:6px}
.calendar-foot>span{min-width:0}
.calendar-day,.calendar-pill,.day-pills{min-width:0;max-width:100%}
.day-event,.upcoming-item,.member-row{min-width:0;max-width:100%}
.day-event .event-main,.upcoming-detail,.member-row>div:last-child{min-width:0}
.member-row b,.member-row small{overflow-wrap:anywhere}
.side-head>div{min-width:0}.side-head h2{overflow-wrap:anywhere}
/* Some Safari native date/time controls have intrinsic widths larger than their CSS box. */
.field input,.field select,.field textarea,.auth-dialog input{min-width:0;max-width:100%;box-sizing:border-box}
.field input[type=date],.field input[type=time]{display:block;min-height:48px;min-width:0;max-width:100%;overflow:hidden}
.field input[type=date]::-webkit-date-and-time-value,
.field input[type=time]::-webkit-date-and-time-value{min-width:0;text-align:left}
.form-two>*{min-width:0;max-width:100%}
.event-dialog,.auth-dialog,.help-dialog{min-width:0;max-width:100%;overflow-wrap:break-word}
.dialog-top>div{min-width:0}
.modal-actions{min-width:0}.modal-actions>.btn{min-width:0;white-space:normal;text-align:left}
/* Tablet widths with a narrow calendar column also get natural wrapping. */
@media (min-width:861px) and (max-width:1180px){
 .month-top{row-gap:14px}
 .month-copy{flex:0 1 auto}
 .month-top h2{font-size:clamp(23px,2.7vw,33px)}
}
@media (max-width:860px){
 .month-top{row-gap:15px}
}
@media (max-width:600px){
  .topbar-inner{min-width:0}
  .topbar .brand{min-width:0;flex-shrink:1}
  .topbar .brand-image{max-width:100%;height:auto}
  .header-actions{min-width:0}
  .main-content,.workspace,.calendar-panel,.calendar-panel-inner{min-width:0}
  .intro{min-width:0}
  .intro h1{max-width:100%;font-size:clamp(34px,10.6vw,57px);line-height:1.07;letter-spacing:-.068em;overflow-wrap:normal}
  .eyebrow{max-width:100%;overflow-wrap:anywhere;line-height:1.45}
  .month-top{display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:16px;padding:20px 0 23px}
  .month-copy{align-self:flex-start;width:100%;flex:none;gap:9px}
  .month-top h2{font-size:clamp(23px,7vw,33px);letter-spacing:-.055em}
  .month-top h2 span{margin-left:5px}
  .month-nav{align-self:flex-end;margin-left:0;gap:7px}
  .square-nav{width:40px;height:40px}
  .today-nav{height:40px;padding:0 14px;font-size:9px}
  .calendar-foot{font-size:8px;line-height:1.5}
  .calendar-foot span:first-child{flex:1 1 185px}
  .calendar-foot #monthCount{margin-left:auto}
  /* One control per row avoids the overlapping iOS date/time/select native widgets. */
  .event-dialog .form-two{grid-template-columns:minmax(0,1fr);gap:17px;margin-bottom:19px}
  .event-dialog .form-two>.field{width:100%;min-width:0}
  .event-dialog .field input,.event-dialog .field select{width:100%;min-height:48px}
  .event-dialog .form-two .field select{padding-right:40px}
  /* bottom sheets scroll *inside* the device's safe area, including Dynamic Island */
  .overlay{padding: max(12px,env(safe-area-inset-top,0px)) 12px max(14px,env(safe-area-inset-bottom,0px));align-items:flex-end}
  .auth-dialog,.event-dialog,.help-dialog{
    max-height:calc(100dvh - 30px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    width:100%;
    padding:24px clamp(15px,5vw,24px);
    border-radius:18px;
    margin:auto auto 0;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .auth-dialog{padding:28px clamp(18px,5.5vw,26px)}
  .modal-actions{gap:8px}
  .weekday-buttons{gap:5px}
  .weekday-buttons button{min-width:0;padding:12px 0}
  .day-panel,.next-panel,.member-panel{padding:21px clamp(14px,5vw,20px)}
}
@media(max-width:359px){
  .shell{width:calc(100% - 24px)}
  .calendar-panel-inner{padding-inline:10px}
  .intro h1{font-size:clamp(32px,10vw,36px)}
  .month-top h2{font-size:clamp(21px,6.9vw,24px)}
  .header-actions{gap:5px}
  .sync-badge{padding:7px 6px}
  .header-create{padding-inline:7px}
  .calendar-day{height:74px;padding:6px 2px}
  .legend{gap:9px;font-size:8px}
  .event-dialog .modal-actions{flex-wrap:wrap}
  .event-dialog .modal-actions .btn-red{flex:1 1 100%;order:0}
  .event-dialog .modal-actions .btn-delete{order:1}
}
@media(display-mode:standalone){
  body{padding-top:env(safe-area-inset-top,0px)}
  .topbar{padding-top:0}
}

/* Final mobile and headline spacing pass */
.intro h1{word-spacing:.16em}
@media(max-width:375px){
  .notice{display:grid;grid-template-columns:23px minmax(0,1fr);align-items:start;column-gap:12px;row-gap:8px}
  .notice>svg{grid-column:1;grid-row:1;width:20px}
  .notice-copy{grid-column:2;grid-row:1;min-width:0}
  .notice-action{grid-column:2;grid-row:2;margin:2px 0 0;padding:8px 0;justify-content:flex-start}
  .auth-name-grid{grid-template-columns:minmax(0,1fr)}
  .delete-options>div{grid-template-columns:minmax(0,1fr)}
}


/* SCHEDULE. v3 - person colors, real portrait profiles, iOS-safe controls */
:root{--together:#A20000;--person-a:#FFFFFF;--person-b:#0041A2}
html,body{width:100%;max-width:100%;overflow-x:clip;overscroll-behavior-x:none}
body{min-width:0}
.shell,.workspace,.side-column,.event-dialog,.auth-dialog,.help-dialog,.profile-dialog{min-width:0}
.calendar-pill.both,.upcoming-dot.both{background:var(--together);color:#fff}
.calendar-pill.a{background:var(--person-a);color:#080808}
.calendar-pill.b{background:var(--person-b);color:#fff}
.together-mark{background:var(--together)}
.person-a-mark{background:var(--person-a);border:1px solid #888}
.person-b-mark{background:var(--person-b)}
.day-event .event-stroke.b{background:var(--person-b)}
.day-event .event-stroke.a{background:var(--person-a)}
.upcoming-dot.a{background:var(--person-a)}
.upcoming-dot.b{background:var(--person-b)}
/* Avoid horizontal page pan rather than merely concealing broken fields. */
.overlay{max-width:100dvw;overflow-x:clip;overscroll-behavior-x:none}
.event-dialog,.auth-dialog,.help-dialog,.profile-dialog{max-width:calc(100dvw - 24px);overflow-x:clip}
#eventForm,.event-dialog .form-two,.event-dialog .field,.modal-actions{width:100%;min-width:0;max-width:100%}
.event-dialog .form-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.event-dialog .field>input:not(.native-picker),.event-dialog .field select,.event-dialog .field textarea{width:100%;max-width:100%;min-width:0}
/* On iOS, native date/time input text can exceed its CSS width; move the native picker
   behind a clipped, full-width interactive layer and show an accessible text value. */
.picker-shell{position:relative;display:flex;align-items:center;overflow:hidden;width:100%;max-width:100%;min-width:0;min-height:52px;margin-top:9px;background:#1d1d1d;border:1px solid #3e3e3e;border-radius:10px;isolation:isolate}
.picker-shell:focus-within{border-color:var(--red)}
.picker-face{display:flex;align-items:center;min-height:50px;width:100%;min-width:0;max-width:100%;padding:0 13px;color:#fff;font-size:16px;font-weight:490;letter-spacing:0;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
.field .picker-shell .native-picker{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;opacity:0!important;z-index:2;cursor:pointer;font-size:16px;background:transparent;appearance:none;-webkit-appearance:none}
.field .native-picker::-webkit-date-and-time-value{min-width:0;max-width:100%;display:block}
/* Disable only double-tap zoom on quick day selections; normal pinch zoom remains available. */
.weekday-buttons{width:100%;max-width:100%;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0}
.weekday-buttons button,.calendar-day{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.weekday-buttons button{min-height:39px;min-width:0;white-space:nowrap}
/* Miniature full-frame photos in the bottom shared-agenda card */
.member-open{appearance:none;border:0;padding:0;background:transparent;color:inherit;text-align:left;cursor:pointer;width:100%;touch-action:manipulation}
.member-open:hover .member-chevron,.member-open:focus-visible .member-chevron{color:#fff;transform:translateX(2px)}
.member-copy{min-width:0;flex:1}
.member-chevron{height:17px;width:17px;color:#9a9a9a;transition:transform .18s,color .18s}
.avatar-stack{flex:none;align-items:center;padding-left:0}
.avatar-frame{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;width:44px;height:44px;border-radius:9px;background:#090909;border:1px solid #6c6c6c}
.avatar-frame.avatar-b{margin-left:-7px;border-color:#0041A2}
.avatar-frame img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#070707}
.avatar-frame img:not([src]){opacity:0}
/* Additional photo preview right next to an appointment, without making the text smaller. */
.event-photos{display:flex;align-items:center;flex:none;padding-left:5px}
.event-photos img{display:block;width:25px;height:25px;object-fit:contain;border-radius:5px;border:1px solid #333;background:#0a0a0a}
.event-photos img+img{margin-left:-5px}
/* Shared agenda dialog with a visible red connection */
.profile-dialog{background:#101010;border:1px solid #3c3c3c;border-radius:22px;width:min(100%,680px);box-shadow:0 25px 110px #000d;max-height:min(90dvh,880px);overflow-y:auto;scrollbar-width:thin;padding:30px;flex:none;margin:auto}
.profile-dialog .dialog-top h2{font-size:clamp(25px,4vw,37px)}
.profile-intro{color:#acacac;margin:0 0 24px;font-size:13px}
.profile-pair{display:grid;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);align-items:start;gap:10px;width:100%}
.profile-person{min-width:0;max-width:100%;text-align:center}
.profile-image{width:100%;max-width:240px;margin:0 auto 13px;padding:0;min-height:135px;display:flex;align-items:center;justify-content:center;background:#060606;border:1px solid #343434;border-radius:13px;overflow:hidden}
.profile-image img{display:block;width:100%;height:auto;max-height:250px;object-fit:contain;object-position:center;background:#060606}
.profile-image img:not([src]){opacity:0}
.profile-name{font-size:clamp(15px,2.3vw,20px);font-weight:830;letter-spacing:-.04em;overflow-wrap:anywhere}
.profile-color{font-size:10px;font-weight:700;letter-spacing:.05em;color:#a0a0a0;margin:5px auto 12px}
.profile-person.person-a .profile-image{border-color:#747474}
.profile-person.person-b .profile-image{border-color:#0041A2}
.profile-edit{display:inline-flex;align-items:center;justify-content:center;border:1px solid #414141;background:#1b1b1b;border-radius:9px;padding:10px 8px;color:#dedede;font-size:9px;font-weight:800;letter-spacing:.04em;cursor:pointer;touch-action:manipulation}
.profile-edit:hover{border-color:#999}
.profile-edit:focus-within{outline:2px solid #fff;outline-offset:2px}
.profile-edit input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.profile-connection{align-self:start;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;margin-top:70px;color:var(--red);min-width:0}
.profile-connection .connect-badge{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--red);border-radius:50%;background:#2b0b0b;color:var(--red)}
.profile-connection svg{height:24px;width:24px;stroke-width:2.4}
.connect-rule{height:1px;width:46px;background:var(--red);opacity:.68}
.profile-connection small{font-size:9px;font-weight:830;letter-spacing:.06em;color:#dbb5b5}
.profile-status{font-size:11px;color:#aaa;line-height:1.6;text-align:center;margin:23px 0 15px}
.profile-dialog .full-btn{justify-content:space-between;min-height:46px}
@media(max-width:600px){
 .event-dialog .form-two{grid-template-columns:minmax(0,1fr)}
 .event-dialog,.auth-dialog,.help-dialog,.profile-dialog{width:100%;max-width:calc(100dvw - 24px);margin:auto auto 0;overflow-x:clip}
 .event-dialog .picker-shell{min-height:53px}
 .profile-dialog{max-height:calc(100dvh - 30px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:22px 15px;border-radius:18px}
 .profile-pair{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);gap:5px}
 .profile-image{min-height:100px;border-radius:11px}
 .profile-image img{max-height:170px}
 .profile-connection{margin-top:45px;gap:5px}
 .profile-connection .connect-badge{height:34px;width:34px}
 .profile-connection svg{height:17px;width:17px}
 .connect-rule{width:28px}
 .profile-connection small{font-size:7px}
 .profile-edit{font-size:8px;padding:8px 5px}
 .profile-dialog .dialog-top{margin-bottom:18px}
 .profile-intro{font-size:12px;margin-bottom:16px}
 .event-photos img{width:24px;height:24px}
}
@media(max-width:359px){
 .profile-pair{grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);gap:4px}
 .profile-connection .connect-badge{height:30px;width:30px}
 .profile-image{min-height:85px}
 .avatar-frame{width:40px;height:40px}
 .member-open{gap:9px}
 .event-photos img{width:20px;height:20px}
 .event-dialog .form-two{gap:16px}
}
