/* Notiz Randevu arayüzü. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --primary-25: #f6f7ff;
  --primary-50: #eef0ff;
  --primary-100: #e0e4ff;
  --primary-200: #d5dbff;
  --primary-300: #b9c2ff;
  --primary-600: #4a3df0;
  --primary-700: #3b2fd9;
  --primary-800: #3024b8;
  --gray-25: #fafbfe;
  --gray-50: #f4f5fb;
  --gray-100: #eef0fa;
  --gray-200: #e7e9f8;
  --gray-300: #d7d9ee;
  --gray-400: #9a9cba;
  --gray-500: #6a6c8e;
  --gray-600: #55577a;
  --gray-700: #34346a;
  --gray-800: #232350;
  --gray-900: #14143c;
  --success-50: #ecfdf3;
  --success-700: #067647;
  --warning-50: #fffaeb;
  --warning-700: #b54708;
  --error-50: #fef3f2;
  --error-600: #d92d20;
  --error-700: #b42318;
  --sidebar: #14143c;
  --sidebar-text: #c6c8ea;
  --pop: #9daaff;
  --radius: 8px;
  --shadow-menu: 0 12px 32px rgb(20 20 60 / 0.16);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font: 400 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nowrap {
  white-space: nowrap;
}

/* --- Düğmeler ve alanlar ------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 120ms,
    border-color 120ms,
    color 120ms;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-primary {
  background: var(--primary-600);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-700);
}

.btn-ghost {
  border-color: var(--gray-300);
  background: #fff;
  color: var(--gray-800);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--gray-400);
  background: var(--gray-25);
}

.btn-danger-ghost {
  color: var(--error-700);
}

.btn-danger-ghost:hover:not(:disabled) {
  background: var(--error-50);
}

.btn-small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
  min-height: 42px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--gray-700);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--gray-100);
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgb(20 20 60 / 0.04);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary-300);
  outline: 3px solid var(--primary-100);
  outline-offset: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-600);
}

.alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--error-50);
  color: var(--error-700);
  font-weight: 500;
}

.alert p {
  flex: 1 1 220px;
}

/* --- Uygulama iskeleti -------------------------------------------------------------------------- */

.app {
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: var(--sidebar);
  color: #fff;
  flex: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-mark rect {
  fill: var(--pop);
}

.brand-mark path,
.brand-mark circle {
  fill: var(--sidebar);
}

.business {
  min-width: 0;
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.06);
  color: var(--sidebar-text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user {
  position: relative;
  margin-left: auto;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--pop);
  color: var(--sidebar);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  color: var(--gray-900);
  box-shadow: var(--shadow-menu);
}

.menu--right {
  right: 0;
}

.menu-head {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px;
}

.menu-head span {
  color: var(--gray-500);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.menu-title {
  padding: 6px 10px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 600;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover {
  background: var(--gray-50);
}

.menu .check {
  padding: 7px 10px;
  border-radius: 6px;
}

.menu .check:hover {
  background: var(--gray-50);
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
  flex: none;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.toolbar-nav,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.arrows {
  display: flex;
}

.range-title {
  margin-left: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
}

.segmented-btn {
  min-height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--gray-600);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.segmented-btn[aria-pressed='true'] {
  background: var(--primary-50);
  color: var(--primary-700);
}

.filter {
  position: relative;
}

.calendar-card {
  position: relative;
  flex: 1;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}

.calendar-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-600), transparent);
  opacity: 0;
  transition: opacity 200ms;
}

.calendar-card.is-loading::after {
  opacity: 1;
}

#calendar {
  height: 100%;
}

/* --- FullCalendar ------------------------------------------------------------------------------- */

.fc {
  --fc-border-color: var(--gray-200);
  --fc-page-bg-color: #fff;
  --fc-neutral-bg-color: var(--gray-50);
  --fc-today-bg-color: var(--primary-25);
  --fc-now-indicator-color: var(--error-600);
  --fc-non-business-color: rgb(106 108 142 / 0.08);
  --fc-highlight-color: rgb(74 61 240 / 0.1);
  --fc-event-bg-color: transparent;
  --fc-event-border-color: transparent;
  --fc-event-text-color: var(--gray-900);
  --fc-list-event-hover-bg-color: var(--gray-25);
  --fc-small-font-size: 12px;
  font-size: 13px;
}

.fc .fc-scrollgrid {
  border: 0;
}

.fc .fc-timegrid-slot {
  height: 2.6em;
}

