:root {
  --bg:#f6f7fa;
  --panel:#fff;
  --text:#202432;
  --muted:#656c7e;
  --line:#e0e3ea;
  --accent:#5754df;
  --accent2:#4845c5;
  --side:222px;
  --r:14px;
  color-scheme:light;
  font-family:"Inter","DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--text);
  font-size:14px;
  -webkit-font-smoothing:antialiased;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--bg);
}

button,input,select {
  font:inherit;
}

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
  color:inherit;
}

button:disabled {
  cursor:not-allowed;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
  outline:3px solid #a09af9;
  outline-offset:3px;
}

input,select {
  min-width:0;
}

button {
  border:0;
  background:none;
}

svg {
  flex-shrink:0;
  vertical-align:middle;
}

.icon,.btn,.text-link,.tiny,.navitem,.tab {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.icon {
  padding:6px;
  border-radius:6px;
}

.icon:hover {
  background:#efeff6;
}

.btn {
  background:#fff;
  border:1px solid #d9dce5;
  box-shadow:0 1px 2px #24264306;
  border-radius:8px;
  padding:10px 15px;
  min-height:39px;
  font-size:13px;
  font-weight:580;
  white-space:nowrap;
  text-decoration:none;
  color:var(--text);
}

.btn:hover {
  background:#f4f4fa;
  border-color:#c6c8da;
}

.btn.primary {
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
  box-shadow:0 2px 3px #3733a51a;
}

.btn.primary:hover {
  background:var(--accent2);
}

.btn:disabled,.btn.primary:disabled {
  color:#9a9daa;
  background:#f5f5f8;
  border-color:#e7e8ee;
  box-shadow:none;
}

.btn.compact {
  padding:7px 12px;
  min-height:33px;
  font-size:12px;
}

.btn.soft {
  background:#fff;
}

.btn.soft:disabled {
  border-color:#e5e7ed;
  color:#969aaa;
  background:#f8f9fb;
}

.text-link,.tiny {
  padding:3px 0;
  color:var(--accent);
  font-weight:590;
  font-size:12px;
  background:transparent;
}

.text-link:hover,.tiny:hover {
  text-decoration:underline;
}

.tiny:disabled {
  opacity:.5;
}

.destructive {
  background:#b93e4e;
  color:#fff;
  border-color:#b93e4e;
}

.destructive:hover {
  background:#a22d3c;
}

.danger {
  color:#af3748;
}

h1,h2,h3,h4,p {
  margin:0;
}

h1,h2,h3,h4 {
  font-weight:650;
}

h1 {
  font-size:clamp(32px,3.1vw,46px);
  line-height:1.1;
  letter-spacing:-.052em;
}

h2 {
  font-size:19px;
  letter-spacing:-.035em;
  line-height:1.3;
}

h3 {
  font-size:16px;
  letter-spacing:-.025em;
}

#shell {
  min-height:100vh;
}

#side {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--side);
  background:#fdfdfe;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  z-index:5;
}

.brand {
  display:flex;
  gap:10px;
  align-items:center;
  padding:0 24px;
  height:72px;
  flex-shrink:0;
  font-size:24px;
  letter-spacing:-1.4px;
  font-weight:720;
}

.brandmark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2.3px;
  width:34px;
  height:34px;
  background:linear-gradient(145deg,#6c64f2,#494bcf);
  border:1px solid #5b57db;
  border-radius:10px;
  box-shadow:inset 0 1px 2px #ffffff32;
}

.brandmark i {
  height:10px;
  width:2.4px;
  border-radius:2px;
  background:white;
}

.brandmark i:nth-child(2) {
  height:17px;
}

.brandmark i:nth-child(3) {
  height:24px;
}

.brandmark i:nth-child(4) {
  height:15px;
}

.sidebody {
  padding:29px 14px;
  overflow-y:auto;
}

.navlabel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  margin:0 0 12px;
  color:#74798a;
  font-size:10px;
  font-weight:670;
  letter-spacing:.125em;
  text-transform:uppercase;
}

.navlabel.sublabel {
  margin-top:32px;
  margin-bottom:6px;
}

.sublabel .icon {
  color:#777d8c;
  padding:4px;
}

.sublabel .icon svg {
  width:15px;
  height:15px;
}

