/* KRT VOIP — shared visual foundations. */
:root {
  --ink: #1d2939;
  --muted: #667085;
  --border: #e4e7ec;
  --surface: #fff;
  --canvas: #f8fafb;
  --primary: #007c7e;
  --primary-hover: #006568;
  --primary-soft: #ecf8f6;
  --radius: 16px;
  --sidebar-width: 252px;
  --header-height: 80px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--primary);
  text-underline-offset: 3px;
}
button,
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 150ms,
    border-color 150ms,
    box-shadow 150ms;
}
button:hover,
.download:hover {
  background: var(--primary-hover);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.subtle,
.outline-button {
  background: white;
  color: #344054;
  border: 1px solid #d0d5dd;
  box-shadow: 0 1px 2px #10182805;
}
.subtle:hover,
.outline-button:hover {
  background: #f9fafb;
  border-color: var(--muted);
}
.danger {
  background: #fff1f0;
  color: #b42318;
}
.danger:hover {
  background: #fee4e2;
}
:where(button, a, input, select, audio):focus-visible {
  outline: 3px solid #58bcb6;
  outline-offset: 3px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #344054;
}
input,
select {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 1px 2px #10182804;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}
input::placeholder {
  color: #7a8698;
}
input:focus,
select:focus {
  border-color: #58bcb6;
  box-shadow: 0 0 0 3px #007c7e12;
}
input[type='checkbox'] {
  accent-color: var(--primary);
  flex-shrink: 0;
  min-height: 20px;
  cursor: pointer;
}
input[type='file'] {
  padding: 10px;
  background: #fafbfc;
  border-style: dashed;
  cursor: pointer;
}
input::file-selector-button {
  border: 1px solid var(--border);
  background: white;
  padding: 9px 12px;
  border-radius: 7px;
  margin-right: 12px;
  color: #344054;
  cursor: pointer;
  font: inherit;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin: 8px 0 10px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
}
p {
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-weight: 650;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 32px;
  min-height: calc(100dvh - 150px);
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.heading .muted {
  margin-bottom: 0;
}
/* Route changes focus the heading for screen readers; it is not an interactive control. */
#page-title:focus {
  outline: none;
}
.button-with-icon {
  flex-shrink: 0;
}
.button-with-icon svg {
  width: 17px;
  height: 17px;
}
#login {
  max-width: 480px;
  margin: 6vh auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  background: white;
  box-shadow: 0 12px 40px #10182806;
}
.login-mark {
  margin-bottom: 26px;
}
#login h1 {
  font-size: 30px;
}
#login-form {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}
#login-form button {
  margin-top: 4px;
  min-height: 46px;
}
.panel {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
  box-shadow: 0 1px 2px #10182802;
}
.panel > p {
  max-width: 900px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-title h2 {
  margin-bottom: 0;
}
.history-panel {
  padding: 0;
  overflow: hidden;
}
.history-panel .panel-title {
  padding: 24px;
  margin: 0;
}
#total {
  background: #f2f4f7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: #667085;
  font-size: 11px;
  font-weight: 500;
  padding: 14px 18px;
  border-block: 1px solid var(--border);
  background: #fcfcfd;
  white-space: nowrap;
}
td {
  padding: 20px 18px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
tbody tr:hover {
  background: #fcfdfd;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  white-space: nowrap;
}
td small {
  display: block;
  color: #667085;
  margin-top: 5px;
  font-size: 11px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.actions button,
.actions a {
  font-size: 12px;
  padding: 7px 11px;
  min-height: 36px;
  white-space: nowrap;
}
td .actions {
  flex-wrap: nowrap;
}
.badge {
  background: #ecfdf3;
  color: #027a48;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}
.badge.warning {
  background: #fffaeb;
  color: #946000;
}
.badge.failed {
  background: #fef3f2;
  color: #b42318;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.pagination button {
  min-height: 36px;
  font-size: 12px;
}
.empty {
  text-align: center;
  padding: 65px 24px;
  line-height: 2;
  color: var(--muted);
}
.empty::before {
  content: '—';
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #f2f4f7;
  color: var(--muted);
  font-size: 24px;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.status-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.status-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.status-item strong {
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ok {
  color: #027a48;
}
.bad {
  color: #b54708;
}
.settings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.settings p {
  max-width: 600px;
  margin-bottom: 0;
}
.settings form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.settings input {
  width: 110px;
}
.notice {
  padding: 16px 20px;
  border: 1px solid #ccebe7;
  border-radius: 12px;
  background: #f0faf7;
  color: #16605b;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#connection-warning,
.notice.failed {
  background: #fffaeb;
  border-color: #fedf89;
  color: #93370d;
}
#active {
  margin-bottom: 24px;
}
#message {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(480px, calc(100vw - 32px));
  background: #1d2939;
  color: white;
  padding: 16px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #10182826;
  z-index: 50;
  font-size: 13px;
}
audio {
  width: 100%;
  margin-top: 18px;
}
footer {
  border-top: 1px solid var(--border);
  padding: 22px 32px;
  color: #667085;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .settings {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 24px 16px;
  }
  #login {
    margin: 24px auto;
    padding: 28px 24px;
  }
  #login h1 {
    font-size: 26px;
  }
  .panel {
    padding: 20px;
  }
  .history-panel {
    padding: 0;
  }
  .history-panel .panel-title {
    padding: 20px;
  }
  .pagination {
    padding: 16px;
    gap: 12px;
    justify-content: space-between;
  }
  .history-panel thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .history-panel table,
  .history-panel tbody {
    display: block;
  }
  .history-panel tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 12px;
    padding: 22px 20px;
    border-top: 1px solid var(--border);
  }
  .history-panel td {
    display: block;
    border: 0;
    padding: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .history-panel td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
  }
  .history-panel td:nth-child(3),
  .history-panel td:last-child {
    grid-column: 1 / -1;
  }
  .history-panel td:last-child:has(.actions:empty) {
    display: none;
  }
  .history-panel td .actions {
    flex-wrap: wrap;
  }
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .status-item {
    padding: 18px;
  }
  .status-item strong {
    font-size: 16px;
  }
  footer {
    padding: 20px;
  }
  footer span {
    display: none;
  }
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.station-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.inline-form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.inline-form label {
  flex: 1;
  min-width: 130px;
}
input[type='checkbox'] {
  width: auto;
  min-width: 18px;
  height: 18px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 20px 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f6f6;
  padding: 1rem;
  border-radius: 8px;
}
#greeting-player {
  display: block;
  width: min(100%, 600px);
  margin-top: 16px;
}

