:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: #202431;
  background: white;
  --accent: #7056d8;
  --ink: #202431;
  --muted: #626b80;
  --line: #e1e4ef;
  --lav: #f0edff;
  --back: #f7f8fb;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: #5640a9;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button,
.button {
  border: 1px solid #d7dbe6;
  border-radius: 9px;
  background: white;
  min-height: 42px;
  font-weight: 550;
  font-size: 14px;
  padding: 8px 15px;
}
button:hover,
.button:hover {
  background: #f6f4fc;
  border-color: #b9acde;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #ac9ae9;
  outline-offset: 2px;
}
button.primary,
.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
button.primary:hover {
  background: #5842b4;
}
input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 100%;
  background: white;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c2b5f0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.32;
}
h1,
h2 {
  letter-spacing: -0.035em;
}
small,
.muted {
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100dvh;
}
.side {
  background: var(--back);
  border-right: 1px solid var(--line);
  padding: 26px 16px;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 760;
  font-size: 26px;
  text-decoration: none;
  letter-spacing: -1.1px;
  margin: 0 7px 34px;
}
.brand-glyph {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-size: 29px;
  line-height: 1;
}
.new-note {
  width: 100%;
  margin-bottom: 26px;
}
.side nav {
  display: grid;
  gap: 4px;
}
.nav {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: #485068;
  text-decoration: none;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 8px;
}
.nav.selected {
  background: #e9e3fc;
  color: #503b95;
}
.sidefoot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.sidefoot small {
  display: block;
  margin: 15px 13px 0;
  font-size: 16px;
}
.top {
  display: flex;
  align-items: center;
  gap: 19px;
  min-height: 74px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--line);
}
.top h1 {
  font-size: 23px;
  flex: 1;
}
.top input {
  font-size: 14px;
  width: min(280px, 34%);
  background: #fafafe;
}
.top button {
  min-height: 41px;
}
.mobile {
  display: none;
}
.home {
  padding: 30px;
  max-width: 1550px;
  margin: auto;
}
.welcome h2 {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 760;
}
.welcome p {
  color: var(--muted);
  margin-top: 7px;
}
.capture {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin: 25px 0;
}
.record-band,
.upload-band {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: 12px;
  text-align: left;
  min-height: 114px;
}
.record-band {
  background: var(--lav);
}
.record-band > div {
  flex: 1;
}
.record-band h3,
.upload-band strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.record-band p,
.upload-band small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}
.mic-picture svg,
.upload-band svg {
  width: 35px;
  height: 39px;
  color: #4f4079;
}
.panels {
  display: grid;
  grid-template-columns: minmax(265px, 0.85fr) minmax(0, 1.25fr);
  gap: 16px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  padding: 19px;
  background: white;
}
.panel h2 {
  font-size: 21px;
}
.list-panel {
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.note-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 15px 7px;
  min-height: 71px;
}
.note-row.selected {
  background: var(--lav);
  border-radius: 7px;
}
.note-row strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.note-row small {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.note-row > span:first-child {
  color: #776197;
}
.list-actions {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
}
.list-actions button {
  font-size: 13px;
}
.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.preview-head button {
  flex-shrink: 0;
  color: #5d46ae;
  padding: 6px 10px;
  min-height: 36px;
}
.preview .sample {
  display: inline-block;
  font-size: 12px;
  border-radius: 5px;
  color: #604793;
  background: var(--lav);
  padding: 2px 7px;
  margin-top: 6px;
}
.preview-body {
  overflow-wrap: anywhere;
  font-size: 15px;
}
.preview-body p {
  margin: 9px 0;
}
.preview-body h2,
.preview-body h3 {
  margin: 14px 0 5px;
  font-size: 19px;
}
.preview-body svg,
.preview-body img {
  max-width: 100%;
  height: auto;
}
.footnote {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.empty {
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 80px #25293430;
  width: min(540px, calc(100% - 24px));
  max-height: 90dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #25243752;
  backdrop-filter: blur(2px);
}
.dlghead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.dlghead h2 {
  font-size: 21px;
}
.dlghead button {
  border: 0;
  font-size: 24px;
  padding: 2px 9px;
}
.dlgbody,
#dialog-body {
  padding: 20px;
}
dialog p {
  margin: 9px 0 14px;
}
dialog label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  margin: 12px 0;
}
dialog input,
dialog select,
dialog textarea {
  width: 100%;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 14px 0 0;
}
.hint {
  font-size: 13px;
  color: var(--muted);
}
.bad {
  color: #ad354c;
  background: #fff2f5;
  padding: 10px 12px;
  border-radius: 8px;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 35px;
  font-weight: 700;
  text-align: center;
  display: block;
}
audio {
  max-width: 100%;
  width: 100%;
}
.editor-host,
#editor {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 32px;
}
#task,
#toast {
  position: fixed;
  bottom: 15px;
  right: 16px;
  max-width: min(490px, calc(100% - 32px));
  z-index: 45;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 7px 25px #20243125;
}
.layout #task {
  background: var(--lav);
  border: 1px solid #c9b9f5;
  color: #44336b;
}
#task button {
  margin-left: 10px;
}
#toast {
  background: #302a40;
  color: white;
  font-size: 14px;
}
progress {
  width: 100%;
  accent-color: var(--accent);
}
.note-body,
[contenteditable="true"] {
  overflow-wrap: anywhere;
}
.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.data-chart {
  max-width: 100%;
  height: auto;
}
.preview figure {
  margin: 12px 0;
}
.preview table {
  font-size: 13px;
  border-collapse: collapse;
}
.preview td,
.preview th {
  padding: 4px 8px;
  border: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 194px minmax(0, 1fr);
  }
  .home {
    padding: 24px 20px;
  }
  .record-band {
    flex-wrap: wrap;
  }
  .top {
    padding: 12px 20px;
  }
  .panel {
    padding: 14px;
  }
  .welcome h2 {
    font-size: 31px;
  }
  .record-band h3,
  .upload-band strong {
    font-size: 18px;
  }
}
@media (max-width: 950px) {
  .panels {
    display: block;
  }
  .preview {
    display: none;
  }
  .list-panel {
    min-height: 320px;
  }
  .capture {
    grid-template-columns: 1fr;
  }
  .record-band {
    flex-wrap: nowrap;
  }
  .upload-band,
  .record-band {
    min-height: 85px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .side {
    display: none;
  }
  .side.open {
    display: flex;
    position: fixed;
    z-index: 41;
    bottom: 0;
    left: 0;
    width: min(275px, 86%);
    box-shadow: 0 0 0 100vmax #20243155;
  }
  .mobile {
    display: inline-block;
  }
  .top {
    gap: 8px;
    padding: 12px 15px;
    flex-wrap: wrap;
  }
  .top h1 {
    font-size: 19px;
  }
  .top input {
    order: 4;
    width: 100%;
    font-size: 16px;
  }
  .top button {
    padding: 6px 11px;
  }
  .home {
    padding: 23px 16px;
  }
  .welcome h2 {
    font-size: 29px;
  }
  .welcome p {
    font-size: 14px;
  }
  .record-band,
  .upload-band {
    gap: 13px;
    padding: 16px;
  }
  .record-band {
    flex-wrap: wrap;
  }
  .record-band .primary {
    font-size: 13px;
  }
  .record-band p,
  .upload-band small {
    font-size: 13px;
  }
  .capture {
    margin: 21px 0;
  }
  .panel {
    padding: 15px;
  }
  .editor-host,
  #editor {
    padding: 14px;
  }
  .brand {
    margin-bottom: 24px;
  }
  .footnote {
    font-size: 12px;
  }
  .preview-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .record-band .primary {
    margin-left: 47px;
  }
  .welcome h2 {
    font-size: 26px;
  }
}
@media print {
  .side,
  .top,
  .home,
  dialog,
  #toast,
  #task,
  button,
  nav,
  .footnote {
    display: none !important;
  }
  .layout {
    display: block;
  }
  #editor {
    padding: 0;
    max-width: none;
  }
  #editor img,
  #editor svg {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