nav {
  display:grid;
  gap:4px;
}

.navitem {
  justify-content:flex-start;
  width:100%;
  min-height:39px;
  border-radius:7px;
  font-size:13px;
  color:#555c6c;
  gap:11px;
  padding:9px 12px;
  text-align:left;
  font-weight:500;
  overflow-wrap:anywhere;
}

.navitem:hover {
  background:#f3f4f8;
}

.navitem.active {
  background:#eeedfc;
  color:#534cce;
  font-weight:630;
}

nav .subject-dot {
  width:9px;
  height:9px;
  border-radius:3px;
  margin:0 4.5px;
  background:#a894dc;
}

.subject-dot.math {
  background:#67b6a1;
}

.subject-dot.chem {
  background:#78aadd;
}

.subject-dot.other {
  background:#c99a63;
}

.sidefoot {
  margin-top:auto;
  padding:14px 14px 23px;
}

.storage {
  margin:14px 4px 0;
  padding:14px 11px 2px;
  border-top:1px solid var(--line);
}

.storage strong {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:570;
}

.storage small {
  font-size:10.5px;
  color:#7b8190;
}

.meter {
  margin:12px 0 6px;
  background:#e9eaf2;
  border-radius:10px;
  height:4px;
  overflow:hidden;
}

.meter i {
  display:block;
  background:#7775e5;
  height:100%;
}

#main {
  margin-left:var(--side);
  min-width:0;
}

#top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:65px;
  border-bottom:1px solid var(--line);
  padding:0 clamp(24px,3vw,46px);
  background:#fff;
}

.crumb,.topright,.local-status,.date {
  display:flex;
  align-items:center;
}

.crumb {
  gap:11px;
  font-size:12px;
  color:#73798a;
}

.crumb>svg:first-of-type {
  color:#8b91a1;
}

.crumb strong {
  color:#484d5d;
  font-weight:530;
}

.topright {
  gap:18px;
}

.local-status {
  gap:7px;
  font-size:11px;
  letter-spacing:.005em;
  color:#59656a;
}

.local-status i,.rec-status i {
  height:6px;
  width:6px;
  border-radius:100%;
  background:#55b897;
}

.install {
  padding:6px 10px;
  min-height:31px;
  font-size:11.5px;
}

.install svg {
  width:14px;
}

.mobile-menu,.mobile-close,#shade {
  display:none;
}

#view {
  max-width:1510px;
  margin:0 auto;
  padding:34px clamp(24px,3vw,46px) 46px;
}

.page-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:24px;
}

.page-head p {
  color:var(--muted);
  font-size:14px;
  margin-top:9px;
  line-height:1.55;
}

.date {
  gap:7px;
  color:#717788;
  font-size:12px;
  white-space:nowrap;
}

.card,.rec-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r);
  box-shadow:0 2px 4px #25263404;
}

.studio-grid {
  display:grid;
  grid-template-columns:minmax(0,1.58fr) minmax(255px,1fr);
  gap:18px;
  align-items:stretch;
}

.rec-card {
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.deck {
  position:relative;
  background:radial-gradient(ellipse at 69% 105%,#1a2b41 0%,transparent 50%),radial-gradient(ellipse at 25% 61%,#26263d 0%,transparent 62%),#171b29;
  min-height:219px;
  flex:1;
  display:flex;
  flex-direction:column;
  color:white;
}

.deckhead,.signal-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.deckhead {
  padding:18px 20px 0;
}

.deckhead h2 {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:15px;
  font-weight:570;
  letter-spacing:-.018em;
}

.deckhead h2 svg {
  color:#afacff;
}

.rec-status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#263333;
  border:1px solid #42504e;
  border-radius:16px;
  padding:4px 8px;
  color:#b4ddcf;
  font-size:10px;
  font-weight:520;
}

.rec-status.recording {
  color:#ffd7d6;
  background:#472e38;
  border-color:#754852;
}

.rec-status.recording i {
  background:#ff8985;
  animation:beat 1.5s ease infinite;
}

.rec-status.paused i {
  background:#e4be72;
}

.timer-area {
  padding:18px 0 10px;
  text-align:center;
}

.timer-area small,.signal-bottom {
  font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

.timer-area small {
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.19em;
  color:#a7acbf;
}

.timer-area #digits {
  font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-variant-numeric:tabular-nums;
  line-height:1.08;
  font-size:clamp(36px,3.6vw,58px);
  font-weight:450;
  letter-spacing:-.055em;
  color:#f8f8fc;
  margin-bottom:5px;
}

.signal {
  margin:0 20px;
  min-height:74px;
  flex:1;
  position:relative;
}

.signal:after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,#1a1d2a44,transparent 8%,transparent 93%,#1a1d2a44);
}

