/* ATLAS — shared dialog and completion language. */
:root{--atlas-accent:#6542e8;--atlas-accent-hover:#5431d4;--atlas-accent-soft:#f2efff;--atlas-ink:#191923;--atlas-muted:#6f7280;--atlas-border:#e7e8ed}
.modal-backdrop[data-atlas-modal]{position:fixed;inset:0;z-index:700;display:grid;place-items:center;padding:28px;background:rgba(35,36,51,.24);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.modal-backdrop[data-atlas-modal].open,.modal-backdrop[data-atlas-modal].visible{opacity:1;visibility:visible}
.atlas-dialog{box-sizing:border-box;width:min(744px,100%);max-height:calc(100dvh - 56px);margin:0;padding:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid var(--atlas-border);border-radius:9px;background:#fff;color:var(--atlas-ink);box-shadow:0 24px 80px rgba(28,28,48,.15);font-size:14px;line-height:1.5;transform:translateY(12px) scale(.99);transition:transform .24s cubic-bezier(.2,.8,.2,1)}
.open .atlas-dialog,.visible .atlas-dialog{transform:none}
.atlas-dialog .modal-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:72px;padding:16px 24px;border-bottom:1px solid var(--atlas-border);background:#fff;backdrop-filter:none}
.atlas-dialog .modal-head h3{margin:0;font-size:16px;line-height:1.35;font-weight:600;letter-spacing:-.025em;color:var(--atlas-ink)}
.atlas-dialog .modal-head p{margin:4px 0 0;max-width:350px;font-size:12px;line-height:1.45;color:var(--atlas-muted)}
.atlas-dialog .modal-head-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.atlas-dialog .modal-body{padding:0;background:#fff}
.atlas-dialog .atlas-form-section{margin:0;padding:24px;border:0;border-bottom:1px solid var(--atlas-border);border-radius:0;background:#fff;min-width:0}
.atlas-dialog .atlas-form-section:last-child{border-bottom:0}
.atlas-dialog .atlas-section-title{display:flex;align-items:center;gap:10px;margin:0 0 22px;color:var(--atlas-ink);font-size:15px;font-weight:600;letter-spacing:-.015em;line-height:1.4}
.atlas-section-title svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.atlas-dialog :is(.form-grid,.profile-form-grid,.booking-fields){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px;margin:0}
.atlas-dialog .form-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.atlas-dialog .form-field.full,.atlas-dialog .calendar-people-field{grid-column:1/-1}
.atlas-dialog .form-field>label,.atlas-dialog .calendar-people-head>label{color:var(--atlas-ink);font-size:13px;font-weight:500;line-height:1.5}
.atlas-dialog .form-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--atlas-border);border-radius:8px;background:#fff;color:var(--atlas-ink);font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;outline:none;box-shadow:0 1px 2px rgba(20,20,30,.02);transition:border-color .15s,box-shadow .15s}
.atlas-dialog .form-field :is(input:not([type=checkbox]):not([type=radio]),select){min-height:42px;height:42px;padding:0 12px}
.atlas-dialog .form-field textarea{min-height:88px;padding:11px 12px;resize:vertical}
.atlas-dialog .form-field input[type=file]{height:auto;min-height:44px;padding:8px;font-size:12px}
.atlas-dialog input::file-selector-button{border:0;border-radius:5px;background:var(--atlas-accent-soft);padding:5px 8px;color:var(--atlas-accent);font:inherit;margin-right:8px;cursor:pointer}
.atlas-dialog :is(input,textarea)::placeholder{color:#828592;opacity:1}
.atlas-dialog .form-field :is(input,select,textarea):focus{border-color:#9883ed;box-shadow:0 0 0 3px rgba(101,66,232,.1)}
.atlas-dialog :is(input,textarea)[readonly],.atlas-dialog .form-field :disabled{background:#f7f8fa;color:#777b88;cursor:default;box-shadow:none}
.atlas-dialog .form-field input:is([type=checkbox],[type=radio]){width:18px;height:18px;accent-color:var(--atlas-accent)}
.atlas-dialog :is(.btn,.booking-refresh){height:36px;min-height:36px;padding:0 13px;border:1px solid var(--atlas-border);border-radius:7px;background:#fff;color:var(--atlas-ink);font-size:12px;font-weight:500;line-height:1;gap:7px;box-shadow:0 1px 2px rgba(20,20,30,.025);white-space:nowrap;transform:none}
.atlas-dialog .btn:hover{background:#f8f9fb;border-color:#d4d5dd;transform:none}
.atlas-dialog .btn:is(.primary,.purple),.atlas-dialog .booking-submit{background:var(--atlas-accent);border-color:var(--atlas-accent);color:#fff}
.atlas-dialog .btn:is(.primary,.purple):hover{background:var(--atlas-accent-hover);border-color:var(--atlas-accent-hover)}
.atlas-dialog .btn.danger{color:#b42338;background:#fff}
.atlas-dialog .btn.danger:hover{background:#fff3f5;border-color:#ebc7ce}
.atlas-dialog button:disabled{cursor:wait;opacity:.55;transform:none}
.atlas-dialog .btn svg{width:15px;height:15px;stroke-width:1.8}
.atlas-dialog .drawer-close{width:32px;height:32px;border:1px solid var(--atlas-border);border-radius:7px;background:#fff;color:var(--atlas-muted)}
.atlas-dialog .drawer-close svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8;fill:none}
.atlas-dialog .modal-footer{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;gap:8px;padding:13px 24px;border-top:1px solid var(--atlas-border);background:#fff;backdrop-filter:none;flex-wrap:wrap}
.atlas-dialog .modal-footer:empty,.atlas-dialog .modal-footer:not(:has(button:not([hidden]),.employee-view-note:not([hidden]),.profile-save-status:not(:empty))){display:none}
.atlas-dialog .profile-help,.atlas-dialog .calendar-people-help{font-size:11px;line-height:1.5;color:var(--atlas-muted)}
.atlas-dialog .profile-identity,.atlas-dialog .employee-identity{margin:0;padding:24px;border:0;border-bottom:1px solid var(--atlas-border);border-radius:0;background:#fff}
.atlas-dialog .profile-identity h4,.atlas-dialog .employee-identity h4{font-size:17px}
.atlas-dialog .profile-identity p,.atlas-dialog .employee-identity p{font-size:12px}
.atlas-dialog .employee-private{grid-column:1/-1;margin:0;padding:0;border:0;background:none}
.atlas-dialog .employee-private>.section-label{margin:0 0 18px;padding:0;font-size:13px}
.atlas-dialog .employee-view-note{font-size:11px;color:var(--atlas-muted)}
.atlas-dialog .employee-profile-banner{margin:0;padding:24px;border:0;border-bottom:1px solid var(--atlas-border);border-radius:0;background:#fff}
.atlas-dialog .employee-profile-banner h4{font-size:17px}.atlas-dialog .employee-profile-banner p{font-size:12px}
.atlas-dialog :is(.module-kpis,.supplier-stats-grid){padding:18px 24px;gap:12px;margin:0!important}
.atlas-dialog :is(.module-kpis,.supplier-stats-grid)>div{border-radius:8px;background:#fafafd;box-shadow:none}
.atlas-dialog :is(.module-kpis,.supplier-stats-grid) span,.atlas-dialog .cost-summary span{font-size:11px;line-height:1.5}
.atlas-dialog :is(.module-kpis,.supplier-stats-grid) strong,.atlas-dialog .cost-summary strong{font-size:20px;line-height:1.35}
.atlas-dialog .cost-summary{grid-column:1/-1;padding:16px;gap:16px;border-radius:8px;background:#faf8fe;border:1px solid #e9e2f7}
.atlas-dialog .supplier-photo-copy strong{font-size:14px}.atlas-dialog .supplier-photo-copy span{font-size:12px;line-height:1.5}
.atlas-dialog .profile-save-status{font-size:12px;color:var(--atlas-accent)}.atlas-dialog .profile-save-status.error{color:#b42338}
.atlas-dialog .supplier-history-list{padding:0;margin:0}.atlas-dialog .supplier-history-list strong{font-size:13px}.atlas-dialog .supplier-history-list span,.atlas-dialog .supplier-history-list p{font-size:12px;line-height:1.5}
.atlas-dialog .booking-layout{display:block}
.atlas-dialog .booking-supplier-summary{margin:24px;padding:14px;border:1px solid var(--atlas-border);border-radius:8px;box-shadow:none}
.atlas-dialog .booking-supplier-summary strong{font-size:14px}.atlas-dialog .booking-supplier-summary span{font-size:12px}
.atlas-dialog .booking-section{padding:24px;border:0;border-bottom:1px solid var(--atlas-border);border-radius:0;background:#fff}
.atlas-dialog .booking-section:last-child{border:0}.atlas-dialog .booking-section-head{margin-bottom:22px}
.atlas-dialog .booking-section-kicker{display:none}.atlas-dialog .booking-section-title{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;letter-spacing:-.015em}
.atlas-dialog .booking-section-copy,.atlas-dialog .booking-helper{font-size:12px;color:var(--atlas-muted);line-height:1.5}
.atlas-dialog .booking-preview{font-family:inherit;min-height:140px!important;background:#fff!important}
.atlas-dialog .booking-calendar-option{border-radius:8px;background:#f8f9fb;border-color:var(--atlas-border);padding:14px}
.atlas-dialog .booking-calendar-copy strong{font-size:13px}.atlas-dialog .booking-calendar-copy span{font-size:11px}
.atlas-dialog .calendar-people-head{margin-bottom:8px}.atlas-dialog .calendar-people-action{font-size:12px}
.atlas-dialog .calendar-people-picker{padding:0;border:0;border-radius:0;background:#fff;gap:8px}
.atlas-dialog .calendar-person-chip{font-size:12px;min-height:34px;padding:0 12px;box-shadow:none}
.atlas-dialog .calendar-person-chip:has(input:checked){color:var(--atlas-accent);border-color:#c2b5f5;background:var(--atlas-accent-soft);box-shadow:none}
.atlas-dialog .calendar-person-chip:focus-within{outline:2px solid var(--atlas-accent);outline-offset:2px}
.atlas-dialog .calendar-person-chip:has(input:checked) .calendar-person-dot{background:var(--atlas-accent);box-shadow:none}
.atlas-dialog .atlas-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;padding:0;border:1px solid var(--atlas-border);border-radius:8px;overflow:hidden;background:#fff}
.atlas-dialog .atlas-choice button{display:flex;gap:8px;align-items:center;justify-content:center;min-height:42px;border:0;border-radius:0;background:#fff;color:var(--atlas-muted);font:inherit;font-size:13px}
.atlas-dialog .atlas-choice button+button{border-left:1px solid var(--atlas-border)}
.atlas-dialog .atlas-choice button[aria-pressed=true]{background:#f8f8fc;color:var(--atlas-accent)}
.atlas-dialog .atlas-choice svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.7}
.atlas-dialog .event-detail-grid{padding:24px;gap:20px}.atlas-dialog .event-detail-box{padding:0;background:none;border:0}
.atlas-dialog .event-detail-box span{font-size:12px}.atlas-dialog .event-detail-box strong{font-size:14px;margin-top:6px}
.atlas-dialog .event-detail-notes{margin:0;padding:24px;border:0;border-top:1px solid var(--atlas-border);font-size:13px;background:none}
.atlas-dialog .atlas-plain-body{padding:24px}.atlas-dialog .atlas-plain-body>p{font-size:13px!important}
.atlas-dialog .atlas-submit-status{display:none;padding:10px 24px;font-size:12px;color:var(--atlas-accent);background:#faf8ff;border-bottom:1px solid var(--atlas-border)}
.atlas-dialog[aria-busy=true] .atlas-submit-status{display:flex;align-items:center;gap:8px}
.atlas-submit-status::before{content:"";width:12px;height:12px;border:2px solid #ddd4fc;border-top-color:var(--atlas-accent);border-radius:50%;animation:atlas-spin .7s linear infinite}
@keyframes atlas-spin{to{transform:rotate(360deg)}}
.atlas-feedback-stack{position:fixed;z-index:1300;left:50%;bottom:28px;transform:translateX(-50%);display:grid;gap:10px;width:min(390px,calc(100vw - 32px));pointer-events:none}
.atlas-feedback{display:flex;gap:14px;align-items:center;position:relative;padding:18px 42px 18px 18px;border:1px solid #e5def9;border-radius:12px;background:#fff;color:var(--atlas-ink);box-shadow:0 14px 50px rgba(43,28,93,.16);pointer-events:auto;animation:atlas-confirm-in .3s cubic-bezier(.18,.8,.28,1) both}
.atlas-feedback-symbol{flex:0 0 46px;width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:var(--atlas-accent-soft);color:var(--atlas-accent);animation:atlas-confirm-pop .45s cubic-bezier(.15,.85,.35,1.2) both}
.atlas-feedback-symbol svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.atlas-feedback-symbol path{stroke-dasharray:30;stroke-dashoffset:30;animation:atlas-confirm-draw .42s .14s ease forwards}
.atlas-feedback strong{display:block;font:600 14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.atlas-feedback p{margin:4px 0 0;color:var(--atlas-muted);font:400 12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-wrap:anywhere}
.atlas-feedback-close{position:absolute;right:10px;top:10px;width:25px;height:25px;padding:0;border:0;border-radius:5px;background:transparent;color:#8b8798;font-size:20px;cursor:pointer}
.atlas-feedback-close:hover{background:#f4f1fb;color:var(--atlas-accent)}
.atlas-feedback.leaving{animation:atlas-confirm-out .2s ease forwards}
.toast-stack .toast{border-radius:9px;padding:14px 16px;gap:12px}.toast-stack .toast strong{font-size:13px;line-height:1.4}.toast-stack .toast span:not(.toast-dot){font-size:12px;line-height:1.5}
#processDrawer .drawer{border-radius:10px 0 0 10px;background:#fff;border-left:1px solid var(--atlas-border)}
#processDrawer .drawer-head{background:#fff;border-bottom:1px solid var(--atlas-border);padding:18px 24px}
#processDrawer .detail-panel{border-radius:8px;border-color:var(--atlas-border);box-shadow:none;background:#fff}
#processDrawer .detail-panel-head{padding:16px 20px}#processDrawer .detail-panel-head h3{font-size:14px;font-weight:600}
#processDrawer .detail-content{padding:20px}#processDrawer .field label{font-size:12px;color:var(--atlas-ink);font-weight:500}
#processDrawer .field :is(input,select,textarea){font-size:13px;border-radius:8px;background:#fff;border-color:var(--atlas-border);min-height:42px}
#processDrawer .btn{border-radius:7px;font-size:12px}#processDrawer .btn.primary{background:var(--atlas-accent);border-color:var(--atlas-accent)}
#processDrawer .note p{font-size:13px;line-height:1.6}#processDrawer .note-top strong{font-size:12px}#processDrawer .note-top time{font-size:11px}
@keyframes atlas-confirm-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes atlas-confirm-pop{from{transform:scale(.65);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes atlas-confirm-draw{to{stroke-dashoffset:0}}
@keyframes atlas-confirm-out{to{opacity:0;transform:translateY(8px)}}
.atlas-dialog :focus-visible,.atlas-feedback :focus-visible{outline:2px solid var(--atlas-accent);outline-offset:3px}
@media(max-width:600px){.modal-backdrop[data-atlas-modal]{padding:12px}.atlas-dialog{max-height:calc(100dvh - 24px);border-radius:9px}.atlas-dialog .modal-head{padding:16px;gap:12px;flex-wrap:wrap}.atlas-dialog .modal-head h3{font-size:16px}.atlas-dialog .modal-head-actions{margin-left:auto;gap:6px}.atlas-dialog .modal-head p{display:none}.atlas-dialog .atlas-form-section,.atlas-dialog .booking-section{padding:20px 16px}.atlas-dialog :is(.form-grid,.profile-form-grid,.booking-fields){grid-template-columns:1fr;gap:18px}.atlas-dialog .form-field :is(input,select,textarea){font-size:16px!important}.atlas-dialog .modal-footer{padding:12px 16px}.atlas-dialog .calendar-people-head{align-items:flex-start}.atlas-dialog .calendar-person-chip{font-size:12px}.atlas-feedback-stack{bottom:20px}.atlas-dialog .booking-route{grid-template-columns:1fr}.atlas-dialog .booking-route-arrow{display:none}}
@media(prefers-reduced-motion:reduce){.atlas-dialog,.modal-backdrop[data-atlas-modal]{transition:none!important;transform:none!important}.atlas-feedback,.atlas-feedback-symbol,.atlas-feedback-symbol path,.atlas-submit-status::before{animation:none!important;stroke-dashoffset:0}.atlas-feedback.leaving{opacity:0}}