/* Light workspace navigation, inspired by TailAdmin's hierarchy and spacing. */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: white;
  padding: 0 28px 0 24px;
  gap: 28px;
}
.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #1d2939;
  text-decoration: none;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.7px;
  flex-shrink: 0;
}
.brand img {
  border-radius: 10px;
}
.brand .brand-name > span {
  font-weight: 500;
  color: #475467;
}
body.authenticated .brand {
  width: calc(var(--sidebar-width) - 24px);
}
.workspace-label {
  display: none;
  color: #667085;
  font-size: 11px;
  line-height: 1.5;
}
.workspace-label span {
  display: block;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}
body.authenticated .workspace-label {
  display: block;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
}
.account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 650;
  flex-shrink: 0;
}
.account-details {
  display: grid;
  gap: 2px;
  min-width: 0;
}
#identity {
  font-size: 13px;
  font-weight: 600;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#account-role {
  color: #667085;
  font-size: 11px;
}
#logout {
  margin-left: 12px;
  font-size: 12px;
  min-height: 36px;
  padding: 7px 12px;
}
#sidebar {
  position: fixed;
  inset: var(--header-height) auto 0 0;
  width: var(--sidebar-width);
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: white;
  z-index: 10;
  overflow-y: auto;
}
.nav-caption {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 500;
  margin: 0 14px 12px;
}
.nav-section {
  margin-top: 28px;
}
#sidebar nav {
  display: grid;
  gap: 5px;
}
#sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  color: #475467;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition:
    background-color 150ms,
    color 150ms;
}
#sidebar nav a:hover {
  background: #f9fafb;
  color: #1d2939;
}
#sidebar nav a[aria-current] {
  color: #006d70;
  background: var(--primary-soft);
  font-weight: 600;
}
#sidebar nav a[aria-current]::after {
  content: '';
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav-icon svg {
  width: 21px;
  height: 21px;
}
.sidebar-foot {
  margin: auto 0 0;
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
  font-size: 11px;
  line-height: 1.6;
  color: #344054;
}
.sidebar-foot small {
  display: block;
  color: #667085;
  font-size: 10px;
  margin: 5px 0 0 15px;
}
#sidebar nav {
  margin-bottom: 32px;
}
.connection-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #f79009;
  border-radius: 50%;
  margin-right: 8px;
}
.connection-dot.connected {
  background: #12b76a;
  box-shadow: 0 0 0 3px #12b76a14;
}
body.authenticated main {
  max-width: 1760px;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: calc(100dvh - 150px);
}
body.authenticated footer {
  margin-left: var(--sidebar-width);
}
.subnav {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
  padding: 4px;
  background: #f0f2f5;
  border-radius: 10px;
  margin-bottom: 24px;
}
.subnav a {
  color: #667085;
  padding: 9px 16px;
  text-decoration: none;
  font-size: 13px;
  border-radius: 7px;
}
.subnav a[aria-current] {
  background: white;
  color: #344054;
  font-weight: 600;
  box-shadow: 0 1px 3px #10182812;
}
[data-pages] > .panel:first-child {
  margin-top: 0;
}
[data-pages='reglages'] .status-grid {
  margin-top: 20px;
}
.check {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.announcement-panel {
  max-width: 980px;
}
.audio-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ccebe7;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 26px;
  margin-bottom: 22px;
}
.announcement-panel .inline-form {
  padding-block: 22px;
  border-block: 1px solid var(--border);
  margin: 24px 0;
}
.announcement-panel .inline-form label {
  flex-basis: 300px;
}
.announcement-panel > audio {
  max-width: 650px;
  display: block;
}
.announcement-panel > a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 500;
  font-size: 13px;
}

