/* GENERATED by scripts/showcase/scope-app-css.mjs from apps/desktop/src/styles.css. Do not edit. */
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px #cd8b7419;
    opacity: 0.55;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cassette-reel {
  to {
    transform: rotate(360deg);
  }
}
.cs{
& {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #282e28;
  background: #f7f7f2;
  font-synthesis: none;
  --ink: #283029;
  --muted: #868980;
  --green: #4d6348;
  --line: #e5e6de;
  --serif: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}
& {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button,
a,
input,
select {
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #607652;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

input,
select {
  color: var(--ink);
}

input::placeholder {
  color: #a2a398;
}

button {
  transition:
    background 0.15s,
    transform 0.15s;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #f0f1e9;
  border-right: 1px solid #e2e4d9;
  padding: 33px 20px 18px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1.4px;
  text-decoration: none;
  margin: 0 8px 43px;
}

.brand-period {
  color: #6c825b;
}

.brand-mark {
  width: 34px;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 2px solid #51664c;
  border-radius: 5px;
  position: relative;
  justify-content: center;
  transform: rotate(-3deg);
}

.brand-mark span {
  width: 9px;
  height: 9px;
  border: 2px solid #51664c;
  border-radius: 50%;
}

.brand-mark:after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 19px;
  height: 3px;
  border: 1px solid #51664c;
  border-radius: 2px;
}

.workspace-label,
.tag-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #8b8f7e;
  margin: 0 12px 13px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  margin: 3px 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6d7264;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
}

.nav-item span {
  margin-left: auto;
  font-size: 10px;
  color: #949a88;
}

.nav-item.selected {
  background: #dfe5d4;
  color: #425439;
}

.nav-item.selected span {
  color: #6b7c5b;
}

.nav-item:hover {
  background: #e5e8dc;
}

.tag-heading {
  margin-top: 37px;
  display: flex;
  justify-content: space-between;
}

.tag-heading span {
  letter-spacing: 0;
}

.tag-nav {
  max-height: 24vh;
  overflow: auto;
}

.tag-nav p {
  font-size: 11px;
  line-height: 1.8;
  color: #929786;
  margin: 10px 13px;
}

.tag-link {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  padding: 10px 14px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #757e68;
}

.tag-link svg {
  margin-left: auto;
  opacity: 0.5;
}

.tag-link.selected {
  background: #e0e6d7;
  border-radius: 7px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #abb29a;
}

.tag-link:nth-child(3n) .tag-dot {
  background: #beab88;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}

.local-card {
  background: #e8ebe0;
  border: 1px solid #dfe3d4;
  border-radius: 10px;
  padding: 19px 16px;
  margin: 0 3px 16px;
}

.local-symbol {
  display: block;
  color: #789267;
  margin-bottom: 11px;
}

.local-card strong {
  font-size: 11px;
  font-weight: 600;
}

.local-card p {
  font-size: 10px;
  line-height: 1.8;
  color: #8a917f;
  margin: 8px 0 15px;
}

.local-status {
  font-size: 9px;
  color: #6a7c5d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.local-status i,
.private-pill > span {
  width: 5px;
  height: 5px;
  background: #789068;
  border-radius: 50%;
}

.settings-link {
  font-size: 11px;
}

.main {
  margin-left: 236px;
  flex: 1;
  min-width: 0;
}

.topbar {
  height: 73px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: #a0a194;
}

.crumb span {
  color: #6e7567;
}

.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.private-pill {
  font-size: 10px;
  color: #808a74;
  display: flex;
  align-items: center;
  gap: 7px;
}

.avatar {
  border: 1px solid #dedfd4;
  background: #eeefe6;
  color: #7d866e;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
}

.preview-pill {
  font-size: 9px;
  border: 1px solid #dce1d4;
  border-radius: 5px;
  padding: 4px 7px;
  color: #8b927e;
}

.library-page,
.editor-page {
  max-width: 1450px;
  margin: auto;
  padding: 39px 42px 22px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #8b927e;
  margin-bottom: 12px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -1.4px;
  margin: 0;
  line-height: 1.15;
}

.heading-dot {
  color: #7d9066;
}

.page-heading p {
  font-size: 12px;
  color: #919486;
  margin: 12px 0 0;
}

.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 550;
  min-height: 39px;
  white-space: nowrap;
}

.button.primary {
  background: #4b6146;
  color: #fff;
}

.button.primary:hover {
  background: #3d5239;
}

.button.secondary {
  background: #fbfbf6;
  border-color: #dedfd5;
  color: #6b7362;
}

.button.secondary:hover {
  background: #edeee5;
}

.record-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8e5c8;
  box-shadow: 0 0 0 3px #ffffff12;
}

.library-banner {
  height: 240px;
  background: #e9ecdf;
  border: 1px solid #dfe4d4;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 31px 35px;
  margin-bottom: 29px;
}

.library-banner:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.15' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.library-banner > div {
  position: relative;
  z-index: 1;
}

.banner-caption {
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #859475;
}

.library-banner h2 {
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.8px;
  color: #455b3e;
  margin: 13px 0;
}

.library-banner p {
  color: #919b84;
  font-size: 11px;
  margin: 0;
}