#wave {
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
}

.signal-bottom {
  padding:6px 20px 13px;
  text-transform:uppercase;
  color:#989fb5;
  letter-spacing:.1em;
  font-size:8.5px;
}

.signal-bottom span:first-child {
  display:flex;
  align-items:center;
  gap:6px;
}

.transport {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:17px 15px;
}

.transport .primary {
  padding-left:18px;
  padding-right:18px;
}

.transport svg {
  width:16px;
}

.transport #stop svg {
  fill:currentColor;
  stroke-width:0;
  width:14px;
}

.wake {
  border-top:1px solid #ececf2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 20px;
  color:#5e6675;
  font-size:11.5px;
  min-height:39px;
}

.wake>span {
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.switch {
  position:relative;
  background:#adb2c0;
  width:28px;
  height:16px;
  border-radius:20px;
  transition:background .15s;
}

.switch:before {
  content:"";
  position:absolute;
  inset:2.5px auto 2.5px 3px;
  background:#fff;
  width:11px;
  border-radius:50%;
  transition:transform .15s;
}

.switch.on {
  background:var(--accent);
}

.switch.on:before {
  transform:translateX(11px);
}

.setup {
  padding:18px 20px;
  display:flex;
  flex-direction:column;
}

.panelhead {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:16px;
}

.panelhead h2 {
  font-size:16px;
  letter-spacing:-.025em;
}

.titleicon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#677082;
}

.setup label,dialog label,.label-line {
  font-size:11.5px;
  font-weight:600;
  color:#484d5d;
}

.setup>label,.label-line,dialog label {
  display:block;
}

.setup input,.selectwrap select,dialog input,dialog select,.filterbar select,.player select {
  display:block;
  width:100%;
  border:1px solid #dfe1e9;
  border-radius:7px;
  background:#fff;
  color:#363c4c;
  padding:9px 10px;
  line-height:1.2;
  font-size:12px;
  font-weight:450;
}

.setup input {
  margin-top:6px;
}

.setup input::placeholder {
  color:#8a8e9b;
}

.label-line {
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.tiny {
  font-size:10px;
  color:#736ec3;
  font-weight:560;
}

.selectwrap {
  position:relative;
  margin-top:5px;
}

.selectwrap select,.player select,.filterbar select,dialog select {
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8190' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position:right 9px center;
  background-repeat:no-repeat;
  padding-right:30px;
}

.selectwrap select {
  padding-left:33px;
}

.selectwrap>svg {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  left:11px;
  color:#828897;
}

.uploadbox {
  display:flex;
  text-align:left;
  align-items:center;
  gap:10px;
  width:100%;
  margin-top:15px;
  padding:10px 12px;
  background:#fafafd;
  border:1px dashed #cdd0df;
  border-radius:8px;
}

.uploadbox:hover,.uploadbox.drag {
  background:#f0effe;
  border-color:#8c88de;
}

.uploadbox>svg:last-child {
  margin-left:auto;
  color:#8990a0;
}

.clip-icon {
  display:grid;
  place-items:center;
  color:#787c91;
}

.uploadbox strong {
  display:block;
  color:#4b5062;
  font-size:11.5px;
  font-weight:600;
}

.uploadbox small {
  display:block;
  color:#7d8292;
  font-size:10px;
  margin-top:3px;
}

.uploadbox i,.folder-text i,.rowmain i {
  font-style:normal;
  margin:0 2px;
}

.collection {
  margin-top:27px;
}

.sectionhead {
  margin-bottom:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.sectionhead h2 {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:20px;
}

.sectionhead h2 small {
  border:1px solid #dcdeea;
  background:#eef0f5;
  color:#6f7686;
  min-width:21px;
  height:21px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border-radius:6px;
  font-size:11px;
  letter-spacing:0;
}

.cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
}

.subjectcard {
  position:relative;
  min-width:0;
  border:1px solid var(--card-border);
  background-color:var(--card-bg);
  background-image:var(--art);
  background-size:auto 100%;
  background-position:right center;
  background-repeat:no-repeat;
  border-radius:11px;
  min-height:133px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  justify-content:space-between;
  padding:16px 16px 15px;
  overflow:hidden;
  transition:transform .17s,box-shadow .17s;
}

.subjectcard:before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,var(--card-bg),transparent 75%);
  pointer-events:none;
}

