:root {
  color-scheme:light;
  --ink:#17243d;
  --muted:#5e6d85;
  --blue:#2457e5;
  --blue-dark:#1943bb;
  --line:#dfe5ef;
  --canvas:#f4f6fb;
  --soft-blue:#edf2ff;
  --radius:18px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--canvas)
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  line-height:1.6;
  font-size:16px
}
a {
  color:#254fc3;
  text-underline-offset:3px
}
a:hover {
  color:#16358c
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button,a.button {
  touch-action:manipulation
}
p {
  margin:.75rem 0
}
h1,h2,h3 {
  line-height:1.25;
  letter-spacing:-.025em;
  color:var(--ink)
}
h1 {
  font-size:clamp(1.8rem,3vw,2.65rem);
  font-weight:740;
  margin:.4rem 0 .8rem;
  overflow-wrap:anywhere
}
h2 {
  font-size:1.35rem;
  margin:0 0 1rem
}
h3 {
  font-size:1.05rem
}
.demo-banner {
  padding:.45rem 1rem;
  text-align:center;
  background:#eef2fc;
  border-bottom:1px solid var(--line);
  font-size:.78rem;
  color:#4d607f
}
.site-header {
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:16px max(24px,calc((100% - 1120px)/2));
  background:#fff;
  border-bottom:1px solid var(--line)
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--ink);
  font-weight:750;
  font-size:1rem;
  white-space:nowrap
}
.brand-mark {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  background:var(--blue);
  border-radius:12px;
  color:white;
  font-size:15px;
  letter-spacing:-.04em
}
.brand small {
  display:block;
  font-size:11px;
  font-weight:500;
  letter-spacing:.04em;
  color:var(--muted)
}
.header-actions {
  display:flex;
  align-items:center;
  gap:24px
}
.header-actions form {
  margin:0
}
.nav-link {
  font-weight:600;
  font-size:.9rem;
  color:var(--muted);
  text-decoration:none
}
.nav-link:hover {
  color:var(--blue)
}
main {
  max-width:1168px;
  padding:36px 24px 64px;
  margin:auto;
  min-height:72vh
}
.page-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  margin-bottom:26px
}
.page-header p {
  margin:0;
  color:var(--muted)
}
.eyebrow {
  font-size:.75rem;
  font-weight:750;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 8px
}
.back-link {
  display:inline-flex;
  gap:8px;
  text-decoration:none;
  font-size:.88rem;
  font-weight:600;
  margin-bottom:16px;
  color:var(--muted)
}
.card {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:clamp(20px,3vw,32px);
  box-shadow:0 3px 14px #1a335606
}
.card+.card {
  margin-top:20px
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:16px
}
.section-heading h2 {
  margin:0
}
.count {
  display:inline-block;
  padding:2px 9px;
  background:#eef2f8;
  border-radius:7px;
  font-size:.78rem;
  font-weight:700;
  color:var(--muted)
}
button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  padding:11px 19px;
  border:1px solid transparent;
  border-radius:10px;
  background:var(--blue);
  color:#fff;
  font:inherit;
  font-size:.9rem;
  font-weight:700;
  line-height:1.45;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 3px 7px #2457e518;
  transition:background .15s,box-shadow .15s
}
button:hover,.button:hover {
  background:var(--blue-dark);
  color:#fff;
  box-shadow:0 4px 10px #2457e529
}
button.secondary,.button.secondary {
  background:#fff;
  color:#284476;
  border-color:#ccd7e9;
  box-shadow:none
}
button.secondary:hover,.button.secondary:hover {
  background:#edf2ff;
  color:#19377d
}
.icon {
  width:21px;
  height:21px;
  flex:none
}
.download-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:20px;
  padding:22px 26px;
  margin:0 0 24px;
  border:1px solid #c8d6ff;
  border-radius:var(--radius);
  background:linear-gradient(115deg,#edf2ff,#f8faff)
}
.download-panel h2 {
  margin:0 0 4px;
  font-size:1.1rem
}
.download-panel p {
  margin:0;
  color:#526585;
  font-size:.85rem
}
.download-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px
}
.download-actions .button {
  min-height:52px;
  padding:14px 20px;
  white-space:normal
}
.overview-status {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:20px
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 11px;
  border-radius:7px;
  background:#f0f3f8;
  color:#52617a;
  font-size:.76rem;
  font-weight:700
}
.badge-review,.badge-saved {
  background:#fff3d9;
  color:#835c0c
}
.badge-running,.badge-processing,.badge-queued,.badge-starting {
  background:#edf2ff;
  color:#244ebd
}
.badge-failed,.badge-interrupted {
  background:#fff0ed;
  color:#9a4032
}
.badge-finished {
  background:#e9f7ef;
  color:#246847
}
.platform-teams {
  background:#f0ecfc;
  color:#625196
}
.platform-meet {
  background:#e9f5f1;
  color:#24755d
}
.status-line {
  padding:16px 18px;
  background:#f6f8fc;
  border:1px solid #e7ebf3;
  border-radius:12px;
  margin:0 0 20px
}
.status-line p {
  margin:0
}
.audio-panel {
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:20px
}
.audio-panel h2 {
  font-size:1.05rem;
  margin-bottom:12px
}
audio {
  display:block;
  width:min(100%,580px);
  height:46px;
  margin:12px 0
}
.progress-panel {
  background:var(--soft-blue);
  padding:18px 20px;
  border-radius:12px;
  margin:20px 0
}
.progress-panel p {
  margin:5px 0
}
progress {
  display:block;
  width:100%;
  height:10px;
  margin:14px 0;
  accent-color:var(--blue);
  border:none;
  border-radius:10px;
  overflow:hidden
}
progress::-webkit-progress-bar {
  background:#d9e3ff
}
progress::-webkit-progress-value {
  background:var(--blue);
  border-radius:10px
}
.hint,footer {
  color:var(--muted);
  font-size:.85rem
}
.error,[role=alert].error {
  color:#9b3c2c
}
.card>p.error,.card>div.error {
  padding:14px 17px;
  border:1px solid #f1d3ca;
  background:#fff6f2;
  border-radius:10px;
  font-size:.88rem
}
.errorlist {
  color:#a2392c;
  padding-left:20px
}
.metadata {
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  font-size:.85rem;
  color:var(--muted);
  padding:10px 0
}
.participants ul {
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0
}
.participants li {
  border:1px solid var(--line);
  background:#f8faff;
  border-radius:8px;
  padding:6px 12px;
  font-size:.85rem
}
details {
  margin:14px 0;
  border:1px solid var(--line);
  border-radius:11px;
  padding:0 16px;
  background:#fff
}
summary {
  cursor:pointer;
  min-height:46px;
  padding:12px 0;
  font-weight:600;
  font-size:.86rem;
  color:#405576
}
details[open]>summary {
  border-bottom:1px solid #e9edf4;
  margin-bottom:14px
}
details>p,details>form,details>ul {
  margin-top:12px;
  margin-bottom:16px
}
details details {
  background:#f8faff
}
.transcript-title {
  margin-top:4px!important
}
.utterance {
  border:1px solid #e4e9f2;
  border-left:3px solid #c9d6ff;
  border-radius:12px;
  padding:19px 22px;
  margin:16px 0;
  background:white
}
.utterance>p:first-child {
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 12px;
  font-size:.9rem
}
.utterance>p:nth-child(2) {
  font-size:1rem;
  line-height:1.85;
  color:#24334d;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.utterance time {
  font-size:.76rem;
  background:#f0f4fc;
  color:#506588;
  border-radius:5px;
  padding:3px 8px;
  font-variant-numeric:tabular-nums
}
.utterance p.hint {
  font-size:.77rem;
  margin:10px 0
}
.utterance details {
  border-color:#e6ebf4
}
.utterance details form {
  padding:2px 0 6px
}
.transcript {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font:inherit;
  font-size:.85rem;
  line-height:1.7
}
.speaker-part-text {
  white-space:pre-wrap
}
.meeting-list {
  display:grid;
  gap:14px
}
.meeting-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 25px
}
.meeting-row-main {
  min-width:0
}
.meeting-row h2 {
  font-size:1.13rem;
  margin:9px 0
}
.meeting-row h2 a {
  text-decoration:none;
  color:var(--ink);
  overflow-wrap:anywhere
}
.meeting-row h2 a:hover {
  color:var(--blue)
}
.meeting-row .hint {
  margin:0
}
.meeting-row .open-link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  font-size:.85rem;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap
}
.empty-state {
  text-align:center;
  padding:54px 24px
}
.empty-state p {
  max-width:440px;
  margin:12px auto 22px
}
.form-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:24px;
  align-items:start
}
.form-notes {
  padding:22px
}
.form-notes h2 {
  font-size:1rem
}
.form-notes p {
  font-size:.85rem;
  color:var(--muted)
}
form p {
  margin:0 0 20px
}
label {
  display:block;
  font-weight:600;
  font-size:.88rem;
  margin-bottom:7px
}
input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea {
  width:100%;
  max-width:100%;
  min-height:46px;
  padding:11px 13px;
  border:1px solid #c8d2e3;
  border-radius:9px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:.93rem
}
textarea {
  min-height:100px;
  resize:vertical
}
input[type=checkbox],input[type=radio] {
  width:18px;
  height:18px;
  flex:none;
  accent-color:var(--blue);
  margin:4px 8px 0 0
}
label:has(input[type=checkbox]) {
  display:flex;
  align-items:flex-start;
  font-weight:400;
  line-height:1.65
}
input:focus,select:focus,textarea:focus {
  border-color:var(--blue)
}
.helptext {
  display:block;
  font-size:.8rem;
  color:var(--muted);
  margin-top:6px
}
form ul {
  font-size:.85rem
}
.login-card {
  max-width:450px;
  margin:5vh auto 0;
  padding:32px
}
.login-card h1 {
  font-size:1.85rem
}
.login-card>p {
  color:var(--muted);
  font-size:.9rem
}
.login-card button {
  width:100%;
  margin-top:4px
}
.field {
  margin:20px 0
}
:focus-visible {
  outline:3px solid #517bf2;
  outline-offset:4px
}
.skip-link {
  position:absolute;
  left:20px;
  top:-100px;
  padding:10px;
  background:white;
  z-index:10
}
.skip-link:focus {
  top:8px
}
footer {
  max-width:1168px;
  margin:auto;
  padding:24px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:16px;
  font-size:.76rem
}
.footer-brand {
  font-weight:700;
  color:#50617c
}
@media(max-width:760px) {
  .site-header {
    padding:14px 18px;
    min-height:74px;
    gap:12px
  }
  .header-actions {
    gap:12px
  }
  .nav-link {
    display:none
  }
  .brand {
    font-size:.9rem
  }
  .brand-mark {
    width:36px;
    height:36px;
    border-radius:10px
  }
  .brand small {
    font-size:10px
  }
  main {
    padding:24px 16px 40px
  }
  .page-header {
    align-items:flex-start;
    flex-direction:column;
    gap:16px
  }
  .page-header>.button {
    width:100%
  }
  .download-panel {
    padding:20px;
    gap:16px
  }
  .download-actions {
    width:100%;
    flex-direction:column
  }
  .download-actions .button {
    width:100%;
    min-height:52px
  }
  .card {
    padding:20px 17px;
    border-radius:14px
  }
  .form-layout {
    grid-template-columns:1fr
  }
  .meeting-row {
    align-items:flex-start;
    gap:10px;
    flex-wrap:wrap
  }
  .meeting-row .open-link {
    width:100%;
    border-top:1px solid var(--line);
    padding-top:12px
  }
  .utterance {
    padding:16px 14px
  }
  .utterance>p:nth-child(2) {
    font-size:.95rem
  }
  .overview-status {
    gap:7px
  }
  .badge {
    font-size:.72rem
  }
  .metadata {
    display:block
  }
  .metadata span {
    display:block;
    margin:4px 0
  }
  footer {
    padding:20px 16px;
    flex-direction:column;
    gap:4px
  }
  .demo-banner {
    font-size:.69rem;
    padding:6px 14px
  }
  .login-card {
    margin:0 auto
  }
  .utterance button {
    width:100%
  }
  details {
    padding:0 12px
  }
  .header-actions button {
    min-height:40px;
    padding:8px 13px
  }
  h1 {
    font-size:1.8rem
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.meeting-list>.card+.card {
  margin-top:0
}
.download-actions .button.secondary {
  background: #183d80;
  color: #fff;
  border-color: #183d80;
  box-shadow: 0 3px 7px #183d8018;
}
.download-actions .button.secondary:hover {
  background: #102e65;
  color: #fff;
}

/* Окрема дія прибирання зустрічі зі списку. */
button.danger,.button.danger {
  color:#a52f24;
  background:#fff7f5;
  border-color:#e6b3aa;
  box-shadow:none;
}
button.danger:hover,.button.danger:hover {
  color:#842219;
  background:#ffebe6;
  border-color:#cc8173;
  box-shadow:none;
}
button.danger:focus-visible,.button.danger:focus-visible {
  outline:3px solid #a52f24;
  outline-offset:3px;
}
