/* 0.6: robust desktop grid + phone layout; browser zoom remains available. */
html{width:100%;overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:0}#shell,main,#content,header,header>div,.header-actions,.card,.global-search{min-width:0}main{flex:1}body[data-sidebar=hidden] main{margin-left:0;width:100%;max-width:1700px;margin-right:auto}header{gap:16px;margin-bottom:20px;align-items:center}header .eyebrow{margin-bottom:5px}#page-title{font-size:clamp(23px,2vw,30px);line-height:1.25;overflow-wrap:anywhere}#connection-state,.session-note{display:none!important}.header-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px}.global-search{padding:12px 16px;gap:12px;margin-bottom:20px}.global-search label{display:flex;align-items:center;gap:5px}.global-search input{flex:1;min-width:0}.hero{padding:20px 24px}.hero h2{font-size:24px}.empty{padding:26px}.sync-error{color:#b42f36!important;cursor:pointer}.sync-error:after{content:' ⚠';font-size:.7em}button{color:inherit}button.primary{color:#fff;background:var(--green)}.field-caption{display:flex;align-items:center;gap:5px;margin-bottom:4px}.help-control{display:inline-flex;align-items:center;gap:3px;vertical-align:middle;max-width:100%}.help-control>button:not(.help-icon){min-width:0}.help-icon{width:26px;height:26px;min-width:26px;flex:0 0 26px;margin:0 0 0 3px;font-size:13px}.page-help{font-size:12px;padding:5px 8px;white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--green)}.page-title-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#menu-close{display:none}aside{z-index:80;padding:20px 14px}nav{display:block;margin-top:22px}nav [data-nav-group]{padding:12px 0;border-top:1px solid #ffffff25}nav [data-nav-group]:first-child{border-top:0}nav h2{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#91b5aa;margin:0 8px 8px}.nav-grid{display:grid;grid-template-columns:1fr;gap:5px}nav button{font-size:13px;line-height:1.35;min-height:43px;padding:9px 10px;width:100%;margin:0!important;color:#d2e0da;border:1px solid transparent;border-radius:9px}nav button.active{background:#31574c;border-color:#689e88;color:#edfacd}nav button:hover{background:#254c43}.aside-bottom{padding:16px 8px;display:block}#menu-backdrop{display:none}#menu-order6>div,#grid-columns>div{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:8px 0;padding:5px 0}#grid-columns{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}#grid-columns label{flex:1}.price-tools .form-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px 16px}.price-tools input[type=search]{max-width:600px}.price-table-scroll{overflow:auto;max-height:70vh;position:relative;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.price-grid{width:max-content;min-width:100%;table-layout:auto}.price-grid th{position:sticky;top:0;z-index:3;background:#e9f1ec;white-space:nowrap;padding:5px 8px}.price-grid th button{background:transparent;text-align:left;font-size:12px;white-space:nowrap}.price-grid th:first-child{left:0;z-index:5;width:42px}.price-grid th:nth-child(2){left:42px;z-index:5}.price-grid td{padding:8px;vertical-align:middle;background:var(--surface);min-width:100px;max-width:330px}.price-grid td:first-child{position:sticky;left:0;z-index:2;min-width:42px;width:42px;background:#f1f6f3}.price-grid td[data-column=name]{position:sticky;left:42px;z-index:2;min-width:230px;box-shadow:3px 0 4px #153d3110}.price-grid .online-catalogue td{background:#edf8fb}.price-grid .online-catalogue td[data-column=name]{border-left:4px solid #287d95}.price-grid input,.price-grid select,.price-cards input,.price-cards select{margin:0;min-width:100px;max-width:300px;padding:8px;border:1px solid transparent;background:transparent}.price-grid input:focus,.price-grid select:focus,.price-cards input:focus{border-color:#8cbcac;background:var(--surface)}.price-grid input[type=checkbox]{min-width:20px;width:20px;height:20px}.cell-status{display:block;font-size:11px;max-width:240px;white-space:normal;min-height:16px}.cell-editor:has([data-cell-error=true]){outline:1px solid #b55c3e;border-radius:6px}.cell-editor:has([data-cell-error=true]) .cell-status{color:#9c3728}.row-actions{display:flex;gap:6px}.row-actions button{font-size:12px;white-space:nowrap}.price-cards{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.card-price-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.card-grid-detail{display:block;margin:10px 0}.price-cards .cell-editor{border:1px solid var(--line);border-radius:7px}.price-cards .checkbox{font-size:16px;font-weight:700}.calendar-own{padding:14px;background:#edf3f0;border-radius:10px;margin:14px 0}.calendar-own p{overflow-wrap:anywhere;font-size:13px}.calendar-own small{display:block}.checklist-field{display:block;margin:14px 0}.checklist-field input[type=checkbox]{display:inline-block;width:24px;height:24px;vertical-align:middle;margin:0 8px}.checklist-field small{display:block;color:var(--muted)}fieldset{min-width:0;border:1px solid var(--line);border-radius:9px;padding:16px;margin:16px 0}.modal-head{position:sticky;top:0;z-index:10;background:var(--surface);padding:12px 0;margin-top:-12px}dialog{background:var(--surface);overscroll-behavior:contain}#manual-dialog{padding:0;overflow:hidden;width:min(900px,96vw);height:min(780px,92dvh);max-height:92dvh}#manual-dialog .manual-layout{display:flex;flex-direction:column;height:100%;min-height:0}#manual-dialog .modal-head{position:static;margin:0;padding:14px 20px;border-bottom:1px solid var(--line);flex:none;align-items:center}#manual-dialog .modal-head h2{font-size:19px}#manual-dialog .manual-toolbar{padding:10px 20px;border-bottom:1px solid var(--line);flex:none}#manual-dialog input{margin:0}#manual-dialog .manual-body{overflow:auto;padding:20px;flex:1;min-height:0}#manual-dialog .manual-bottom{border-top:1px solid var(--line);padding:10px 20px;flex:none;display:flex;justify-content:space-between;gap:8px}.manual-section{padding:0 0 20px;margin-bottom:18px}.manual-section p{line-height:1.65}.manual-links{display:flex;gap:8px;flex-wrap:wrap}.manual-links button,.manual-links a{font-size:13px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:var(--surface);text-decoration:none}.manual-kicker{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}.help-steps{padding-left:20px}.help-callout{padding:12px;background:#edf5f0;border-left:3px solid var(--green);border-radius:7px}.help-callout p:last-child{margin-bottom:0}.empty-select-message{font-size:12px;color:#9d4e28;margin-bottom:10px}body[data-font=large]{font-size:17px}body[data-theme=dark]{--surface:#203331;--bg:#152523;--paper:#152523;--white:#203331;--ink:#e1eee9;--muted:#a7bcb5;--line:#45625b;--green:#327e68;background:var(--bg);color:var(--ink)}body[data-theme=dark] .card,body[data-theme=dark] input,body[data-theme=dark] textarea,body[data-theme=dark] select,body[data-theme=dark] .global-search,body[data-theme=dark] .login-card{background:var(--surface);color:var(--ink)}body[data-theme=dark] .hero,body[data-theme=dark] .calendar-own,body[data-theme=dark] .help-callout,body[data-theme=dark] th{background:#29473e;color:var(--ink)}body[data-theme=dark] .hero p{color:#cadcd3}body[data-theme=dark] .price-grid td,body[data-theme=dark] .price-grid .online-catalogue td{background:#243c37;color:var(--ink)}body[data-theme=dark] .secondary{background:#2b443d;color:var(--ink)}
@media(min-width:801px){body[data-sidebar=open] main{margin-left:244px;width:calc(100% - 244px)}body[data-sidebar=auto] main{margin-left:244px;width:calc(100% - 244px)}aside{width:244px}}
@media(max-width:800px){body:not([data-sidebar=open]) aside{display:none}#shell:not([hidden]){display:block!important}main,body[data-sidebar=open] main,body[data-sidebar=auto] main{width:100%!important;margin:0!important;padding:18px 14px;max-width:100%}header{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;margin-bottom:16px}.header-actions{width:100%;justify-content:flex-start;gap:8px}.header-actions .primary{margin-left:auto}h1{font-size:24px!important}h2{font-size:21px}.eyebrow{font-size:9px}input,select,textarea{font-size:16px!important;max-width:100%;min-width:0}button{min-height:42px;font-size:14px}input[type=checkbox]{width:22px;height:22px;flex:0 0 22px}.global-search{display:block;padding:12px}.global-search label{margin-bottom:6px}.global-search input{width:100%;margin:0}.card{padding:16px}.form-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px}.hero{padding:18px}.hero h2{font-size:22px}.empty{padding:22px 12px}.help-icon{min-height:28px;width:28px;height:28px;flex-basis:28px}.help-control{max-width:100%;gap:2px}body[data-sidebar=open] aside{position:fixed;inset:0 auto 0 0;width:min(88vw,430px);height:100dvh;min-height:0;padding:16px;z-index:100;overflow-y:auto}#menu-close{display:block;margin-left:auto;background:#31534c;color:white;padding:6px 10px}body[data-sidebar=open] #menu-backdrop{display:block;position:fixed;inset:0;z-index:99;background:#142c2850;border-radius:0}#sidebar-toggle{z-index:auto!important}.nav-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}nav{display:block!important;margin-top:16px}nav button{font-size:13px;min-height:50px;line-height:1.35;flex:none!important;white-space:normal;overflow-wrap:anywhere;gap:6px;align-items:center}nav h2{font-size:11px}.brand{font-size:17px}.aside-bottom{display:block!important}.time-range{flex-wrap:wrap}.time-range input{width:110px!important;flex:1;max-width:145px}.weekday{display:block}.weekday>strong{display:block;margin-bottom:8px}.row-card{flex-wrap:wrap}.row-card>div{min-width:0;max-width:100%}.builder-service{align-items:stretch}.price-table-scroll{max-width:100%;max-height:68dvh}.price-grid td[data-column=name]{min-width:150px;max-width:160px}.price-grid input{font-size:16px;min-width:85px}.price-grid td{max-width:180px}.price-cards{grid-template-columns:1fr}#grid-columns{grid-template-columns:1fr}.row-actions{flex-wrap:wrap}.price-tools .toolbar{gap:10px}.price-tools .toolbar>label{width:100%}#manual-dialog{height:94dvh;max-height:94dvh;width:96vw;border-radius:14px}#manual-dialog .modal-head{padding:12px}#manual-dialog .manual-toolbar{padding:10px 12px}#manual-dialog .manual-body{padding:16px}#manual-dialog .manual-bottom{padding:10px 12px}dialog{padding:18px;width:calc(100vw - 20px);max-height:94dvh}.modal-head{top:-18px;padding:12px 0}.notice.toast{max-width:calc(100vw - 24px)}.global-search .field-caption{margin:0}.page-help{min-height:30px}body[data-font=large] label{font-size:15px}.card-grid-detail input{width:100%}}

/* 0.6.1: quiet help, stable action columns and fluid search. */
.help-tools6{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}.help-tools6 button{font-size:12px;min-height:32px;padding:6px 10px;border:1px solid var(--line);background:var(--white);color:var(--green);white-space:nowrap}.help-tools6 .selected{background:#e2f1e9;border-color:#559b83}.modal-head>.help-tools6{margin:0 0 0 auto}.modal-head{gap:10px;flex-wrap:wrap}.modal-head h2{flex:1 1 200px;min-width:0;margin-bottom:0}.modal-head #modal-close{order:3}.header-actions{align-self:flex-start}.global-search{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:12px 18px}.global-search label{margin:0;white-space:normal}.global-search input{width:100%;margin:0;min-width:0}.global-search>.field-with-help{min-width:0;width:100%}.field-with-help{position:relative;min-width:0}.field-with-help>.help-icon{position:absolute;right:8px;top:8px;margin:0}.field-with-help>input,.field-with-help>textarea,.field-with-help>select{padding-right:42px}.row-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px 24px}.row-card>div:first-child{min-width:0}.row-card code,.row-card h3,.row-card p{overflow-wrap:anywhere}.row-card>.row-actions{justify-content:flex-end;align-items:center;flex-wrap:wrap}.booking-form-list6{margin-top:18px}.booking-builder-actions{margin-top:14px;margin-bottom:18px;gap:10px;align-items:center;flex-wrap:wrap}.row-actions .help-control{flex:none}.row-actions button{white-space:nowrap}.help-control{flex:none}.field-caption{flex-wrap:wrap}.checkbox>.help-icon{margin-left:auto}.help-icon{background:transparent;border-color:#cbdad3;color:#637e71;box-shadow:none;width:22px;height:22px;min-width:22px;min-height:22px;flex-basis:22px;font-size:12px}.help-tools6 button:disabled{cursor:default}body[data-theme=dark] .help-tools6 button{background:var(--surface);color:var(--ink)}body[data-theme=dark] .help-tools6 .selected{background:#31574c}
@media(max-width:800px){.global-search{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.global-search input{width:100%}.row-card{grid-template-columns:minmax(0,1fr);gap:12px}.row-card>.row-actions{justify-content:flex-start}.row-card>.help-control,.row-card>button{justify-self:start}.booking-builder-actions{align-items:stretch}.booking-builder-actions>button,.booking-builder-actions>.help-control{max-width:100%;white-space:normal}.booking-builder-actions>.help-control>button:not(.help-icon){white-space:normal}.modal-head>.help-tools6{flex:1 1 auto}.modal-head h2{flex-basis:calc(100% - 52px)}.modal-head #modal-close{position:absolute;right:0;top:12px}.modal-head{padding-right:0}.help-tools6 button{min-height:36px}.row-actions{gap:8px}}