.subjectcard:hover {
  transform:translateY(-2px);
  box-shadow:0 5px 12px #37385b0d;
}

.physics {
  --card-bg:#efebfc;
  --card-border:#dbd4ef;
  --swatch:#735ab1;
  --art:url('./assets/physics.png');
}

.math {
  --card-bg:#e5f3ed;
  --card-border:#cde4d8;
  --swatch:#43826e;
  --art:url('./assets/math.png');
}

.chem {
  --card-bg:#e7effc;
  --card-border:#d2e0f2;
  --swatch:#4b78a9;
  --art:url('./assets/chem.png');
}

.other {
  --card-bg:#f6eee3;
  --card-border:#e6d9c6;
  --swatch:#9b7851;
  --art:url('./assets/other.png');
}

.folder-top,.folder-text,.folder-open {
  position:relative;
  z-index:1;
}

.folder-top {
  display:grid;
  place-items:center;
  color:var(--swatch);
  background:#ffffff75;
  border:1px solid var(--card-border);
  width:33px;
  height:29px;
  border-radius:7px;
}

.folder-text {
  display:grid;
  gap:4px;
}

.folder-text strong {
  letter-spacing:-.035em;
  font-size:19px;
  line-height:1.2;
  font-weight:640;
  overflow-wrap:anywhere;
}

.folder-text small {
  color:#545f70;
  font-size:10.5px;
}

.folder-open {
  position:absolute;
  top:13px;
  right:13px;
  color:var(--swatch);
  opacity:0;
}

.subjectcard:hover .folder-open,.subjectcard:focus-visible .folder-open {
  opacity:1;
}

.empty,.rows {
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
}

.empty {
  padding:21px 23px;
  display:flex;
  gap:13px;
  align-items:center;
}

.empty-icon,.roundicon {
  width:38px;
  height:38px;
  border-radius:10px;
  display:grid;
  place-items:center;
  flex-shrink:0;
}

.empty-icon {
  background:#f0f1f7;
  color:#777f96;
}

.empty strong,.rowmain strong {
  font-size:13px;
  font-weight:600;
}

.empty p {
  font-size:12px;
  color:var(--muted);
  margin-top:5px;
  line-height:1.5;
}

.rows {
  overflow:hidden;
}

.lecture-row {
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  padding:15px 18px;
  text-align:left;
  border-bottom:1px solid var(--line);
}

.lecture-row:last-child {
  border-bottom:0;
}

.lecture-row:hover {
  background:#fafaff;
}

.roundicon {
  background:var(--card-bg);
  color:var(--swatch);
}

.rowmain {
  display:grid;
  gap:5px;
  flex:1;
  min-width:0;
}

.rowmain strong {
  overflow-wrap:anywhere;
}

.rowmain small,.rowtime {
  color:var(--muted);
  font-size:11px;
}

.rowtime {
  display:flex;
  align-items:center;
  gap:4px;
}

.note-status {
  font-size:10px;
  padding:4px 7px;
  border-radius:5px;
  background:#f0f1f6;
  color:#616777;
}

.note-status.done {
  color:#316b54;
  background:#e6f3eb;
}

.filterbar {
  display:flex;
  gap:10px;
  margin:0 0 18px;
}

.search {
  flex:1;
  display:flex;
  gap:8px;
  align-items:center;
  padding:0 12px;
  background:white;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--muted);
}

.search input {
  width:100%;
  padding:10px 0;
  border:0;
  background:transparent;
  color:var(--text);
  outline:none;
}

.filterbar select {
  width:auto;
  min-width:140px;
}

.chapter,.playback,.details {
  padding:22px;
  margin-bottom:18px;
}

.chapter-head,.chapter-head>div,.player,.note-tools,.jobline,.chapter-head h2 {
  display:flex;
  align-items:center;
  gap:12px;
}

