.cassette-icon {
  height: 2.31rem;
  width: 3.47rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #adb5bd;
  border: 1px solid #6c757d;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.cassette-icon > svg {
  width: calc(100% - 0.16rem);
  height: calc(100% - 0.16rem);
  display: block;
}

.cassette-reel {
  transform-box: fill-box;
  transform-origin: center;
}

.cassette-icon.is-playing .cassette-reel {
  animation: cassette-reel-spin 3s linear infinite;
}

.audio-spectrum {
  width: 3.2rem;
  height: 1.6rem;
  display: block;
}

.spectrum-brick {
  opacity: 0;
}

.spectrum-brick.on {
  opacity: 1;
}

.audio-timing-pill {
  min-width: 14rem;
  min-height: 2.5rem;
  padding: 0.15rem 0.7rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #2b3035;
  border: 1px solid #495057;
  border-radius: 0;
}

.audio-timeline {
  width: 100%;
  height: 0.28rem;
  margin-top: 0.2rem;
  background: #495057;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

.audio-timeline-progress {
  height: 100%;
  width: 0;
  background: #adb5bd;
  transition: width 80ms linear;
}

.audio-track-subtitle {
  max-width: 16rem;
  font-size: 0.68rem;
  line-height: 1.05;
  color: #adb5bd;
}

@keyframes cassette-reel-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

:root {
  --ink:#243e34;
  --muted:#81867e;
  --green:#255941;
  --line:#e7e9e1;
  --paper:#fafbf7;
  --bs-primary:#255941;
  --bs-body-color:#29382f;
  --bs-body-bg:#fafbf7;
  --bs-border-color:#e7e9e1;
}

body {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  color:var(--ink);
  background:var(--paper);
}

button,input,select,a {
  touch-action:manipulation;
}

a {
  color:var(--green);
}

.workspace {
  display:flex;
  min-height:100vh;
}

.sidebar {
  width:246px;
  flex:none;
  position:sticky;
  top:0;
  height:100vh;
  background:#f0f2e9;
  border-right:1px solid var(--line);
  padding:37px 22px 22px;
  flex-direction:column;
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  font-size:32px;
  font-weight:700;
  letter-spacing:-1.7px;
  text-decoration:none;
}

.brand-icon {
  display:inline-grid;
  place-items:center;
  background:var(--green);
  color:#e5edc5;
  width:36px;
  height:36px;
  border-radius:12px;
  font-size:22px;
  letter-spacing:0;
}

.brand-dot {
  color:#819867;
  margin-left:-10px;
}

.workspace-label,.eyebrow {
  font-size:10px;
  font-weight:650;
  letter-spacing:1.8px;
  color:#7b8a71;
}

.workspace-label {
  margin:48px 12px 15px;
}

.list-group {
  gap:5px;
}

.list-group-item {
  background:transparent;
  color:#687567;
  font-size:13px;
  border-radius:7px!important;
  padding:11px 12px;
  text-align:left;
  overflow-wrap:anywhere;
}

.list-group-item.active {
  background:#dfe7d5;
  color:#284e34;
  font-weight:600;
}

.list-group-item:hover {
  background:#e5ebdd;
  color:var(--green);
}

.sidebar nav {
  overflow:auto;
}

.sidebar-bottom {
  margin-top:auto;
  padding-top:40px;
}

.storage-note {
  display:flex;
  gap:12px;
  padding:20px 8px 24px;
  font-size:12px;
}

.storage-note>i {
  font-size:22px;
}

.storage-note span {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:5px;
}

.account {
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid #dce1d4;
  padding-top:20px;
}

.avatar {
  background:#dce6cc;
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#436037;
  font-weight:600;
  flex:none;
}

.account small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:2px;
}

.account .icon-button {
  margin-left:auto;
}

.icon-button {
  border:0;
  background:transparent;
  color:#748071;
  padding:8px;
  border-radius:6px;
}

.icon-button:hover {
  background:#e2e8d9;
}

.main-panel {
  flex:1;
  min-width:0;
}

.topbar {
  min-height:88px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 44px;
  gap:12px;
}

.breadcrumbs {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  min-width:0;
}

.breadcrumbs .btn {
  border:0;
  background:transparent;
  color:#7c8579;
  font-size:12px;
  padding:4px 6px;
  overflow-wrap:anywhere;
}

