:root {
  font-family: "Trebuchet MS", Calibri, sans-serif;
  color: #17354a;
  background: #eef3f7;
  font-synthesis: none;
  --ink: #17354a;
  --muted: #617787;
  --teal: #147b83;
  --line: #cfdae2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--teal);
  border-radius: 6px;
  background: var(--teal);
  color: white;
  padding: 11px 16px;
  font-weight: 700;
}
button:hover {
  background: #10666c;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
button.quiet:hover {
  background: #e2ebf1;
}
input,
textarea,
select {
  border: 1px solid #aabdc9;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  padding: 12px;
  width: 100%;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #61b8c2;
  outline-offset: 3px;
}
label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
header {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 86px;
  padding: 18px 5vw;
  border-bottom: 1px solid var(--line);
  background: #f8fbfd;
}
.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-size: 20px;
}
.brand strong {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.brandmark {
  font-size: 48px;
  line-height: 1;
  color: var(--teal);
}
#connection {
  font-size: 14px;
  color: var(--muted);
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 38px 5vw 60px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1.4px;
  line-height: 1.12;
  margin-bottom: 22px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin-bottom: 15px;
}
p {
  line-height: 1.65;
  max-width: 58ch;
  color: var(--muted);
}
.small {
  font-size: 14px;
  margin-bottom: 15px;
}
.login {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 9%;
  align-items: center;
  min-height: 65vh;
}
.intro h1 {
  font-size: 64px;
}
.intro > p {
  max-width: 45ch;
}
.login form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 15px 40px #17354a08;
}
.login form button {
  width: 100%;
  margin-top: 18px;
}
.hint {
  font-size: 13px;
  margin: 18px 0 0;
}
.route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 13px;
}
.route i {
  height: 1px;
  background: #97b5c5;
  width: 45px;
}
.dashboard {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
}
aside {
  border-right: 1px solid var(--line);
  padding-right: 25px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title h2 {
  margin: 0;
}
.section-title button {
  padding: 6px 8px;
  font-size: 12px;
}
.machines {
  display: grid;
  gap: 10px;
}
.machine {
  width: 100%;
  text-align: left;
  padding: 16px 13px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  border-radius: 7px;
}
.machine:hover {
  background: #dfeaf0;
}
.machine.selected {
  background: #fff;
  border-color: #94b2c2;
  box-shadow: inset 3px 0 var(--teal);
}
.machine strong {
  display: block;
  margin-bottom: 8px;
}
.machine span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
}
.machine .online {
  color: #11706a;
}
.machine .offline {
  color: #827066;
}
.pairing {
  margin-top: 32px;
  font-size: 13px;
}
.pairing input {
  margin-bottom: 10px;
}
.pairing button {
  font-size: 13px;
  width: 100%;
}
summary {
  cursor: pointer;
  padding: 13px 0;
  font-weight: 700;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.workspace-heading h1 {
  font-size: 38px;
  margin-bottom: 24px;
}
.workspace-heading p {
  margin-bottom: 6px;
}
.badge {
  padding: 7px 10px;
  border-radius: 20px;
  background: #dbe8ef;
  font-size: 12px;
  white-space: nowrap;
}
.session-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}
.session-controls label {
  margin: 0;
}
.session-controls select {
  margin-top: 8px;
}
.session-controls button {
  min-height: 44px;
}
.conversation {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: white;
}
.transcript {
  height: 390px;
  overflow: auto;
  padding: 25px;
  scroll-behavior: smooth;
}
.empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 45ch;
  margin: auto;
  text-align: center;
}
.empty h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 26px;
}
.empty p {
  font-size: 14px;
}
.message {
  margin: 0 0 22px;
}
.message .speaker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.message pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  line-height: 1.6;
  font-size: 15px;
}
.message.user {
  padding: 14px 18px;
  background: #eef5f7;
  border-radius: 7px;
}
.message.system pre {
  font-size: 13px;
  color: var(--muted);
}
#message-form {
  border-top: 1px solid var(--line);
  padding: 16px;
}
textarea {
  resize: vertical;
  border: none;
  min-height: 72px;
  padding: 6px;
  box-shadow: none;
}
.composer-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}
.composer-actions span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.composer-actions button {
  font-size: 12px;
  padding: 9px 11px;
}
.files {
  margin-top: 20px;
}
.file-controls {
  display: flex;
  gap: 9px;
}
.file-controls input {
  min-width: 0;
}
#file-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 280px;
  overflow: auto;
  background: #e1eaf0;
  padding: 18px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.5;
}
.notice {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  margin: 0;
  padding: 14px 22px;
  background: #17354a;
  color: white;
  border-radius: 8px;
  box-shadow: 0 5px 22px #17354a22;
  max-width: 90vw;
  z-index: 5;
}
.notice.error {
  background: #803e3e;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 5vw;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (max-width: 950px) {
  .login {
    gap: 35px;
  }
  .intro h1 {
    font-size: 48px;
  }
  .dashboard {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
  }
  .session-controls {
    grid-template-columns: 1fr 1fr;
  }
  .session-controls button {
    grid-column: 1/-1;
  }
  .composer-actions {
    flex-wrap: wrap;
  }
  .composer-actions span {
    width: 100%;
  }
}
@media (max-width: 680px) {
  header {
    padding: 14px 20px;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
  }
  #connection {
    max-width: 100px;
  }
  main {
    padding: 28px 20px 45px;
  }
  .login {
    display: block;
    min-height: auto;
  }
  .intro h1 {
    font-size: 44px;
  }
  .route {
    margin: 25px 0 35px;
  }
  .login form {
    padding: 24px;
  }
  .dashboard {
    display: block;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
    margin-bottom: 25px;
  }
  .machines {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .pairing {
    margin-top: 10px;
  }
  .workspace-heading h1 {
    font-size: 32px;
  }
  .transcript {
    height: 330px;
    padding: 18px;
  }
  .file-controls {
    flex-wrap: wrap;
  }
  .file-controls input {
    flex-basis: 100%;
  }
  footer span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .transcript {
    scroll-behavior: auto;
  }
}
.existing-sessions {
  margin: 0 0 20px;
}
.existing-sessions > div {
  display: flex;
  gap: 12px;
}
.existing-sessions select {
  min-width: 0;
}
.existing-sessions button {
  white-space: nowrap;
}
.machine-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.machine-actions button {
  font-size: 12px;
  padding: 7px 10px;
}
@media (max-width: 680px) {
  .machine-actions {
    align-items: flex-end;
    flex-direction: column;
  }
  .existing-sessions > div {
    flex-wrap: wrap;
  }
  .existing-sessions button {
    width: 100%;
  }
}