.library-banner button {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 19px;
  font-size: 10px;
  color: #576d4b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tape-illustration {
  width: 370px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tape {
  width: 288px;
  height: 178px;
  background: #bcc5a5;
  border-radius: 11px;
  transform: rotate(-9deg);
  box-shadow:
    5px 15px 20px #52654420,
    inset 0 0 0 1px #8d9b75,
    inset 0 0 0 4px #c5cbb2;
  position: relative;
  padding: 13px 18px;
}

.tape-label {
  height: 129px;
  background: #f0f0dc;
  border-radius: 5px;
  border: 1px solid #a8b38e;
  padding: 11px 12px 5px;
  position: relative;
  overflow: hidden;
}

.tape-brand {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: #6c7a55;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tape-brand span {
  font-family: monospace;
  font-style: normal;
  font-size: 5px;
  letter-spacing: 1px;
}

.tape-lines {
  height: 11px;
  background: repeating-linear-gradient(
    0deg,
    #a6b490 0px,
    #a6b490 2px,
    transparent 2px,
    transparent 4px
  );
  margin: 9px -12px 0;
}

.tape-window {
  height: 46px;
  background: #9ca58c;
  border: 3px solid #bac3a5;
  box-shadow: inset 0 2px 4px #4b5a4830;
  position: relative;
  margin: 0 12px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.reel {
  width: 34px;
  height: 34px;
  background: #eceddd;
  border: 8px solid #d5dac4;
  outline: 1px solid #768864;
  border-radius: 50%;
  position: relative;
}

.reel:after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px dotted #768562;
  border-radius: 50%;
}

.tape-center {
  width: 54px;
  height: 21px;
  background: linear-gradient(
    #576149 10%,
    #9b9174 11%,
    #776f58 88%,
    #576149 89%
  );
  border: 3px solid #aeb79a;
  border-radius: 2px;
}

.tape-caption {
  text-align: center;
  font-family: monospace;
  font-size: 5px;
  letter-spacing: 2px;
  color: #8a9478;
  padding-top: 8px;
}

.tape-foot {
  position: absolute;
  bottom: 4px;
  left: 66px;
  right: 66px;
  height: 23px;
  border: 1px solid #a3af8b;
  border-radius: 12px 12px 0 0;
  background: #c3cbae;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.tape-foot i {
  height: 6px;
  width: 6px;
  background: #748462;
  border: 1px solid #e0e4d1;
  border-radius: 50%;
}

.tape-foot span {
  height: 8px;
  width: 45px;
  border: 1px solid #92a078;
  border-radius: 3px;
}

.tape-screw {
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid #85956b;
  border-radius: 50%;
}

.tape-screw.a {
  top: 5px;
  left: 5px;
}

.tape-screw.b {
  top: 5px;
  right: 5px;
}

.tape-screw.c {
  bottom: 5px;
  left: 5px;
}

.tape-screw.d {
  bottom: 5px;
  right: 5px;
}

.tape-note {
  position: absolute;
  bottom: -10px;
  right: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: #859174;
  transform: rotate(-5deg);
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}

.filter-tabs {
  display: flex;
  gap: 24px;
  align-self: stretch;
}

.filter-tabs button {
  padding: 15px 0 17px;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #939688;
  position: relative;
  white-space: nowrap;
}

.filter-tabs button.active {
  color: #53624c;
}

.filter-tabs button.active:after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: #607454;
}

.filter-tabs span {
  margin-left: 5px;
  font-size: 9px;
  background: #e9ecdf;
  border-radius: 4px;
  padding: 2px 5px;
  color: #7b896d;
}

.list-tools {
  display: flex;
  align-items: center;
  gap: 17px;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fbfbf6;
  padding: 7px 10px;
  border-radius: 6px;
  color: #a1a793;
}

.search input {
  width: 137px;
  border: 0;
  background: none;
  outline: none;
  font-size: 10px;
}

.search button {
  border: 0;
  background: none;
  padding: 0;
  height: 13px;
  color: #909a85;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8c927f;
}

.sort-control select {
  font-size: 10px;
  border: 0;
  background: none;
  color: #828875;
  width: 91px;
  outline: none;
}

.list-header {
  display: grid;
  grid-template-columns: 1fr 26% 13% 12% 25px;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #9da18f;
  padding: 19px 15px 12px;
}

.asset-row {
  display: grid;
  grid-template-columns: 45px 1fr 26% 13% 12% 25px;
  align-items: center;
  gap: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 19px 15px;
  text-align: left;
}

.asset-row:hover {
  background: #eeefe7;
  border-radius: 8px;
}

.asset-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  background: #e8ecdf;
  color: #7f9270;
  border-radius: 7px;
}

.hue-1 {
  background: #ece9df;
  color: #a29a7e;
}

.hue-2 {
  background: #e4e9e8;
  color: #819592;
}

.hue-3 {
  background: #e9e4de;
  color: #a19282;
}

.asset-description {
  padding-left: 11px;
  min-width: 0;
  padding-right: 10px;
}

.asset-description > strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 7px;
}

.asset-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #9aa08e;
  white-space: nowrap;
  overflow: hidden;
}

.tiny-tag {
  display: inline-block;
  font-size: 8px;
  padding: 3px 6px;
  background: #eceee4;
  color: #849174;
  border: 1px solid #e2e6d7;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1;
}

.asset-meta .tiny-tag {
  font-size: 7px;
  padding: 3px 5px;
}

.edited-label {
  font-size: 8px;
  color: #95a280;
}

.row-wave {
  color: #9bad88;
  padding-right: 26px;
}

.hue-text-1 {
  color: #b5ac8b;
}

.hue-text-2 {
  color: #9dafab;
}

.hue-text-3 {
  color: #b1a190;
}

.mini-wave {
  display: block;
  width: 100%;
  height: 34px;
}

.row-duration {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #7d8470;
}

.row-date {
  font-size: 10px;
  color: #9da28f;
}

.row-open {
  color: #9ea78f;
  opacity: 0;
  transition: opacity 0.2s;
}

.asset-row:hover .row-open {
  opacity: 1;
}

.empty-state {
  min-height: 214px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 22px;
}

.empty-icon {
  border: 1px solid #dee3d3;
  background: #eef0e6;
  color: #8f9d7d;
  border-radius: 12px;
  height: 51px;
  width: 51px;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 14px;
  transform: rotate(-5deg);
}

.empty-icon > span {
  background: #69815a;
  color: white;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #f7f7f2;
  position: absolute;
  right: -5px;
  bottom: -4px;
}

