:root {
  font-family: Jakarta, "Segoe UI", sans-serif;
  font-synthesis: none;
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #fff;
  --subtle: #f8fafc;
  --text: #17253c;
  --muted: #63738a;
  --line: #e7ecf3;
  --blue: #3375ea;
  --link: #2666cc;
  --primary: #2866ce;
  --primary-hover: #2055b0;
  --blue-bg: #ecf3ff;
  --green: #17835f;
  --green-bg: #eaf8f1;
  --amber: #946517;
  --amber-bg: #fff6e5;
  --red: #b33643;
  --red-bg: #fff0f0;
  --purple: #7957b1;
  --purple-bg: #f0ecfb;
  --hover-border: #b6c9e7;
  --topbar: #ffffffed;
  --login-glow: #e3edff;
  color: var(--text);
  background: var(--bg);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1322;
  --surface: #121e30;
  --subtle: #162338;
  --text: #e2eaf5;
  --muted: #a6b6cb;
  --line: #2f4058;
  --blue: #6b9cff;
  --link: #90b5ff;
  --primary: #2866ce;
  --primary-hover: #3475e2;
  --blue-bg: #213753;
  --green: #62d2ad;
  --green-bg: #173b34;
  --amber: #edbe63;
  --amber-bg: #3d3223;
  --red: #ff8f93;
  --red-bg: #40272e;
  --purple: #c4a6f4;
  --purple-bg: #302542;
  --hover-border: #5d7daa;
  --topbar: #121e30ed;
  --login-glow: #172c4d;
}
@font-face {
  font-family: Jakarta;
  src: url("/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 15px;
  background: var(--surface);
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  transition: 0.15s;
}
button:hover:not(:disabled) {
  border-color: var(--hover-border);
  background: var(--subtle);
}
button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px #3375ea15;
}
button.primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
button.danger {
  color: var(--red);
}
button.icon-only {
  padding: 9px;
  display: inline-flex;
}
button.small {
  padding: 7px 10px;
  font-size: 12px;
}
a {
  color: var(--link);
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
  margin-bottom: 14px;
}
h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 34px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.brandmark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px #3375ea25;
}
.brandmark svg {
  width: 24px;
  height: 24px;
}
.brand span small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.6px;
  font-weight: 750;
  color: var(--muted);
  margin-top: 1px;
}
.nav-label {
  font-size: 10px;
  font-weight: 750;
  color: var(--muted);
  letter-spacing: 1.4px;
  padding: 12px 14px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 600;
}
nav button.active {
  color: var(--link);
  background: var(--blue-bg);
}
nav button svg {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
}
.pilot-tag {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.5;
  background: var(--subtle);
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--blue-bg);
  color: var(--link);
}
.profile strong {
  font-size: 12px;
}
.profile small {
  display: block;
  font-size: 10px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 20px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb strong {
  font-weight: 600;
  color: var(--text);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-actions select {
  max-width: 235px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  color: var(--text);
}
.content {
  max-width: 1480px;
  margin: auto;
  padding: 35px 42px 50px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.6px;
  font-weight: 800;
  margin-bottom: 9px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spread {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 27px;
}
.stat,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat {
  padding: 20px;
}
.stat .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat svg {
  color: var(--muted);
  width: 17px;
}
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -1px;
}
.stat small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  gap: 22px;
}
.card {
  padding: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}
.card-header h2 {
  margin: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 650;
  border-radius: 6px;
  background: var(--subtle);
  color: var(--muted);
  white-space: nowrap;
}
.badge.green {
  background: var(--green-bg);
  color: var(--green);
}
.badge.amber {
  background: var(--amber-bg);
  color: var(--amber);
}
.badge.blue {
  background: var(--blue-bg);
  color: var(--link);
}
.badge.red {
  background: var(--red-bg);
  color: var(--red);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.note-row {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  align-items: flex-start;
}
.note-row:first-child {
  border-top: 0;
}
.note-icon {
  width: 37px;
  height: 39px;
  border-radius: 10px;
  background: var(--blue-bg);
  color: var(--link);
  display: grid;
  place-items: center;
}
.note-row.session .note-icon {
  background: var(--purple-bg);
  color: var(--purple);
}
.note-main {
  flex: 1;
  min-width: 0;
}
.note-main h3 {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 7px;
}
.note-main p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.note-meta {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  color: var(--link);
  padding: 3px;
  font-size: 11px;
}
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.action-tile {
  text-align: left;
  padding: 16px 13px;
  border-color: var(--line);
  min-height: 108px;
}
.action-tile svg {
  display: block;
  margin-bottom: 13px;
  color: var(--link);
  width: 21px;
  height: 21px;
}
.action-tile strong {
  font-size: 11px;
  display: block;
}
.action-tile small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
  line-height: 1.4;
  font-weight: 400;
}
.callout {
  border-radius: 10px;
  padding: 13px 15px;
  background: var(--blue-bg);
  border: 1px solid var(--line);
  color: var(--link);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 18px;
}
.callout.amber {
  background: var(--amber-bg);
  border-color: var(--line);
  color: var(--amber);
}
.callout p:last-child {
  margin-bottom: 0;
}
.section-gap {
  margin-top: 22px;
}
.equipment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.equipment-row:first-of-type {
  border-top: 0;
}
.equipment-row h3 {
  font-size: 12px;
}
.equipment-row small {
  font-size: 10px;
}
.empty {
  padding: 35px 18px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 33px;
  height: 33px;
  color: var(--muted);
  margin-bottom: 12px;
}
.empty h3 {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}
.empty p {
  font-size: 12px;
  max-width: 350px;
  margin: 0 auto 18px;
  line-height: 1.65;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters input,
.filters select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12px;
  min-height: 39px;
}
.filters input[type="search"] {
  flex: 1;
  min-width: 190px;
}
.filters label {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  color: var(--muted);
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.4px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  background: var(--subtle);
  white-space: nowrap;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
td .subline {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.note-preview {
  max-width: 340px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.selection-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--blue-bg);
  border-radius: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}
.selection-bar span {
  margin-right: auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 18px;
}
.device-card .device-top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}
.device-large {
  width: 46px;
  height: 50px;
  border-radius: 12px;
  background: var(--blue-bg);
  color: var(--link);
  display: grid;
  place-items: center;
}
.device-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  font-size: 11px;
  margin: 20px 0;
}
.device-card dt {
  color: var(--muted);
  margin-bottom: 5px;
}
.device-card dd {
  margin: 0;
  color: var(--text);
}
.device-card .row {
  margin-top: 16px;
}
.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  display: flex;
  gap: 13px;
  padding: 14px 0;
}
.step-number {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--blue-bg);
  color: var(--link);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.step p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.step strong {
  font-size: 12px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background:
    radial-gradient(ellipse at 25% 20%, var(--login-glow), transparent 55%),
    var(--bg);
}
.login-card {
  width: 420px;
  max-width: 100%;
  padding: 37px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 15px 55px #2143740d;
}
.login-card .brand {
  padding: 0 0 30px;
}
.login-card h1 {
  font-size: 24px;
}
.login-card p {
  font-size: 12px;
  color: var(--muted);
}
form {
  display: grid;
  gap: 16px;
}
label.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
label.field input,
label.field select,
label.field textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: var(--surface);
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.checklabel {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-error {
  color: var(--red);
  background: var(--red-bg);
  border-radius: 8px;
  padding: 11px;
  font-size: 12px;
}
.form-error:empty {
  display: none;
}
.form-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 9px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  width: 620px;
  max-width: calc(100% - 30px);
  max-height: 90vh;
  color: var(--text);
  box-shadow: 0 20px 80px #152a4b30;
}
dialog::backdrop {
  background: #182d4d61;
  backdrop-filter: blur(3px);
}
dialog.wide {
  width: 830px;
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
dialog header h2 {
  margin: 0;
}
dialog .intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
dialog pre {
  white-space: pre-wrap;
  font:
    12px/1.8 Jakarta,
    "Segoe UI",
    sans-serif;
  background: var(--subtle);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
  max-height: 55vh;
  overflow: auto;
}
audio {
  width: 100%;
  margin: 12px 0;
}
details {
  font-size: 12px;
  margin: 16px 0;
  color: var(--muted);
}
summary {
  cursor: pointer;
}
details p {
  white-space: pre-wrap;
  font-size: 12px;
}
.pair-code {
  display: block;
  font-size: 32px;
  letter-spacing: 5px;
  text-align: center;
  background: var(--blue-bg);
  border-radius: 12px;
  padding: 20px;
  color: var(--link);
  font-weight: 750;
  margin: 20px 0;
}
.location-card .coords {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  margin: 12px 0;
  color: var(--muted);
}
.location-card .accuracy {
  font-size: 11px;
  color: var(--muted);
}
.status-list {
  display: grid;
  gap: 15px;
}
.status-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.status-item p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.status-item strong {
  font-size: 12px;
}
.status-item svg {
  color: var(--link);
  width: 18px;
}
.timeline-row {
  border-left: 2px solid var(--line);
  padding: 0 0 18px 17px;
  margin-left: 6px;
  position: relative;
}
.timeline-row:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  background: var(--link);
  border-radius: 50%;
}
.timeline-row time {
  font-size: 11px;
  color: var(--link);
}
.timeline-row p {
  font-size: 12px;
  white-space: pre-wrap;
  margin: 6px 0 0;
}
.output-body {
  white-space: pre-wrap;
  line-height: 1.85;
  font-size: 13px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #213b5b;
  color: #fff;
  border-radius: 10px;
  max-width: 90%;
  padding: 14px 21px;
  font-size: 12px;
  box-shadow: 0 6px 30px #213b5b30;
  z-index: 99;
  display: none;
}
#toast.visible {
  display: block;
}
.mobile-menu {
  display: none;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.inline-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.7;
}
.segment-list {
  max-height: 260px;
  overflow: auto;
}
.topbar .date {
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
}
@media (max-width: 1100px) {
  .content {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .shell {
    grid-template-columns: 210px 1fr;
  }
  .sidebar {
    width: 210px;
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .columns-3 {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    width: 240px;
    box-shadow: 10px 0 30px #17253c1a;
  }
  .sidebar.open {
    display: flex;
  }
  .main {
    display: block;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
  }
  .breadcrumb,
  .topbar .date {
    display: none;
  }
  .top-actions select {
    max-width: 190px;
  }
  .content {
    padding: 24px 18px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .columns-2,
  .columns-3 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .page-heading > .primary {
    font-size: 11px;
    padding: 10px;
  }
  .top-actions {
    gap: 7px;
  }
  dialog {
    padding: 22px;
  }
  .note-preview {
    max-width: 200px;
  }
}
.grid-main > div {
  min-width: 0;
}
.card-header {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .top-actions select {
    max-width: 160px;
  }
  .top-actions {
    gap: 5px;
  }
  .topbar {
    gap: 10px;
  }
  .equipment-row {
    flex-wrap: wrap;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .note-row {
    flex-wrap: wrap;
  }
  .note-main {
    min-width: 160px;
  }
  .card-header .badge {
    white-space: normal;
  }
}
.topbar button.mobile-menu {
  display: none;
}
@media (max-width: 760px) {
  .topbar button.mobile-menu {
    display: inline-flex;
  }
}

.manual-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--link);
}

.transcript-proposal {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body,
dialog {
  background: var(--bg);
  color: var(--text);
}
dialog {
  background: var(--surface);
}
.theme-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
.theme-picker select {
  padding: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 140px;
}
.login-card > .theme-picker {
  margin: 0 0 20px;
}
.sidebar {
  overflow-y: auto;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--link);
}
.mobile-tabs {
  display: none;
}
.ask-shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ask-shortcut button {
  color: var(--link);
  min-height: 44px;
}
.ask-shortcut span {
  font-size: 12px;
  color: var(--muted);
}
.ask-card {
  max-width: 900px;
}
.ask-answer,
.source-quote {
  white-space: pre-wrap;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.ask-sources {
  display: grid;
  gap: 12px;
}
.source-card {
  border: 1px solid var(--line);
  background: var(--subtle);
  border-radius: 12px;
  padding: 16px;
}
.source-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}
#messages-content form {
  max-width: 640px;
}
#messages-content input[type="file"] {
  max-width: 100%;
  white-space: normal;
}
.mine-filter {
  margin: 0;
  min-height: 44px;
}
.mobile-note-tools {
  margin-bottom: 16px;
}
.mobile-note-tools > input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 14px;
}
.reminder-banner {
  border: 1px solid var(--line);
  background: var(--amber-bg);
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.reminder-banner p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}
.reminder-banner button {
  min-height: 44px;
}
.mine-filter input {
  width: 20px;
  height: 20px;
}
.card p {
  overflow-wrap: anywhere;
}
.note-filters {
  margin: 8px 0 16px;
}
.note-filters summary {
  padding: 12px 0;
  color: var(--link);
  cursor: pointer;
}
.note-filters .filters {
  margin-top: 12px;
}
.note-filters input,
.note-filters select {
  width: 100%;
  min-width: 0;
}
.note-count {
  font-size: 13px;
  color: var(--muted);
}
.day-heading {
  font-size: 14px;
  font-weight: 700;
  margin: 24px 0 10px;
  text-transform: capitalize;
}
.note-tile {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  min-width: 0;
}
.note-tile h3 {
  font-size: 17px;
  margin: 12px 0 8px;
  overflow-wrap: anywhere;
}
.note-tile .badge {
  white-space: normal;
  text-align: right;
}
.note-tile small {
  color: var(--muted);
}
.note-tile p {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.note-tile-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 14px;
}
.note-select {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.note-select input {
  width: 22px;
  height: 22px;
  margin: 0;
}
.note-select time,
.reminder-tile time {
  font-weight: 700;
  font-size: 14px;
}
.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.calendar-tools {
  max-width: 650px;
}
.calendar-tools .field {
  max-width: 240px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 20px;
}
.week-strip button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  min-width: 0;
}
.week-strip button span {
  font-size: 11px;
  text-transform: capitalize;
}
.week-strip button strong {
  font-size: 18px;
}
.week-strip button[aria-current] {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.calendar-list {
  margin-top: 20px;
  max-width: 900px;
}
audio {
  max-width: 100%;
}
@media (max-width: 760px) {
  .mobile-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    z-index: 30;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .field {
    font-size: 14px;
  }
  .callout {
    font-size: 13px;
    line-height: 1.6;
  }
  .mobile-tabs button {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    font-size: 11px;
    color: var(--muted);
    border-radius: 10px;
  }
  .mobile-tabs svg {
    width: 23px;
    height: 23px;
  }
  .mobile-tabs button[aria-current] {
    color: var(--link);
    background: var(--blue-bg);
  }
  .content {
    padding-bottom: calc(106px + env(safe-area-inset-bottom));
  }
  .sidebar {
    z-index: 50;
    padding-bottom: 90px;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--surface);
  }
  .topbar #change-password,
  .topbar #logout {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .top-actions select {
    max-width: 260px;
    width: calc(100vw - 105px);
    font-size: 12px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .page-heading p {
    font-size: 14px;
    line-height: 1.6;
  }
  .page-heading > .primary {
    min-height: 46px;
    font-size: 13px;
    padding: 10px 15px;
  }
  .mobile-note-tools .text-button {
    min-height: 44px;
  }
  .note-filters .filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .note-filters .filters label {
    width: 100%;
  }
  .selection-bar {
    position: sticky;
    top: 66px;
    z-index: 15;
    max-height: 40vh;
    overflow: auto;
    gap: 8px;
    padding: 12px;
    background: var(--blue-bg);
    border: 1px solid var(--line);
  }
  .selection-bar .small {
    min-height: 44px;
    font-size: 12px;
  }
  .note-tile button {
    min-height: 44px;
  }
  .note-tile .row {
    gap: 8px;
  }
  .profile-shortcuts {
    grid-template-columns: 1fr;
  }
  .profile-shortcuts button {
    min-height: 48px;
  }
  .calendar-tools .field {
    max-width: none;
  }
  dialog {
    max-height: calc(100dvh - 32px);
    max-width: calc(100vw - 20px);
    width: calc(100vw - 20px);
    padding: 20px;
    overflow: auto;
  }
  dialog textarea,
  dialog input,
  dialog select {
    font-size: 16px;
  }
  dialog button {
    min-height: 44px;
  }
  #toast {
    bottom: calc(90px + env(safe-area-inset-bottom));
    font-size: 13px;
  }
  .inline-note {
    font-size: 12px;
  }
}
.view-toggle {
  white-space: nowrap;
  min-height: 44px;
}
.simple-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 26px auto 0;
  padding: 0 28px;
}
.simple-nav button {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
}
.simple-nav svg {
  width: 30px;
  height: 30px;
}
.simple-nav [aria-current] {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.simple-tools {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.simple-tools input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  font-size: 17px;
}
.simple-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.simple-note-actions button {
  flex: 1 1 190px;
}
.simple-transcript {
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 18px;
  overflow-wrap: anywhere;
  padding: 18px;
  border-radius: 12px;
  background: var(--subtle);
}
[data-view="simple"] .shell {
  display: block;
}
[data-view="simple"] .sidebar,
[data-view="simple"] .mobile-tabs,
[data-view="simple"] .topbar button.mobile-menu,
[data-view="simple"] .breadcrumb,
[data-view="simple"] .topbar .date {
  display: none;
}
[data-view="simple"] .main {
  margin: 0;
}
[data-view="simple"] .content {
  max-width: 1100px;
  padding: 28px;
  margin: auto;
}
[data-view="simple"] .topbar {
  justify-content: space-between;
  gap: 16px;
}
[data-view="simple"] .page-heading .eyebrow,
[data-view="simple"] .page-heading p:empty {
  display: none;
}
[data-view="simple"] button {
  font-size: 17px;
  min-height: 54px;
}
[data-view="simple"] .note-tile {
  padding: 24px;
}
[data-view="simple"] .note-tile h3 {
  font-size: 21px;
}
[data-view="simple"] .note-tile-text {
  font-size: 17px;
}
[data-view="simple"] .note-select {
  font-size: 17px;
  min-height: 48px;
}
[data-view="simple"] .note-select input {
  width: 24px;
  height: 24px;
}
[data-view="simple"] .note-filters summary,
[data-view="simple"] dialog summary {
  padding: 18px 0;
  font-size: 17px;
  cursor: pointer;
}
[data-view="simple"] .selection-bar {
  position: static;
}
[data-view="simple"] .simple-open {
  width: 100%;
}
[data-view="simple"] dialog {
  font-size: 16px;
}
[data-view="simple"] dialog h2 {
  font-size: 23px;
}
@media (max-width: 760px) {
  .view-toggle {
    font-size: 12px;
  }
  .top-actions select {
    max-width: 165px;
    width: min(165px, 37vw);
  }
  [data-view="simple"] .topbar {
    flex-wrap: wrap;
    padding: 10px 16px;
    height: auto;
    min-height: 74px;
  }
  [data-view="simple"] .topbar .view-toggle {
    font-size: 14px;
    min-height: 48px;
  }
  [data-view="simple"] .top-actions {
    margin: 0;
    min-width: 0;
  }
  [data-view="simple"] .content {
    padding: 22px 16px 60px;
  }
  .simple-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 16px;
    margin-top: 18px;
    gap: 8px;
  }
  .simple-nav button {
    min-height: 88px;
    font-size: 15px;
    padding: 12px 4px;
  }
  .simple-tools {
    flex-direction: column;
  }
  [data-view="simple"] .note-tile {
    padding: 18px;
  }
  [data-view="simple"] .page-heading {
    gap: 14px;
  }
  [data-view="simple"] .note-row {
    flex-wrap: wrap;
  }
  [data-view="simple"] .note-row button {
    width: 100%;
  }
  [data-view="simple"] .note-row .note-main {
    min-width: 0;
  }
}
