:root {
  color-scheme: dark;
  --bg: #121817;
  --panel: #1b2220;
  --line: #303933;
  --muted: #929c94;
  --ink: #eff2e9;
  --accent: #c0dda3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
}
svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.rail {
  width: 90px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 34px 0 25px;
  position: fixed;
  inset: 0 auto 0 0;
}
.brand {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--accent);
  color: #233329;
  border-radius: 13px;
}
.brand svg {
  width: 31px;
  height: 31px;
}
.railnav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 88px;
}
.railbutton {
  width: 48px;
  height: 48px;
  background: none;
  color: #929c94;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.railbutton:hover {
  background: #232e28;
  color: var(--ink);
}
.railbutton.selected {
  background: #2a382c;
  color: var(--accent);
}
.railbottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.rail-caption {
  font-size: 10px;
  letter-spacing: 3px;
  color: #68736b;
  margin-top: 12px;
}
main {
  margin-left: 90px;
  width: calc(100% - 90px);
  padding: 0 46px;
  max-width: 1800px;
}
header {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1px;
}
.wordmark > span:first-child {
  font-weight: 350;
  color: #aebaa9;
}
.beta {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-left: 22px;
  color: #89978b;
  font-weight: 500;
}
.topright {
  display: flex;
  gap: 24px;
  align-items: center;
}
.connection {
  font-size: 11px;
  color: #aeb7ad;
  display: flex;
  gap: 8px;
  align-items: center;
}
.connection i,
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 100%;
}
#clock {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #506045;
  background: #283326;
  font-size: 12px;
  color: var(--accent);
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 47px 0 40px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9fa99e;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(30px, 3vw, 43px);
  letter-spacing: -1.7px;
  font-weight: 450;
  margin: 0;
}
h1 span {
  color: #b6c4ad;
}
.intro p {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
}
.connect-button {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #222c24;
  border: 1px solid #3e4a37;
  border-radius: 13px;
  padding: 17px 19px;
  text-align: left;
  font-size: 12px;
  min-height: 74px;
}
.connect-button svg {
  color: var(--accent);
  width: 28px;
  height: 28px;
}
.connect-button small {
  display: block;
  color: #99a590;
  font-size: 10px;
  margin-top: 7px;
}
.arrow {
  color: #c0dda3;
  font-size: 18px;
  margin-left: 17px;
}
.dashboard {
  border-top: 1px solid var(--line);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 30px;
}
.tabs {
  display: flex;
  gap: 6px;
}
.tabs button {
  background: none;
  color: var(--muted);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  min-height: 42px;
}
.tabs button.active {
  background: #2c362e;
  color: var(--ink);
}
.tabs button span {
  display: inline-flex;
  margin-left: 8px;
  font-size: 9px;
  background: #45533e;
  padding: 2px 5px;
  border-radius: 4px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.text-button {
  display: flex;
  gap: 7px;
  align-items: center;
  background: none;
  color: #aab4a7;
  font-size: 11px;
  min-height: 44px;
}
.text-button svg {
  width: 15px;
  height: 15px;
}
.add-button {
  background: var(--accent);
  color: #23321e;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  min-height: 44px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 40px;
}
.shortcuts-area {
  min-width: 0;
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 29px 18px;
}
.shortcut {
  position: relative;
  text-align: center;
  min-width: 0;
}
.tile {
  width: 100%;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 11px 4px;
  border-radius: 16px;
}
.tile:hover {
  background: #1d2821;
}
.app-icon {
  width: 91px;
  height: 91px;
  border-radius: 23px;
  display: grid;
  place-items: center;
  box-shadow:
    0 8px 15px #0002,
    inset 0 1px 0 #ffffff45;
  color: #112820;
  position: relative;
  overflow: hidden;
}
.app-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.6;
}
.app-icon.word {
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -2px;
}
.app-icon.word.fip {
  font-family: Georgia, serif;
  font-size: 48px;
  font-style: italic;
  color: white;
  padding-bottom: 6px;
}
.app-icon.word.nts {
  font-size: 26px;
  letter-spacing: -2px;
  outline: 3px solid #121817;
  outline-offset: -19px;
}
.app-name {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 450;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-type {
  color: #808e82;
  font-size: 10px;
  margin-top: 6px;
}
.add-tile .app-icon {
  background: transparent;
  border: 1px dashed #45523f;
  color: #8e9f83;
  box-shadow: none;
}
.add-tile .app-icon svg {
  width: 28px;
  height: 28px;
}
.add-tile .app-name {
  color: #a8b69e;
}
.fav-mark {
  position: absolute;
  top: 2px;
  right: 12px;
  font-size: 10px;
  background: #1c2820;
  border: 1px solid #526246;
  color: #c0dda3;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}
.grid-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 35px 10px;
  color: #70816e;
  font-size: 10px;
}
.page-dots {
  display: flex;
  gap: 5px;
}
.page-dots i {
  width: 4px;
  height: 4px;
  border-radius: 100%;
  background: #3a4639;
}
.page-dots i:first-child {
  background: #becfae;
}
.side-panel {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.section-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #8b9989;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}
.now-card {
  border: 1px solid #364232;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #303e2c, #202b23);
  padding: 16px;
}
.album-art {
  height: 135px;
  background: #b9ce94;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 20px;
  color: #253b26;
}
.album-art > span {
  font-size: 38px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -3px;
  z-index: 1;
}
.album-art > span > span {
  font-size: 10px;
  display: block;
  letter-spacing: 5px;
  margin-top: 8px;
}
.record {
  position: absolute;
  width: 155px;
  height: 155px;
  left: 90px;
  top: 20px;
  border-radius: 50%;
  border: 1px solid #536b42;
  background: repeating-radial-gradient(circle, #263f2c 0 2px, #344b31 3px 4px);
}
.record div {
  width: 45px;
  height: 45px;
  background: #d2dfb3;
  border-radius: 50%;
  position: absolute;
  inset: 55px;
}
.record div:after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #2c442d;
}
.track-info {
  padding-top: 20px;
}
.live-label {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #bacfa7;
  display: flex;
  gap: 6px;
  align-items: center;
}
.live-label i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c0dda3;
}
h2 {
  font-size: 19px;
  font-weight: 450;
  letter-spacing: -0.5px;
  line-height: 1.4;
  margin: 11px 0 7px;
}
.track-info p {
  font-size: 10px;
  line-height: 1.6;
  color: #a2af99;
  margin: 0;
}
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.icon-button {
  background: none;
  padding: 8px;
  color: #b4c2aa;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.play-button {
  background: #c6dfae;
  color: #293c23;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.play-button svg {
  width: 18px;
  height: 18px;
}
.equalizer {
  height: 23px;
  display: flex;
  gap: 3px;
  align-items: center;
}
.equalizer i {
  width: 2px;
  height: 30%;
  background: #92a780;
}
.equalizer i:nth-child(3n) {
  height: 70%;
}
.equalizer i:nth-child(4n) {
  height: 100%;
}
.equalizer.playing i {
  animation: bounce 0.8s ease-in-out infinite alternate;
}
.equalizer.playing i:nth-child(3n) {
  animation-delay: 0.3s;
}
@keyframes bounce {
  to {
    height: 20%;
  }
}
#volume {
  width: 100%;
  height: 3px;
  accent-color: #b7d297;
  margin-top: 16px;
}
.tip-card {
  background: none;
  display: flex;
  gap: 12px;
  padding: 25px 0 0;
  text-align: left;
  width: 100%;
}
.tip-symbol {
  color: #bacfa3;
  font-size: 23px;
}
.tip-card h3 {
  font-size: 11px;
  font-weight: 500;
  margin: 2px 0 10px;
}
.tip-card p {
  color: #83927f;
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
}
.tip-card div > span {
  display: block;
  color: #b2c49f;
  font-size: 10px;
  margin-top: 14px;
}
.tip-card b {
  margin-left: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 25px 0;
  color: #82907f;
  font-size: 10px;
}
footer .status-dot {
  margin-right: 7px;
  width: 4px;
  height: 4px;
}
footer button {
  background: none;
  color: #a5b49a;
  font-size: 10px;
  min-height: 40px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #d2e5be;
  color: #24371d;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: 0 5px 30px #0006;
  z-index: 10;
  display: none;
  max-width: 90vw;
}
dialog {
  border: 1px solid #4c5e43;
  border-radius: 20px;
  background: #1d2820;
  color: var(--ink);
  padding: 35px;
  width: 480px;
  max-width: calc(100% - 30px);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 30px 120px #0008;
}
dialog::backdrop {
  background: #080e0bc9;
  backdrop-filter: blur(8px);
}
.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 27px;
  background: none;
  color: #9cac95;
  width: 40px;
  height: 40px;
}
dialog h2 {
  font-size: 27px;
  margin: 10px 0 12px;
}
dialog p {
  color: #a5b59b;
  font-size: 13px;
  line-height: 1.7;
}
dialog label {
  display: block;
  font-size: 12px;
  margin: 17px 0 7px;
  color: #c4cfbd;
}
dialog input:not([type="checkbox"]):not([type="color"]),
dialog select {
  width: 100%;
  border: 1px solid #47553e;
  background: #121c15;
  color: var(--ink);
  padding: 12px;
  border-radius: 8px;
  min-height: 44px;
}
dialog input[type="color"] {
  width: 100%;
  height: 44px;
  background: #152119;
  border: 1px solid #47553e;
  border-radius: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.primary {
  background: var(--accent);
  color: #23321e;
  padding: 13px 18px;
  border-radius: 8px;
  min-height: 46px;
  width: 100%;
  margin-top: 22px;
  font-weight: 600;
}
.secondary {
  background: #34432e;
  color: #d9e6ce;
  border: 1px solid #526246;
  border-radius: 8px;
  padding: 12px;
  min-height: 44px;
  width: 100%;
  margin-top: 12px;
}
.danger {
  background: none;
  color: #efaaaa;
  border: 1px solid #77574e;
}
.form-error {
  color: #f4b6a2;
  font-size: 12px;
  line-height: 1.6;
  min-height: 18px;
  margin-top: 10px;
}
.qr-image {
  display: block;
  width: 220px;
  height: 220px;
  background: white;
  border-radius: 12px;
  margin: 25px auto;
}
.small {
  font-size: 11px !important;
  color: #8fa284 !important;
}
.modal-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #c0dda3;
}
.auth-toggle {
  background: none;
  color: #c0dda3;
  margin-top: 17px;
  width: 100%;
  padding: 12px;
}
.edit-controls {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
}
.edit-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid #405039;
  background: #293827;
  border-radius: 6px;
  color: #c2d5b1;
}
.empty {
  grid-column: 1/-1;
  padding: 60px 20px;
  text-align: center;
  color: #a9b99f;
  line-height: 1.8;
}
.map-dialog {
  width: min(1100px, 95vw);
}
.map-dialog iframe {
  width: 100%;
  height: 65vh;
  border: 0;
  border-radius: 10px;
}
.pair-code {
  font-size: 16px;
  word-break: break-all;
  letter-spacing: 2px;
  padding: 15px;
  background: #131d15;
  border-radius: 8px;
}
.modal-link {
  display: block;
  text-align: center;
  font-size: 12px;
  margin: 15px 0;
  color: #c0dda3;
}
.help-list {
  line-height: 1.8;
  color: #acbaa3;
  padding-left: 18px;
  font-size: 13px;
}
@media (min-width: 1500px) {
  main {
    padding: 0 65px;
  }
  .intro {
    padding-top: 65px;
    padding-bottom: 50px;
  }
  .workspace {
    grid-template-columns: 1fr 320px;
    gap: 65px;
  }
  .shortcut-grid {
    gap: 40px 25px;
  }
  .app-icon {
    width: 110px;
    height: 110px;
    border-radius: 28px;
  }
  .album-art {
    height: 160px;
  }
  .record {
    left: 120px;
  }
  .now-card {
    padding: 20px;
  }
  .side-panel {
    padding-left: 35px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 0 26px;
  }
  .rail {
    width: 72px;
  }
  main {
    margin-left: 72px;
    width: calc(100% - 72px);
  }
  .workspace {
    gap: 20px;
    grid-template-columns: 1fr 235px;
  }
  .side-panel {
    padding-left: 18px;
  }
  .shortcut-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .beta {
    display: none;
  }
  .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }
  .intro {
    padding: 35px 0;
  }
  .connect-button {
    padding: 14px;
    font-size: 11px;
  }
  .connect-button small {
    font-size: 9px;
  }
  .arrow {
    margin-left: 0;
  }
  .topright {
    gap: 16px;
  }
}
@media (max-width: 750px) {
  .rail {
    width: 58px;
    padding-top: 24px;
  }
  .brand {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }
  .brand svg {
    width: 26px;
  }
  .railbutton {
    width: 42px;
    height: 44px;
  }
  .railnav {
    margin-top: 60px;
  }
  main {
    margin-left: 58px;
    width: calc(100% - 58px);
    padding: 0 18px;
  }
  header {
    height: 82px;
  }
  .connection {
    display: none;
  }
  .intro {
    display: block;
  }
  .intro h1 {
    font-size: 32px;
  }
  .connect-button {
    margin-top: 24px;
    width: 100%;
    justify-content: flex-start;
  }
  .connect-button .arrow {
    margin-left: auto;
  }
  .workspace {
    display: block;
  }
  .side-panel {
    border: 0;
    padding: 28px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .section-label {
    grid-column: 1/-1;
    margin-bottom: -6px;
  }
  .tip-card {
    padding-top: 20px;
  }
  .album-art {
    height: 100px;
  }
  .record {
    left: 80px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
  }
  .tabs {
    gap: 0;
  }
  .tabs button {
    padding: 8px 10px;
  }
  .actions {
    margin-left: auto;
  }
  .shortcut-grid {
    gap: 15px 8px;
  }
  .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 19px;
  }
  .app-icon svg {
    width: 40px;
    height: 40px;
  }
  .app-name {
    font-size: 11px;
  }
  .app-type {
    font-size: 9px;
  }
  .fav-mark {
    right: 5px;
  }
  .grid-note {
    margin: 25px 0;
  }
  footer {
    flex-wrap: wrap;
    margin-top: 25px;
  }
  #footerStatus {
    display: none;
  }
  .topright {
    gap: 12px;
  }
  .wordmark {
    font-size: 20px;
  }
  .track-info h2 {
    font-size: 17px;
  }
  .tip-card h3 {
    line-height: 1.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
@media (max-width: 400px) {
  .side-panel {
    display: block;
  }
  .tip-card {
    margin-top: 15px;
  }
  .shortcut-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tabs button {
    font-size: 11px;
  }
  .intro h1 {
    font-size: 28px;
  }
}

.map-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}
.map-actions .secondary {
  width: auto;
  margin: 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
dialog input[type="file"] {
  font-size: 11px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.app-icon {
  font-size: 40px;
}
.edit-controls {
  gap: 2px;
}
.edit-controls button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
@media (max-width: 750px) {
  .shortcut-grid.is-editing {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