.empty-state h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.3px;
  font-size: 21px;
  margin: 0 0 9px;
}

.empty-state p {
  font-size: 11px;
  color: #9a9e8e;
  max-width: 360px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.text-button {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: none;
  padding: 5px 0;
  color: #758768;
}

.text-button:hover {
  color: #3f5937;
}

.library-footer {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #a0a693;
}

.library-footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.library-footer i {
  width: 2px;
  height: 2px;
  background: #b3b6a6;
  border-radius: 50%;
  margin: 0 2px;
}

.icon-button {
  height: 31px;
  width: 31px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: #929a85;
  padding: 0;
}

.icon-button:hover {
  background: #e9eddf;
}

.back-link {
  font-size: 10px;
  color: #8b957e;
  display: flex;
  gap: 7px;
  align-items: center;
  border: 0;
  padding: 0;
  background: none;
  margin-bottom: 23px;
}

.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.editor-title {
  display: flex;
  gap: 14px;
  align-items: center;
}

.editor-title h1 {
  font-size: 32px;
  overflow-wrap: anywhere;
}

.editor-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #9ca18f;
  margin-top: 12px;
  flex-wrap: wrap;
}

.editor-meta i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #b8bdac;
}

.editor-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fbfcf7;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 23px;
  border-bottom: 1px solid #eef0e7;
}

.transport-left,
.transport-right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.play-button {
  width: 43px;
  height: 43px;
  border: 0;
  border-radius: 50%;
  background: #4e6648;
  display: grid;
  place-items: center;
  color: white;
}

.play-time {
  font-family: monospace;
  font-size: 15px;
  color: #53614b;
  margin-left: 5px;
}

.play-time > span {
  color: #a1a897;
  font-size: 11px;
  margin-left: 8px;
}

.speed-select {
  border: 1px solid #e1e6d8;
  background: #f6f8f0;
  border-radius: 5px;
  font-size: 11px;
  color: #7b876e;
  padding: 5px;
}

.saved-status {
  font-size: 9px;
  color: #96a186;
  display: flex;
  gap: 5px;
  align-items: center;
  margin-right: 7px;
}

.waveform-container {
  padding: 25px 25px 29px;
}

.waveform-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a0a794;
  font-family: monospace;
  margin-bottom: 18px;
}

.waveform {
  position: relative;
  height: 180px;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
}

.waveform svg {
  height: 100%;
  width: 100%;
}

.wave-selection {
  position: absolute;
  inset: 0 auto 0 auto;
  background: #7796621c;
  border-left: 1px solid #779462;
  border-right: 1px solid #779462;
  pointer-events: none;
}

.wave-selection i {
  position: absolute;
  top: 45%;
  width: 4px;
  height: 21px;
  background: #718c5e;
  border-radius: 2px;
}

.wave-selection i:first-child {
  left: -2px;
}

.wave-selection i:last-child {
  right: -2px;
}

.playhead {
  position: absolute;
  top: -9px;
  bottom: -9px;
  width: 1px;
  background: #d39764;
  pointer-events: none;
  z-index: 1;
}

.playhead > i {
  position: absolute;
  top: 0;
  left: -4px;
  width: 9px;
  height: 9px;
  background: #d39764;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%);
}

.split-marker {
  position: absolute;
  inset: 0 auto 0 auto;
  border-left: 1px dashed #9fac8f;
  pointer-events: none;
}

.editor-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid #e9ece2;
}

.editor-controls > div {
  display: flex;
  gap: 6px;
}

.tool-button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  background: none;
  border-radius: 5px;
  font-size: 10px;
  color: #7c896f;
  padding: 8px 9px;
}

.tool-button:not(:disabled):hover,
.tool-button.active {
  background: #e9eddf;
  color: #506b44;
}

.selection-info {
  padding: 13px 25px;
  background: #f2f5ea;
  border-top: 1px solid #e6ebdc;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 49px;
  font-size: 10px;
  color: #96a086;
}

.selection-info > span {
  display: flex;
  gap: 7px;
  align-items: center;
}

.selection-info label {
  display: flex;
  gap: 7px;
  align-items: center;
}

.selection-info input {
  width: 66px;
  font-size: 10px;
  border: 1px solid #dfe5d4;
  border-radius: 4px;
  background: #fafbf7;
  color: #758367;
  padding: 4px;
}

.selection-info strong {
  font-family: monospace;
  font-size: 10px;
  font-weight: 400;
}

.selection-info > .text-button {
  margin-left: auto;
}

.editor-notes {
  margin: 19px 0 38px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 9px;
  color: #a2a995;
  flex-wrap: wrap;
}

.editor-notes span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8b997d;
}

.transcript-section {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbf6;
  overflow: hidden;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9ece2;
  padding: 16px 23px;
}

.section-title > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #919e81;
}

.section-title h2 {
  font-size: 12px;
  font-weight: 550;
  color: #697760;
  margin: 0;
}

.transcript-empty {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 30px 23px;
}

.transcript-symbol {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  border: 1px dashed #d3dbc6;
  border-radius: 9px;
  color: #a4b092;
  flex-shrink: 0;
}

.transcript-empty h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 8px;
  color: #6f7b63;
}

.transcript-empty p {
  font-size: 10px;
  color: #a1a98f;
  margin: 0;
  line-height: 1.6;
}

.transcript-empty .button {
  margin-left: auto;
}

.transcript-toolbar {
  padding: 12px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #9ba58e;
  gap: 10px;
}

.transcript-rows {
  max-height: 360px;
  overflow: auto;
  padding: 0 23px 16px;
}

.transcript-row {
  display: grid;
  grid-template-columns: 45px 90px 1fr;
  gap: 10px;
  padding: 17px 0;
  border-bottom: 1px solid #edf0e5;
  align-items: start;
}

