@charset "UTF-8";
:root{--bg:#f5f7f6;--paper:#fff;--ink:#203630;--muted:#667770;--line:#e2e9e5;--teal:#28665d;--teal-dark:#1b5149;--teal-soft:#e9f2ee;--amber:#8a611c;--amber-soft:#fbf3e3;--danger:#a54138;--radius:17px;--shadow:0 7px 28px #183d2e08;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.5}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #80b4a6;outline-offset:3px}
button{border:0;background:none}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,p{margin:0}
h1{font-size:30px;line-height:1.22;font-weight:650;letter-spacing:-.9px}
h2{font-size:18px;line-height:1.35;letter-spacing:-.25px;font-weight:650}
h3{font-size:16px;line-height:1.4;font-weight:630}
small{font-size:12px;line-height:1.5}
.icon{width:20px;height:20px;flex:none;vertical-align:middle}
.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;top:12px;left:12px;padding:14px;background:white;z-index:9999;border:2px solid var(--teal);border-radius:10px}
.app-shell{display:flex;min-height:100dvh}
.sidebar{width:225px;flex:none;background:var(--paper);border-right:1px solid var(--line);padding:30px 20px 20px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:20}
.brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:720;letter-spacing:-1.4px;color:var(--ink);line-height:1}
.brand:hover{text-decoration:none}
.brand-symbol{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border-radius:12px;color:white;background:var(--teal);font-size:31px;font-weight:650;letter-spacing:-2px;line-height:1;padding-bottom:3px;font-family:Arial,sans-serif}
.brand-symbol.small{width:31px;height:31px;border-radius:10px;font-size:26px}
.brand-crm{font-weight:450;font-size:16px;letter-spacing:-.7px;margin-left:4px;color:var(--muted)}
.workspace-name{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:500;margin:29px 8px 25px;color:var(--muted);overflow-wrap:anywhere}
.workspace-dot{width:7px;height:7px;border-radius:50%;background:#94b2a4;flex:none}
.desktop-nav{display:flex;flex-direction:column;gap:7px}
.nav-item{display:flex;gap:12px;align-items:center;padding:13px 16px;color:var(--muted);font-size:14px;font-weight:550;border-radius:12px;transition:background .15s,color .15s}
.nav-item:hover{background:#f3f6f4;text-decoration:none}
.nav-item.active{background:var(--teal-soft);color:var(--teal-dark);font-weight:650}
.nav-item .icon{width:21px;height:21px}
.sidebar-bottom{margin-top:auto;padding-top:35px}
.sidebar-caption{display:block;font-size:11px;line-height:1.6;color:#819087;padding:0 10px 18px}
.account{display:flex;gap:9px;align-items:center;border-top:1px solid var(--line);padding:19px 0 0}
.account strong{font-size:12px}
.account small{font-size:11px}
.account .icon-button{width:29px;height:34px;flex:none}
.avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#edf2ec;color:#56744f;flex:none;font-size:12px;font-weight:650}
.avatar.large{width:58px;height:58px;font-size:19px}
.avatar.group{background:#edf0f7;color:#677591}
.row-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;text-align:left}
.row-main strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.row-main small{color:var(--muted);overflow-wrap:anywhere}
.main-shell{margin-left:225px;flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{height:77px;padding:0 45px;border-bottom:1px solid #e6ebe7;display:flex;align-items:center;justify-content:space-between;background:#f9faf9}
.topbar-label{color:var(--muted);font-size:12px;font-weight:500}
.topbar-actions{display:flex;align-items:center;gap:14px}
.topbar-brand,.mobile-logout{display:none!important}
.main-content{width:100%;max-width:1420px;margin:0 auto;padding:38px 45px 40px;outline:none;flex:1}
.workspace-footer{display:flex;justify-content:space-between;color:#7b8b82;font-size:11px;padding:18px 45px 24px;max-width:1420px;width:100%;margin:0 auto}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}
.eyebrow{font-size:11px;letter-spacing:1.1px;text-transform:uppercase;color:var(--muted);font-weight:600;line-height:1.5;margin-bottom:10px}
.page-head p{margin-top:11px;font-size:13px;line-height:1.6;color:var(--muted)}
.page-actions{display:flex;gap:8px;flex:none}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;min-height:42px;border-radius:10px;font-weight:600;font-size:13px;line-height:1.45;white-space:nowrap;border:1px solid transparent;transition:background .15s,box-shadow .15s}
.button.primary{background:var(--teal);color:#fff;box-shadow:0 2px 2px #153a2710}
.button.primary:hover:not(:disabled){background:var(--teal-dark)}
.button.secondary{background:var(--paper);border-color:var(--line);color:var(--ink)}
.button.secondary:hover:not(:disabled){background:#f7f9f7;border-color:#bdcec4}
.button.subtle{color:var(--teal);background:var(--teal-soft)}
.button.subtle:hover:not(:disabled){background:#dcece4}
.button.small{font-size:12px;min-height:34px;padding:7px 11px}
.button.small .icon{width:16px;height:16px}
.button.text-danger{color:var(--danger);background:transparent}
.button.text-danger:hover{background:#fcf0ed}
.button.topbar-button{background:transparent;min-height:38px;font-size:12px;color:var(--muted);padding:8px 10px}
.button.topbar-button:hover{background:var(--teal-soft)}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:7px;border-radius:10px;color:var(--muted);flex:none}
.icon-button:hover{background:#edf2ed;color:var(--teal)}
.text-button{color:var(--teal);font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:3px 0;line-height:1.4}
.text-button:hover{text-decoration:underline}
.text-button .icon{width:16px;height:16px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:23px 24px 18px}
.section-head h2{font-size:16px}
.section-head p{font-size:12px;color:var(--muted);line-height:1.6;margin-top:5px}
.section-head.outside{padding:0 1px 16px}
.section-head .count{margin-left:6px}
.count{font-size:12px;color:var(--muted);font-weight:500}
.work-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(285px,1fr);gap:26px;align-items:start}
.work-primary,.work-secondary{display:flex;flex-direction:column;gap:24px;min-width:0}
.task-list{padding:0 24px 14px}
.task-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #edf0ed}
.task-row:last-child{border-bottom:0}
.task-row strong{font-weight:500}
.task-row small{display:flex;align-items:center;gap:5px;font-size:11px}
.task-row small .icon{width:13px;height:13px}
.task-check{display:flex;align-items:center;justify-content:center;border:1.5px solid #c4d2ca;border-radius:6px;width:21px;height:21px;flex:none;padding:0;background:white;position:relative}
.task-check::after{content:"";position:absolute;inset:-10px}
.task-check:hover{background:var(--teal-soft);border-color:var(--teal)}
.task-check.done{background:var(--teal);border-color:var(--teal);color:white}
.task-check.done .icon{width:16px;height:16px}
.work-task-controls{padding:0 24px 6px}
.work-task-controls>.search-field{max-width:none;min-width:0}
.task-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.task-filters .field{margin-bottom:14px;gap:6px;font-size:12px}
.task-filters select{width:100%;min-width:0;font-size:12px;padding:10px 8px}
.task-edit{font-size:12px;flex:none;align-self:flex-start;margin-top:3px}
.task-assignee-choice>.search-field,.task-assignee-choice [data-paged-choice]>.search-field{max-width:none;margin-bottom:12px}
.task-assignee-choice .section-head{padding:0 0 14px}
@media(max-width:600px){.work-task-controls{padding:0 18px 6px}.task-filters{gap:8px}.task-filters select{font-size:11px}.task-edit{font-size:11px}}
.overdue{color:var(--danger)!important}
.quiet-state{display:flex;gap:14px;align-items:center;padding:11px 25px 29px}
.quiet-state>.icon{color:#5c9b7d;background:#edf6ef;border-radius:50%;width:33px;height:33px;padding:8px}
.quiet-state strong{font-size:13px;font-weight:550}
.quiet-state p{color:var(--muted);font-size:12px;line-height:1.6;margin-top:3px}
.payment-attention{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:16px 24px;border-top:1px solid #edf0ed}
.payment-attention:hover{background:#fafbf9}
.payment-attention>strong{font-size:13px;white-space:nowrap}
.payment-attention>.icon{width:15px;height:15px;color:#8c9d93}
.soft-icon{width:37px;height:37px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:var(--teal-soft);color:var(--teal);flex:none}
.soft-icon.amber{background:var(--amber-soft);color:var(--amber)}
.workspace-note{display:flex;align-items:flex-start;gap:10px;color:#7b8b80;font-size:12px;line-height:1.7;padding:0 3px}
.workspace-note>.icon{width:17px;height:17px;margin-top:2px}
.date-chip{font-size:11px;font-weight:600;line-height:1.5;background:#f2f5ef;color:#58774d;padding:7px 9px;border-radius:7px;display:inline-flex;align-items:center;gap:6px}
.date-chip .icon{width:14px;height:14px}
.badge{font-size:10px;line-height:1.4;padding:5px 8px;display:inline-flex;align-items:center;border-radius:6px;background:#eef1ee;color:#66756c;font-weight:600;white-space:nowrap}
.badge.teal{background:#eaf4ed;color:#367254}
.badge.amber{background:var(--amber-soft);color:var(--amber)}
.badge.muted{background:#f0f1ef;color:#788178}
.list-toolbar{display:flex;align-items:center;gap:16px;padding:19px 22px;border-bottom:1px solid var(--line)}
.list-toolbar.standalone{padding:0 0 22px;border:0}
.search-field{position:relative;display:flex;align-items:center;flex:1;max-width:430px;min-width:130px}
.search-field>.icon{position:absolute;left:12px;color:#8c9b91;width:17px;height:17px;pointer-events:none}
.search-field>input{width:100%;padding-left:39px;background:#fafbf9}
input,select,textarea{border:1px solid #d9e2db;border-radius:9px;min-height:42px;padding:10px 12px;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s;min-width:0;font-size:13px}
input:focus,select:focus,textarea:focus{border-color:#77a491;box-shadow:0 0 0 3px #27665d12}
input:disabled,select:disabled,textarea:disabled{background:#f1f4f1;color:#6f7c72}
input::placeholder,textarea::placeholder{color:#8b988e}
select{max-width:100%;padding-right:25px;cursor:pointer}
textarea{resize:vertical;line-height:1.6;min-height:88px;width:100%}
.list-toolbar>select{max-width:230px}
.check-label{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);line-height:1.5;cursor:pointer}
.check-label input{width:16px;height:16px;min-height:0;accent-color:var(--teal);margin:0;flex:none}
.booking-row{display:grid;grid-template-columns:minmax(150px,1fr) 150px 145px 18px;align-items:center;gap:22px;width:100%;text-align:left;padding:20px 24px;border-bottom:1px solid #edf0ed}
.booking-row:last-child{border-bottom:0}
.booking-row:hover{background:#fafcf9}
.booking-row>span{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.booking-row strong{font-size:13px;overflow-wrap:anywhere;font-weight:600}
.booking-row small{font-size:12px;color:var(--muted);line-height:1.5}
.booking-row>.icon{width:16px;height:16px;color:#92a095}
.booking-row .booking-price{align-items:flex-end;text-align:right}
.empty-state{text-align:center;padding:35px 22px 39px;display:flex;flex-direction:column;align-items:center}
.empty-icon{width:39px;height:39px;border-radius:12px;background:#f2f5f0;color:#8ba081;display:flex;align-items:center;justify-content:center;margin-bottom:15px}
.empty-state h3{font-size:14px;font-weight:600}
.empty-state p{font-size:12px;line-height:1.7;max-width:330px;color:var(--muted);margin-top:7px}
.empty-state .button{margin-top:16px}
.loading-state{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);padding:54px 20px;font-size:13px}
.spinner{display:inline-block;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.error-state{padding:35px 24px;text-align:center}
.error-state p{color:var(--muted);font-size:13px;line-height:1.7;margin:10px auto 20px;max-width:500px}
.modal{padding:0;border:1px solid #dce5dc;border-radius:20px;width:min(530px,calc(100vw - 30px));max-height:calc(100dvh - 44px);color:var(--ink);box-shadow:0 25px 110px #142f2840;background:white}
.modal[open]{display:flex;flex-direction:column}
.modal.wide{width:min(700px,calc(100vw - 30px))}
.modal::backdrop{background:#122e274c;backdrop-filter:blur(3px)}
.modal-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px 21px;border-bottom:1px solid var(--line);flex:none}
.modal-top h2{font-size:20px;letter-spacing:-.4px}
.modal-top p{font-size:12px;color:var(--muted);line-height:1.6;margin-top:7px}
.modal-actions{display:flex;align-items:center;gap:2px;margin-top:-5px;margin-right:-8px;flex-shrink:0}
.modal-body{padding:24px 26px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;min-width:0}
.field>span{font-size:12px;font-weight:600;line-height:1.5}
.field>input,.field>select{width:100%}
.field>small{color:var(--muted);font-size:11px;font-weight:400}
.required{color:#6c9580}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field-with-action{display:flex;align-items:center;gap:14px}
.field-with-action>.field{flex:1}
.field-with-action>.text-button{flex:none;margin-top:3px}
.form-help{color:var(--muted);font-size:12px;line-height:1.75;margin:14px 0 18px}
.form-error,.inline-error{color:#9d3e33;background:#fcf0ec;border-radius:9px;padding:12px 14px;font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin:12px 0}
.form-error[hidden]{display:none}
.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding-top:21px;margin-top:6px;border-top:1px solid var(--line)}
.modal-body>form>.dialog-actions,.modal-body>[data-access-layer]>form>.dialog-actions{position:sticky;bottom:-24px;background:var(--surface,#fff);padding-bottom:18px;z-index:2}
.workspace-history{display:flex;align-items:center;gap:2px;flex-shrink:0}
.workspace-back:disabled,.workspace-forward:disabled{opacity:.3;cursor:default}
.entity-link{border:0;background:none;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer;display:inline;line-height:inherit}
.entity-link .icon{width:18px;height:18px;vertical-align:middle;color:var(--muted)}
.entity-link:hover,.task-title:hover{text-decoration:underline;text-underline-offset:4px}
.task-title{text-align:left;justify-content:flex-start;font-weight:600;font-size:14px;line-height:1.45;padding:0}
.task-detail-title{margin:0 0 22px;font-size:20px;line-height:1.4}
.participant-person{min-width:0;padding-bottom:12px}
.participant-person .field{margin-bottom:3px!important}
.participant-person>.text-button{font-size:11px;padding:3px 0;margin-right:10px}
.participant-age,.participant-date{display:block!important;font-size:11px;color:var(--muted);line-height:1.5;margin:4px 0 0!important}
.participant-summary .text-button{padding:0;font-size:13px}
.message-history-status{display:flex;flex-direction:column;align-items:center;gap:8px;padding-bottom:10px;color:var(--muted);font-size:11px;flex-shrink:0}
.task-draft-context{padding:9px 11px;background:#f2f6f2;border-radius:9px;display:grid;gap:5px;margin-bottom:9px;font-size:12px}
.task-draft-context small{color:var(--muted)}
.task-draft-context p{white-space:pre-wrap;line-height:1.5}
.task-draft-context .text-button{justify-content:flex-start;padding:2px 0}
.message-deleted-label{font-size:11px;color:#856245;margin-bottom:6px}
.message-revisions{font-size:10px!important;padding:0!important;line-height:1.2}
.message-revision{padding:12px 0;border-bottom:1px solid var(--line)}
.message-revision>small{color:var(--muted);font-size:11px}
.section-label{font-size:12px;font-weight:650;margin:5px 0 12px}
.participant-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,1fr) 132px 33px;align-items:center;gap:11px}
.participant-row .field{margin-bottom:12px}
.participant-row .check-label{padding-top:12px;font-size:11px}
.participant-row .icon-button{margin-top:13px;width:32px;height:32px}
.booking-estimate{margin:20px 0;display:grid;grid-template-columns:1fr auto;gap:8px;padding:16px;background:#f2f7f2;border-radius:12px;font-size:12px;line-height:1.5;color:var(--muted)}
.booking-estimate>strong{color:var(--teal);font-size:17px}
.booking-estimate>small{grid-column:1/-1;font-size:11px}
.note-block{font-size:13px;line-height:1.7;background:#f6f8f4;border:1px solid #edf0e9;border-radius:11px;padding:14px 16px;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:18px}
.command-support-notice{margin:16px 20px 0;white-space:normal}
.command-support-notice p{margin:4px 0 10px}
.booking-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:23px}
.booking-detail-heading h3{font-size:21px;margin:12px 0 4px;letter-spacing:-.4px}
.detail-total{display:flex;flex-direction:column;gap:7px;text-align:right;flex:none;padding-top:3px}
.detail-total small{color:var(--muted);font-size:11px}
.detail-total strong{font-size:24px;letter-spacing:-.8px;font-weight:650}
.payment-summary{display:grid;grid-template-columns:1fr 1fr;background:#f2f7f3;border-radius:12px;padding:17px 20px;gap:16px}
.payment-summary>div{display:flex;flex-direction:column;gap:7px}
.payment-summary>div+div{border-left:1px solid #dce7de;padding-left:24px}
.payment-summary span{font-size:11px;color:var(--muted)}
.payment-summary strong{font-size:18px;font-weight:600}
.info-line{font-size:11px;color:var(--muted);line-height:1.8;padding:13px 3px}
.detail-section{margin-top:18px;border-top:1px solid var(--line);padding-top:5px}
.detail-section .section-head{padding:16px 0 15px}
.detail-section .section-head h3{font-size:14px}
.detail-section .task-list{padding:0 0 5px}
.detail-section .task-row{padding:11px 0}
.detail-section .empty-state{padding:18px 10px}
.detail-section .empty-icon{display:none}
.detail-section .empty-state h3{font-weight:400;color:var(--muted);font-size:12px}
.detail-section .empty-state p{display:none}
.participant-summary{padding-bottom:10px}
.participant-summary>div{display:flex;gap:10px;align-items:center;padding:9px 0;font-size:13px}
.participant-summary .icon{width:16px;height:16px;color:#88a28c}
.participant-summary small{margin-left:auto;color:var(--muted);font-size:11px}
.payment-row{display:flex;gap:10px;align-items:center;padding:13px 0;border-top:1px solid #edf0eb;flex-wrap:wrap}
.payment-row>.row-main{min-width:150px}
.payment-row .row-main strong{font-size:12px}
.payment-row .row-main small{font-size:11px}
.payment-row .soft-icon{width:31px;height:31px;border-radius:9px}
.payment-row .soft-icon .icon{width:17px;height:17px}
.payment-row .badge{font-size:10px}
.section-empty{padding:8px 0 18px;color:var(--muted);font-size:12px}
.booking-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:23px;margin-top:20px}
.review-amount{font-size:34px;font-weight:600;letter-spacing:-1px;display:flex;flex-direction:column;align-items:center;padding:12px 0 23px}
.review-amount small{font-size:12px;letter-spacing:0;font-weight:400;color:var(--muted);margin-top:6px}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}
.detail-grid>div{min-width:0}
.detail-grid dt{font-size:11px;color:var(--muted);margin-bottom:7px}
.detail-grid dd{margin:0;font-size:13px;font-weight:550;line-height:1.7;overflow-wrap:anywhere}
.button-row{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}
.departure-detail-title h3{font-size:24px;line-height:1.35;letter-spacing:-.5px;margin-top:15px}
.modal-body .booking-row{padding:17px 0;grid-template-columns:minmax(100px,1fr) 125px 110px 13px;gap:11px}
.modal-body .booking-row strong{font-size:12px}
.modal-body .booking-row small{font-size:11px}
.contact-results{margin-top:13px;min-height:100px}
.contact-row,.member-row{display:flex;align-items:center;gap:12px;padding:14px 0;width:100%;border-bottom:1px solid #edf1eb;text-align:left}
.contact-row:hover{background:#f8faf6}
.contact-row>.icon{width:17px;height:17px;color:#93a18e}
.person-heading{display:flex;align-items:center;gap:15px}
.person-heading h3{font-size:21px}
.person-heading p{font-size:12px;color:var(--muted);margin-top:5px}
.chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:var(--radius);height:calc(100dvh - 275px);min-height:450px;max-height:850px;overflow:hidden}
.conversation-sidebar{min-width:0;border-right:1px solid var(--line);overflow-y:auto;background:#fdfefd;display:flex;flex-direction:column}
.conversation-search{padding:17px 16px;border-bottom:1px solid #edf1eb;flex:none}
.conversation-search .search-field{min-width:0}
.conversation-search input{font-size:12px}
.conversation-item{width:100%;display:flex;gap:11px;align-items:center;text-align:left;padding:17px 16px;border-bottom:1px solid #eff2ed;position:relative}
.conversation-item:hover{background:#f4f8f2}
.conversation-item.selected{background:#eef5ef}
.conversation-item.selected:before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:3px;background:var(--teal);border-radius:0 4px 4px 0}
.conversation-item .row-main strong{font-size:13px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.conversation-item .row-main small{font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.conversation-item .avatar{width:36px;height:36px;font-size:11px}
.conversation-detail{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fcfdfb}
.conversation-detail>.empty-state,.conversation-detail>.loading-state{margin:auto}
.conversation-header{display:flex;gap:9px;align-items:center;padding:16px 19px;border-bottom:1px solid var(--line);background:white;flex:none}
.conversation-header h2{font-size:15px}
.conversation-header p{font-size:11px;color:var(--muted);margin-top:3px}
.chat-contact-link{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;padding:11px 19px;background:#f6f8f3;border-bottom:1px solid var(--line);flex-wrap:wrap;flex:none}
.chat-contact-link>span{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.chat-contact-link .icon{width:15px;height:15px}
.chat-contact-link .text-button{font-size:11px}
.member-refresh-form .button-row{flex-wrap:wrap}
.chat-back{display:none}
.chat-context{font-size:11px;background:#f6f9f2;border-bottom:1px solid #e6ecdf;padding:9px 19px;display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.chat-context>span{display:inline-flex;gap:6px;align-items:center;color:#607654;font-weight:550}
.chat-context>span .icon{width:14px;height:14px}
.chat-context>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.context-booking{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--teal);max-width:220px;text-align:left;line-height:1.4;min-height:28px}
.context-booking>.icon{width:12px;height:12px}
.messages{flex:1;overflow-y:auto;padding:22px 23px;display:flex;flex-direction:column;gap:14px;min-height:150px;overscroll-behavior:contain}
.messages>.empty-state{margin:auto}
.message{background:white;border:1px solid #e7ece5;border-radius:2px 13px 13px 13px;padding:11px 14px;max-width:85%;align-self:flex-start;min-width:100px;overflow-wrap:anywhere}
.message.outgoing{align-self:flex-end;background:#eaf3ec;border-color:#deeadf;border-radius:13px 2px 13px 13px}
.message.internal{align-self:center;background:#fbf5e7;border-color:#eee5cd;border-radius:11px;width:90%;max-width:90%}
.message.unknown-direction{align-self:center;background:#f6f8f5;border-radius:11px}
.message-content-notice{font-size:12px;line-height:1.6;color:var(--muted)}
.source-history-notice{padding:5px 14px;background:var(--surface-soft,#f4f6f2);color:var(--muted);line-height:1.5;font-size:11px}
.connection-status .source-history-notice{padding:0}
.source-history-notice summary{cursor:pointer}
.source-history-notice p{margin:4px 0}
.source-history-notice small{font-size:10px}
.access-mode{display:grid;gap:8px;margin-bottom:14px;font-size:12px;font-weight:600}
.access-mode select{width:100%;min-height:42px}
.access-people{display:grid;gap:8px;margin:12px 0}
.access-person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid var(--line);border-radius:7px}
.access-person .row-main{min-width:0;overflow-wrap:anywhere}
.access-person select{max-width:45%;font-size:11px;min-height:36px}
.access-selection{margin:16px 0}
.access-selection h3{font-size:12px;margin:12px 0 8px}
.access-person small{font-size:10px;display:block;color:var(--muted)}
.access-hidden-notice{padding:12px 14px;background:#fbf5e7;border:1px solid #eee5cd;border-radius:9px;line-height:1.7;font-size:12px}
.access-chat-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}
.access-chat-row .row-main{min-width:0;overflow-wrap:anywhere}
.access-chat-row small{display:block;color:var(--muted);margin-top:4px;font-size:10px}
.message-author{font-size:10px;font-weight:650;color:#567750;margin-bottom:6px;display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.message-author .icon{width:12px;height:12px}
.message-author>span{font-weight:400;color:#93825d}
.message.internal .message-author{color:#8e7946}
.message-text{font-size:13px;line-height:1.7;white-space:pre-wrap}
.message footer{display:flex;justify-content:flex-end;gap:6px;align-items:center;margin-top:8px;font-size:9px;line-height:1.5;color:#81907c;flex-wrap:wrap}
.delivery.attention{color:var(--amber)}
.delivery-operation{display:grid;gap:4px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
details.delivery-operation{display:block;border:0;padding:0;margin-top:6px}
details.delivery-operation summary{cursor:pointer;color:var(--muted);font-size:11px}
details.delivery-operation small{display:block}
.delivery-operation small{color:var(--muted);line-height:1.5}
.reply-preview{border-left:2px solid #8baa7e;padding:6px 9px;margin:8px 0;background:#ffffff60;border-radius:0 4px 4px 0}
.reply-preview strong{font-size:10px;color:#68815b}
.reply-preview p{font-size:11px;color:var(--muted);margin-top:4px;max-height:45px;overflow:hidden}
.message-attachments{display:flex;flex-direction:column;gap:7px;margin-top:10px}
.attachment-chip{display:flex;gap:8px;align-items:center;font-size:12px;background:#ffffffa0;padding:9px 11px;border:1px solid #dfe7d9;border-radius:7px;line-height:1.5}
.attachment-chip .icon{width:16px;height:16px}
.message-composer{border-top:1px solid var(--line);background:white;padding:14px 19px 17px;flex:none}
.composer-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.composer-kind select{font-size:11px;padding:5px 22px 5px 8px;min-height:31px;background:#fbf7e9;border-color:#ece3c9;color:#806d3e;font-weight:550}
.composer-hint{font-size:10px;color:var(--muted)}
.message-composer textarea{font-size:13px;min-height:68px;max-height:170px;background:#fcfdfb;resize:vertical}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}
.composer-bottom small{font-size:10px;color:var(--muted);line-height:1.5}
.composer-bottom .button{font-size:12px;min-height:35px;padding:8px 12px}
.composer-bottom .icon{width:16px;height:16px}
.viewer-note{padding:15px;font-size:12px;color:var(--muted);text-align:center;border-top:1px solid var(--line)}
.drafts-panel{background:#f4f7f9;border-bottom:1px solid #e0e8ed;padding:0 18px;flex:none;max-height:220px;overflow:auto}
.drafts-panel>summary{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:11px;font-weight:600;color:#5a7180;padding:11px 0}
.drafts-panel>summary .icon{width:15px;height:15px}
.draft-list{display:flex;gap:10px;flex-direction:column;padding-bottom:13px}
.draft-card{background:white;border:1px solid #dfe7ec;padding:11px 13px;border-radius:10px}
.draft-author{font-size:10px;display:flex;align-items:center;gap:7px;color:var(--muted)}
.draft-author .badge{font-size:9px;padding:3px 6px}
.draft-card p{font-size:12px;line-height:1.7;white-space:pre-wrap;margin-top:8px;overflow-wrap:anywhere;max-height:100px;overflow:auto}
.draft-actions{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin-top:7px}
.settings-company{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.settings-company>div{display:flex;flex-direction:column;gap:6px}
.settings-company small{color:var(--muted);font-size:11px}
.module-row{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #eef1eb}
.module-row .row-main strong{font-size:13px}
.module-row small{font-size:11px}
.toggle{position:relative;width:39px;height:23px;flex:none;background:#d9e2d7;padding:3px;border-radius:20px;transition:background .15s}
.toggle>span{display:block;background:white;border-radius:50%;width:17px;height:17px;box-shadow:0 1px 3px #153b2020;transition:transform .15s}
.toggle.on{background:var(--teal)}
.toggle.on>span{transform:translateX(16px)}
.settings-links{border-top:1px solid var(--line);margin-top:25px;padding-top:12px}
.users-toolbar{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-bottom:16px}
.users-toolbar>p{font-size:12px;line-height:1.7;color:var(--muted);max-width:390px}
.user-row{display:flex;align-items:center;gap:12px;width:100%;padding:17px 0;border-bottom:1px solid var(--line);text-align:left}
.user-row:hover{background:#f8faf6}
.user-row>.icon{width:16px;height:16px;color:#85977e}
.user-access{color:#72846a;font-size:10px;line-height:1.6;margin-top:3px}
.permission-details{border:1px solid var(--line);border-radius:10px;padding:13px 15px;margin:15px 0}
#customize-permissions[hidden]{display:none}
.permission-details>summary{font-size:12px;font-weight:600;color:var(--teal);cursor:pointer;line-height:1.6}
.permissions-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 18px;padding:20px 0 6px}
.permission-option{font-size:11px;align-items:flex-start}
.permission-option input{margin-top:1px}
.access-description{font-size:12px;line-height:1.8}
.full-access-note{background:#faf2e3;border-color:#eadbb8;color:#816128}
.account-active{margin:8px 0 14px}
@media(max-width:480px){.users-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.permissions-grid{grid-template-columns:1fr}.user-row{gap:10px}.user-row .row-main strong{font-size:13px}.user-row .row-main small{font-size:11px}}
.settings-link{display:flex;align-items:center;gap:11px;width:100%;padding:14px 0;font-size:13px;text-align:left}
.settings-link>.icon:first-child{color:var(--teal);width:18px;height:18px}
.settings-link>.icon:last-child{margin-left:auto;color:#8a9c85;width:15px;height:15px}
.channel-card{padding:0 0 20px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.channel-card .section-head{padding:0 0 15px}
.channel-card summary{cursor:pointer;color:var(--teal);font-size:12px;padding:5px 0}
.capability-list{font-size:11px;line-height:1.6}
.capability-list>div{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:13px 0}
.capability-list dd{margin:0}
.capability-list dd small{display:block;font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.article-row{display:flex;gap:14px;width:100%;align-items:center;text-align:left;padding:21px 24px;border-bottom:1px solid #edf1eb}
.article-row:hover{background:#fafbf7}
.article-row>.icon{width:16px;height:16px;color:#84987b}
.article-row .row-main small{line-height:1.7;font-size:12px}
.article-scope{font-size:10px;color:var(--teal);margin-top:4px}
.article-body{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.tag-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:20px}
.toast-region{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;max-width:min(520px,calc(100vw - 30px));z-index:10000;pointer-events:none}
.toast{background:#234e43;color:#fff;font-size:12px;padding:13px 19px;border-radius:11px;box-shadow:0 8px 25px #173c3025;line-height:1.6;animation:arrive .18s ease-out}
.toast.error{background:#884d3d}
@keyframes arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.login-page{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}
.login-intro{display:flex;flex-direction:column;justify-content:space-between;padding:50px max(40px,6vw);background:#edf2eb;position:relative;overflow:hidden}
.login-intro:after{content:"";width:430px;height:430px;border-radius:50%;border:1px solid #d8e5d5;position:absolute;bottom:-230px;right:-170px;box-shadow:0 0 0 58px #e4ece170,0 0 0 116px #e8efe560;pointer-events:none}
.login-intro .brand{font-size:28px}
.login-intro>div:nth-child(2){position:relative;z-index:1;padding:90px 0}
.login-intro h1{font-size:clamp(36px,4vw,58px);font-weight:580;line-height:1.13;letter-spacing:-2.4px;margin:22px 0}
.login-intro p{color:#65785f;font-size:15px;line-height:1.8}
.login-line{display:flex;align-items:center;gap:12px;font-size:11px;color:#73856c;z-index:1;line-height:1.6}
.login-line>span{height:1px;width:23px;background:#9db493}
.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px 35px}
.login-form{max-width:340px;width:100%}
.login-form h2{font-size:28px;letter-spacing:-.7px;font-weight:600}
.login-form>p{font-size:13px;color:var(--muted);line-height:1.7;margin:11px 0 32px}
.login-form .field{margin-bottom:21px}
.login-form .button{width:100%;margin-top:10px;min-height:46px;justify-content:space-between;padding-left:17px;padding-right:15px}
.login-help{display:block;text-align:center;font-size:11px;color:#84907d;margin-top:23px;line-height:1.7}
.login-mobile-brand{display:none}
.boot-state,.startup-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:90dvh;gap:20px;padding:30px;text-align:center}
.boot-state p,.startup-error p{color:var(--muted);font-size:13px;line-height:1.8;max-width:400px}
.startup-error h1{font-size:24px;margin-top:15px}
.mobile-nav{display:none}
.noscript{padding:30px;text-align:center}
.team-instruction-link{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:23px;padding-bottom:20px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);flex-wrap:wrap}
.team-instruction-link .button{flex-shrink:0}
.permission-option input:disabled{opacity:.6}
@media(min-width:1500px){.main-content{padding-top:48px}.page-head{margin-bottom:36px}.work-grid{gap:30px}.work-secondary{gap:28px}}
@media(max-width:1180px){.sidebar{width:190px;padding:28px 15px 18px}.main-shell{margin-left:190px}.topbar{padding:0 28px}.main-content{padding:30px 28px}.workspace-footer{padding-left:28px;padding-right:28px}.page-head h1{font-size:26px}.work-grid{grid-template-columns:minmax(0,1.2fr) minmax(270px,1fr);gap:20px}.booking-row{grid-template-columns:minmax(130px,1fr) 130px 120px 15px;gap:12px;padding:18px}.chat-layout{grid-template-columns:250px minmax(0,1fr)}.conversation-header{padding:13px}.messages{padding:18px 16px}.conversation-header .button{font-size:10px;padding:6px 8px}.composer-hint{display:none}}
@media(max-width:960px){.work-grid{grid-template-columns:1fr}.work-secondary>section{display:grid;grid-template-columns:1fr 1fr;gap:15px}.work-secondary .section-head{grid-column:1/-1;padding-bottom:0}.workspace-note{display:none}.page-head{align-items:flex-start}.page-head h1{font-size:25px}.page-actions .button{font-size:12px;padding:10px 12px}.booking-row{grid-template-columns:minmax(100px,1fr) 115px 110px 13px;gap:9px}.booking-row .badge{font-size:9px}.chat-layout{grid-template-columns:215px minmax(0,1fr)}.chat-context{padding:8px 13px}.chat-context>span{display:none}.conversation-item{padding:16px 12px;gap:8px}.conversation-item .avatar{width:31px;height:31px;font-size:10px}.message{max-width:95%}.message.internal{max-width:100%;width:100%}.composer-bottom small{max-width:130px}.conversation-header #chat-members{font-size:0;gap:0}.conversation-header #chat-members .icon{width:17px;height:17px}.login-intro{padding:40px}.login-intro h1{font-size:43px}}
@media(max-width:760px){h1{font-size:26px}.sidebar{display:none}.main-shell{margin-left:0;padding-bottom:calc(67px + env(safe-area-inset-bottom))}.topbar{height:64px;padding:0 20px;background:#fff;position:sticky;top:0;z-index:25}.topbar-brand{display:flex!important;align-items:center;gap:8px;font-size:15px;letter-spacing:-.5px}.topbar-brand .brand-symbol{width:29px;height:29px;font-size:25px;border-radius:9px}.topbar-label{display:none}.topbar-actions{gap:4px}.mobile-logout{display:inline-flex!important}.topbar-actions>.icon-button{width:34px;height:36px}.topbar-actions .button.topbar-button{padding:7px;font-size:11px;gap:6px}.topbar-actions .button.topbar-button .icon{width:18px;height:18px}.main-content{padding:27px 20px 25px}.page-head{gap:15px;margin-bottom:23px;flex-wrap:wrap;align-items:flex-start}.page-head h1{font-size:26px;letter-spacing:-.8px;max-width:500px}.page-head p{font-size:12px;margin-top:10px;max-width:420px}.eyebrow{font-size:10px;letter-spacing:1px;margin-bottom:9px}.page-actions{margin-top:1px}.page-actions .button{min-height:39px;padding:10px 14px}.page-actions .icon{width:17px;height:17px}.work-grid{gap:25px}.work-primary{gap:20px}.work-secondary>section{gap:15px}.work-secondary .section-head{padding-bottom:1px}.panel{border-radius:14px;box-shadow:none}.section-head{padding:21px 20px 15px}.section-head h2{font-size:15px}.section-head p{font-size:11px}.task-list{padding:0 20px 12px}.task-row{padding:15px 0}.task-row strong{font-size:13px}.task-check{width:22px;height:22px}.payment-attention{padding:16px 20px}.workspace-footer{padding:15px 20px 20px;font-size:10px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;border-top:1px solid var(--line);background:#ffffffed;backdrop-filter:blur(16px);height:calc(67px + env(safe-area-inset-bottom));padding:6px 13px calc(6px + env(safe-area-inset-bottom));z-index:30;justify-content:space-around;gap:8px}.mobile-nav .nav-item{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;padding:7px 0;border-radius:10px;flex:1;font-size:10px;min-width:0;line-height:1.4}.mobile-nav .nav-item .icon{width:21px;height:21px}.mobile-nav .nav-item.active{background:#edf4ee}.list-toolbar{padding:16px;gap:10px;flex-wrap:wrap}.list-toolbar.standalone{padding:0 0 18px}.search-field{max-width:none}.list-toolbar>.search-field{flex:1 1 170px}.list-toolbar>select{max-width:170px;font-size:12px}.list-toolbar .check-label{font-size:11px}.booking-row{padding:18px 16px;grid-template-columns:minmax(100px,1fr) 124px 95px;gap:12px}.booking-row>.icon{display:none}.booking-row strong{font-size:12px}.booking-row small{font-size:11px}.booking-row .badge{font-size:10px}.chat-layout{display:block;height:calc(100dvh - 270px - env(safe-area-inset-bottom));min-height:400px;max-height:none}.conversation-sidebar{height:100%;border:0}.conversation-detail{display:none;height:100%}.chat-layout.has-selection .conversation-sidebar{display:none}.chat-layout.has-selection .conversation-detail{display:flex}.conversation-search{padding:14px 16px}.conversation-item{padding:17px 16px}.conversation-item .avatar{width:38px;height:38px;font-size:12px}.conversation-item .row-main strong{font-size:14px}.conversation-item .row-main small{font-size:12px}.chat-back{display:flex;width:30px;margin-left:-5px}.conversation-header{padding:12px 14px;gap:7px}.conversation-header .row-main h2{font-size:14px}.conversation-header .button{font-size:11px}.conversation-header #chat-members{font-size:0}.chat-context{padding:8px 15px}.messages{padding:18px 15px}.message{max-width:91%}.message.internal{max-width:97%;width:97%}.message-text{font-size:13px}.message-composer{padding:10px 14px 13px}.message-composer textarea{min-height:60px;font-size:16px}.composer-bottom .button{font-size:11px}.composer-bottom small{font-size:9px;max-width:150px}.toast-region{bottom:calc(80px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 30px)}.modal{max-height:calc(100dvh - 28px);border-radius:17px}.modal-top{padding:21px 21px 17px}.modal-top h2{font-size:19px}.modal-body{padding:21px}.field>input,.field>select,.field>textarea{font-size:16px}.dialog-actions .button{font-size:12px;white-space:normal;line-height:1.5;min-height:42px}.dialog-actions .button.secondary{white-space:nowrap}.form-grid{gap:12px}.login-page{grid-template-columns:1fr}.login-intro{display:none}.login-form-wrap{padding:40px 26px;min-height:100dvh;align-items:center}.login-form{max-width:370px}.login-mobile-brand{display:flex;align-items:center;gap:9px;margin-bottom:53px;font-size:18px;font-weight:600;letter-spacing:-.4px}.login-form h2{font-size:28px}.login-form .field input{font-size:16px;min-height:46px}.login-form .button{min-height:49px}.login-form>p{margin-bottom:29px}}
@media(max-width:480px){.main-content{padding:25px 16px 20px}.topbar{padding:0 16px}.topbar-actions .button.topbar-button span{display:none}.topbar-actions .button.topbar-button{min-width:35px}.topbar-brand{font-size:14px}.page-head{margin-bottom:21px}.page-head h1{font-size:25px}.page-head>div:first-child{width:100%}.page-actions{margin-top:0}.work-secondary>section{grid-template-columns:1fr}.section-head{padding:20px 18px 14px}.task-list{padding:0 18px 10px}.payment-attention{padding:15px 18px;gap:10px}.payment-attention>strong{font-size:12px}.booking-row{grid-template-columns:minmax(130px,1fr) auto;gap:12px 10px;align-items:start}.booking-row .booking-person{grid-row:1}.booking-row .booking-stage{align-items:flex-end;text-align:right;grid-column:2;grid-row:1/3;gap:9px}.booking-row .booking-price{align-items:flex-start;text-align:left;grid-column:1;grid-row:2;flex-direction:row;gap:9px;align-items:baseline}.booking-row .booking-price>strong{font-size:13px}.booking-row .booking-price small{font-size:10px}.list-toolbar{padding:14px;gap:10px}.list-toolbar>.search-field{flex-basis:100%}.list-toolbar>select{width:100%;max-width:none}.list-toolbar.standalone .check-label{width:100%}.modal{width:calc(100vw - 18px);max-height:calc(100dvh - 20px);border-radius:15px}.modal.wide{width:calc(100vw - 18px)}.modal-top{padding:19px 18px 15px}.modal-body{padding:20px 18px}.modal-top h2{font-size:19px}.modal-top p{font-size:11px}.form-grid{grid-template-columns:1fr;gap:0}.field-with-action{align-items:flex-start;gap:6px;flex-direction:column;margin-bottom:15px}.field-with-action>.field{width:100%;margin-bottom:0}.field-with-action>.text-button{margin:0}.participant-row{grid-template-columns:minmax(100px,1fr) 30px;gap:0 8px;margin-bottom:14px}.participant-row>.participant-person{grid-column:1;grid-row:1;padding-bottom:7px}.participant-row>.field{grid-column:1;grid-row:2;margin-bottom:7px}.participant-row>.check-label{grid-column:1;grid-row:3;padding-top:0;font-size:12px}.participant-row>.icon-button{grid-column:2;grid-row:1;margin-top:15px}.booking-estimate{font-size:11px;padding:14px}.booking-estimate strong{font-size:16px}.booking-estimate small{font-size:10px}.booking-detail-heading{flex-direction:column;gap:14px}.booking-detail-heading h3{font-size:22px}.detail-total{align-self:stretch;text-align:left;flex-direction:row;align-items:baseline;gap:12px}.detail-total strong{font-size:24px}.detail-total small{font-size:12px}.payment-summary{padding:15px}.payment-summary strong{font-size:18px}.payment-summary>div+div{padding-left:17px}.payment-row>.row-main{min-width:120px}.payment-row .badge{margin-left:auto}.payment-row .button{margin-left:auto}.booking-actions .button{width:100%}.modal-body .booking-row{grid-template-columns:1fr auto;gap:11px;padding:17px 0}.modal-body .booking-row .booking-price{grid-column:1/-1}.detail-grid{gap:20px 14px}.detail-grid dd{font-size:12px}.detail-grid dt{font-size:10px}.chat-page .page-head h1{font-size:24px}.chat-page .page-head p{display:none}.chat-page .page-head{gap:13px;margin-bottom:18px}.chat-page .page-head>div:first-child{width:auto;flex:1}.chat-page .page-actions .button{font-size:0;gap:0;width:39px;height:39px;padding:9px;margin-top:10px}.chat-page .page-actions .button .icon{width:19px;height:19px}.chat-layout{height:calc(100dvh - 243px - env(safe-area-inset-bottom));min-height:390px;border-radius:13px}.conversation-header h2{font-size:13px}.conversation-header .button{font-size:10px;padding:6px 8px}.chat-context{padding:7px 12px}.context-booking{max-width:180px;font-size:10px}.composer-bottom small{max-width:110px}.composer-bottom .button{padding:9px 10px;font-size:11px}.article-row{padding:18px 16px;gap:11px}.article-row .row-main strong{font-size:13px}.article-row .row-main small{font-size:11px}.article-row .soft-icon{width:32px;height:32px;border-radius:10px}.dialog-actions{gap:7px;padding-top:18px}.dialog-actions .button{padding:10px 12px}.info-line{font-size:11px}.workspace-footer{padding:15px 17px}.toast{font-size:11px}}
@media(max-width:360px){.topbar-brand strong{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}

/* Contextual trip preparation; the primary navigation remains unchanged. */
.planning-list{display:flex;flex-direction:column;gap:0}
.planning-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--border,#e7e9e5)}
.planning-row .row-main{min-width:0;display:flex;flex-direction:column;gap:5px;overflow-wrap:anywhere}
.planning-row .row-main small{color:var(--muted,#69716b);line-height:1.5}
.planning-row .button-row{flex-shrink:0;margin:0;gap:8px;flex-wrap:wrap}
.planning-program,.planning-program-picker{margin:16px 0;padding:13px 16px;background:var(--surface-soft,#f4f6f2);border-radius:10px}
.planning-program summary{cursor:pointer;line-height:1.5}
.planning-program-picker{display:flex;justify-content:space-between;gap:12px;align-items:center}
.planning-choices{display:flex;flex-direction:column;gap:12px;border:1px solid var(--border,#e7e9e5);padding:16px;border-radius:10px;margin:18px 0}
.planning-cost-line{padding:16px 0;border-bottom:1px solid var(--border,#e7e9e5)}
.planning-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.6}
.planning-table th,.planning-table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--border,#e7e9e5);vertical-align:top}
.planning-table th{color:var(--muted,#69716b);font-weight:500}
.table-scroll{overflow-x:auto}.planning-totals{padding:12px 0}
.connection-status{padding:10px 18px;background:var(--surface-soft,#f4f6f2);font-size:12px;line-height:1.6;display:flex;flex-direction:column}
.connection-status small{color:var(--muted,#69716b)}
@media(max-width:600px){.planning-row{align-items:flex-start;flex-direction:column;gap:12px}.planning-row .button-row{width:100%}.planning-program-picker{align-items:flex-start;flex-direction:column}.planning-table{min-width:440px}.planning-table th,.planning-table td{padding:10px 8px}.connection-status{padding:8px 14px;font-size:11px}.planning-choices{padding:12px}}

.context-actions{position:relative;flex:none}
.context-actions>summary,.task-filter-panel>summary,[data-choice-summary]{font-size:13px;padding:8px;color:var(--teal-dark)}
summary{cursor:pointer}
.context-actions[open]>div{position:absolute;right:0;top:100%;z-index:3;min-width:155px;max-width:85vw;background:white;border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:0 4px 14px #23382918;display:grid;gap:3px}
.context-actions[open]>div>button{justify-content:flex-start;text-align:left;white-space:normal}
.booking-actions .context-actions[open]>div{position:static;box-shadow:none}
[data-choice-summary]{border:1px solid var(--line);border-radius:8px}
[data-choice-summary] strong{margin:0 8px}
@media(max-width:600px){.conversation-detail{overflow-y:auto}.conversation-header{padding:8px;gap:5px}.conversation-header h2{overflow-wrap:anywhere}.chat-layout.has-selection{min-height:min(400px,65dvh)}}

/* Named people in a departure, with booking and seat counts kept distinct. */
.departure-subtabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;padding:0 0 12px;border-bottom:1px solid var(--line)}
.departure-subtabs>button{padding:8px 11px;min-height:38px;border:1px solid transparent;border-radius:8px;color:var(--muted);font-weight:600;line-height:1.4}
.departure-subtabs>button:hover{background:var(--teal-soft);color:var(--teal-dark)}
.departure-subtabs>button[aria-current=page]{background:var(--teal-soft);border-color:#bdd6cc;color:var(--teal-dark)}
.departure-roster-group{margin-top:18px}
.departure-roster-group h4{margin:0 0 5px;font-size:15px;line-height:1.5}
.departure-roster-group>.form-help{margin:0 0 10px}
.departure-roster-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:10px}
.departure-roster-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px;line-height:1.5}
.departure-roster-table th,.departure-roster-table td{padding:10px 12px;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.departure-roster-table thead{background:var(--bg);color:var(--muted)}
.departure-roster-table th{font-weight:600}
.departure-roster-table tbody th{width:25%}
.departure-roster-table td small{display:block;margin-top:3px;color:var(--muted);font-size:13px}
.departure-roster-table tbody tr:last-child>*{border-bottom:0}
.departure-roster-group[data-roster-group=cancelled]{color:var(--muted)}
@media(max-width:600px){
 .departure-roster-table thead{display:none}
 .departure-roster-table,.departure-roster-table tbody,.departure-roster-table tr{display:block;width:100%}
 .departure-roster-table tr+tr{border-top:1px solid var(--line)}
 .departure-roster-table th,.departure-roster-table td{display:block;width:100%!important;padding:7px 11px;border:0}
 .departure-roster-table td:before{content:attr(data-label);display:block;margin-bottom:2px;color:var(--muted);font-size:12px;font-weight:600}
 .departure-roster-table tbody th{background:var(--bg);padding-top:10px;padding-bottom:10px}
 .departure-subtabs>button{min-height:42px}
}

/* One entity workspace beside the current list or conversation. */
.workspace-content{display:flex;align-items:stretch;min-width:0;flex:1;isolation:isolate}
.workspace-content>.main-content{min-width:0;flex:1;container-type:inline-size;container-name:crm-main}
#entity-slot{flex:0 0 clamp(420px,46%,760px);min-width:0;border-left:1px solid var(--line);background:var(--white,#fff)}
#entity-slot[hidden]{display:none}
.entity-card{background:#fff;min-width:0;max-width:100%;height:calc(100dvh - 74px);display:flex;flex-direction:column;position:sticky;top:74px;outline:none}
.entity-card>.modal-top{flex:none;padding:20px 24px;gap:12px;border-bottom:1px solid var(--line);align-items:flex-start}
.entity-card .modal-top h2{outline:none;overflow-wrap:anywhere}
.entity-card>.modal-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px;scrollbar-gutter:stable;flex:1}
.entity-card.expanded{position:fixed;inset:74px 24px 20px 224px;height:auto;z-index:8;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 48px #17382b22}
.entity-card .modal-actions{display:flex;gap:3px;flex-wrap:wrap;justify-content:flex-end}
.entity-card .modal-actions{gap:10px;align-items:center;flex-shrink:0}
.card-options>summary{font-size:14px;min-height:34px;display:flex;align-items:center}
.card-options>div{min-width:210px}
.card-options>div .text-button{justify-content:flex-start;white-space:normal;font-size:14px}
.modal-actions>.close-dialog{gap:5px;font-size:14px;white-space:nowrap}
.entity-card .dialog-actions{flex-wrap:wrap;position:sticky;bottom:-24px;background:white;padding-top:14px;padding-bottom:14px}
.entity-card .modal-body>form{max-width:100%}
.entity-card .form-grid{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))}
.entity-card .modal-body,.entity-card .row-main{overflow-wrap:anywhere}
.settings-search{margin:0 0 24px;width:100%}
.settings-category{margin:0 0 26px}
.settings-category h3{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 10px}
.settings-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:8px}
.settings-catalog-grid .settings-link{display:flex;align-items:flex-start;width:100%;gap:12px;text-align:left;border:1px solid var(--line);border-radius:10px;padding:15px;background:#fff}
.settings-catalog-grid .settings-link:hover:not(:disabled){background:#f2f7f5;border-color:#a7c6be}
.settings-catalog-grid .settings-link>span{flex:1;min-width:0}
.settings-catalog-grid .settings-link strong{display:block;font-size:13px;line-height:1.45}
.settings-catalog-grid .settings-link small{display:block;margin-top:5px;font-size:11px;font-weight:400;line-height:1.6;color:var(--muted)}
.settings-catalog-grid .settings-link>.icon{flex:none;width:18px;height:18px;margin-top:2px;color:var(--teal)}
.settings-catalog-grid .settings-link:disabled{opacity:.65;cursor:default;background:#f8f9f8}
.settings-catalog-grid .settings-link[hidden],.settings-category[hidden]{display:none}
.settings-system{border-top:1px solid var(--line);padding-top:10px}
.draft-status{font-size:12px;line-height:1.6;color:var(--muted);padding:8px 10px;margin:0 0 14px;background:var(--bg);border-radius:8px}
.draft-status:empty{display:none}.draft-status strong{display:block;color:var(--ink)}
.draft-status dl{white-space:pre-wrap;max-height:240px;overflow:auto}
.draft-status dd{margin:4px 0 8px}
.workspace-content.has-card .chat-layout{grid-template-columns:minmax(150px,28%) minmax(0,1fr)}
.workspace-content.has-card .page-head{flex-wrap:wrap}
/* A docked card changes the available workspace width without changing the viewport. */
@container crm-main (max-width:740px){
 .work-grid{grid-template-columns:1fr}
 .work-secondary>section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .work-secondary .section-head{grid-column:1/-1;padding-bottom:0}
 .list-toolbar{flex-wrap:wrap}
 .list-toolbar>.search-field{max-width:none;flex:1 1 200px}
}
@container crm-main (max-width:540px){
 .work-secondary>section{grid-template-columns:1fr}
 .booking-row{grid-template-columns:minmax(0,1fr) auto;gap:12px 10px;align-items:start}
 .booking-row>.icon{display:none}
 .booking-row .booking-person{grid-column:1;grid-row:1}
 .booking-row .booking-stage{grid-column:2;grid-row:1/3;align-items:flex-end;text-align:right}
 .booking-row .booking-price{grid-column:1;grid-row:2;align-items:flex-start;text-align:left}
 .task-row{flex-wrap:wrap}
 .task-row>.row-main{min-width:120px}
 .page-head{flex-wrap:wrap}
}
a.booking-row,a.contact-row,a.task-title,a.article-row{color:inherit;text-decoration:none}
.chat-context-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.chat-context-tabs{display:flex;gap:4px;flex-wrap:wrap}
.chat-context-tabs button{font-size:12px;padding:6px 9px;border-radius:6px}
.chat-context-tabs button[aria-selected=true]{background:var(--teal-soft);color:var(--teal-dark)}
.chat-context-record{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.chat-context-record .context-booking{flex:1;display:block;text-align:left;text-decoration:none}
@media(max-width:1100px){#entity-slot{flex-basis:50%}.workspace-content.has-card .conversation-sidebar{display:none}.workspace-content.has-card .chat-layout{display:block}.entity-card>.modal-body{padding:18px}.entity-card>.modal-top{padding:16px}.entity-card .dialog-actions{bottom:-18px}}
@media(max-width:800px){.workspace-content.has-card>.main-content{display:none}#entity-slot{flex:1;border:0}.entity-card{height:calc(100dvh - 132px);top:60px}.entity-card.expanded{position:sticky;inset:auto;top:60px;height:calc(100dvh - 132px);border:0;border-radius:0;box-shadow:none}.entity-card [data-expand-card]{display:none}.entity-card>.modal-body{padding:16px 16px calc(18px + env(safe-area-inset-bottom))}.entity-card>.modal-top{padding:14px 16px}.entity-card .modal-top h2{font-size:20px}.entity-card .dialog-actions{bottom:-18px}.mobile-nav{overflow-x:auto;justify-content:flex-start}.mobile-nav .nav-item{flex:1 0 64px}.chat-context-record{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.entity-card{scroll-behavior:auto}}
.chat-page>.route-content{display:flex;flex:1;min-height:0;flex-direction:column}
.attachment-preview{width:100%;min-width:0;display:flex;justify-content:center;padding:1rem 0}
.attachment-preview img,.attachment-preview video{max-width:100%;max-height:70dvh;object-fit:contain}
.attachment-preview audio{width:100%}
.attachment-preview iframe{width:100%;height:70dvh;border:1px solid var(--line);border-radius:.7rem;background:white}

/* The workspace frame leaves the working area to the current task. */
:root{--shell-header-height:48px;--bottom-nav-height:0px}
.app-shell{min-height:calc(100dvh - var(--preview-offset,0px))}
.sidebar{width:200px;padding:22px 14px 16px;top:var(--preview-offset,0px)}
.brand{font-size:23px}.brand-symbol{width:34px;height:34px;font-size:28px;border-radius:10px}
.workspace-name{margin:20px 9px 17px}.desktop-nav{gap:4px}.nav-item{padding:11px 13px;font-size:14px}
.sidebar-bottom{padding-top:16px}.settings-nav{width:100%;text-align:left;margin-bottom:10px}
.account{padding-top:14px}.main-shell{margin-left:200px}
.topbar{height:var(--shell-header-height);min-height:var(--shell-header-height);padding:0 20px;justify-content:flex-start;gap:16px;flex-shrink:0;background:var(--paper)}
.topbar-label{font-size:13px;color:var(--muted)}
.topbar .workspace-history{gap:2px}.topbar .icon-button{width:32px;height:32px}
.main-content{max-width:none;padding:20px 24px 24px}.page-head{margin-bottom:22px}
.workspace-content{min-height:0}
.main-shell[data-route="chats"]{height:calc(100dvh - var(--preview-offset,0px));min-height:0}
.main-shell[data-route="chats"]>.workspace-content{flex:1;min-height:0;overflow:hidden}
main[data-route="chats"]{padding:0;max-width:none;margin:0;min-height:0;overflow:hidden;display:flex;flex-direction:column}
main[data-route="chats"]>.route-content{height:100%;min-height:0;flex:1;display:flex;flex-direction:column}
main[data-route="chats"] .chat-layout{height:100%;min-height:0;max-height:none;border:0;border-radius:0;flex:1}
.entity-card{top:var(--shell-header-height);height:calc(100dvh - var(--shell-header-height) - var(--preview-offset,0px) - var(--bottom-nav-height))}
.planning-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:20px;padding:0 0 10px}
.planning-tabs a{padding:10px 16px;border-radius:9px;color:var(--muted);font-weight:550;font-size:14px}
.planning-tabs a[aria-current]{background:var(--teal-soft);color:var(--teal-dark)}
.planning-tabs a:hover{background:var(--teal-soft);text-decoration:none}
.planning-workspace-panel{border:1px solid var(--line);border-radius:12px;background:var(--paper);overflow:hidden}
.planning-workspace-title{padding:22px 22px 0;font-size:20px}
.planning-workspace-panel .list-toolbar{border-bottom:0;padding:20px 22px 12px}
.planning-workspace-panel .list-toolbar .field{margin:0}
.planning-archive{margin:8px 22px 14px}.planning-title{padding:0;align-items:flex-start;gap:5px;text-align:left;min-height:44px}
.planning-title strong{color:var(--teal);font-size:15px}.planning-title:hover strong{text-decoration:underline}
.planning-workspace-panel .planning-row{padding:18px 22px}.planning-workspace-panel .planning-row:hover{background:#f8fbf9}
.mobile-sections[open]>.mobile-section-menu{position:fixed;top:auto;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));max-width:none;max-height:calc(100dvh - 100px - env(safe-area-inset-bottom));overflow-y:auto;padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 32px #20363024;z-index:40}
.mobile-section-menu .nav-item{width:100%;justify-content:flex-start;flex-direction:row;gap:12px;padding:14px;font-size:15px}
@media(min-width:801px){.mobile-sections{display:none}}
@media(max-width:1100px) and (min-width:801px){.sidebar{width:176px;padding:20px 10px 14px}.main-shell{margin-left:176px}.brand{font-size:21px}.nav-item{padding:10px 11px}.main-content{padding:20px}.workspace-content.has-card main[data-route="chats"]{padding:0}}
@media(max-width:800px){
  :root{--shell-header-height:44px;--bottom-nav-height:calc(67px + env(safe-area-inset-bottom))}
  .sidebar{display:none}.main-shell{margin-left:0;padding-bottom:var(--bottom-nav-height)}.topbar{padding:0 12px;gap:10px}.topbar-brand{display:none!important}.main-content{padding:18px 16px 22px}
  .main-shell[data-route="chats"]{height:calc(100dvh - var(--preview-offset,0px));padding-bottom:var(--bottom-nav-height)}
  main[data-route="chats"]{padding:0}.main-shell[data-route="chats"] .entity-card{top:0;height:100%}
  .mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:var(--bottom-nav-height);border-top:1px solid var(--line);background:var(--paper);z-index:30;padding:6px 8px calc(6px + env(safe-area-inset-bottom));overflow:visible;justify-content:space-around;gap:2px}.mobile-nav>.nav-item{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:7px 0;font-size:11px}.mobile-nav>.nav-item,.mobile-sections{flex:1 1 0;min-width:0}.mobile-sections>summary{display:flex;flex-direction:column;padding:7px 0;list-style:none;height:100%;gap:4px;font-size:11px}.mobile-sections>summary::-webkit-details-marker{display:none}.mobile-sections[open]>summary{background:var(--teal-soft);color:var(--teal)}
  .mobile-section-menu .nav-item{display:flex;flex-direction:row;justify-content:flex-start;flex:none;font-size:15px;padding:14px}.planning-tabs{gap:4px;margin-bottom:14px}.planning-tabs a{padding:9px 12px}.planning-workspace-title{padding:18px 16px 0;font-size:18px}.planning-workspace-panel .list-toolbar{padding:16px}.planning-workspace-panel .planning-row{padding:16px}.planning-archive{margin:4px 16px 12px}
}
