[hidden]{display:none!important}.login{max-width:430px;margin:12vh auto;padding:32px}.login img{width:150px}.login h1{margin:22px 0}.login form{margin-top:14px}.login a.primary{display:block;padding:12px;text-align:center;text-decoration:none;border-radius:8px}.web[data-connected="true"]{color:var(--green)}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.stat strong{font-size:24px}.actions{display:flex;flex-wrap:wrap;gap:8px}.call-actions{flex-wrap:wrap}.phone-strip{padding:8px 18px;background:var(--deep);color:white;display:flex;align-items:center;gap:12px;justify-content:center}.rail-foot{align-items:flex-start}.row .actions{justify-content:flex-end}.route-step{display:flex;align-items:center;gap:5px;margin:6px 0}.route-step select{flex:1}.route-step input{width:70px}.route-step button{padding:7px}.formline select,.formline input:not([type=checkbox]){width:100%}audio{max-width:100%}.notes{white-space:pre-wrap}.logout button{padding:3px 0;color:var(--muted);border:0;font-size:11px}.tablewrap td button{white-space:nowrap}.dialoghead{gap:16px}.call input{background:white;color:var(--ink);width:180px}.muted{color:var(--muted)}.rail-status{margin-bottom:12px}.rail-note{margin:0 0 16px}.box-access{display:grid;grid-template-columns:1fr 62px 62px;text-align:center}.box-access strong{text-align:left}.mobile-toggle{display:none}@media(max-width:780px){.mobile-toggle{display:inline-flex}.rail.mobile-open{display:flex;position:fixed;overflow:auto;inset:0 auto 0 0;width:245px;z-index:5}.rail.mobile-open .mobile-close{display:block}.web{font-size:11px}.stat{padding:12px}.login{margin:6vh auto}.tablewrap{overflow-x:auto}}

