/* Shared detail pages and dialogs use the same warm surfaces as the overview. */
.detail-workspace{max-width:1540px;margin:0 auto}
.sidebar-property{cursor:default}
.property-mobile-icon{display:none}
.mobile-hamburger{display:none!important}
.quick-create-options{display:grid;gap:5px}
.quick-create-option{width:100%;min-height:45px;display:flex;align-items:center;gap:11px;padding:7px 10px;border:1px solid transparent;border-radius:11px;background:transparent;text-align:left;font-size:12px;color:var(--text)}
.quick-create-option:hover,.quick-create-option:focus-visible{background:var(--surface2);border-color:var(--border)}
.quick-create-option>span:nth-child(2){flex:1}
.quick-create-option>svg{width:14px;height:14px;color:var(--muted)}
.quick-create-icon{width:29px;height:29px;display:grid;place-items:center;background:var(--surface2);border-radius:9px;color:var(--accent)}
.quick-create-icon svg{width:16px;height:16px}
.modal:has(.quick-create-options){width:min(440px,100%)}
.modal.property-command{width:min(650px,95vw);align-self:start;margin-top:9vh;max-height:88vh}
.mobile-menu-links .nav-group{margin-bottom:12px}
.mobile-menu-links .nav-label{display:block;padding:7px 9px 4px;font-size:12px;letter-spacing:.05em;color:var(--muted)}
.mobile-menu-links .nav-item{display:flex;width:100%;min-height:39px;align-items:center;gap:11px;text-align:left;padding:0 10px;border:0;border-radius:10px;background:transparent;font-size:12px;color:var(--text)}
.mobile-menu-links .nav-item span:not(.nav-icon){display:inline!important}
.mobile-menu-links .nav-item:hover,.mobile-menu-links .nav-item.active{background:var(--surface2);color:var(--text)}
.mobile-menu-links .nav-item.active .nav-icon{color:var(--accent)}
.mobile-menu-links .nav-icon{display:grid;place-items:center;width:18px}
.mobile-menu-links .nav-icon svg{width:17px;height:17px}
.mobile-menu-bottom{padding-top:9px;border-top:1px solid var(--border)}
.mobile-menu-count{margin-left:auto;min-width:20px;height:20px;padding:0 6px;display:grid!important;place-items:center;border-radius:999px;background:var(--accent2);color:var(--accent);font-size:12px;font-weight:600}
@keyframes mobile-menu-slide-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@keyframes mobile-page-enter{from{opacity:.55;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
.detail-workspace:has(> .reservation-detail){width:100%;max-width:none;margin:0}
.detail-workspace:has(> .guest-detail){width:100%;max-width:1320px;margin:0 auto}
.guest-detail .detail-columns{grid-template-columns:minmax(0,1.7fr) minmax(330px,.85fr);gap:18px}
.reservation-detail .detail-columns{grid-template-columns:minmax(0,1fr) minmax(315px,30%)}
.detail-shell{display:grid;gap:16px;padding-bottom:34px;position:relative}
.detail-heading{padding:4px 0 0;min-width:0}
.detail-back{display:inline-flex;align-items:center;gap:7px;padding:0;margin:0 0 18px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
.detail-back:hover{color:var(--text)}
.detail-back svg{width:15px;height:15px}
.detail-eyebrow,.detail-identity-label{display:block;font-size:12px;letter-spacing:.1em;font-weight:600;color:var(--accent);margin-bottom:5px}
.detail-heading h1{font-size:clamp(27px,2.5vw,36px);font-weight:500;line-height:1.12;letter-spacing:-.045em;margin:0}
.detail-heading p{margin:7px 0 0;color:var(--muted);font-size:12px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.detail-inline-sub{font-size:12px;color:var(--muted)}
.detail-actions{position:absolute;right:0;top:28px;display:flex;gap:8px;align-items:center}
.detail-actions .btn,.detail-card-head .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.detail-actions svg,.detail-card-head svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.detail-identity{background:var(--surface);border-radius:22px;padding:20px 24px;display:flex;align-items:center;gap:16px;min-width:0}
.detail-avatar{width:55px;height:55px;flex:none;border-radius:17px;background:#e8ebd2;color:#555e38;display:grid;place-items:center;font-size:17px;font-weight:600}
.detail-identity h2{font-size:22px;letter-spacing:-.03em;font-weight:500;line-height:1.2;margin:0 0 4px}
.detail-identity p{font-size:12px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.detail-person-link{border:0;background:transparent;color:var(--text);padding:0;display:inline-flex;align-items:center;gap:7px;font:inherit;font-weight:inherit;cursor:pointer;text-align:left}
.detail-person-link:hover{color:var(--accent)}
.detail-person-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.detail-identity-action{margin-left:auto;border:1px solid var(--border);background:var(--surface);border-radius:999px;height:34px;padding:0 13px;display:inline-flex;align-items:center;gap:8px;font-size:11px;white-space:nowrap;cursor:pointer;color:var(--text)}
.detail-identity-action svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
.detail-identity-tag{margin-left:auto;background:var(--accent2);border-radius:99px;padding:7px 11px;font-size:12px;color:var(--accent);white-space:nowrap}
.detail-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.detail-metric{background:var(--surface);border-radius:18px;min-height:100px;padding:16px 18px;display:flex;flex-direction:column;min-width:0}
.detail-metric>span{font-size:11px;color:var(--muted)}
.detail-metric strong{font-size:24px;font-weight:500;line-height:1.13;letter-spacing:-.035em;margin-top:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detail-metric small{font-size:12px;color:var(--muted);margin-top:5px}
.detail-tabs{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;overflow:auto;background:var(--surface);border-radius:999px;padding:4px}
.detail-tabs button{height:32px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.detail-tabs button.active{background:#1c1d19;color:white;font-weight:500}
.detail-tabs button:not(.active):hover{background:var(--surface2);color:var(--text)}
.detail-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.86fr);gap:14px;align-items:start}
.detail-column{display:grid;gap:14px;min-width:0}
.detail-card{background:var(--surface);border-radius:22px;overflow:hidden;min-width:0}
.detail-card-head{padding:18px 20px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.detail-card-head h2{font-size:16px;line-height:1.3;font-weight:500;letter-spacing:-.02em;margin:0}
.detail-card-body{padding:0 20px 18px}
.detail-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.detail-info{background:var(--surface2);border-radius:14px;min-height:76px;padding:13px 15px;display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.detail-info span{font-size:12px;color:var(--muted)}
.detail-info strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.detail-list-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--border);min-width:0}
.detail-list-row:first-child{border-top:0}
.detail-list-icon{width:33px;height:33px;flex:none;border-radius:10px;background:var(--surface2);color:var(--accent);display:grid;place-items:center}
.detail-list-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.detail-list-copy{min-width:0;display:grid;gap:2px;flex:1}
.detail-list-copy strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}
.detail-list-copy small{font-size:12px;color:var(--muted)}
.detail-list-right{font-size:12px;font-weight:600;white-space:nowrap}
.detail-summary-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0;font-size:12px}
.detail-summary-row strong{font-weight:500;white-space:nowrap}
.detail-summary-row.total{border-top:1px solid var(--border);margin-top:6px;padding-top:14px;font-size:15px;font-weight:600}
.detail-summary-row.total strong{font-size:20px}
.detail-progress{height:6px;background:var(--surface2);border-radius:99px;overflow:hidden;margin-top:12px}
.detail-progress span{height:100%;background:#aebc7e;border-radius:inherit;display:block}
.detail-hint{display:block;color:var(--muted);font-size:12px;margin-top:8px}
.detail-upcoming{background:var(--accent2);border-radius:15px;padding:15px;display:grid;gap:6px}
.detail-upcoming strong{font-size:21px;font-weight:500;letter-spacing:-.03em}
.detail-upcoming small{font-size:11px;color:var(--muted)}
.detail-upcoming .btn{margin-top:9px;background:var(--surface);border:0;display:flex;align-items:center;justify-content:space-between}
.detail-upcoming .btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
.detail-empty,.detail-not-found{color:var(--muted);font-size:12px}
.detail-not-found{padding:25px}
.drawer-code-link{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:0;color:var(--accent);font-size:11px;font-weight:600;cursor:pointer}
.drawer-code-link svg{width:13px;height:13px;fill:none;stroke:currentColor}
.modal-backdrop{background:rgba(27,31,24,.46);backdrop-filter:blur(4px);padding:18px;overflow:auto;align-items:center}
.modal{width:min(520px,100%);max-height:min(88vh,760px);display:flex;flex-direction:column;border:1px solid var(--border);border-radius:22px;box-shadow:0 24px 70px rgba(28,29,25,.18);overflow:hidden}
.modal-head{padding:20px 22px 17px;align-items:flex-start;background:var(--surface)}
.modal-kicker{font-size:12px;letter-spacing:.1em;color:var(--accent);font-weight:600}
.modal-head h2{font-size:21px;line-height:1.2;letter-spacing:-.03em;font-weight:500;margin:5px 0 0}
.modal-head .icon-btn,.drawer-head .icon-btn{width:30px;height:30px;flex:none;padding:0;display:grid;place-items:center;background:var(--surface2);border:0;border-radius:9px;color:var(--text)}
.modal-head .icon-btn svg,.drawer-head .icon-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.modal-body{padding:18px 22px 22px;overflow:auto;min-height:0;font-size:12px}
.modal-body .detail-grid{padding:4px}
.modal-body p:first-child{margin-top:0}
.modal-foot{padding:14px 22px;gap:8px;background:var(--surface);flex:none}
.modal-foot .btn{min-width:100px}
.dialog-intro{color:var(--muted);line-height:1.5}
.dialog-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}
.dialog-options label{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--border);border-radius:13px;padding:12px;cursor:pointer}
.dialog-options input{accent-color:var(--accent);margin-top:2px}
.dialog-options strong,.dialog-options small{display:block}
.dialog-options strong{font-weight:500;font-size:11px}
.dialog-options small{color:var(--muted);font-size:12px;margin-top:4px}
.dialog-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dialog-fields label,.dialog-label{display:grid;gap:6px;font-size:11px;font-weight:500}
.dialog-fields label:first-child:nth-last-child(3){grid-column:1/-1}
.dialog-label textarea{height:auto;min-height:110px;padding:12px;resize:vertical}
.modal .input{background:var(--surface2);border:1px solid var(--border);height:40px}
.modal .input:focus{background:var(--surface)}
.modal .status{vertical-align:middle}
.modal button:focus-visible,.detail-shell button:focus-visible,.drawer button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.topbar [data-action="notifications"] svg,.topbar [data-action="help"] svg,.topbar [data-action="theme"] svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar .nav-icon svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1000px){.detail-columns,.reservation-detail .detail-columns{grid-template-columns:minmax(0,1fr) minmax(265px,.75fr)}.detail-metric strong{font-size:21px}}
@media(max-width:760px){.detail-shell{gap:12px}.detail-actions{position:static;order:1;flex-wrap:wrap}.detail-identity{order:2}.detail-metrics{order:3}.detail-tabs{order:4}.detail-columns,.reservation-detail .detail-columns{order:5;grid-template-columns:1fr}.detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-heading{order:0}.detail-identity-action{display:none}}
@media(max-width:480px){.detail-info-grid{grid-template-columns:1fr}.detail-identity{padding:16px;gap:12px}.detail-avatar{width:44px;height:44px;border-radius:13px;font-size:14px}.detail-identity h2{font-size:18px}.detail-metric{min-height:85px;padding:13px}.detail-metric strong{font-size:19px}.detail-actions .btn{flex:1}.detail-tabs{width:100%}.detail-tabs button{padding:0 12px}.detail-card-head,.detail-card-body{padding-left:16px;padding-right:16px}.dialog-options,.dialog-fields{grid-template-columns:1fr}.modal-foot{flex-wrap:wrap}.modal-foot .btn{flex:1}}

/* Mobile guest directory and profile */
@media(max-width:640px){
  /* The top bar and bottom navigation already expose the same actions on Today. */
  .today-page>.page-header .actions{display:none}
  .guests-page{padding-bottom:98px}
  .guests-page .page-header{margin-bottom:14px;align-items:center}
  .guests-page .page-header .title{min-width:0}
  .guests-page .page-header .title h1{font-size:29px;letter-spacing:-.04em}
  .guests-page .page-header .title p{max-width:270px}
  .guests-page .toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;margin:0 0 12px!important;border-radius:20px;background:var(--surface)}
  .guests-page .toolbar .input{grid-column:1/-1;width:100%!important;height:46px;border:0;border-radius:14px;background:var(--surface2);font-size:13px}
  .guests-page .toolbar .btn{width:100%;height:40px;min-width:0;padding:0 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--surface2);border:0}
  .guests-page>.panel{margin:0;background:transparent;border-radius:0;overflow:visible}
  .guests-page .data-table{display:block;min-width:0;width:100%;border-collapse:separate}
  .guests-page .data-table thead{display:none}
  .guests-page .data-table tbody{display:grid;gap:9px}
  .guests-page .data-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"guest nationality" "email email" "history last";gap:8px 12px;padding:14px 15px;background:var(--surface);border:1px solid var(--border);border-radius:18px;min-width:0;transition:transform .16s ease,border-color .16s ease}
  .guests-page .data-table tr:active{transform:scale(.985)}
  .guests-page .data-table td{display:block!important;height:auto!important;padding:0!important;border:0!important;min-width:0;font-size:11px}
  .guests-page .data-table td:nth-child(1){grid-area:guest;padding-left:48px!important;position:relative;min-height:40px;display:flex!important;flex-direction:column;justify-content:center}
  .guests-page .data-table td:nth-child(1)::before{content:attr(data-initials);position:absolute;left:0;top:0;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--accent2);color:var(--accent);font-size:12px;font-weight:700}
  .guests-page .data-table td:nth-child(1) strong{font-size:14px;line-height:1.25}
  .guests-page .data-table td:nth-child(1) .cell-sub{margin-top:3px;font-size:12px;color:var(--muted)}
  .guests-page .data-table td:nth-child(2){grid-area:nationality;align-self:center;padding:6px 9px!important;border-radius:999px!important;background:var(--surface2);color:var(--muted);white-space:nowrap}
  .guests-page .data-table td:nth-child(3){grid-area:email;overflow-wrap:anywhere;color:var(--text);padding-top:8px!important;border-top:1px solid var(--border)!important}
  .guests-page .data-table td:nth-child(4){grid-area:history;color:var(--muted)}
  .guests-page .data-table td:nth-child(5){grid-area:last;text-align:right;color:var(--muted)}
  .guests-page .data-table td:nth-child(4)::before{content:"Storico · ";color:var(--muted)}
  .guests-page .data-table td:nth-child(5)::before{content:"Ultimo stodayorno · ";color:var(--muted)}
  .guest-detail{gap:11px;padding-bottom:84px}
  .guest-detail .detail-heading{padding:0}
  .guest-detail .detail-back{margin-bottom:14px;min-height:32px}
  .guest-detail .detail-heading h1{font-size:30px;line-height:1.05}
  .guest-detail .detail-heading p{font-size:11px}
  .guest-detail .detail-actions{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);gap:8px;width:100%}
  .guest-detail .detail-actions .btn{width:100%;min-width:0;height:44px;padding:0 10px;font-size:11px;white-space:nowrap}
  .guest-detail .detail-identity{display:grid;grid-template-columns:48px minmax(0,1fr) auto;padding:15px;border-radius:20px;gap:11px}
  .guest-detail .detail-avatar{width:48px;height:48px;border-radius:14px}
  .guest-detail .detail-identity h2{font-size:18px}
  .guest-detail .detail-identity p{font-size:11px;line-height:1.45;overflow-wrap:anywhere}
  .guest-detail .detail-identity-label{font-size:12px}
  .guest-detail .detail-identity-tag{align-self:start;margin:0;padding:6px 8px;font-size:12px}
  .guest-detail .detail-metrics{gap:8px}
  .guest-detail .detail-metric{min-height:96px;padding:13px 14px;border-radius:17px}
  .guest-detail .detail-metric>span{font-size:12px}
  .guest-detail .detail-metric strong{font-size:20px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .guest-detail .detail-tabs{position:sticky;top:6px;z-index:8;width:100%;max-width:100%;padding:4px;gap:2px;border:1px solid var(--border);box-shadow:0 8px 24px rgba(28,29,25,.08)}
  .guest-detail .detail-tabs button{flex:1;padding:0 10px;font-size:12px}
  .guest-detail .detail-columns,.guest-detail .detail-column{gap:10px}
  .guest-detail .detail-card{border-radius:19px}
  .guest-detail .detail-card-head{padding:16px 16px 10px}
  .guest-detail .detail-card-body{padding:0 16px 16px}
  .guest-detail .detail-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .guest-detail .detail-info{min-height:72px;padding:12px;border-radius:13px}
}
@media(max-width:390px){.guest-detail .detail-identity{grid-template-columns:44px minmax(0,1fr)}.guest-detail .detail-identity-tag{grid-column:2;width:max-content}.guest-detail .detail-tabs button{padding:0 8px;font-size:12px}.guests-page .data-table td:nth-child(5)::before{content:"Ultimo · "}}