.transcript-row > button {
  font-size: 9px;
  font-family: monospace;
  padding: 3px 0;
  background: none;
  border: 0;
  color: #9ea88f;
}

.speaker-label {
  font-size: 9px;
  color: #768d61;
  padding-top: 3px;
}

.speaker-1 {
  color: #ad967b;
}

.speaker-2 {
  color: #759899;
}

.transcript-row p {
  font-size: 12px;
  line-height: 1.8;
  color: #68765b;
  margin: 0;
}

.delete-recording {
  font-size: 9px;
  border: 0;
  background: none;
  color: #a3a998;
  display: flex;
  gap: 6px;
  margin-top: 20px;
  align-items: center;
  padding: 5px 0;
}

.modal {
  border: 1px solid #dfe4d3;
  border-radius: 14px;
  background: #fafbf5;
  color: var(--ink);
  width: 510px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 40px);
  padding: 0;
  box-shadow: 0 20px 70px #34422b30;
  overflow: auto;
}

.modal.wide {
  width: 590px;
}

.modal::backdrop {
  background: #2b372749;
  backdrop-filter: blur(3px);
}

.modal-heading {
  padding: 27px 27px 23px;
  display: flex;
  align-items: start;
  gap: 15px;
  border-bottom: 1px solid #e7ebdf;
}

.modal-heading > div {
  flex: 1;
}

.modal-heading h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.7px;
  margin: 0;
}

.modal-heading p {
  font-size: 11px;
  color: #96a087;
  line-height: 1.6;
  margin: 9px 0 0;
}

.record-form,
.export-form,
.analysis-form {
  padding: 24px 27px;
}

.record-form {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #7a886b;
}

label > span {
  font-size: 9px;
  color: #a4ae96;
  font-weight: 400;
  margin-left: 6px;
}

label > input:not([type="checkbox"]),
label > select {
  display: block;
  margin-top: 9px;
  border: 1px solid #dfe5d4;
  border-radius: 6px;
  width: 100%;
  padding: 11px 12px;
  background: #fffef9;
  font-size: 12px;
  color: #617056;
}

label > select {
  height: 39px;
}

.input-select {
  display: flex;
  border: 1px solid #dfe5d4;
  background: #fffef9;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 9px;
  align-items: center;
  gap: 10px;
  color: #96a488;
}

.input-select select {
  flex: 1;
  border: 0;
  background: transparent;
  color: #6c7a61;
  font-size: 11px;
  min-width: 0;
}

.level-panel {
  padding: 16px;
  border: 1px solid #e2e8d9;
  background: #f0f4e8;
  border-radius: 7px;
}

.level-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: #a0ac8f;
  gap: 10px;
}

.level-panel > div:first-child > span:first-child {
  letter-spacing: 1.3px;
  color: #8f9c7e;
  font-weight: 600;
}

.meter {
  display: flex;
  gap: 3px;
  margin-top: 13px;
  height: 13px;
}

.meter i {
  flex: 1;
  background: #dfe6d3;
  border-radius: 2px;
}

.meter i.lit {
  background: #8ca777;
}

.meter i.amber {
  background: #c9af66;
}

.meter i.red {
  background: #ce8370;
}

.clipping {
  color: #b8775c;
}

.privacy-note {
  font-size: 9px;
  color: #9fa98f;
  display: flex;
  gap: 7px;
  align-items: center;
  line-height: 1.5;
}

.modal-footer {
  padding: 18px 27px;
  border-top: 1px solid #e7ebdf;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: #f4f6ed;
}

.form-error {
  border: 1px solid #edddca;
  background: #fcf6eb;
  color: #a88b66;
  font-size: 11px;
  border-radius: 6px;
  padding: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.form-error .text-button {
  display: flex;
  color: #978052;
  margin-top: 5px;
}

.recording-clock {
  font-family: monospace;
  font-size: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
  padding: 10px 0;
  color: #536947;
}

.recording-clock small {
  flex-basis: 100%;
  text-align: center;
  font:
    10px Inter,
    "Segoe UI",
    sans-serif;
  color: #94a283;
}

.pulse-dot,
.paused {
  height: 8px;
  width: 8px;
  background: #cd8b74;
  border-radius: 50%;
  display: block;
}

.pulse-dot {
  animation: pulse 1.5s infinite;
}

.paused {
  background: #afa684;
}

.field-heading {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 13px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 25px;
}

.preset-grid button {
  padding: 12px 5px;
  background: #f4f6ed;
  border: 1px solid #e0e6d5;
  border-radius: 7px;
  font-size: 9px;
  color: #95a087;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.preset-grid button.selected {
  border-color: #9eae8f;
  background: #e8efdc;
  color: #5a7745;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-bottom: 18px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 400;
  color: #8b987c;
  line-height: 1.6;
}

.checkbox input {
  accent-color: #637e52;
  height: 13px;
  width: 13px;
  flex-shrink: 0;
  margin: 0;
}

.export-summary {
  border: 1px solid #e2e8d7;
  background: #f0f4e8;
  border-radius: 8px;
  padding: 16px;
  margin: 23px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #99a788;
}

.export-summary > div {
  min-width: 0;
}

.export-summary strong {
  font-size: 11px;
  display: block;
  font-weight: 500;
  color: #718462;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-summary span {
  display: block;
  font-size: 8px;
  margin-top: 5px;
  color: #a0ad90;
}

.export-summary > div:last-child {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.export-form > .privacy-note {
  margin-top: 14px;
}

.export-form > .form-error,
.analysis-form > .form-error {
  margin-top: 16px;
}

.export-progress {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #95a387;
  font-size: 10px;
}

.export-progress progress {
  width: 100%;
  height: 6px;
  accent-color: #728f5d;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.provider-list > button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #e1e7d8;
  background: #f5f7ef;
  border-radius: 7px;
  text-align: left;
}

.provider-list > button.selected {
  background: #eaf0df;
  border-color: #a8b99a;
}

.provider-mark {
  background: #e0e8d3;
  color: #809b69;
  height: 32px;
  width: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 18px;
}

.provider-list strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #768966;
}

.provider-list button > div > span {
  display: block;
  font-size: 9px;
  color: #a0ad90;
  margin-top: 4px;
}

.radio-dot {
  width: 13px;
  height: 13px;
  border: 1px solid #c3ceb5;
  border-radius: 50%;
  margin-left: auto;
}

.selected .radio-dot {
  border: 4px solid #77965f;
  background: #edf2e5;
}

.provider-description {
  font-size: 10px;
  color: #a2ad94;
  margin: 13px 0 20px;
}

.key-input {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fffef9;
  border: 1px solid #dfe5d4;
  border-radius: 6px;
  padding: 10px 11px;
  margin-top: 9px;
  color: #a0ad8f;
}

.key-input input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 11px;
  color: #80956b;
}