.fc .fc-timegrid-slot-label-cushion {
  padding: 0 8px;
  color: var(--gray-500);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.fc .fc-col-header-cell {
  background: #fff;
}

.fc .fc-col-header-cell-cushion {
  padding: 8px 2px;
  color: var(--gray-700);
  font-weight: 600;
  text-decoration: none;
}

.day-head {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.day-name {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-num {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--gray-800);
  font-size: 18px;
  font-weight: 600;
}

.fc-day-today .day-num {
  background: var(--primary-600);
  color: #fff;
}

.fc-day-today .day-name {
  color: var(--primary-700);
}

.fc-day-past .day-num {
  color: var(--gray-500);
}

.fc .fc-daygrid-day-number {
  padding: 6px 8px;
  color: var(--gray-700);
  text-decoration: none;
}

.fc .fc-day-today .fc-daygrid-day-number {
  color: var(--primary-700);
  font-weight: 700;
}

.fc .fc-daygrid-more-link {
  margin-top: 2px;
  color: var(--gray-800);
  font-weight: 600;
}

.fc .fc-timegrid-now-indicator-arrow {
  border-width: 5px 0 5px 6px;
}

/* Randevu kartı: takvimin rengi (--c) solda şerit ve açık zemin. Durumlar yazıyla da gösterilir. */
.fc .fc-timegrid-event,
.fc .fc-daygrid-event {
  border: 0;
  border-radius: 6px;
  background: none;
  box-shadow: none;
}

.fc .fc-timegrid-event-harness-inset .fc-timegrid-event {
  box-shadow: 0 0 0 1px #fff;
}

.fc .fc-timegrid-event .fc-event-main {
  padding: 0;
}

.appt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  height: 100%;
  min-width: 0;
  padding: 3px 6px 3px 8px;
  overflow: hidden;
  border-left: 3px solid var(--c);
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 14%, #fff);
  color: var(--gray-900);
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

/* Satırlar küçülmez: kart dar kalınca önce alttakiler (durum, başlık) kesilir, ad hep görünür. */
.appt > * {
  flex: none;
}

.appt-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appt-time,
.appt-title,
.appt-meta {
  overflow: hidden;
  color: var(--gray-600);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appt-time {
  font-variant-numeric: tabular-nums;
}

.is-short .appt {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding-block: 1px;
  font-size: 11px;
  line-height: 14px;
}

.is-short .appt-title,
.is-short .pill {
  display: none;
}

.is-medium .appt-title {
  display: none;
}

.fc-event-mirror .appt {
  background: color-mix(in srgb, var(--c, var(--primary-600)) 24%, #fff);
}

/* Yeni (henüz onaylanmamış) randevu: haftada kesik çerçeveli kart, ay ve listede içi boş nokta. */
.fc-timegrid-event.is-new .appt {
  border: 1px dashed var(--c);
  border-left: 3px solid var(--c);
  background: #fff;
}

.is-new .appt-dot {
  border: 2px solid var(--c);
  background: none;
}

.fc .fc-list-event.is-new .fc-list-event-dot {
  border-width: 2px;
}

.is-noshow .appt {
  background: color-mix(in srgb, var(--c) 6%, #fff);
}

.is-cancelled .appt {
  background: var(--gray-50);
  border-left-color: var(--gray-300);
  color: var(--gray-500);
}

.is-cancelled .appt-name {
  text-decoration: line-through;
  color: var(--gray-500);
}

.fc-event-past:not(.is-cancelled) .appt {
  opacity: 0.78;
}

.pill {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  white-space: nowrap;
}

.pill--new {
  background: var(--warning-50);
  color: var(--warning-700);
}

.pill--showed {
  background: var(--success-50);
  color: var(--success-700);
}

.pill--noshow {
  background: var(--error-50);
  color: var(--error-700);
}

.pill--cancelled {
  background: var(--gray-100);
  color: var(--gray-600);
}

.appt--line {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border-left: 0;
  background: none;
}

.appt--line:hover {
  background: var(--gray-50);
}

.appt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}

.appt--line .pill {
  display: none;
}

.appt--list {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 0;
  border-left: 0;
  background: none;
  font-size: 13px;
  line-height: 18px;
}

.appt--list .pill {
  margin-top: 0;
}

.fc .fc-list-event-dot {
  border-color: var(--c);
}

.fc .fc-list-day-cushion {
  background: var(--gray-50);
}

.fc .fc-list-event-time {
  color: var(--gray-600);
  font-variant-numeric: tabular-nums;
}

/* --- Randevu formu ------------------------------------------------------------------------------ */

.editor {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--gray-900);
  box-shadow: 0 24px 64px rgb(20 20 60 / 0.28);
}

.editor::backdrop {
  background: rgb(20 20 60 / 0.42);
}

.editor form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.editor-head h2 {
  font-size: 17px;
  font-weight: 600;
}

.editor-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  overflow-y: auto;
}

.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.row--3 {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 520px) {
  .row,
  .row--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.with-action {
  display: flex;
  gap: 8px;
}

.btn-wa {
  flex: none;
}

.field--suggest {
  position: relative;
}

.suggest {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-menu);
}

.suggest-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.suggest-item:hover,
.suggest-item[aria-selected='true'] {
  background: var(--primary-50);
}

.suggest-name {
  font-weight: 600;
}

.suggest-phone {
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}

.editor-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--gray-200);
}