/* Narrow-phone correction: prevent guest profile controls from touching the viewport edge. */
@media(max-width:520px){
  .detail-workspace:has(> .guest-detail){width:100%;max-width:100%;margin:0;overflow-x:clip}
  .guest-detail,.guest-detail>*{width:100%;max-width:100%;min-width:0}
  .guest-detail .detail-actions{grid-template-columns:1fr}
  .guest-detail .detail-actions .btn{height:43px;font-size:12px}
  .guest-detail .detail-actions .btn.primary{order:-1}
  .guest-detail .detail-identity{grid-template-columns:48px minmax(0,1fr);align-items:center}
  .guest-detail .detail-identity-tag{grid-column:2;margin-top:-3px;width:max-content;max-width:100%}
  .guest-detail .detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .guest-detail .detail-tabs{overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
  .guest-detail .detail-tabs::-webkit-scrollbar{display:none}
  .guest-detail .detail-tabs button{flex:1 0 auto;min-width:82px}
}
[data-theme=dark] .detail-upcoming{background:var(--accent2)}
[data-theme=dark] .detail-avatar{background:#3d4527;color:#e7ecce}
[data-theme=dark] .detail-tabs button.active{background:#e4e8d8;color:#24271e}
.workspace,.main{min-width:0;max-width:100%}
.topbar{min-width:0;max-width:100%}
.topbar .property-btn{flex:0 1 auto;min-width:0;max-width:260px}
.topbar .property-btn strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .live-news{min-width:0;flex:1 1 180px;max-width:380px}
.topbar .search-trigger{min-width:42px;flex:0 1 360px;width:min(360px,27vw)}
.topbar .search-trigger span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .search-trigger .kbd{flex:none;white-space:nowrap}
.new-reservation-page{min-width:0}
.new-reservation-page .grid-2{grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr)}
.new-reservation-page .grid-2>*{min-width:0}
@media(max-width:1350px){.topbar .search-trigger{width:min(270px,24vw);flex-basis:270px}.topbar .live-news{flex-basis:160px}.topbar .property-btn{max-width:225px}.new-reservation-page .grid-2{grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr)}}
@media(max-width:1050px){.topbar .search-trigger{width:42px;flex:0 0 42px;padding:0;justify-content:center}.topbar .search-trigger span:nth-child(2),.topbar .search-trigger kbd{display:none}.topbar .live-news{flex-basis:125px}}
@media(max-width:900px){.new-reservation-page .grid-2{grid-template-columns:1fr}.topbar .live-news{max-width:none}}
@media(max-width:640px){.topbar .search-trigger{width:38px;flex:0 0 38px}.topbar .property-btn{flex:1;max-width:none}}
@media(max-width:640px){.topbar .property-btn{width:38px;min-width:38px;max-width:38px;height:38px;flex:0 0 38px;padding:0;justify-content:center;gap:0}.topbar .property-btn .property-dot,.topbar .property-btn strong,.topbar .property-btn>span:last-child{display:none}.topbar .property-btn .property-mobile-icon{display:grid;place-items:center;width:20px;height:20px}.topbar .property-btn .property-mobile-icon svg{width:19px;height:19px;stroke-width:1.9}}
@media(max-width:640px){.topbar .mobile-hamburger{display:grid!important;place-items:center;order:-4;flex:0 0 38px;width:38px;height:38px;border:0;border-radius:50%;background:var(--surface)}.topbar .mobile-hamburger svg{width:19px;height:19px;stroke-width:1.9}.topbar [data-action="notifications"][data-has-unread="false"]{display:none!important}.topbar [data-action="notifications"][data-has-unread="true"]{position:relative}.topbar [data-action="notifications"][data-has-unread="true"]::after{content:"";position:absolute;top:7px;right:7px;width:7px;height:7px;border:2px solid var(--surface);border-radius:50%;background:#9aa85f}.mobile-menu-backdrop{display:flex;align-items:stretch;justify-content:flex-start;padding:0;overflow:hidden}.mobile-menu-sheet{width:min(320px,calc(100vw - 48px));height:100dvh;max-height:none;min-height:0;margin:0;border:0;border-radius:0 20px 20px 0;animation:mobile-menu-slide-in .28s cubic-bezier(.22,.68,0,1) both}.mobile-menu-sheet .modal-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.mobile-menu-sheet .modal-head{flex:none}.mobile-menu-links .nav-item{justify-content:flex-start;text-align:left}.main.mobile-page-enter>*{animation:mobile-page-enter .24s cubic-bezier(.22,.68,0,1) both}.modal.property-command{width:100%;max-height:88vh;margin-top:9vh}.modal:has(.quick-create-options){max-height:calc(100dvh - 24px)}}
@media(max-width:640px){
  .planner-page{height:calc(100dvh - 146px);min-height:0;border-radius:20px}
  .planner-header{padding:14px 14px 12px}
  .planner-header .page-header{display:flex;align-items:flex-start;gap:10px;margin:0}
  .planner-header .title{min-width:0;flex:1}
  .planner-header .title h1{font-size:23px}
  .planner-header .title p{font-size:11px;line-height:1.45}
  .planner-header .actions{margin:0;flex:none;gap:7px}
  .planner-header .actions .btn{width:40px;height:40px;padding:0;font-size:0;border-radius:50%}
  .planner-header .actions .btn:first-child:nth-last-child(2){display:none}
  .planner-header .actions .btn::after{content:"+";font-size:18px;line-height:1}
  .planner-toolbar{display:grid;grid-template-columns:auto minmax(120px,1fr);gap:8px;padding:10px 12px 11px;align-items:center}
  .planner-toolbar>.segmented:first-child{grid-column:1}
  .planner-toolbar>.btn:nth-child(2){grid-column:2;width:100%;height:38px}
  .planner-toolbar>.segmented:nth-of-type(2){grid-column:1/-1;width:max-content}
  .planner-toolbar>.spacer{display:none}
  .planner-toolbar>.select{min-width:0;width:100%;height:40px;font-size:11px}
  .planner-toolbar>.btn:last-child{grid-column:1/-1;width:max-content;height:36px}
  .planner-toolbar .segmented .seg{height:36px;padding:0 11px}
  .planner-wrap{overflow:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .planner-grid{grid-template-columns:132px repeat(9,112px);min-width:1140px}
  .corner,.date-head{height:56px}
  .date-head{scroll-snap-align:start}
  .corner{padding:10px 9px;box-shadow:7px 0 12px -12px rgba(20,24,18,.7)}
  .room-cell{height:60px;padding:8px 9px;box-shadow:7px 0 12px -12px rgba(20,24,18,.7)}
  .room-cell strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .room-cell .status{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .plan-cell{height:60px}
  .reservation-bar{height:40px;margin:0 4px;padding:5px 8px}
  .reservation-bar strong{font-size:11px}
  .reservation-bar span{font-size:12px}
}
@media(max-width:380px){.planner-grid{grid-template-columns:124px repeat(9,104px);min-width:1060px}.planner-toolbar{grid-template-columns:auto minmax(108px,1fr)}}
@media(max-width:640px){
  .mobile-planner-workspace{padding-bottom:86px;overflow:auto}
  .mobile-planner-page{display:grid;gap:12px}
  .mobile-planner-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:2px 2px 0}
  .mobile-planner-head h1{font-size:27px;line-height:1.1;letter-spacing:-.04em;margin:0}
  .mobile-planner-head p{margin:5px 0 0;color:var(--muted);font-size:11px;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-planner-head .btn{height:40px;display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:0 14px;white-space:nowrap}
  .mobile-planner-head .btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
  .mobile-planner-controls,.mobile-day-agenda{background:var(--surface);border-radius:20px;overflow:hidden}
  .mobile-planner-nav{height:50px;padding:7px 10px;display:grid;grid-template-columns:34px auto 1fr 34px;align-items:center;gap:6px;border-bottom:1px solid var(--border)}
  .mobile-planner-nav button{height:34px;border:0;border-radius:10px;background:var(--surface2);color:var(--text);display:grid;place-items:center;font:inherit;font-size:11px}
  .mobile-planner-nav button:disabled{opacity:.35}
  .mobile-planner-nav button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
  .mobile-planner-nav>strong{text-align:center;font-size:11px;font-weight:500;color:var(--muted)}
  .mobile-date-strip{display:grid;grid-auto-flow:column;grid-auto-columns:58px;gap:5px;padding:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none}
  .mobile-date-strip::-webkit-scrollbar{display:none}
  .mobile-date-strip button{scroll-snap-align:center;height:66px;border:1px solid transparent;border-radius:14px;background:var(--surface2);color:var(--muted);display:grid;place-items:center;align-content:center;gap:1px;font:inherit}
  .mobile-date-strip button span,.mobile-date-strip button small{font-size:12px;text-transform:capitalize}
  .mobile-date-strip button strong{font-size:17px;font-weight:500;line-height:1.1}
  .mobile-date-strip button.active{background:var(--accent2);border-color:#b9c385;color:var(--text)}
  .mobile-planner-filters{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 10px 10px}
  .mobile-planner-filters button{height:38px;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--text);display:flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:12px}
  .mobile-planner-filters svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
  .mobile-day-summary{padding:14px 14px 12px;display:grid;grid-template-columns:1fr auto auto;align-items:end;gap:14px;border-bottom:1px solid var(--border)}
  .mobile-day-summary span{font-size:12px;letter-spacing:.08em;color:var(--accent);font-weight:600}
  .mobile-day-summary h2{font-size:16px;line-height:1.2;margin:3px 0 0;text-transform:capitalize}
  .mobile-day-summary>div:not(:first-child){display:grid;text-align:right}
  .mobile-day-summary>div:not(:first-child) strong{font-size:17px;font-weight:500}
  .mobile-day-summary>div:not(:first-child) small{font-size:12px;color:var(--muted)}
  .mobile-room-agenda{display:grid}
  .mobile-room-row{min-height:64px;width:100%;padding:9px 12px;display:grid;grid-template-columns:72px minmax(0,1fr) auto 14px;align-items:center;gap:9px;border:0;border-bottom:1px solid var(--border);background:var(--surface);color:var(--text);text-align:left;font:inherit}
  .mobile-room-row:last-child{border-bottom:0}
  button.mobile-room-row:active{background:var(--surface2)}
  .mobile-room-row>svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
  .mobile-room-number,.mobile-room-booking{min-width:0;display:grid;gap:2px}
  .mobile-room-number{font-size:14px;font-weight:600}
  .mobile-room-number small,.mobile-room-booking small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-room-booking strong{font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-room-row.available .mobile-room-booking strong{color:var(--accent)}
  .mobile-room-row .status{font-size:12px;white-space:nowrap}
}
@media(max-width:390px){.mobile-planner-head .btn span{display:none}.mobile-planner-head .btn{width:40px;padding:0;justify-content:center}.mobile-day-summary{gap:9px}.mobile-room-row{grid-template-columns:66px minmax(0,1fr) auto 12px;padding-left:10px;padding-right:10px}.mobile-room-row .status{display:none}}
@media(prefers-reduced-motion:reduce){.mobile-menu-sheet,.main.mobile-page-enter>*{animation:none}}
.filters .btn.primary{background:#1c1d19 !important;color:#fff !important;border-color:#1c1d19 !important}