/* Sequential call flow. */
.routing-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.routing-intro p {
  margin: 6px 0 0;
}
.route-summary {
  font-size: 12px;
  color: #436168;
  background: #e8eff0;
  padding: 10px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.flow-canvas {
  padding: 28px clamp(16px, 3vw, 42px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background-color: #f7f9fb;
  background-image: radial-gradient(#dce3e9 1px, transparent 1px);
  background-size: 18px 18px;
}
.flow-start,
.flow-end {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid #cbdad9;
  border-radius: 12px;
  background: white;
}
.flow-start {
  max-width: 330px;
  border-color: #80bab0;
  background: #f5fcf9;
}
.flow-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #e2f1ec;
  color: #167864;
  font-size: 23px;
}
.flow-start small {
  display: block;
  color: #6b8487;
  margin-top: 5px;
  font-size: 12px;
}
.flow-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 700px;
}
.flow-step {
  margin: 0;
  padding: 0;
}
.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 0;
  color: #6b9296;
}
.flow-connector small {
  font-size: 10px;
  background: #f7f9fb;
  padding: 5px 8px 0;
  color: #5b777c;
}
.flow-connector > span {
  line-height: 23px;
  font-size: 24px;
}
.route-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border: 1px solid #cbdadb;
  border-radius: 12px;
  background: white;
  box-shadow: 0 3px 7px #21474c05;
  position: relative;
}
.route-card:hover {
  border-color: #78a9aa;
}
.drag-handle {
  background: none;
  color: #8aa2a5;
  padding: 8px 2px;
  font-size: 26px;
  cursor: grab;
  flex-shrink: 0;
}
.drag-handle:active {
  cursor: grabbing;
}
.step-number {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  color: var(--primary);
  background: #e8f3f1;
}
.route-detail {
  flex: 1;
  min-width: 0;
}
.route-detail strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
}
.route-presence {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: #6c8186;
}
.route-duration {
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  color: #627c80;
}
.duration-input {
  display: flex;
  align-items: center;
  gap: 5px;
}
.route-duration input {
  width: 70px;
  padding: 9px;
  border-radius: 7px;
  font-size: 14px;
}
.route-controls {
  display: flex;
  gap: 4px;
}
.icon-button {
  min-width: 31px;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 17px;
}
.remove-step {
  background: transparent;
  color: #94716e;
  margin-left: 3px;
}
.dragging {
  opacity: 0.45;
}
.drop-before {
  border-top: 3px solid #008c83 !important;
}
.drop-after {
  border-bottom: 3px solid #008c83 !important;
}
.flow-add {
  max-width: 700px;
  margin: 0 auto;
  padding: 15px 18px;
  border: 1px dashed #9ebabb;
  border-radius: 12px;
  background: #f7fafa;
}
.flow-add label {
  font-size: 11px;
  color: #5d787c;
  margin-bottom: 8px;
}
.flow-add > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flow-add select {
  flex: 1;
  font-size: 13px;
  padding: 10px;
}
.flow-add button {
  white-space: nowrap;
}
.flow-end {
  align-items: flex-start;
  background: #fafbfc;
  border-color: #ccd5d9;
}
.flow-end .flow-symbol {
  background: #e8edef;
  color: #6e848b;
  font-size: 16px;
}
.flow-end.voicemail {
  background: #f5fcf9;
  border-color: #8bbfb2;
}
.flow-end.voicemail .flow-symbol {
  background: #ddefe6;
  color: #167864;
}
.flow-end-content {
  min-width: 0;
}
.flow-end p {
  margin: 5px 0;
  font-size: 12px;
  color: #5f787d;
}
.flow-end .check {
  font-size: 12px;
  margin: 16px 0 9px;
  gap: 10px;
}
.flow-end a {
  font-size: 12px;
  color: var(--primary);
  text-underline-offset: 3px;
}
.route-empty {
  text-align: center;
  font-size: 13px;
  color: #5d797e;
  padding: 8px 0 22px;
}
.routing-savebar {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  background: white;
  border: 1px solid #d6e2e3;
  border-radius: 12px;
  margin-top: 18px;
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 20px #1739400d;
}
.routing-savebar strong {
  font-size: 13px;
  color: #28796b;
}
.routing-savebar strong.unsaved {
  color: #aa6c20;
}
.routing-savebar small {
  display: block;
  font-size: 11px;
  color: #778c90;
  margin-top: 4px;
}
.routing-savebar .actions button {
  font-size: 12px;
  padding: 11px 14px;
}
.routing-help {
  font-size: 12px;
  color: #6b8387;
  line-height: 1.7;
  padding: 0 8px;
}
@media (max-width: 1100px) {
  body.authenticated main {
    padding: 30px 24px;
  }
  .routing-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .flow-canvas {
    padding: 24px 16px;
  }
  .route-card {
    gap: 10px;
  }
}
@media (max-width: 1100px) {
  .workspace-label {
    max-width: 180px;
  }
  #account-role {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }
  header {
    padding: 0 20px;
    gap: 16px;
  }
  body.authenticated .brand {
    width: auto;
  }
  body.authenticated .workspace-label {
    display: none;
  }
  #sidebar {
    position: sticky;
    inset: auto;
    top: var(--header-height);
    width: auto;
    padding: 8px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  #sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0;
    scrollbar-width: thin;
  }
  #sidebar nav a {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 12px;
  }
  #sidebar nav a[aria-current]::after {
    display: none;
  }
  .nav-caption,
  .sidebar-foot {
    display: none;
  }
  .nav-icon {
    width: 18px;
  }
  .nav-icon svg {
    width: 18px;
    height: 18px;
  }
  body.authenticated main {
    margin-left: 0;
    padding: 26px 20px;
  }
  body.authenticated footer {
    margin-left: 0;
  }
  .heading {
    flex-direction: row;
    align-items: center;
  }
  .heading h1 {
    font-size: 26px;
  }
}
@media (max-width: 600px) {
  #identity {
    max-width: 100px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
  header {
    padding: 0 16px;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .account {
    gap: 8px;
  }
  .account-avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
  .account-details {
    display: none;
  }
  #logout {
    margin-left: 0;
    font-size: 11px;
    padding: 7px 9px;
  }
  body.authenticated main {
    padding: 24px 16px;
  }
  .heading {
    gap: 12px;
  }
  .heading h1 {
    font-size: 24px;
  }
  .heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .heading #refresh {
    gap: 5px;
  }
  .heading #refresh svg {
    width: 14px;
    height: 14px;
  }

  .heading {
    align-items: flex-start;
  }
  .heading #refresh {
    font-size: 11px;
    padding: 10px;
  }
  .flow-canvas {
    padding: 20px 10px;
  }
  .route-summary {
    white-space: normal;
  }
  .route-card {
    flex-wrap: wrap;
    padding: 14px 10px;
    gap: 10px;
  }
  .route-detail {
    flex-basis: calc(100% - 80px);
  }
  .route-duration {
    margin-left: 34px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .route-controls {
    margin-left: auto;
  }
  .flow-add > div {
    flex-wrap: wrap;
  }
  .flow-add select {
    min-width: 160px;
  }
  .flow-start,
  .flow-end {
    padding: 16px;
    gap: 12px;
  }
  .routing-savebar {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .routing-savebar .actions {
    justify-content: space-between;
  }
  .routing-savebar .actions button {
    white-space: normal;
  }
  [data-pages='reglages'] .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .station-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings form {
    flex-wrap: wrap;
  }
  .panel-title {
    gap: 12px;
  }
}

/* Team directories */
.directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 8px 0 24px;
}
.directory-toolbar h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
.directory-toolbar p {
  margin: 6px 0 0;
}
.directory-toolbar > button {
  padding: 13px 20px;
  box-shadow: 0 4px 10px var(--primary) 12;
  white-space: nowrap;
}
.directory-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.directory-metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 19px 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.directory-metric span {
  font-size: 12px;
  color: var(--muted);
}
.directory-metric strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
}
.metric-online strong {
  color: #227962;
}
.metric-offline strong {
  color: #9b6a37;
}
.metric-disabled strong {
  color: #7b8790;
}
.directory-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}
.search-field {
  flex: 1;
  max-width: 440px;
}
.search-field input {
  width: 100%;
  padding: 13px 16px 13px 40px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 400;
  background: white;
}
.directory-filters select {
  font-size: 13px;
  font-weight: 400;
  border-radius: 9px;
  padding: 12px;
}
.directory-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.directory .station-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin: 0;
}
.directory .station-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 3px 10px #264a5004;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.directory .station-card:hover {
  border-color: #95b9b8;
  box-shadow: 0 7px 22px #264a5009;
}
.station-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.station-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #2c7b74;
  background: #edf6f3;
}
.station-icon svg {
  width: 25px;
  height: 25px;
}
.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  border-radius: 20px;
  padding: 6px 10px;
  background: #edf1f3;
  color: #66757e;
}
.presence-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.state-online {
  background: #eaf6ee;
  color: #2d7852;
}
.state-offline {
  background: #fcf3e8;
  color: #94652e;
}
.state-ringing,
.state-busy {
  background: #eaf0fd;
  color: #4c65a6;
}
.station-number {
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 8px;
}
.directory .station-card h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 0 0 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  letter-spacing: -0.3px;
}
.station-owner {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #61767d;
  margin-bottom: 26px;
  overflow-wrap: anywhere;
}
.mini-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f0f3f5;
  color: #657c85;
  font-size: 9px;
  font-weight: 700;
}
.station-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #edf1f2;
  padding-top: 17px;
  margin-top: auto;
}
.outline-button {
  background: white;
  border: 1px solid #d0d5dd;
  color: #315a60;
  padding: 9px 13px;
  font-size: 12px;
}
.text-button:hover,
.drag-handle:hover,
.remove-step:hover {
  background: var(--primary-soft);
}
.text-button {
  background: transparent;
  color: #25746e;
  padding: 9px 0;
  font-size: 11px;
}
.directory-note {
  font-size: 12px;
  color: var(--muted);
  margin: 22px 2px;
}
.directory-empty {
  background: white;
  padding: 50px 24px;
  text-align: center;
  color: #6a7e85;
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  font-size: 14px;
}
.role-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.role-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 19px;
  background: white;
}
.role-guide-item strong {
  font-size: 13px;
  color: #304750;
}
.role-guide-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}
.role-marker {
  flex-shrink: 0;
  width: 31px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
  background: var(--role-bg);
  color: var(--role-ink);
}
.role-admin {
  --role-bg: #eeebf9;
  --role-ink: #73609d;
}
.role-manager {
  --role-bg: #e8effb;
  --role-ink: #526fa0;
}
.role-user {
  --role-bg: #e9f4ef;
  --role-ink: #417b68;
}
.user-list {
  display: grid;
  gap: 12px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 23px 26px;
  background: white;
}
.user-avatar {
  background: var(--role-bg);
  color: var(--role-ink);
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 650;
}
.user-identity {
  flex: 1;
  min-width: 100px;
}
.user-identity h3 {
  font-size: 15px;
  margin: 0;
  overflow-wrap: anywhere;
}
.user-identity p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.role-badge {
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--role-ink);
  background: var(--role-bg);
}
.user-card > .presence-badge {
  margin: 0 16px;
}
.editor-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 30px;
  border: 1px solid #d4e1e3;
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 90px #10182826;
}
.editor-dialog::backdrop {
  background: #10182866;
  backdrop-filter: blur(3px);
}
.confirmation-dialog {
  width: min(510px, calc(100% - 32px));
}
.confirmation-dialog h2 {
  margin: 8px 0 20px;
  font-size: 23px;
}
.confirmation-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: #fff0ed;
  color: #aa3428;
  font-size: 26px;
  font-weight: 700;
}
.confirmation-context {
  padding: 14px;
  border-radius: 10px;
  background: #f9fafb;
  overflow-wrap: anywhere;
  font-weight: 600;
}
#confirmation-description {
  color: #546d76;
  line-height: 1.6;
}
.confirmation-error {
  color: #aa3428;
}
.confirmation-submit {
  background: #a92f25;
}
.confirmation-submit:hover {
  background: #8d271f;
}
.confirmation-dialog .editor-actions {
  flex-wrap: wrap;
  margin-top: 26px;
}
.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.editor-heading .eyebrow {
  font-size: 9px;
  margin: 0 0 8px;
}
.editor-heading h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0;
}
.dialog-close:hover {
  background: #e4e7ec;
  color: #344054;
}
.dialog-close {
  background: #f0f4f5;
  color: #6b8288;
  font-size: 24px;
  font-weight: 400;
  padding: 3px 11px;
}
.editor-dialog > .muted {
  font-size: 13px;
  margin: 16px 0 24px;
}
.editor-form {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}
.editor-form input,
.editor-form select {
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
}
.editor-context {
  margin: 0;
  padding: 12px 15px;
  border-radius: 8px;
  color: #406569;
  background: var(--primary-soft);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.editor-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid #e5eced;
  margin-top: 6px;
}
.editor-error {
  border-radius: 8px;
  background: #fff0ed;
  color: #a44537;
  padding: 12px;
  font-size: 13px;
  margin: 0;
}
.toggle-field {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
}
.editor-form .toggle-field input {
  appearance: none;
  width: 40px;
  min-width: 40px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: #bdccd1;
  position: relative;
  cursor: pointer;
}
.editor-form .toggle-field input::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: white;
  box-shadow: 0 1px 4px #234b4820;
  transition: transform 0.15s;
}
.editor-form .toggle-field input:checked {
  background: #168477;
}
.editor-form .toggle-field input:checked::before {
  transform: translateX(16px);
}
select:focus-visible {
  outline: 3px solid #60b8d0;
  outline-offset: 3px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 1100px) {
  .role-guide {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .role-guide-item {
    padding: 14px 18px;
  }
  .role-guide-item p {
    margin-top: 3px;
  }
  .user-card {
    gap: 14px;
    padding: 20px;
    flex-wrap: wrap;
  }
  .user-card > .presence-badge {
    margin: 0;
  }
}
@media (max-width: 600px) {
  .directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .directory-toolbar > button {
    width: 100%;
  }
  .directory-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
  }
  .directory-metric {
    padding: 16px 18px;
  }
  .directory-filters {
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 100%;
    max-width: none;
  }
  .directory-filters > label:not(.search-field) {
    flex: 1;
  }
  .directory .station-card {
    padding: 22px;
  }
  .user-card {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 14px 12px;
  }
  .user-identity {
    min-width: 0;
    grid-column: 2 / 4;
  }
  .user-card > .role-badge {
    grid-column: 1 / 3;
    justify-self: start;
  }
  .user-card > .outline-button {
    grid-column: 1 / 4;
    width: 100%;
  }
  .editor-dialog {
    padding: 24px;
  }
  .editor-heading h2 {
    font-size: 21px;
  }
}