.analysis-form > .checkbox {
  margin-top: 12px;
}

.consent-card {
  padding: 17px;
  border: 1px solid #dfe6d4;
  background: #eff4e7;
  border-radius: 8px;
  margin-top: 22px;
}

.consent-card > div {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #8c9f78;
}

.consent-card strong {
  font-size: 11px;
  font-weight: 500;
  color: #778d62;
}

.consent-card p {
  font-size: 10px;
  line-height: 1.8;
  color: #97a787;
  margin: 12px 0;
}

.consent-card p strong {
  font-size: 10px;
}

.settings-content {
  padding: 0 27px;
}

.settings-section {
  padding: 22px 0;
  border-bottom: 1px solid #e5ebda;
}

.settings-section h3 {
  margin: 0 0 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: #7b9268;
}

.settings-section p {
  font-size: 10px;
  color: #9fae8f;
  line-height: 1.8;
  margin: 10px 0;
}

.settings-section code {
  display: block;
  font-size: 10px;
  color: #8a9c77;
  background: #eef3e5;
  border: 1px solid #e0e8d4;
  border-radius: 5px;
  padding: 11px;
  overflow-wrap: anywhere;
}

.settings-section .small {
  font-size: 9px;
}

.dependency-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ae9d78;
  font-size: 11px;
}

.dependency-status.ok {
  color: #87a76c;
}

.credential-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  padding: 10px 0;
  color: #91a27d;
}

.credential-row > span:nth-child(2) {
  margin-left: auto;
  color: #a4b298;
}

.roadmap {
  border: 0;
}

.toast {
  position: fixed;
  left: calc(50% + 90px);
  bottom: 23px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  background: #4d6147;
  color: #f0f5e7;
  padding: 13px 15px;
  border: 1px solid #728c64;
  border-radius: 9px;
  box-shadow: 0 5px 30px #3c502520;
  font-size: 11px;
  line-height: 1.6;
  max-width: 680px;
  width: max-content;
  z-index: 100;
}

.toast > svg {
  flex-shrink: 0;
}

.toast button {
  margin-left: 9px;
  border: 0;
  background: none;
  color: #c4d2b8;
  padding: 0;
  display: grid;
  place-items: center;
}

.loading {
  padding: 75px;
  display: flex;
  gap: 10px;
  justify-content: center;
  color: #97a384;
  font-size: 11px;
}

.spin {
  animation: spin 1.2s linear infinite;
}

.recovery-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 13px 15px;
  background: #eef0df;
  border: 1px solid #dfe4c8;
  border-radius: 7px;
  color: #9aa47d;
  font-size: 11px;
}

.recovery-banner button {
  margin-left: auto;
  border: 0;
  background: none;
  color: #6f8656;
  font-size: 10px;
}

.analysis-progress {
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #dfe8d1;
  background: #eff4e6;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  color: #9bab88;
}

.analysis-progress strong {
  font-size: 11px;
  color: #819c69;
  font-weight: 500;
}

.analysis-progress p {
  font-size: 10px;
  margin: 7px 0 0;
}

.analysis-progress .button {
  margin-left: auto;
}

.danger {
  background: #a87868;
  color: white;
}

.remove-detail {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 30px;
  color: #91a17e;
}

.remove-detail strong {
  font-size: 13px;
  font-weight: 500;
}

@media (min-width: 1500px) {
  .library-banner {
    height: 270px;
  }
  .library-banner h2 {
    font-size: 38px;
  }
  .tape-illustration {
    width: 450px;
  }
  .tape {
    transform: rotate(-9deg) scale(1.15);
  }
  .asset-row {
    padding-top: 25px;
    padding-bottom: 25px;
  }
}

@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .main {
    margin-left: 205px;
  }
  .topbar {
    padding: 0 28px;
  }
  .library-page,
  .editor-page {
    padding-left: 28px;
    padding-right: 28px;
  }
  .heading-actions {
    gap: 7px;
  }
  .button {
    padding: 10px 12px;
  }
  .library-banner {
    padding-left: 28px;
  }
  .tape-illustration {
    width: 300px;
  }
  .tape {
    transform: rotate(-9deg) scale(0.9);
  }
  .tape-note {
    font-size: 12px;
  }
  .list-tools {
    gap: 8px;
  }
  .filter-tabs {
    gap: 17px;
  }
  .search input {
    width: 115px;
  }
  .asset-meta .tiny-tag:nth-of-type(n + 2) {
    display: none;
  }
  .transport-right {
    gap: 3px;
  }
  .editor-controls {
    padding-left: 13px;
    padding-right: 13px;
  }
  .tool-button {
    font-size: 9px;
    padding: 8px;
  }
  .editor-notes {
    gap: 10px;
  }
  .transcript-empty {
    flex-wrap: wrap;
  }
  .transcript-empty .button {
    margin-left: 61px;
  }
  .editor-heading {
    align-items: flex-start;
  }
  .editor-heading .heading-actions {
    padding-top: 44px;
  }
  .editor-title h1 {
    font-size: 27px;
  }
}