.chapter-head {
  justify-content:space-between;
  margin-bottom:18px;
}

.chapter-head small {
  font-size:11px;
  color:var(--muted);
  margin-bottom:3px;
  display:block;
}

.chapter>.text-link {
  margin-top:12px;
}

.back {
  margin-bottom:12px;
}

.player audio {
  width:100%;
  min-width:80px;
  height:40px;
}

.player select {
  max-width:130px;
}

.playback .panelhead small {
  margin-left:auto;
  color:var(--muted);
  font-family:ui-monospace,monospace;
}

.tabs {
  display:flex;
  gap:20px;
  border-bottom:1px solid var(--line);
  margin-bottom:17px;
}

.tab {
  font-size:12px;
  min-height:37px;
  color:var(--muted);
  padding:4px 0 11px;
  border-bottom:2px solid transparent;
  font-weight:600;
}

.tab.selected {
  color:var(--accent);
  border-color:var(--accent);
}

.note-tools {
  margin:0 0 16px;
  flex-wrap:wrap;
}

.note-tools .icon {
  margin-left:auto;
}

.details .empty {
  border:0;
  background:#f7f8fb;
}

.details .uploadbox {
  margin:0 0 14px;
  max-width:450px;
}

.jobline {
  justify-content:space-between;
  padding:12px;
  border-radius:8px;
  background:#f0effc;
  color:var(--accent);
  margin:10px 0;
}

.dangerzone {
  text-align:right;
}

.note-body {
  max-width:850px;
  line-height:1.7;
  overflow-wrap:anywhere;
}

.note-body h3 {
  margin:23px 0 10px;
  font-size:19px;
}

.note-body h4 {
  margin:12px 0 4px;
}

.note-body p,.note-body .bullet {
  margin:5px 0;
}

.bullet {
  padding-left:16px;
  position:relative;
}

.bullet:before {
  content:'•';
  position:absolute;
  left:0;
  color:var(--accent);
}

.note-body small,.note-body figcaption {
  color:var(--muted);
  font-size:11px;
}

.note-body figure {
  margin:14px 0;
}

.note-body img,.preview-img {
  max-width:100%;
  max-height:60vh;
  border-radius:8px;
  object-fit:contain;
}

.transcript {
  line-height:1.75;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.file-row {
  display:flex;
  align-items:center;
  gap:6px;
  color:#727988;
  margin:8px 0;
  font-size:11px;
}

.file-row .text-link {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  display:block;
  max-width:80%;
  text-align:left;
}

.file-row small {
  margin-left:auto;
  white-space:nowrap;
}

.file-row .icon {
  color:#955863;
}

.file-row .icon svg {
  width:14px;
}

.muted,.hint {
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}

dialog {
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px 24px 20px;
  width:min(450px,calc(100% - 28px));
  max-height:88dvh;
  color:var(--text);
  box-shadow:0 24px 90px #161a3640;
}

dialog::backdrop {
  background:#1b1e3480;
}

.modalhead,.modalfoot {
  display:flex;
  align-items:center;
  gap:10px;
}

.modalhead {
  justify-content:space-between;
  margin-bottom:18px;
}

.modalhead h2 {
  font-size:21px;
  overflow-wrap:anywhere;
}

.modalfoot {
  justify-content:flex-end;
  margin-top:22px;
}

dialog label {
  margin:14px 0 0;
}

dialog input,dialog select {
  margin-top:6px;
  font-size:14px;
  padding:11px;
}

dialog p {
  font-size:13px;
  line-height:1.65;
  color:#626a7b;
  margin:10px 0;
}

dialog h3 {
  margin:17px 0 5px;
}

dialog details {
  margin:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:14px 0;
}

dialog summary {
  cursor:pointer;
  font-size:13px;
  font-weight:600;
}

dialog .form-error {
  color:#a32738;
  margin-bottom:0;
}

.form-error:empty {
  display:none;
}

#toast {
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translate(-50%,10px);
  z-index:12;
  background:#232638;
  color:#fff;
  padding:12px 18px;
  line-height:1.5;
  font-size:12px;
  border-radius:9px;
  box-shadow:0 8px 24px #12162b22;
  max-width:min(560px,92vw);
  width:max-content;
  pointer-events:none;
  opacity:0;
  transition:.18s;
}