.search-field {
  position: relative;
}
.search-field::before {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1.5px solid #77898c;
  border-radius: 50%;
  left: 15px;
  top: 14px;
  pointer-events: none;
}
.search-field::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 1.5px;
  background: #77898c;
  transform: rotate(45deg);
  left: 25px;
  top: 26px;
  pointer-events: none;
}
.line-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 10px;
}
.line-form .full-width {
  grid-column: 1 / -1;
}
#line-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.line-form .check {
  align-self: center;
}
@media (max-width: 600px) {
  .line-form {
    grid-template-columns: 1fr;
  }
  #line-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Shared recording dock for call history and voicemail. */
body.has-recording-player {
  padding-bottom: calc(var(--recording-player-height, 140px) + 40px);
}
body.has-recording-player #message {
  bottom: calc(var(--recording-player-height, 140px) + 40px);
}
.recording-player {
  position: fixed;
  z-index: 30;
  left: calc(var(--sidebar-width) + 32px);
  right: 32px;
  bottom: 20px;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(260px, 1.3fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid #c9e1df;
  border-radius: 18px;
  background: white;
  box-shadow:
    0 12px 44px #1d29391f,
    0 2px 8px #1d293905;
}
.player-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.player-art {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #ccebe7;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}
.player-art svg {
  width: 25px;
  height: 25px;
}
.player-description {
  min-width: 0;
}
.player-kind {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
#player-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
#player-details {
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.player-transport {
  min-width: 0;
}
.player-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.player-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  flex-shrink: 0;
  padding: 8px;
  color: #475467;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
}
.player-icon svg {
  width: 19px;
  height: 19px;
}
.player-icon:hover {
  color: var(--primary);
  background: var(--primary-soft);
}
.player-icon[aria-pressed='true'] {
  color: var(--primary);
  background: var(--primary-soft);
}
.player-icon:disabled {
  opacity: 0.35;
}
.player-play {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 3px 8px #007c7e1a;
}
.player-play svg {
  width: 21px;
  height: 21px;
}
.rewind-label {
  position: absolute;
  font-size: 8px;
  font-weight: 650;
  left: 14px;
  top: 13px;
}
.player-speed {
  width: 67px;
  margin-left: 8px;
}
.player-speed select {
  height: 34px;
  min-height: 34px;
  padding: 5px;
  font-size: 11px;
  border-color: var(--border);
  background: #fcfcfd;
  box-shadow: none;
}
.player-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}
.player-timeline > span {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  min-width: 31px;
}
.player-timeline > span:last-child {
  text-align: right;
}
.player-seek-label {
  flex: 1;
  min-width: 0;
  display: flex;
}
#player-seek {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  cursor: pointer;
}
#player-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    var(--primary) var(--progress, 0%),
    #e4e7ec var(--progress, 0%)
  );
}
#player-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px #007c7e44;
}
#player-seek::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: #e4e7ec;
}
#player-seek::-moz-range-progress {
  height: 4px;
  background: var(--primary);
}
#player-seek::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 1px #007c7e44;
}
#player-seek:disabled {
  opacity: 0.5;
  cursor: wait;
}
.player-status {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.player-status:empty {
  display: none;
}
.player-tools {
  display: flex;
  gap: 4px;
  align-items: center;
}
#player-expand {
  display: none;
}
#player-close {
  margin-left: 6px;
}
.history-panel .selected-recording {
  background: #f0faf8;
  box-shadow: inset 3px 0 var(--primary);
}
.history-panel .selected-recording [data-play-recording] {
  color: var(--primary);
  border-color: #a4d7d1;
  background: white;
}
.history-panel .selected-recording [data-play-recording][aria-pressed='true'] {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
@media (max-width: 1200px) {
  .recording-player {
    gap: 14px;
    grid-template-columns: minmax(150px, 1fr) minmax(240px, 1.2fr) auto;
    padding: 18px;
  }
  .player-art {
    display: none;
  }
  .player-tools {
    flex-wrap: wrap;
    max-width: 80px;
  }
  #player-close {
    margin-left: 0;
  }
}
@media (max-width: 900px) {
  .recording-player {
    left: 20px;
    right: 20px;
  }
}
@media (max-width: 600px) {
  .recording-player {
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 14px 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    border-radius: 15px;
  }
  .player-summary {
    grid-column: 1;
    grid-row: 1;
  }
  .player-kind {
    font-size: 9px;
    margin-bottom: 2px;
  }
  #player-title {
    font-size: 13px;
  }
  #player-details {
    font-size: 10px;
    margin-top: 2px;
  }
  .player-tools {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: nowrap;
    max-width: none;
    gap: 0;
  }
  #player-expand {
    display: inline-flex;
  }
  #player-download,
  #player-mute {
    display: none;
  }
  .player-transport {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }
  .player-buttons {
    display: contents;
  }
  .player-buttons > :not(#player-play) {
    display: none;
  }
  .player-play {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 8px;
  }
  .player-timeline {
    margin-top: 0;
    gap: 7px;
  }
  .player-status {
    grid-column: 1 / -1;
    margin: 0;
  }
  .recording-player.expanded .player-transport {
    display: block;
  }
  .recording-player.expanded .player-buttons {
    display: flex;
  }
  .recording-player.expanded .player-buttons > :not(#player-play) {
    display: inline-flex;
  }
  .recording-player.expanded .player-timeline {
    margin-top: 8px;
  }
  .recording-player.expanded .player-status {
    margin-top: 6px;
  }
  .recording-player.expanded #player-download,
  .recording-player.expanded #player-mute {
    display: inline-flex;
  }
  .recording-player.expanded #player-expand svg {
    transform: rotate(180deg);
  }
  .recording-player.expanded #player-kind {
    max-width: 150px;
  }
}