.spacer {
  flex: 1;
}

/* --- Bildirim ----------------------------------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 11px 14px 11px 16px;
  border-radius: 10px;
  background: var(--gray-900);
  color: #fff;
  font-weight: 500;
  box-shadow: var(--shadow-menu);
  transform: translateX(-50%);
}

.toast--error {
  background: var(--error-700);
}

.toast-action {
  border: 0;
  background: none;
  color: var(--pop);
  font-weight: 700;
  cursor: pointer;
}

/* --- Giriş -------------------------------------------------------------------------------------- */

.auth {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px 16px;
  background: var(--sidebar) radial-gradient(rgb(157 170 255 / 0.18) 1.2px, transparent 1.4px) 0 0 /
    26px 26px;
}

.auth-card {
  display: grid;
  gap: 20px;
  width: min(400px, 100%);
  padding: 32px 28px 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.28);
}

.auth-logo {
  width: 104px;
  height: auto;
}

.auth-logo path {
  fill: var(--gray-900);
}

.auth-logo-dot {
  fill: var(--primary-600);
}

.auth-card h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-help {
  color: var(--gray-500);
  font-size: 13px;
}

@media (max-width: 760px) {
  .range-title {
    order: 3;
    width: 100%;
    margin-left: 0;
    font-size: 16px;
  }

  .toolbar-actions {
    width: 100%;
  }

  #new-btn {
    margin-left: auto;
  }

  .business {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* İşletmenin çalışma alanı */
.topbar {
  height: 60px;
  padding-inline: max(24px, env(safe-area-inset-left));
}
.main {
  gap: 14px;
  padding: 0 clamp(12px, 2.5vw, 40px) max(16px, env(safe-area-inset-bottom));
}
.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 19px;
  border-bottom: 1px solid var(--gray-300);
}
.workspace-head h1 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.workspace-head p {
  margin-top: 5px;
  color: var(--gray-600);
  font-size: 13px;
}
.workspace-actions,
.message-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.workspace-actions .btn {
  min-height: 40px;
}
.toolbar {
  gap: 10px 16px;
}
.range-title {
  font-size: 17px;
}
.calendar-card {
  min-height: min(380px, 55dvh);
  box-shadow: 0 2px 5px rgb(20 20 60 / 0.04);
}
.notice,
.setup-state {
  border: 1px solid var(--primary-200);
  background: var(--primary-25);
  padding: 12px 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
}
.setup-state {
  margin-top: 24px;
}
.text-action,
.auth-help a {
  color: var(--primary-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.text-action {
  cursor: pointer;
  padding: 3px 0;
  background: none;
  border: 0;
}
.panel {
  padding: 0;
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgb(20 20 60 / 0.28);
  color: var(--gray-900);
}
.panel::backdrop {
  background: rgb(20 20 60 / 0.42);
}
.panel[open] {
  display: flex;
  flex-direction: column;
}
.panel .editor-head {
  flex: none;
}
.panel-body {
  overflow-y: auto;
  padding: 20px;
  display: grid;
  gap: 15px;
}
.panel-note,
.result-row small,
.message-actions p {
  color: var(--gray-600);
  font-size: 13px;
}
.panel-note:empty,
.result-list:empty {
  display: none;
}
.result-list,
.source-list,
.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.result-row,
.report-line,
.report-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.result-row {
  width: 100%;
  background: white;
  border: 0;
  border-top: 1px solid var(--gray-200);
  text-align: left;
  padding: 12px 4px;
  cursor: pointer;
}
.result-row:hover {
  background: var(--primary-25);
}
.result-identity,
.result-time {
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.result-time {
  text-align: right;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.report-controls {
  align-items: end;
}
.report-controls .field {
  flex: 1;
}
.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 8px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 13px 8px;
  background: var(--primary-25);
}
.report-stats div {
  padding: 0 9px;
}
.report-stats div + div {
  border-left: 1px solid var(--gray-300);
}
.report-stats dt {
  font-size: 12px;
  color: var(--gray-600);
}
.report-stats dd {
  margin: 3px 0 0;
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.panel h3 {
  margin: 18px 0 9px;
  font-size: 15px;
}
.source-list {
  display: grid;
  gap: 8px;
}
.source-meter {
  display: block;
  background: var(--gray-100);
  height: 5px;
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}
.source-meter span {
  display: block;
  height: 100%;
  background: var(--primary-600);
}
.status-list .report-line {
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-100);
}
.message-actions {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-25);
}
.message-links {
  gap: 16px;
}
.field input[aria-invalid='true'] {
  border-color: var(--error-700);
}
.auth {
  background: #f5f5fd;
  min-height: 100dvh;
  height: auto;
}
.auth-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: white;
  overflow: hidden;
  box-shadow: 0 20px 64px rgb(20 20 60 / 0.08);
}
.auth-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(155deg, #1d1d48 10%, #37388a);
  color: white;
}
.auth-aside::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgb(180 189 255/0.2) 1px, transparent 1.2px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom left, black, transparent);
}
.auth-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  font-weight: 650;
}
.auth-card {
  width: 100%;
  max-width: 470px;
  padding: 48px clamp(26px, 4vw, 56px);
  margin: auto;
  border-radius: 0;
  box-shadow: none;
  gap: 26px;
}
.auth-logo {
  width: 84px;
}
.auth-card h1 {
  font-size: 27px;
  letter-spacing: -0.045em;
}
.auth-intro p {
  color: var(--gray-600);
  margin-top: 8px;
}
.auth-form {
  gap: 16px;
}
.auth-form .field input {
  min-height: 43px;
}
.auth-form .btn-block {
  min-height: 44px;
}
.auth-help {
  border-top: 1px solid var(--gray-200);
  padding-top: 15px;
  display: grid;
  gap: 4px;
}
@media (max-width: 760px) {
  .topbar {
    height: 52px;
    padding-inline: 14px;
  }
  .business {
    display: inline-block;
    margin-left: auto;
    max-width: 45%;
    border: 0;
    background: transparent;
    text-align: right;
  }
  .user {
    margin-left: 0;
    flex: none;
  }
  .main {
    gap: 9px;
  }
  .workspace-head {
    display: grid;
    gap: 12px;
    padding: 15px 0 13px;
  }
  .workspace-actions {
    gap: 6px;
  }
  .workspace-actions .btn {
    font-size: 12px;
    gap: 4px;
    padding: 0 9px;
    min-height: 38px;
  }
  .workspace-actions .i {
    width: 15px;
    height: 15px;
  }
  .toolbar-nav {
    width: 100%;
    gap: 4px;
  }
  .range-title {
    order: 0;
    margin-left: auto;
    width: auto;
    font-size: 14px;
  }
  .toolbar-actions {
    justify-content: space-between;
  }
  .filter .menu {
    max-width: calc(100vw - 28px);
  }
  .segmented-btn {
    min-height: 32px;
  }
  .auth-shell {
    max-width: 460px;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .auth-aside {
    padding: 18px 24px;
  }
  .auth-card {
    padding: 26px 24px;
  }
  .auth-logo {
    display: none;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}
@media (max-width: 375px) {
  .workspace-actions .i {
    display: none;
  }
  .workspace-actions .btn {
    font-size: 12px;
    padding: 0 8px;
  }
  .topbar {
    gap: 8px;
  }
}

.help-body h3 {
  margin: 0 0 4px;
}
.help-body p {
  color: var(--gray-600);
}
.calendar-download {
  justify-self: start;
  font-size: 13px;
}
.wa-form,
.wa-problems {
  display: grid;
  gap: 12px;
}
.wa-form {
  margin-block: 16px;
}
.wa-form > .btn,
#auto-reminder > .btn {
  justify-self: start;
}
#auto-reminder .check {
  align-items: start;
  line-height: 1.5;
}
#auto-reminder .check input {
  flex: none;
  margin-top: 3px;
}