#toast.show {
  opacity:1;
  transform:translate(-50%,0);
}

.failure {
  padding:24px;
}

@keyframes beat {
  50% {
    opacity:.4;
  }
}

@media(min-width:1500px) {
  :root {
    --side:245px;
  }
  .subjectcard {
    min-height:152px;
  }
  .signal {
    min-height:92px;
  }
  .deckhead {
    padding:22px 24px 0;
  }
  .setup {
    padding:22px 24px;
  }
}

@media(max-width:1130px) {
  :root {
    --side:190px;
  }
  .brand {
    padding:0 18px;
  }
  .sidebody {
    padding-left:10px;
    padding-right:10px;
  }
  #view {
    padding:27px 23px 35px;
  }
  #top {
    padding:0 23px;
  }
  .studio-grid {
    grid-template-columns:minmax(0,1.4fr) minmax(235px,1fr);
    gap:13px;
  }
  .setup {
    padding:17px 15px;
  }
  .subjectcard {
    padding:14px 12px;
    min-height:119px;
    background-position:calc(100% + 25px) center;
  }
  .transport {
    gap:6px;
  }
  .transport .btn {
    padding:9px 11px;
    font-size:12px;
  }
  .date {
    display:none;
  }
}

@media(max-width:900px) {
  :root {
    --side:0px;
  }
  #side {
    width:225px;
    transform:translateX(-100%);
    transition:transform .2s;
    z-index:10;
  }
  .mobile-menu,.mobile-close {
    display:inline-flex;
  }
  .mobile-close {
    margin-left:auto;
  }
  .menu-open #side {
    transform:none;
  }
  .menu-open #shade {
    display:block;
    position:fixed;
    inset:0;
    background:#181c38aa;
    z-index:9;
  }
  #top {
    height:54px;
  }
  .crumb>svg:first-of-type {
    display:none;
  }
  .crumb {
    gap:8px;
  }
  .page-head {
    margin-bottom:19px;
  }
  .sidebody {
    padding-top:17px;
  }
}

@media(max-width:620px) {
  #view {
    padding:23px 16px 30px;
  }
  #top {
    padding:0 13px;
  }
  .local-status {
    display:none;
  }
  .topright {
    gap:5px;
  }
  .crumb {
    font-size:11px;
  }
  .studio-grid {
    grid-template-columns:1fr;
    gap:13px;
  }
  .timer-area #digits {
    font-size:47px;
  }
  .deck {
    min-height:214px;
  }
  .signal {
    min-height:63px;
  }
  .timer-area {
    padding:14px 0 8px;
  }
  .transport {
    padding:13px 10px;
  }
  .transport .btn {
    min-height:41px;
    padding:10px 15px;
  }
  .setup {
    padding:16px;
  }
  .panelhead {
    margin-bottom:12px;
  }
  .cards {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .subjectcard {
    min-height:112px;
    background-position:calc(100% + 35px) center;
  }
  .folder-text strong {
    font-size:17px;
  }
  .folder-text small {
    font-size:10px;
  }
  .collection {
    margin-top:22px;
  }
  .page-head {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .page-head p {
    font-size:13px;
  }
  .sectionhead h2 {
    font-size:19px;
  }
  .rowtime,.note-status {
    display:none;
  }
  .lecture-row {
    padding:13px;
    gap:10px;
  }
  .chapter,.playback,.details {
    padding:15px;
  }
  .filterbar {
    flex-wrap:wrap;
  }
  .filterbar select {
    min-width:110px;
    flex:0;
  }
  .search {
    min-width:160px;
  }
  .chapter-head {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .player {
    flex-wrap:wrap;
  }
  .player audio {
    flex:1 1 100%;
  }
  .tabs {
    gap:14px;
  }
  .tab {
    font-size:11.5px;
  }
  .folder-top {
    width:29px;
    height:25px;
  }
  .folder-top svg {
    width:16px;
  }
}

@media(max-width:355px) {
  .transport .btn {
    padding:8px 10px;
  }
  .cards {
    grid-template-columns:1fr;
  }
  .subjectcard {
    min-height:100px;
    background-position:right center;
  }
  .crumb>span,.crumb>svg {
    display:none;
  }
}

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