@media (max-width: 880px) {
  .sidebar {
    width: 175px;
    padding: 25px 12px;
  }
  .brand {
    font-size: 24px;
    gap: 8px;
    margin-bottom: 35px;
  }
  .brand-mark {
    width: 29px;
    height: 24px;
  }
  .workspace-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .main {
    margin-left: 175px;
  }
  .library-page,
  .editor-page {
    padding: 25px 20px;
  }
  .topbar {
    padding: 0 20px;
    height: 62px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .page-heading .heading-actions {
    margin-top: 5px;
  }
  .library-banner {
    height: 210px;
    padding: 25px;
  }
  .library-banner h2 {
    font-size: 25px;
  }
  .tape-illustration {
    width: 230px;
  }
  .tape {
    transform: rotate(-9deg) scale(0.72);
  }
  .tape-note {
    bottom: 0;
    right: 0;
    font-size: 11px;
  }
  .library-toolbar {
    flex-wrap: wrap;
    padding-bottom: 10px;
  }
  .list-tools {
    width: 100%;
    justify-content: space-between;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
  .sort-control {
    margin-left: 10px;
  }
  .local-card {
    padding: 14px 11px;
  }
  .private-pill {
    display: none;
  }
  .list-header {
    grid-template-columns: 1fr 22% 15% 13% 15px;
  }
  .asset-row {
    grid-template-columns: 36px 1fr 22% 15% 13% 15px;
    padding: 18px 8px;
  }
  .asset-description {
    padding-left: 8px;
  }
  .asset-description > strong {
    font-size: 11px;
  }
  .row-wave {
    padding-right: 10px;
  }
  .row-date {
    font-size: 9px;
  }
  .row-open {
    display: none;
  }
  .nav-item {
    font-size: 11px;
    padding: 11px 10px;
  }
  .nav-item svg {
    width: 16px;
  }
  .toast {
    left: 50%;
    max-width: calc(100vw - 30px);
  }
  .editor-heading {
    flex-wrap: wrap;
  }
  .editor-heading .heading-actions {
    padding-top: 0;
  }
  .saved-status {
    display: none;
  }
  .play-time {
    font-size: 12px;
  }
  .transport {
    padding: 16px 13px;
  }
  .transport-left {
    gap: 7px;
  }
  .editor-notes span:last-child {
    display: none;
  }
  .editor-controls {
    flex-wrap: wrap;
  }
  .selection-info {
    padding: 10px 15px;
    gap: 8px;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .sidebar {
    width: 62px;
    padding: 24px 8px;
  }
  .brand {
    margin: 0 auto 30px;
    justify-content: center;
  }
  .brand > span:last-child,
  .workspace-label,
  .tag-heading,
  .tag-nav,
  .nav-item span,
  .local-card {
    display: none;
  }
  .nav-item {
    font-size: 0;
    justify-content: center;
    padding: 12px;
  }
  .nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .sidebar-bottom .nav-item {
    font-size: 0;
  }
  .main {
    margin-left: 62px;
  }
  .topbar-right .preview-pill {
    display: none;
  }
  .library-banner .tape-illustration {
    display: none;
  }
  .library-banner {
    height: 210px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .list-header {
    grid-template-columns: 1fr 0 20% 17% 0;
  }
  .list-header span:nth-child(2) {
    visibility: hidden;
  }
  .asset-row {
    grid-template-columns: 36px 1fr 0 20% 17% 0;
  }
  .row-wave {
    display: none;
  }
  .asset-meta .tiny-tag {
    display: none;
  }
  .library-footer > span:last-child {
    display: none;
  }
  .editor-title h1 {
    font-size: 25px;
  }
  .tool-button {
    padding: 7px 5px;
  }
  .transcript-empty .button {
    margin-left: 0;
  }
  .transcript-empty {
    gap: 13px;
  }
  .transcript-row {
    grid-template-columns: 40px 1fr;
  }
  .transcript-row p {
    grid-column: 2;
  }
  .transcript-toolbar {
    flex-wrap: wrap;
  }
}


/* Desktop evolution: preserve the original palette and illustration with tool density. */
& {
  --muted: #626b59;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
}

input::placeholder {
  color: #68715f;
}

.sidebar {
  width: 208px;
  padding: 24px 16px 16px;
}

.brand {
  margin-bottom: 28px;
  font-size: 26px;
}

.main {
  margin-left: 208px;
}

.topbar {
  height: 56px;
  padding: 0 24px;
}

.crumb {
  color: #626b59;
  gap: 12px;
}

.crumb span,
.private-pill,
.preview-pill {
  color: #56634e;
}

.topbar-right {
  gap: 12px;
}

.topbar-right .avatar {
  display: none;
}

.library-page,
.editor-page {
  padding: 24px;
}

h1,
.page-heading h1,
.editor-title h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.page-heading,
.editor-heading {
  margin-bottom: 20px;
  gap: 16px;
}

.page-heading p {
  margin-top: 8px;
  color: #626b59;
}

.button {
  min-height: 36px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
}

.button.secondary {
  color: #526048;
}

.library-banner {
  height: 144px;
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.library-banner:before {
  display: none;
}

.library-banner h2 {
  font-size: 25px;
  margin: 0 0 8px;
}

.library-banner p {
  color: #59694f;
  font-size: 12px;
}

.library-banner button {
  margin-top: 16px;
  font-size: 12px;
}

.tape-illustration {
  width: 270px;
  min-width: 220px;
}

.library-banner .tape {
  transform: rotate(-7deg) scale(0.65);
}

.nav-item,
.tag-link {
  color: #536049;
  min-height: 36px;
}

.nav-item {
  padding: 10px 12px;
}

.workspace-label,
.tag-heading,
.tag-nav p {
  color: #626c58;
}

.tag-heading {
  margin-top: 24px;
}

.nav-item span,
.nav-item.selected span {
  color: #59674e;
}

.local-card {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.local-symbol {
  display: none;
}

.local-card p {
  margin: 6px 0 8px;
  color: #626c58;
}

.local-status {
  font-size: 10px;
  color: #526347;
}

.list-header {
  color: #626c58;
  padding-top: 12px;
  padding-bottom: 12px;
}

.asset-row {
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 68px;
}

.asset-meta,
.row-date,
.row-duration,
.library-footer,
.sort-control,
.search {
  color: #626c58;
}

.asset-description > strong {
  font-size: 13px;
}

.filter-tabs button {
  min-height: 36px;
  color: #626c58;
}

.empty-state {
  padding: 32px 16px;
}

.empty-state p,
.editor-meta,
.editor-notes,
.back-link,
.saved-status,
.play-time > span,
.waveform-ticks,
.selection-info {
  color: #626c58;
}

.library-footer {
  padding-top: 16px;
}

.icon-button {
  height: 36px;
  width: 36px;
  color: #5a6b4d;
  flex-shrink: 0;
}

.back-link {
  margin-bottom: 12px;
  min-height: 28px;
}

.editor-meta {
  margin-top: 8px;
}

.transport {
  padding: 12px 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.transport-left,
.transport-right {
  gap: 8px;
  flex-wrap: wrap;
}

.editor-card {
  border-radius: 8px;
}

.waveform-container {
  padding: 20px 20px 16px;
}

.waveform {
  height: 160px;
}

.tool-button {
  color: #53634a;
  min-height: 36px;
}

.editor-notes {
  margin-top: 12px;
}

.modal {
  border-radius: 8px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}

.modal-heading {
  padding: 20px 24px 16px;
}

.modal-heading h2 {
  font-size: 26px;
}

.modal-heading p,
.settings-section p,
.settings-section .small {
  color: #5d6853;
}

.modal-footer {
  padding: 16px 24px;
}

.settings-content {
  padding-top: 0;
}

.settings-section {
  padding-top: 16px;
  padding-bottom: 16px;
}

.record-form label,
.pending-title {
  color: #526048;
  font-size: 12px;
}

.record-form input,
.record-form select,
.pending-title input {
  width: 100%;
  border: 1px solid #cdd4c3;
  background: #fbfcf7;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  min-height: 40px;
}

.recorder-workspace {
  padding: 0 24px 24px;
}

.recorder-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.capture-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.capture-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52724a;
}

.state-recording {
  color: #9b342b;
}

.state-recording i,
.state-error i {
  background: #b54a3e;
}

.state-paused {
  color: #836019;
}

.state-paused i {
  background: #9d741f;
}

.state-error {
  color: #9b342b;
}

.recorder-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 136px;
  overflow: hidden;
}

.recorder-display .tape-illustration {
  width: 220px;
  min-width: 200px;
  height: 130px;
}

.recorder-display .tape {
  transform: rotate(-5deg) scale(0.62);
}

.recording-clock {
  font:
    32px ui-monospace,
    Consolas,
    monospace;
  margin: 0;
  padding: 0;
  letter-spacing: -1px;
  white-space: nowrap;
}

.level-panel {
  margin: 0 0 16px;
  padding: 12px;
  background: #edf0e5;
  border-radius: 6px;
}

.level-panel > div:first-child {
  color: #526147;
  gap: 12px;
}

.level-panel > div:first-child span {
  font-size: 11px;
  letter-spacing: 0;
}

.pending-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.record-location,
.saved-path {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  color: #5c6953;
  font-size: 11px;
}

.record-location > svg {
  margin-top: 2px;
  flex-shrink: 0;
}

.record-location span,
.record-location small {
  display: block;
}

.record-location code,
.saved-path code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.6;
  color: #45563d;
}

.record-location small {
  color: #66735b;
  margin-top: 4px;
}

.record-details {
  font-size: 12px;
  color: #526147;
  margin-top: 16px;
}

.record-details summary {
  cursor: pointer;
  min-height: 32px;
}

.record-details .record-form {
  padding: 8px 0;
}

.recorder-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.recorder-actions .button {
  flex: 1;
  min-height: 46px;
  font-size: 14px;
}

.recorder-workspace.compact .recorder-display {
  height: 70px;
}

.recorder-workspace.compact .recorder-display .tape-illustration,
.recorder-workspace.compact .record-details {
  display: none;
}

.recorder-workspace.compact .record-location {
  margin-bottom: 0;
}

.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 13px;
}

.preference-row input[type="checkbox"],
.cue-options input {
  accent-color: #4d6348;
  width: 16px;
  height: 16px;
}

.preference-row input[type="range"] {
  width: 160px;
  accent-color: #4d6348;
}

.cue-options {
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.cue-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #526147;
  font-size: 12px;
}

.playback-cassette {
  height: 100px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  color: #5b6c4d;
  font-size: 12px;
}

.playback-cassette .tape-illustration {
  width: 170px;
  min-width: 170px;
  height: 100px;
}

.playback-cassette .tape {
  transform: rotate(-4deg) scale(0.48);
  flex-shrink: 0;
}

.tape-running .reel {
  animation: cassette-reel 3s linear infinite;
}

.sidebar-collapsed .sidebar {
  width: 64px;
  padding: 24px 8px 16px;
}

.sidebar-collapsed .main {
  margin-left: 64px;
}

.sidebar-collapsed .brand {
  justify-content: center;
  margin: 0 0 28px;
}

.sidebar-collapsed .brand > span:last-child,
.sidebar-collapsed .workspace-label,
.sidebar-collapsed .tag-heading,
.sidebar-collapsed .tag-nav,
.sidebar-collapsed .nav-item span,
.sidebar-collapsed .local-card {
  display: none;
}

.sidebar-collapsed .nav-item {
  justify-content: center;
  font-size: 0;
  padding: 10px;
}

.sidebar-collapsed .nav-item svg {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 175px;
  }
  .main {
    margin-left: 175px;
  }
  .library-page,
  .editor-page {
    padding: 20px;
  }
  .topbar {
    padding: 0 20px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .transport-left {
    gap: 4px;
  }
  .library-banner .tape-illustration {
    min-width: 190px;
    width: 190px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    width: 62px;
    padding: 24px 8px;
  }
  .main {
    margin-left: 62px;
  }
  .topbar {
    padding: 0 12px;
  }
  .crumb {
    gap: 4px;
    font-size: 0;
  }
  .crumb span {
    font-size: 11px;
  }
  .topbar-right {
    gap: 4px;
  }
  .library-page,
  .editor-page {
    padding: 16px 12px;
  }
  .library-banner {
    height: 132px;
    padding: 16px;
  }
  .library-banner .tape-illustration {
    display: none;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
  .page-heading h1,
  .editor-title h1 {
    font-size: 26px;
  }
  .recorder-display .tape-illustration {
    display: none;
  }
  .recorder-display {
    height: 84px;
  }
  .modal {
    width: calc(100vw - 24px);
    margin-left: auto;
    margin-right: auto;
  }
  .recorder-workspace {
    padding: 0 16px 16px;
  }
  .preference-row {
    flex-wrap: wrap;
  }
  .transport-right {
    width: 100%;
    justify-content: flex-end;
  }
  .play-time {
    font-size: 12px;
  }
  .transport-left .icon-button {
    width: 30px;
  }
  .asset-row {
    min-height: 64px;
  }
}

.sidebar-local-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px;
  font-size: 11px;
  color: #56664b;
}

.sidebar-collapsed .sidebar-local-status {
  display: none;
}

.empty-state {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 112px;
  text-align: left;
  padding: 24px 8px;
}

.empty-state h3 {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 8px;
}

.empty-state p {
  font-size: 12px;
  margin: 0;
  color: #626c58;
}

.empty-state .text-button {
  margin: 0;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .sidebar-local-status {
    display: none;
  }
  .empty-state {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
  }
  .global-import {
    padding: 8px;
  }
}

/* Settings controls keep recorder density while help text remains readable. */
.settings-content .record-form {
  padding: 0;
  margin: 8px 0;
  gap: 12px;
}

.settings-section p,
.settings-section .small {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0;
}

.settings-section h3 {
  font-size: 13px;
  color: #526147;
}

.settings-section code {
  font-size: 12px;
}

.settings-content .text-button {
  font-size: 12px;
  min-height: 32px;
}


.settings-section {
  padding: 12px 0;
}

.settings-section h3 {
  margin-bottom: 8px;
}


/* Transcript review stays inside the existing editor's dense transcript panel. */
.transcript-review .review-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.transcript-review .review-controls { padding: 6px 23px 10px; font-size: 10px; }

.transcript-review input, .transcript-review textarea, .transcript-review select {
  background: #f6f7f1; color: #46533d; border: 1px solid #dce1d2; border-radius: 3px;
  padding: 5px 7px; font: inherit; min-width: 0;
}

.transcript-review .review-rows input, .transcript-review .review-rows textarea { width: 100%; box-sizing: border-box; font-size: 11px; }

.transcript-review .review-rows textarea { resize: vertical; line-height: 1.6; }

.transcript-review .review-message { margin: 8px 23px; font-size: 11px; color: #85593d; }

.transcript-review .review-original { margin: 12px 23px; font-size: 11px; color: #68765b; }

.transcript-review .review-original summary { cursor: pointer; }

.transcript-review .review-original pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }

.transcript-review .review-original .transcript-rows { padding: 0; }

.transcript-review button:disabled { opacity: .45; cursor: default; }


/* Local library organization stays inside the recovered compact list/editor. */
.library-search-controls, .library-search-pages, .library-detail-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; font-size:11px; color:#626c58; margin:8px 0 12px; }

.library-search-controls label { display:flex; align-items:center; gap:5px; }

.library-search-controls select, .library-details select, .library-details textarea { border:1px solid #dce1d2; border-radius:3px; background:#f6f7f1; color:#46533d; padding:5px 7px; font:inherit; }

.library-entry { position:relative; }

.library-entry .asset-row { padding-bottom:28px; }

.library-row-details { position:absolute; left:60px; bottom:5px; background:none; border:0; padding:1px 0; color:#526347; font-size:10px; cursor:pointer; }

.library-matches { display:block; margin-top:5px; font-size:10px; line-height:1.45; color:#626c58; overflow-wrap:anywhere; }

.library-match { display:block; margin-top:3px; }

.library-match-source { font-weight:600; display:block; }

.library-match-text { display:block; }

.library-search-message { font-size:11px; color:#85593d; margin:8px 0; overflow-wrap:anywhere; }

.library-search-message summary { cursor:pointer; }

.library-search-pages { justify-content:flex-end; }

.library-details { padding:16px 24px; border-bottom:1px solid #dce1d2; font-size:12px; }

.library-detail-fields { display:grid; grid-template-columns:140px 1fr; gap:12px; }

.library-detail-fields label { display:flex; flex-direction:column; gap:6px; color:#526347; }

.library-details textarea { width:100%; box-sizing:border-box; resize:vertical; min-height:75px; }

.library-details p { font-size:11px; margin:6px 0; }

.library-details [role=alert] { color:#85593d; }

@media(max-width:700px) { .library-detail-fields { grid-template-columns:1fr; } .library-row-details { left:15px; } }


}
