@font-face{font-family:Manrope;src:url('/fonts/manrope.woff2') format('woff2');font-weight:200 800;font-display:swap}
@font-face{font-family:DM Sans;src:url('/fonts/dm-sans.woff2') format('woff2');font-weight:100 1000;font-display:swap}
:root{font-family:DM Sans,sans-serif;color:#191d28;background:#fff;--ink:#191d28;--muted:#586171;--subtle:#687181;--line:#e4e7ed;--blue:#234bd8;--blue-hover:#183bb9;--hour:56px;--closing:24px;color-scheme:light}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:300px}
[hidden]{display:none!important}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
button,a,input{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
button{appearance:none;border:0;background:none}
img{display:block;max-width:100%}
h1,h2,h3,p{margin:0}
h1,h2,h3,.brand{font-family:Manrope,sans-serif}
.icon{width:19px;height:19px;flex:0 0 auto;display:inline-grid;place-items:center;vertical-align:middle}
.icon svg{width:100%;height:100%}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip:focus{position:absolute;z-index:6;top:10px;left:10px;background:white;padding:12px;border-radius:8px}
.startup{min-height:100svh;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted)}
.brand{display:inline-flex;align-items:center;gap:9px;font-size:20px;font-weight:800;letter-spacing:-.055em;line-height:1.1;width:max-content}
.brand small{margin-left:11px;color:var(--muted);font:750 10px DM Sans,sans-serif;letter-spacing:.14em;vertical-align:middle}
.brand-dot{color:var(--blue)}
.button{min-height:40px;padding:0 15px;display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid transparent;border-radius:9px;font-weight:680;font-size:13.5px;white-space:nowrap;transition:background-color .16s,border-color .16s,color .16s}
.primary{color:#fff;background:var(--blue);border-color:var(--blue)}
.primary:hover{background:var(--blue-hover);border-color:var(--blue-hover)}
.secondary{background:#fff;border-color:#dce2ed;color:#35435a}
.secondary:hover{background:#f4f6fb;border-color:#cbd5e6}
.danger{color:#a52631}
.danger:hover{background:#fff1f1}
.danger-solid{background:#a52631;color:white}
.danger-solid:hover{background:#861b25}
.login{min-height:100svh;display:grid;place-items:center;padding:40px 24px}
.login-content{width:min(100%,340px);text-align:center}
.login-content>img{margin:0 auto 18px}
.login h1{font-size:clamp(29px,5vw,36px);letter-spacing:-.055em;line-height:1.15;font-weight:800}
.login-intro{margin:10px 0 25px;font-size:14px;line-height:1.5;color:var(--muted)}
.login-intro strong{font-weight:700;color:var(--ink)}
.google-button{display:flex;justify-content:center;align-items:center;gap:10px;min-height:45px;border:1px solid #d8dde6;padding:0 12px;border-radius:8px;font-size:14px;font-weight:650;transition:background-color .16s,border-color .16s}
.google-button[href]:hover{background:#f7f8fa;border-color:#c2c9d6}
.google-button[aria-disabled=true]{color:var(--subtle);background:#f7f8fa;cursor:default}
.login .message{margin-bottom:14px}
.login #demo{margin-top:9px}
.login-footer{margin-top:23px;font-size:12px;color:var(--muted)}
.login-footer a:hover{text-decoration:underline}

.topbar{height:61px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:auto 1fr auto;align-items:center;padding:0 clamp(16px,4vw,64px);gap:28px}
.main-nav{height:100%;display:flex;align-items:stretch;gap:18px}
.main-nav button{position:relative;padding:0 2px;color:var(--muted);font-size:13px;font-weight:650;white-space:nowrap}
.main-nav button:hover,.main-nav button[aria-current=page]{color:var(--ink)}
.main-nav button::after{content:'';position:absolute;inset:auto 0 -1px;height:2px;border-radius:2px;background:var(--blue);opacity:0}
.main-nav button[aria-current=page]::after{opacity:1}
.nav-mine-compact { display: none; }
.account{justify-self:end;position:relative;min-width:0;z-index:5}
.account-trigger{display:block;border-radius:50%;padding:3px}
.account-trigger:hover{background:#f5f7fb}
.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:#424b5d;background:#f0f2f6;font-size:11.5px;font-weight:750}
.account-menu{position:absolute;top:calc(100% + 9px);right:0;min-width:212px;background:white;border:1px solid var(--line);border-radius:12px;padding:13px;box-shadow:0 9px 25px #192e4e18}
.account-menu strong,.account-menu small{display:block;overflow-wrap:anywhere}
.account-menu strong{font-size:13.5px}
.account-menu small{color:var(--muted);margin:4px 0 11px;font-size:12px}
.account-menu form{padding-top:6px;border-top:1px solid var(--line)}
.account-menu button,.account-menu>a{display:block;padding:8px;border-radius:7px;width:100%;text-align:left;font-size:13px}
.account-menu button:hover,.account-menu>a:hover{background:#f3f5fa}
.main{max-width:1320px;margin:0 auto;padding:27px clamp(24px,5vw,62px) 16px}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
.page-head h1{font-size:clamp(23px,3.2vw,34px);font-weight:800;letter-spacing:-.055em;line-height:1.18}
.page-head .primary{min-height:39px;padding:0 13px}
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; }
.credit-balance { padding: 6px 9px; border-radius: 7px; background: #edf2ff; color: #2b4590; font-size: 12px; font-weight: 750; white-space: nowrap; }
.credit-balance[data-empty=true] { background: #fff3eb; color: #87482c; }
.booking-cost { margin-top: 14px; padding: 9px 11px; border-radius: 8px; background: #f2f5fc; color: #364965; font-size: 13px; }
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 10px}
.calendar-toolbar h2,#mine-title{font-size:15px;line-height:1.25;letter-spacing:-.025em;font-weight:750}
.calendar-actions{display:flex;align-items:center;gap:7px}
.calendar-actions .button{min-height:34px;font-size:12px;padding:0 11px}
.stepper{display:flex;border:1px solid #dce2ed;border-radius:8px;overflow:hidden}
.stepper button{height:32px;width:34px;display:grid;place-items:center;color:#4c5a72}
.stepper button+button{border-left:1px solid #dce2ed}
.stepper button:hover{background:#f1f5ff;color:var(--blue)}
.stepper button:focus-visible{outline-offset:-2px}
.stepper .icon{width:17px;height:17px}
.calendar-message{padding:10px 20px;background:#f4f7fd;color:var(--muted);font-size:13px}
.range-toolbar{min-height:38px;margin:0 0 8px;padding:4px 9px;display:flex;align-items:center;gap:8px;border-radius:8px;background:#f6f7fa;color:var(--muted);font-size:12px}
.range-toolbar .icon{width:15px;height:15px;flex:none}
.range-toolbar p{line-height:1.35;margin:0;flex:1}
.range-toolbar strong{font-variant-numeric:tabular-nums}
.range-toolbar.selecting{background:#edf2ff;color:#28479f}
.range-toolbar.invalid{background:#fff4ed;color:#813c26}
.range-cancel{font-weight:750;border-radius:5px;padding:4px 7px}
.range-cancel:hover{background:#234bd812}
.day-picker{display:none}
.calendar-grid{display:grid;grid-template-columns:59px repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:9px;overflow:clip}
.calendar-grid.compact{grid-template-columns:53px minmax(0,1fr)}
.day-head{display:flex;align-items:center;justify-content:center;gap:6px;height:43px;border-bottom:1px solid var(--line);color:var(--muted)}
.day-head span{font-size:12px;text-transform:capitalize;font-weight:650}
.day-head strong{width:25px;height:25px;display:grid;place-items:center;font-size:13px;font-variant-numeric:tabular-nums;color:var(--ink);font-weight:750;border-radius:50%}
.is-today .day-head{color:#2143ae}
.is-today .day-head strong{color:white;background:var(--blue)}
.day{border-left:1px solid var(--line);min-width:0}
.hour-labels{display:grid;grid-auto-rows:var(--hour)}
.hour-labels>div,.last-hour{position:relative;padding-top:2px;text-align:center;color:#56647b;font-size:10.5px;font-variant-numeric:tabular-nums;letter-spacing:.02em;font-weight:650}
.hour-labels span{display:none;position:absolute;inset-inline:0;padding-top:1px;font-size:9px;font-weight:500;color:#667186}
.hour-labels .half-hour{display:block}
.last-hour{height:var(--closing);border-top:1px solid var(--line);padding-top:4px}
.lane{height:calc(12 * var(--hour));position:relative}
.is-weekend .lane{background:#fafbfc}
.slots{height:100%;display:grid;grid-template-rows:repeat(48,1fr)}
.slot{padding:0;display:grid;place-items:center;min-height:0}
.slots .slot{border-bottom:1px solid #f5f6f9}
.slots .slot:nth-child(2n){border-bottom-color:#edf0f4}
.slots .slot:nth-child(4n){border-bottom-color:#e4e7ed}
.slots .slot:last-child{border-bottom:0}
.choosing-end button.slot{background:#f5f7ff}
button.slot:hover,button.slot:focus-visible{background:#ecf1ff;color:var(--blue);outline-offset:-2px}
.slot-label{font-size:10px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1;opacity:0}
button.slot:hover .slot-label,button.slot:focus-visible .slot-label{opacity:1}
.closing-slot{height:var(--closing);width:100%;border-top:1px solid var(--line);color:var(--blue);font-size:10px;font-weight:750}
.events{position:absolute;inset:0;pointer-events:none}
.range-preview{position:absolute;z-index:2;inset-inline:2px;border:1px solid #4264da;border-radius:4px;background:#5477f12b}
.event{position:absolute;z-index:1;inset-inline:4px;pointer-events:auto;display:flex;flex-direction:column;align-items:start;justify-content:center;overflow:hidden;border:1px solid #d6dfe9;border-left:3px solid #91a1ba;border-radius:6px;background:#eef2f7;color:#364965;padding:1px 6px;text-align:left;line-height:1.18;transition:background-color .15s}
.event.own{background:#e5edff;border-color:#cbd9fc;border-left-color:#3155d2;color:#213d93}
.event:hover{background:#e1e8f2}
.event.own:hover{background:#dbe6ff}
.event strong,.event span{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.event-title{font-size:11.5px;font-weight:760}
.event-owner{font-size:10.5px;font-weight:600}
.event-time{font-size:10px;margin-top:2px}
.event.short .event-time{display:none}
.event.tiny{border-radius:3px;flex-direction:row;align-items:center;justify-content:start;gap:4px;padding-block:0;line-height:11px}
.event.tiny .event-owner{order:-1;flex-shrink:0;max-width:100%;font-size:10px;font-weight:750}
.event.tiny .event-title{font-size:9.5px;font-weight:500}
.event.tiny .event-title::before{content:'· ';}
.event.range-boundary:hover,.event.range-boundary:focus-visible{box-shadow:inset 0 2px #4264da}
.now-line{height:1px;position:absolute;z-index:2;left:0;right:0;background:#4068ed}
.now-line::before{content:'';position:absolute;top:-2px;left:-2px;background:#4068ed;width:5px;height:5px;border-radius:50%}
.calendar-footer{min-height:37px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 1px;font-size:11.5px;color:var(--muted)}
.legend,.legend span{display:flex;align-items:center;gap:7px}
.legend{gap:15px}
.legend i{height:9px;width:9px;border-radius:3px;background:#91a1ba}
.legend span+span i{background:#3155d2}
#mine-title{padding-bottom:11px;border-bottom:1px solid var(--line)}
.empty{padding:24px 0;color:var(--muted);font-size:14px}
.team-status{font-size:13px;color:var(--muted);padding:0 0 12px}
.team-list{list-style:none;margin:0;padding:0;max-width:720px;border-top:1px solid var(--line)}
.team-list:empty{border:0}
.team-member{min-height:61px;display:flex;align-items:center;gap:12px;padding:9px 2px;border-bottom:1px solid var(--line);font-size:14px;overflow-wrap:anywhere}
.team-member .avatar{width:36px;height:36px;flex:none}
.team-you{margin-left:auto;padding:4px 8px;border-radius:5px;background:#f0f2f6;color:var(--muted);font-size:11px;font-weight:700}
.chat-shell { max-width: 710px; margin-inline: auto; }
.chat-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.chat-top .button { min-height: 33px; font-size: 12px; }
.chat-intro { display: grid; justify-items: center; padding: clamp(24px, 6vw, 64px) 8px 32px; text-align: center; gap: 10px; }
.chat-intro h2 { font-size: clamp(21px, 4vw, 27px); letter-spacing: -.05em; }
.chat-intro p { font-size: 14px; color: var(--muted); }
.chat-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 5px; border-radius: 16px; background: #eaf0ff; color: var(--blue); }
.chat-mark .icon { width: 27px; height: 27px; }
.chat-suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.chat-suggestions .button, .chat-slot .button, .chat-controls .button { min-height: 34px; padding-inline: 10px; font-size: 12px; }
.chat-log { display: grid; gap: 12px; }
.chat-bubble { padding: 12px 14px; max-width: min(92%, 600px); border-radius: 12px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; scroll-margin-bottom: 128px; }
.chat-bubble p { white-space: pre-wrap; }
.chat-user { justify-self: end; background: #eaf0ff; color: #25386b; }
.chat-answer { justify-self: start; background: #f6f7fa; }
.chat-result { display: grid; gap: 2px; padding: 8px 0; margin-top: 7px; border-top: 1px solid #e0e5ef; }
.chat-result span, .chat-card-state { font-size: 12px; color: var(--muted); }
.chat-slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chat-proposal { margin-top: 9px; padding: 11px; border: 1px solid #d9e2fa; border-radius: 9px; background: #fff; }
.chat-caption { font-weight: 700; }
.chat-controls { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chat-compose { position: sticky; bottom: 0; background: #fff; padding: 11px 0 max(9px, env(safe-area-inset-bottom)); margin-top: 6px; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 6px; border: 1px solid #d9e0ed; border-radius: 12px; }
.chat-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px #e9efff; }
.chat-input textarea { flex: 1; min-width: 0; border: 0; outline: 0; padding: 8px 7px; resize: none; font: inherit; font-size: 16px; color: var(--ink); background: transparent; }
.chat-input .button { width: 38px; min-height: 38px; padding: 0; }
.chat-note, .chat-loading { font-size: 12px; color: var(--muted); line-height: 1.45; }
.chat-note { margin-top: 8px; }
.chat-note a { color: var(--blue); text-decoration: underline; }
.chat-loading { margin-top: 12px; scroll-margin-bottom: 128px; }
.chat-loading i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: var(--blue); }
#access-view { max-width: 820px; }
.admin-section-title { font-size: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); }
#access-list + .admin-section-title { margin-top: 16px; }
#access-view .empty { padding: 14px 0; }
.credit-settings { padding: 15px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 11px; }
.credit-settings h2 { font-size: 16px; }
#credit-policy-form { max-width: 450px; }
#save-credit-policy { margin-top: 13px; }
.credit-switch { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 0; margin-top: 9px; gap: 10px; font-size: 13px; font-weight: 700; text-align: left; }
.credit-toggle { position: relative; flex: 0 0 34px; height: 20px; border-radius: 10px; background: #828b9d; }
.credit-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.credit-switch[aria-checked=true] .credit-toggle { background: var(--blue); }
.credit-switch[aria-checked=true] .credit-toggle::after { transform: translateX(14px); }
.credit-unit { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.credit-unit button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.credit-unit button[aria-pressed=true] { background: #eaf0ff; border-color: #d3dffa; color: #28479f; font-weight: 700; }
.access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.access-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.access-identity span { color: var(--muted); font-size: 13px; }
.access-identity .account-status { justify-self: start; color: #43536d; font-size: 11px; font-weight: 700; }
.access-identity .account-status[data-access=denied] { color: #8e303d; }
.access-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.access-actions .button { min-height: 35px; padding-inline: 11px; font-size: 12px; }
.account-access-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
#account-editor-email { overflow-wrap: anywhere; }
.booking-row{width:100%;display:flex;align-items:center;gap:13px;padding:14px 21px;text-align:left}
.booking-row:not(:last-child){border-bottom:1px solid var(--line)}
.booking-row:last-child{border-radius:0 0 15px 15px}
.booking-row:hover{background:#f8faff}
.booking-row>.icon{margin-left:auto;color:var(--subtle)}
.date-stamp{width:49px;flex:0 0 49px;display:grid;justify-items:center;gap:2px;padding:6px 0;border-radius:8px;background:#eef3ff;color:#2c4ca8}
.date-stamp strong{font-size:19px;line-height:1}
.date-stamp small{font-size:10px;text-transform:uppercase;font-weight:750}
.booking-summary{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.booking-summary>strong{font-size:14px}
.booking-summary>span{color:var(--muted);font-size:12px}

.modal-open{overflow:hidden}
.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:8;
  display:grid;
  justify-items:center;
  align-content:safe center;
  overflow:auto;
  overscroll-behavior:contain;
  padding:16px;
  background:#17233b50;
}
.modal{
  width:min(100%,430px);
  min-width:0;
  padding:21px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 16px 55px #14234226;
}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.icon-button{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;color:#56647a}
.icon-button:hover{background:#eef2fa}
.modal h2{font-size:21px;letter-spacing:-.04em;overflow-wrap:anywhere}
.dialog-intro{margin:6px 0 16px;color:var(--muted);font-size:13.5px;line-height:1.5}
.field{display:grid;gap:6px;min-width:0;margin-top:13px;font-size:12.5px;font-weight:730}
.text-field,.picker-trigger{
  appearance:none;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:8px 11px;
  border:1px solid #d9e0ed;
  border-radius:8px;
  background:#fff;
  font-size:14px;
  font-weight:500;
}
.text-field::placeholder{color:#6e7a90}
.text-field[aria-invalid=true]{border-color:#a52631}
.two-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px}
.picker{position:relative}
.picker-trigger{display:flex;align-items:center;gap:8px;text-align:left}
.picker-trigger:hover,.picker-trigger[aria-expanded=true]{border-color:#aebad0}
.picker-trigger .icon{width:17px;height:17px;color:var(--muted)}
.picker-trigger .caret{margin-left:auto}
.picker-panel{
  position:absolute;
  inset:calc(100% + 5px) 0 auto;
  z-index:1;
  padding:5px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  box-shadow:0 8px 25px #1423421e;
}
.date-panel{padding:9px}
.picker-month{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:4px;font-size:14px}
.picker-month span{text-transform:capitalize}
.picker-month button:disabled{cursor:default;opacity:.32}
.picker-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.picker-row>[role=columnheader]{padding:6px 0;text-align:center;color:var(--subtle);font-size:11px;text-transform:capitalize}
.picker-day,.time-option{
  display:block;
  width:100%;
  min-height:36px;
  border-radius:6px;
  font-size:13px;
  font-weight:650;
  font-variant-numeric:tabular-nums;
}
.picker-day:not(:disabled):hover,.time-option:hover{background:#f2f4fa}
.picker-day:disabled{cursor:default;color:#727e90;opacity:.64}
.picker-day[aria-current=date]{color:var(--blue)}
.picker-row [aria-selected=true]>.picker-day,.time-option[aria-selected=true]{background:#eaf0ff;color:#2043b9}
.picker-day:focus-visible,.time-option:focus-visible{outline-offset:-2px}
.time-options{max-height:min(220px,35dvh);overflow-y:auto;overscroll-behavior:contain}
.time-option{padding:6px 9px;text-align:left}
.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin-top:19px}
.message{padding:9px 11px;border-radius:8px;font-size:13px;line-height:1.45}
.error{background:#fff0f1;color:#942433}
.modal .error{margin-top:12px}
.detail-line{display:flex;align-items:center;gap:8px;margin-top:12px;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.detail-line .icon{width:17px;height:17px}
.toast{position:fixed;bottom:20px;right:20px;z-index:10;display:flex;gap:8px;align-items:center;background:#192c51;color:#fff;border-radius:10px;padding:13px 16px;font-size:13.5px;font-weight:700;box-shadow:0 8px 26px #13254b33}
.toast .icon{width:17px;height:17px;color:#a8e0c6}
.privacy{max-width:685px;margin:0 auto;padding:46px 24px}
.privacy h1{font-size:clamp(32px,5vw,52px);letter-spacing:-.07em;margin-top:25px}
.privacy h2{font-size:20px;margin-top:23px;letter-spacing:-.03em}
.privacy p{margin-top:8px;line-height:1.65;color:var(--muted)}
.privacy p a{color:var(--blue);text-decoration:underline}
.privacy .button{margin-top:25px}

@media (prefers-reduced-motion: no-preference) {
  :root {
    --motion-quick: 120ms;
    --motion-standard: 180ms;
    --motion-dialog: 220ms;
    --motion-ease: cubic-bezier(.2, .7, .25, 1);
  }

  :is(.button, .google-button[href], .account-trigger, .icon-button, .stepper button,
      .main-nav button, .account-menu button, .account-menu a, .booking-row,
      .day-picker button, .range-cancel, .picker-day, .time-option, button.slot, .event) {
    transition: background-color var(--motion-quick), border-color var(--motion-quick),
      color var(--motion-quick), box-shadow var(--motion-quick), scale var(--motion-quick) var(--motion-ease);
  }
  :is(.button, .google-button[href], .account-trigger, .icon-button, .stepper button,
      .day-picker button, .range-cancel, .picker-day, .time-option, .event):active:not(:disabled) {
    scale: .97;
  }
  .main-nav button::after {
    scale: .45 1;
    transition: opacity var(--motion-quick), scale var(--motion-standard) var(--motion-ease);
  }
  .main-nav button[aria-current=page]::after { scale: 1; }
  :is(.stepper button, .picker-month button, .booking-row, .picker-trigger) .icon {
    transition: transform var(--motion-standard) var(--motion-ease);
  }
  @media (hover: hover) {
    :is(#next, #date-next, .booking-row):hover > .icon { transform: translateX(2px); }
    :is(#previous, #date-previous):hover > .icon { transform: translateX(-2px); }
  }
  .picker-trigger[aria-expanded=true] .caret { transform: rotate(180deg); }
  :is(.text-field, .picker-trigger) { transition: border-color var(--motion-quick); }
  .range-toolbar { transition: background-color var(--motion-standard), color var(--motion-standard); }
  .credit-toggle { transition: background-color var(--motion-standard); }
  .credit-toggle::after { transition: transform var(--motion-standard) var(--motion-ease); }
  .slot-label { transition: opacity var(--motion-quick); }
  .range-preview {
    transform-origin: top;
    animation: range-in var(--motion-standard) var(--motion-ease);
    transition: height var(--motion-quick) var(--motion-ease);
  }

  .startup img { animation: loading-breathe 900ms ease-in-out 240ms 2 alternate; }
  :where(.login-content, .privacy, .topbar, .main > section, .range-cancel:not([hidden]),
      .calendar-message, .message.error, .event-arriving, #mine-list > *,
      #team-list > *, #access-list > *, #accounts-list > *, .chat-bubble, .chat-intro) {
    animation: arrive var(--motion-standard) var(--motion-ease);
  }
  .main > section { animation-duration: var(--motion-dialog); }
  .chat-loading i { animation: loading-breathe 650ms ease-in-out infinite alternate; }
  .topbar, .calendar-message, .event-arriving { animation-name: fade-in; }
  .motion-next { --slide-from: 7px; }
  .motion-previous { --slide-from: -7px; }
  .day:is(.motion-next, .motion-previous) > *, .picker-row:is(.motion-next, .motion-previous) {
    animation: slide-in var(--motion-dialog) var(--motion-ease);
  }

  :is(.modal-backdrop, .account-menu, .picker-panel, .toast) {
    --surface-duration: var(--motion-standard);
    --surface-offset: translateY(-5px);
    opacity: 1;
    transform: none;
  }
  .modal-backdrop {
    --surface-duration: var(--motion-dialog);
    --surface-offset: none;
  }
  .toast { --surface-offset: translateY(7px); }

  @supports (transition-behavior: allow-discrete) {
    :is(.modal-backdrop, .account-menu, .picker-panel, .toast) {
      transition: opacity var(--surface-duration) var(--motion-ease),
        transform var(--surface-duration) var(--motion-ease),
        display var(--surface-duration) allow-discrete;
    }
    :is(.modal-backdrop, .account-menu, .picker-panel, .toast)[hidden] {
      opacity: 0;
      transform: var(--surface-offset);
      pointer-events: none;
    }
    .modal {
      transform: none;
      transition: transform var(--motion-dialog) var(--motion-ease);
    }
    .modal-backdrop[hidden] > .modal { transform: translateY(8px) scale(.985); }
    .modal-open .modal-backdrop[hidden] { transition: none; }

    @starting-style {
      :is(.modal-backdrop, .account-menu, .picker-panel, .toast):not([hidden]) {
        opacity: 0;
        transform: var(--surface-offset);
      }
      .modal-backdrop:not([hidden]) > .modal { transform: translateY(8px) scale(.985); }
    }

    @media (max-height: 720px) {
      .picker-panel[hidden] { transition: none; }
    }
  }

  @supports not (transition-behavior: allow-discrete) {
    :is(.modal-backdrop, .account-menu, .picker-panel, .toast):not([hidden]) {
      animation: surface-in var(--surface-duration) var(--motion-ease);
    }
    .modal { animation: arrive var(--motion-dialog) var(--motion-ease); }
  }
}

@keyframes arrive { from { opacity: 0; transform: translateY(5px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { opacity: .55; transform: translateX(var(--slide-from)); } }
@keyframes surface-in { from { opacity: 0; transform: var(--surface-offset); } }
@keyframes range-in { from { opacity: 0; transform: scaleY(.65); } }
@keyframes loading-breathe { to { opacity: .5; } }
@media(max-width:900px){
  .main{padding-inline:20px}
}
@media(max-width:740px){
  :root{--hour:76px;--closing:30px}
  .text-field{font-size:16px}
  .topbar{height:55px;gap:14px;padding-inline:12px}
  .topbar .brand{font-size:18px;gap:5px}
  .topbar .brand img{width:25px;height:25px}
  .main-nav{gap:12px}
  .main-nav button{font-size:12px}
  .main{padding:21px 12px 10px}
  .page-head{margin-bottom:14px}
  .calendar-toolbar h2{font-size:14px}
  .calendar-actions .button{padding-inline:7px;font-size:11px}
  .stepper button{width:29px}
  .day-picker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:0 0 8px}
  .day-picker button{border-radius:7px;display:grid;justify-items:center;gap:2px;min-height:43px;padding:4px 1px;color:#53617a}
  .day-picker button span{font-size:10px;text-transform:capitalize}
  .day-picker button strong{font-size:14px}
  .day-picker button:hover{background:#f5f7fc}
  .day-picker button.selected{background:#eaf0ff;color:#2146ba}
  .calendar-grid.compact .day-head{display:none}
  .hour-labels span{display:block}
  .calendar-footer{gap:5px;font-size:10.5px}
  .legend{gap:8px}
  .legend span{gap:4px}
}
@media(max-height:720px){
  .picker-panel{position:static;box-shadow:none}
}
@media(max-width:440px){
  .topbar { height: auto; grid-template-columns: 1fr auto; grid-template-rows: 45px 34px; gap: 0 8px; }
  .topbar .brand { grid-row: 1; grid-column: 1; }
  .topbar .account { grid-row: 1; grid-column: 2; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 4px; }
  .main-nav button { flex: 1; }
  .page-head { align-items: flex-start; }
  .page-actions { flex: none; flex-direction: column-reverse; align-items: flex-end; }
}
@media(max-width:365px){
  .nav-mine-full { display: none; }
  .nav-mine-compact { display: inline; }
}
@media(max-width:340px){
  .calendar-actions{gap:4px}
  .calendar-toolbar h2{font-size:12px}
  .stepper button{width:26px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