.breadcrumbs .btn-secondary {
  color:var(--ink);
  font-weight:600;
}

.private-label {
  font-size:11px;
  color:#8a9285;
  white-space:nowrap;
}

.private-label i {
  margin-right:6px;
}

.workspace-content {
  max-width:1500px;
  margin:auto;
  padding:45px 44px;
}

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

h1 {
  font-size:36px;
  font-weight:550;
  letter-spacing:-1.5px;
  margin:10px 0;
}

p {
  color:var(--muted);
}

.page-heading p {
  font-size:12px;
  margin:0;
}

.upload-actions {
  display:flex;
  gap:9px;
  flex-shrink:0;
}

.btn {
  font-size:12px;
  font-weight:500;
  border-radius:7px;
  padding:10px 15px;
  box-shadow:none!important;
}

.btn i {
  margin-right:5px;
}

.btn-primary,.btn-success {
  background:var(--green);
  border-color:var(--green);
  color:white;
}

.btn-primary:hover,.btn-success:hover {
  background:#183f2c;
  border-color:#183f2c;
}

.btn-outline-secondary {
  background:#fff;
  border-color:#dce1d6;
  color:#50614e;
}

.overview {
  background:#edf1e4;
  border:1px solid #e1e7d5;
  border-radius:12px;
  padding:26px 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:34px;
}

.overview-copy {
  display:flex;
  align-items:center;
  gap:19px;
}

.overview-icon {
  width:55px;
  height:55px;
  background:#dfe8ca;
  color:#5b763e;
  border-radius:15px;
  display:grid;
  place-items:center;
  font-size:27px;
}

.overview h2 {
  font-size:17px;
  font-weight:550;
  letter-spacing:-.4px;
  margin:0 0 7px;
}

.overview p {
  font-size:12px;
  margin:0;
  color:#89957e;
}

.folder-stat {
  padding-left:30px;
  border-left:1px solid #d6dfca;
  min-width:125px;
}

.folder-stat strong {
  display:block;
  font-size:29px;
  font-weight:500;
  line-height:1.2;
}

.folder-stat span {
  font-size:10px;
  color:#86927b;
}

.file-panel {
  background:white;
  border:1px solid var(--line);
  border-radius:11px;
  overflow:hidden;
}

.file-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px;
}

.search-field {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:100px;
  color:#8b9585;
}

.search-field input {
  border:0;
  background:transparent;
  outline:none;
  font-size:12px;
  width:100%;
  min-width:0;
}

.search-field:focus-within {
  color:var(--green);
}

.toolbar-actions {
  display:flex;
  gap:12px;
  align-items:center;
}

.form-control,.form-select {
  border-color:#e0e5d9;
  border-radius:6px;
  font-size:12px;
  padding:10px 12px;
}

.form-control:focus,.form-select:focus {
  border-color:#8ca779;
  box-shadow:0 0 0 3px #95b97a25;
}

.form-select {
  width:160px;
  padding-right:30px;
}

.folder-form {
  display:flex;
  gap:6px;
}

.folder-form input {
  width:145px;
}

.folder-form .btn {
  padding:8px 11px;
}

.folder-form .btn i {
  margin:0;
}

#status {
  margin:0!important;
  padding:0 22px 12px;
  font-size:11px;
}

#status:empty {
  display:none;
}

.table {
  --bs-table-bg:transparent;
  --bs-table-hover-bg:#f7f9f2;
  color:var(--ink);
  font-size:12px;
}

.table thead th {
  background:#f7f8f4;
  color:#8d9588;
  font-size:10px;
  font-weight:500;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
}

.table td {
  padding:18px;
  border-color:#eef0e9;
  color:#8b9285;
  white-space:nowrap;
}

.table td:first-child,.table th:first-child {
  padding-left:24px;
}

.table td:first-child {
  color:var(--ink);
  width:45%;
}

.file-name {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  background:none;
  padding:0;
  color:var(--ink);
  text-align:left;
  font-size:12px;
  font-weight:500;
  max-width:360px;
}