.stack, .stack > *, .grid > *, .card, .row > *, .person > div, fieldset { min-width: 0; }
.stack { grid-template-columns: minmax(0, 1fr); }
.card { container-type: inline-size; }
.row, .staff-row, .pagehead, .notes, .person strong { overflow-wrap: anywhere; }
.row > button, .row > .pill, .smallbtn { flex-shrink: 0; }
.history-row, .staff-row {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto auto;
 align-items: center;
 gap: 6px 14px;
 padding: 13px 0;
 border-bottom: 1px solid #e5ebec;
}
.history-row:last-child, .staff-row:last-child { border: 0; }
.history-info { min-width: 0; overflow-wrap: anywhere; }
.history-info small { margin-top: 3px; }
.history-row .pill, .history-row button, .staff-row button { justify-self: end; }
.staff-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; }
.staff-email { color: var(--muted); }
@container (max-width: 475px) {
 .history-row { grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; }
 .history-info { grid-row: span 2; }
 .history-row button { grid-column: 2; }
 .staff-row { grid-template-columns: minmax(0,1fr) auto; }
 .staff-email { grid-column: 1; font-size: 12px; }
 .staff-row button { grid-column: 2; grid-row: 1 / 3; }
}
.pagehead, .cardhead { flex-wrap: wrap; }
fieldset, select, textarea, input, audio { max-width: 100%; }
#modal { padding: clamp(15px, 3vw, 24px); }
dialog { max-height: calc(100dvh - 32px); overflow: auto; }
#dialog:has(#route-form) { width: min(540px, 94vw); }
.route-step { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 10px; padding: 9px 0; }
.route-step select { min-width: 0; width: 100%; }
.step-duration, .step-actions { display: flex; align-items: center; gap: 6px; }
.step-duration input { width: 4.2em; }
.step-actions { grid-column: 1/-1; justify-content: flex-end; }
.tablewrap { max-width: 100%; overflow-x: auto; }
.tablewrap table { font-variant-numeric: tabular-nums; }
.rail { overflow-y: auto; }
.nav-backdrop { display: none; }
.call-actions form { align-items: stretch; }
.call-actions form input { flex: 1 1 9rem; min-width: 0; }
.call-actions form .full { width: auto; }
@media (min-width:781px) and (max-width:960px) {
 .grid { grid-template-columns: minmax(0,1fr); }
 .frame { grid-template-columns: 185px minmax(0,1fr); }
}
@media (max-width:780px) {
 .rail.mobile-open { height: 100dvh; max-width: calc(100vw - 40px); box-shadow: 8px 0 26px #183e4c25; }
 .nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; width: 100%; height: 100dvh; z-index: 4; background: #112e4355; border: 0; border-radius: 0; }
 .bar { flex-wrap: wrap; }
 .bar .status-control { align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: 1; }
 .bar .absence-note { margin: 0; flex-basis: 100%; text-align: right; }
 .pagehead { align-items: flex-start; }
 .actions button, .smallbtn { min-height: 36px; }
 .tablewrap th, .tablewrap td { padding-inline: 5px; }
}

.rail > .status-control { margin: 0 8px 26px; }
.rail .logo { margin-bottom: 22px; }
.rail-foot { display: grid; gap: 2px; }
.rail-foot .person { width: 100%; }
.rail-foot .person strong { font-size: 13px; line-height: 1.35; white-space: normal; }
.rail-foot .logout { padding-left: 46px; }
.rail-foot .logout button { font-weight: 500; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.navgroup h2, .overline { font-size: 10px; letter-spacing: .105em; color: #546b76; }
.cardhead h2 { font-weight: 670; letter-spacing: -.03em; }
.history-info strong, .staff-row .person strong { font-weight: 620; font-variant-numeric: tabular-nums; }
.history-info small, .staff-email, .person small, .employee-presence small { color: #536b76; font-weight: 400; }
.history-info .failure-detail { color: #873a48; }
.call-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.call-status.answered, .phone-signal.ready { background: #e4f3eb; color: #176244; }
.call-status.missed { background: #fff0de; color: #88470b; }
.call-status.failed { background: #fae6ea; color: #972d41; }
.call-status.ongoing { background: #e0f1fb; color: #185d83; }
.call-status.voicemail { background: #eee9f8; color: #604381; }
.phone-signal { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 20px; font-size: 12px; line-height: 1.45; font-weight: 620; }
.phone-signal svg { width: 15px; height: 15px; flex: none; }
.phone-signal.neutral { color: #475f6c; background: #edf1f3; }
.phone-signal.busy { color: #835219; background: #fff0db; }
.employee-presence { text-align: right; flex: 0 0 auto; }
.employee-presence small { margin-top: 3px; }
.bar #connection { display: inline-flex; }
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 12px; color: var(--muted); }
.pager div { display: flex; gap: 5px; }
.pager button { font-size: 12px; padding: 6px 9px; min-height: 32px; }
.pager button:disabled { opacity: .46; cursor: default; }
.stat small { font-size: 12px; color: var(--muted); }
.stat strong { display: block; font-weight: 650; letter-spacing: -.045em; }
.tablewrap td:not(:first-child) { font-variant-numeric: tabular-nums; }
@media(max-width:780px){
 .bar .status-control { flex: 0 1 auto; margin-left: auto; }
 .bar { gap: 8px; }
 .bar #connection { margin-left: auto; }
 .bar:has(.absence-note) .status-control { flex: 1 1 65%; }
}
#search { display: block; width: 100%; max-width: 24rem; margin-bottom: 8px; }
.rail { overflow-y: auto; }

.directory-row { display: grid; grid-template-columns: minmax(0,1fr) max-content; }
.box-access input[type=checkbox] { justify-self: center; margin: 0; width: 20px; height: 20px; }
.call-actions form { width: 100%; }
.call-actions form input { flex: 1 1 18ch; }
.call-actions form button { flex: 0 0 auto; }
.dialoghead h2 { min-width: 0; line-height: 1.25; }
.dialoghead button { flex-shrink: 0; }
fieldset { margin: 0 0 15px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
fieldset legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
@container (max-width: 375px) {
 .directory-row { grid-template-columns: minmax(0,1fr); gap: 7px; }
 .directory-row .employee-presence { margin-left: 46px; text-align: left; display: flex; align-items: center; gap: 5px 10px; flex-wrap: wrap; }
 .directory-row .employee-presence small { margin-top: 0; }
}
@media (max-width: 780px) {
 input:not([type=checkbox]), select, textarea { font-size: 16px; }
}
@media (max-width: 540px) {
 .route-step { grid-template-columns: auto minmax(0,1fr); gap: 8px; }
 .route-step select { grid-column: 1 / -1; }
 .step-actions { grid-column: 2; }
}
/* Navigation, annuaire compact et paramètres personnels. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.rail > .logo, .rail > nav, .rail > .status-control, .rail-foot { flex-shrink: 0; }
.navlink > span:first-of-type { flex: 1; }
.nav-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 12px; background: #084965; color: white; font-size: 11px; font-weight: 650; }
.rail-team-section { margin: 0 0 18px; min-height: 0; }
.rail-team-head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 7px; }
.rail-team-head h2 { margin: 0; font-size: 10px; letter-spacing: .105em; text-transform: uppercase; color: #546b76; }
.rail-team-head a { display: inline-flex; padding: 4px; border-radius: 5px; }
.rail-team-head svg { width: 16px; height: 16px; }
#rail-team { max-height: 236px; overflow-y: auto; scrollbar-width: thin; }
.rail-colleague { width: 100%; padding: 8px; border: 0; justify-content: space-between; gap: 7px; text-align: left; border-radius: 8px; background: transparent; }
.rail-colleague .person { gap: 8px; }
.rail-colleague .avatar { width: 28px; height: 28px; font-size: 10px; }
.rail-colleague .person strong { font-size: 12px; font-weight: 570; line-height: 1.3; overflow-wrap: anywhere; }
.rail-colleague .person small { font-size: 11px; font-weight: 400; }
.presence-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: #89979c; flex: 0 0 auto; }
.presence-dot.ready { background: #197951; }
.presence-dot.busy { background: #bb741a; }
.account-link { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: inherit; text-decoration: none; border-radius: 6px; }
.account-link:hover { background: #f2f6f6; }
.account-link > svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--muted); }
.settings-summary { margin: 0; display: grid; gap: 20px; }
.settings-summary dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.settings-summary dd { margin: 0; font-weight: 550; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.form-actions .full { width: auto; }
.peer-details { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 24px; }
.peer-details small { flex-basis: 100%; }
.peer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.message-state { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.unread-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); flex-shrink: 0; }
.rail-team-section { display: flex; flex-direction: column; flex: 1 0 150px; max-height: 270px; }
.rail-team-head { flex-shrink: 0; }
#rail-team { min-height: 0; flex: 1 1 auto; }
@media (min-width: 781px) and (max-width: 1040px) {
 .frame { grid-template-columns: 218px minmax(0,1fr); }
}
@media (min-width: 781px) {
 .frame { grid-template-columns: 240px minmax(0,1fr); }
}
.field-error { color: var(--red); font-size: 12px; font-weight: 450; }
.field-error:empty { display: none; }
.account-delete { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; }
#connection { flex-wrap: wrap; justify-content: flex-end; }
.weekday-choices { display: flex; gap: 10px 14px; flex-wrap: wrap; }
.weekday-choices label { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; }
.weekday-choices input { margin: 0; width: 18px; height: 18px; accent-color: var(--teal); }
.setup-note { padding: 12px 16px; border-left: 3px solid #a86717; background: #fff4df; color: #654710; border-radius: 5px; font-size: 13px; }
.phone-card { border: 1px solid #ffffff18; border-radius: 22px; background: radial-gradient(ellipse at top right,#17738365,transparent 65%),linear-gradient(145deg,#103f54,#0b2d40); box-shadow: 0 10px 28px #12374712; }
.phone-card h2 { margin-bottom: 5px; }
.phone-card .dialer-title { font-size: 23px; font-weight: 600; letter-spacing: -.035em; }
.phone-card .phone-line { color: #bdd2da; font-size: 12px; margin-top: 0; margin-bottom: 22px; }
.phone-dialer { margin: 0; }
.number-entry { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 8px 8px 14px; margin: 0 auto 20px; border: 1px solid #ffffff25; border-radius: 13px; background: #ffffff08; }
.phone-card .number-entry input { width: 100%; min-width: 0; padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: #fff; font-size: clamp(21px,2.1vw,28px); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.035em; box-shadow: none; text-align: center; }
.phone-card .number-entry input::placeholder { color: #b2cbd5; font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
.number-entry:focus-within { border-color: #69d1c0; box-shadow: 0 0 0 3px #43c8b414; }
.phone-card .erase-key { flex: 0 0 36px; width: 36px; height: 36px; padding: 8px; border: 0; background: transparent; color: #c4d8e0; }
.phone-card .erase-key:disabled { opacity: .25; }
.dtmf-keypad { max-width: 280px; margin: 18px auto 0; }
.phone-dialer .dtmf-keypad { margin-top: 0; }
.dtmf-keypad output { display: block; min-height: 35px; margin-bottom: 15px; padding: 5px 12px; border-radius: 8px; background: #ffffff05; color: #cbe6e6; font-size: 18px; line-height: 1.4; font-variant-numeric: tabular-nums; letter-spacing: .14em; text-align: center; overflow-wrap: anywhere; }
.dtmf-keys { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.phone-card .dtmf-keys button { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 64px; padding: 7px; border: 1px solid #ffffff0c; border-radius: 16px; background: #ffffff09; box-shadow: inset 0 1px 0 #ffffff08; color: white; transition: background .12s ease,transform .12s ease; }
.phone-card .dtmf-keys button:hover:not(:disabled) { background: #ffffff19; border-color: #ffffff25; }
.phone-card .dtmf-keys button:focus-visible { outline: 2px solid #62d4bf; outline-offset: 3px; }
.phone-card .dtmf-keys button:active:not(:disabled) { transform: scale(.95); background: #60c9b52b; }
.phone-card .dtmf-keys button:disabled { opacity: .36; cursor: default; }
.dtmf-keys button > span { font-size: 27px; font-weight: 450; line-height: 1.1; }
.dtmf-keys button small { font-size: 9px; font-weight: 500; min-height: 12px; letter-spacing: .17em; color: #a8c7d3; }
.phone-card .dial-call { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 280px; margin: 18px auto 0; min-height: 48px; border: 0; border-radius: 99px; background: #41c7a9; color: #06382e; font-weight: 650; box-shadow: 0 5px 18px #042c3420; }
.phone-card .dial-call:hover { background: #67dbbd; }
.phone-card .call-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.phone-card .call-actions button { justify-content: center; min-height: 40px; padding: 9px 7px; border-color: #ffffff20; border-radius: 9px; background: #ffffff09; font-size: 12px; line-height: 1.3; }
.phone-card .call-actions button:hover { background: #ffffff18; }
.phone-card .call-actions button.end { margin-left: 0; background: #a43f57; border-color: transparent; }
.phone-card .call-actions .accept { background: #137d68; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .phone-card .dtmf-keys button { transition: none; } }
.call-status.cancelled { color: #475f6c; background: #edf1f3; }

.greeting-editor { margin: 18px 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.greeting-editor legend { padding: 0 6px; font-weight: 650; }
.greeting-editor .formline { margin-bottom: 12px; }
.greeting-editor textarea { min-height: 108px; }
.greeting-editor input[type=file] { padding: 10px; font-size: 13px; white-space: normal; }
.greeting-editor input[type=file]::file-selector-button { padding: 7px 10px; margin-right: 10px; border: 0; border-radius: 6px; background: #e6f0f3; color: #084965; font: inherit; font-weight: 600; cursor: pointer; }
.greeting-preview { display: grid; gap: 10px; margin-top: 14px; min-width: 0; }
.greeting-preview strong { font-size: 13px; overflow-wrap: anywhere; font-weight: 550; }
.greeting-preview audio { width: 100%; }
.greeting-file small { display: block; font-size: 12px; }
[data-greeting-error]:empty { display: none; }

.audio-upload { position: relative; display: inline-flex; align-items: center; max-width: 100%; padding: 10px 14px; margin-bottom: 8px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; color: #084965; background: #eef5f7; font-weight: 600; cursor: pointer; }
.greeting-editor .audio-upload input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; cursor: pointer; }
.audio-upload:focus-within { outline: 2px solid #009c91; outline-offset: 3px; }
.greeting-editor[aria-busy=true] .audio-upload { opacity: .6; cursor: progress; }