.file-name span:last-child {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.file-icon {
  width:35px;
  height:39px;
  border-radius:7px;
  display:grid;
  place-items:center;
  flex:none;
  font-size:20px;
  background:#edf1e8;
  color:#788e60;
}

.file-icon.folder {
  background:#f7efd9;
  color:#bd9a47;
}

.file-icon.image {
  background:#e9effa;
  color:#819ccd;
}

.file-icon.audio {
  background:#efe9f6;
  color:#a288bb;
}

.file-icon.video {
  background:#f6e8e1;
  color:#c69982;
}

.table td .btn {
  border:0;
  color:#a0a89a;
  padding:6px;
  background:transparent;
}

.table td .btn:hover {
  background:#edf1e6;
  color:var(--green);
}

.table td .btn-outline-danger:hover {
  background:#f9e9e6;
  color:#b35a46;
}

.table td .btn i {
  margin:0;
}

.file-footer {
  display:flex;
  justify-content:space-between;
  padding:15px 24px;
  font-size:10px;
  color:#99a18f;
  background:#fcfcfa;
}

.file-footer i {
  margin-right:5px;
}

.workspace-footer {
  display:flex;
  justify-content:space-between;
  color:#a1a894;
  font-size:10px;
  margin-top:24px;
}

.empty-state {
  padding:65px 20px!important;
  text-align:center;
}

.empty-state>i {
  display:block;
  font-size:32px;
  color:#a6b492;
  margin-bottom:15px;
}

.empty-state strong {
  display:block;
  color:#607154;
  font-size:16px;
  font-weight:500;
}

.empty-state p {
  margin:8px 0;
  font-size:12px;
}

.mobile-menu {
  background:#f0f2e9;
  padding:18px 24px;
}

.mobile-menu .account {
  padding:0 0 15px;
  border:0;
}

.modal-content {
  border:1px solid var(--line);
  border-radius:16px;
}

.modal-header {
  padding:20px 24px;
}

.audio-timing-pill {
  background:#f0f3e9;
  border-color:#dbe3d0;
  border-radius:7px;
}

.audio-track-subtitle {
  color:#718465;
}

.audio-timeline {
  background:#d8e1cb;
}

.audio-timeline-progress {
  background:var(--green);
}

#audioDock {
  background:#fafbf7!important;
  padding:14px!important;
}

button:focus-visible,a:focus-visible,label:has(+input:focus-visible),.search-field:focus-within {
  outline:2px solid #779660;
  outline-offset:3px;
}

#fileInput:focus-visible+label {
  outline:2px solid var(--green);
  outline-offset:3px;
}

.login-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:100vh;
}

.login-story {
  position:relative;
  overflow:hidden;
  background:#eaf0df;
  padding:44px 11%;
  min-height:760px;
}

.login-story-copy {
  position:relative;
  z-index:1;
  margin-top:85px;
}

.login-story h1 {
  font-size:clamp(42px,4.4vw,68px);
  line-height:1.08;
  font-weight:500;
  letter-spacing:-3px;
  margin:22px 0;
}

.login-story h1 em {
  font-family:Georgia,serif;
  font-weight:400;
  color:#738f55;
}

.login-story-copy p {
  font-size:13px;
  line-height:1.9;
  color:#7c8d70;
}

.story-footer {
  position:absolute;
  bottom:32px;
  font-size:9px;
  letter-spacing:2px;
  color:#8d9a80;
}

.login-art {
  position:relative;
  height:200px;
  width:260px;
  margin:30px auto 25px;
  transform:rotate(-10deg);
}

.art-folder {
  position:absolute;
  width:235px;
  height:145px;
  border-radius:8px 15px 15px 15px;
  box-shadow:0 20px 35px #40513212;
}

.art-folder:before {
  content:"";
  position:absolute;
  width:85px;
  height:20px;
  top:-15px;
  background:inherit;
  border-radius:10px 14px 0 0;
}

.folder-back {
  background:#bacb9e;
  transform:rotate(20deg);
  left:25px;
  top:12px;
}

.folder-front {
  background:#255941;
  top:45px;
  color:#e2ebc7;
  display:flex;
  justify-content:space-between;
  align-items:end;
  padding:25px;
}

.folder-front>span {
  font-size:17px;
  font-family:Georgia,serif;
}

.folder-front .art-spark {
  font-size:48px;
  line-height:1;
}

.login-form-panel {
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:64px 35px;
}

.login-card {
  width:100%;
  max-width:350px;
}

.login-card h2 {
  font-size:29px;
  letter-spacing:-1px;
  margin:16px 0 10px;
  font-weight:500;
}

.login-card>p {
  font-size:13px;
  margin-bottom:34px;
}

.login-card form {
  display:grid;
  gap:20px;
}

.login-card .form-label {
  font-size:12px;
  font-weight:500;
  margin-bottom:8px;
}

.login-card .form-control {
  padding:13px 14px;
  background:white;
}

.login-card .btn {
  padding:14px;
  margin-top:5px;
  text-align:left;
  display:flex;
  justify-content:space-between;
}

.login-footnote {
  border-top:1px solid var(--line);
  margin-top:24px;
  padding-top:24px;
  font-size:11px;
  text-align:center;
  color:#9ca38f;
}

.login-copyright {
  position:absolute;
  bottom:30px;
  font-size:10px;
  color:#a1a892;
}

@media(min-width:1500px) {
  .workspace-content {
    padding-top:60px;
  }
  .page-heading {
    margin-bottom:40px;
  }
  .overview {
    padding:35px;
  }
}

@media(max-width:1199px) {
  .sidebar {
    width:215px;
    padding-left:16px;
    padding-right:16px;
  }
  .workspace-content {
    padding:32px 26px;
  }
  .topbar {
    padding:20px 26px;
  }
  .page-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:20px;
  }
  .folder-form input {
    width:125px;
  }
  .file-toolbar {
    flex-wrap:wrap;
  }
  .search-field {
    flex:1;
  }
  .login-story {
    padding:36px 9%;
  }
}

@media(max-width:767px) {
  .topbar {
    min-height:68px;
    padding:15px 18px;
    justify-content:flex-start;
  }
  .private-label {
    margin-left:auto;
    font-size:0;
  }
  .private-label i {
    font-size:16px;
  }
  .workspace-content {
    padding:27px 18px;
  }
  .page-heading h1 {
    font-size:31px;
  }
  .page-heading p {
    line-height:1.7;
  }
  .eyebrow {
    font-size:9px;
  }
  .overview {
    padding:20px;
    gap:12px;
  }
  .overview-icon {
    display:none;
  }
  .overview h2 {
    font-size:14px;
  }
  .overview p {
    font-size:11px;
    line-height:1.6;
  }
  .folder-stat {
    padding-left:16px;
    min-width:80px;
  }
  .folder-stat strong {
    font-size:25px;
  }
  .folder-stat span {
    font-size:9px;
  }
  .file-toolbar {
    padding:18px;
    gap:18px;
  }
  .search-field {
    flex-basis:100%;
  }
  .toolbar-actions {
    width:100%;
    gap:8px;
  }
  .form-select {
    width:140px;
  }
  .folder-form {
    flex:1;
  }
  .folder-form input {
    width:100%;
    min-width:0;
  }
  .table th:nth-child(2),.table td:nth-child(2),.table th:nth-child(4),.table td:nth-child(4) {
    display:none;
  }
  .table td {
    padding:14px 10px;
  }
  .table td:first-child,.table th:first-child {
    padding-left:16px;
  }
  .file-name {
    max-width:180px;
    font-size:11px;
    gap:8px;
  }
  .file-icon {
    width:29px;
    height:34px;
    font-size:17px;
  }
  .file-footer {
    padding:14px 16px;
    font-size:9px;
  }
  .workspace-footer {
    font-size:9px;
  }
  .audio-timing-pill {
    position:static!important;
    transform:none!important;
    min-width:0;
    flex:1;
  }
  .audio-spectrum,.cassette-icon {
    display:none;
  }
  #audioDock>div {
    flex-wrap:wrap;
  }
  .audio-timing-pill {
    flex-basis:100%;
    order:2;
  }
  .login-layout {
    grid-template-columns:1fr;
  }
  .login-story {
    min-height:auto;
    padding:24px 28px 30px;
  }
  .login-story-copy {
    margin-top:35px;
  }
  .login-story h1 {
    font-size:40px;
    letter-spacing:-1.8px;
  }
  .login-story h1 br:nth-child(2) {
    display:none;
  }
  .login-story-copy p,.login-art,.story-footer {
    display:none;
  }
  .login-story-copy .eyebrow {
    display:none;
  }
  .login-form-panel {
    padding:45px 28px 80px;
  }
  .login-card h2 {
    font-size:26px;
  }
  .login-copyright {
    bottom:24px;
  }
}

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