:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #222520;
  background: #f7f8f5;
  font-synthesis: none;
  --ink: #242823;
  --muted: #757a71;
  --line: #e3e6df;
  --accent: #d95630;
  --green: #3b755c;
  --paper: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button,
.button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
}
button:hover,
.button:hover {
  background: #f4f5f1;
}
.primary {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.primary:hover {
  background: #3c453c;
}
.accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.accent:hover {
  background: #be4724;
}
.subtle {
  background: none;
  border-color: transparent;
  color: var(--muted);
}
.danger {
  color: #ae3b2a;
}
.small {
  padding: 6px 10px;
  min-height: 32px;
  font-size: 12px;
}
.icon-button {
  padding: 8px;
  min-width: 34px;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
input,
select {
  border: 1px solid #d9ded4;
  border-radius: 7px;
  padding: 11px 12px;
  background: white;
  width: 100%;
  color: var(--ink);
}
input:focus,
select:focus {
  border-color: #6f8971;
  outline: 2px solid #ceddcc;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}
label small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 23px;
  letter-spacing: -1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #eff4e5;
  width: 31px;
  height: 31px;
  border-radius: 8px;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand em {
  font-style: normal;
  color: var(--accent);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: #f0f2eb;
  border-right: 1px solid var(--line);
  padding: 31px 22px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.workspace {
  border-top: 1px solid #dce1d5;
  border-bottom: 1px solid #dce1d5;
  padding: 18px 0;
  display: flex;
  gap: 11px;
  align-items: center;
}
.workspace .avatar {
  border: 1px solid #ced5c5;
  background: white;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.workspace strong {
  font-size: 13px;
  display: block;
}
.workspace small {
  color: var(--muted);
  font-size: 11px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav a {
  padding: 11px 12px;
  border-radius: 7px;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 13px;
  color: #6b7267;
}
.nav a.active {
  color: #263224;
  background: #e1e7d8;
  font-weight: 600;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.connection {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5f9664;
  display: inline-block;
}
.sidebar-footer button {
  margin-top: 12px;
  padding-left: 0;
}
.main {
  margin-left: 224px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fcfdfb;
  font-size: 12px;
  color: var(--muted);
}
.topbar strong {
  color: #42483f;
  font-weight: 500;
}
.top-right {
  display: flex;
  gap: 15px;
  align-items: center;
}
.owner-avatar {
  background: #e9ecdf;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #687557;
  font-size: 12px;
  font-weight: 600;
}
.content {
  padding: 36px 42px;
  max-width: 1440px;
  margin: auto;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 650;
  margin: 0 0 10px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}
p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: #79816f;
  margin-bottom: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 33px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.stat-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
}
.stat-icon {
  background: #f2f4ed;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #7d876f;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.section-title span {
  font-size: 12px;
  color: var(--muted);
}
.catalogue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 35px;
}
.app-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 24px;
  display: grid;
  gap: 20px;
}
.card-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.app-icon {
  width: 47px;
  height: 47px;
  border-radius: 12px;
  background: #e5eedd;
  display: grid;
  place-items: center;
  color: #608345;
}
.app-icon svg {
  width: 27px;
  height: 27px;
}
.app-icon.pong {
  background: #f8e8df;
  color: #c46b3c;
}
.app-card h3 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.app-card .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eef0eb;
  padding-top: 17px;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #718563;
  background: #f0f5e9;
  padding: 5px 8px;
  border-radius: 4px;
}
.version {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 25px;
}
.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.search {
  max-width: 240px;
  padding: 8px 11px;
  font-size: 12px;
  background: #fbfcf9;
}
.org-row {
  padding: 18px 24px;
  border-bottom: 1px solid #edf0e9;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.org-row:last-child {
  border-bottom: none;
}
.org-info {
  display: flex;
  gap: 13px;
  align-items: center;
}
.org-avatar {
  background: #f1f3ed;
  border: 1px solid #e5e8df;
  border-radius: 9px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
  color: #778169;
}
.org-info small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.org-apps {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 11px;
  color: #626b5c;
}
.state {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7c8176;
}
.state.running,
.state.succeeded {
  color: var(--green);
}
.state.failed {
  color: #ac4532;
}
.state.pending,
.state.queued,
.state.running-operation {
  color: #bd8b38;
}
.empty {
  text-align: center;
  padding: 45px 20px;
}
.empty h3 {
  margin: 12px 0 8px;
}
.empty p {
  max-width: 390px;
  margin: 0 auto 20px;
}
.empty-symbol {
  display: inline-grid;
  place-items: center;
  background: #f1f4eb;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #809171;
}
.install-row {
  display: grid;
  grid-template-columns: 1fr 110px auto;
  align-items: center;
  padding: 20px 24px;
  gap: 20px;
  border-bottom: 1px solid #eef0eb;
}
.install-row:last-child {
  border: 0;
}
.install-name {
  display: flex;
  gap: 13px;
  align-items: center;
}
.install-name .app-icon {
  width: 37px;
  height: 37px;
  border-radius: 9px;
}
.install-name .app-icon svg {
  width: 20px;
  height: 20px;
}
.install-name p {
  font-size: 11px;
  margin-top: 4px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.notice-banner {
  padding: 13px 17px;
  background: #f2f5eb;
  border: 1px solid #dfe6d5;
  border-radius: 8px;
  font-size: 12px;
  color: #667958;
  margin-bottom: 20px;
}
.activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 17px 24px;
  border-bottom: 1px solid #edf0e9;
  font-size: 12px;
}
.activity-row p {
  font-size: 11px;
}
.activity-row .mono {
  font-size: 10px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(ellipse at 20% 0%, #edf2e5, transparent 60%), #f7f8f5;
}
.login-card {
  width: 100%;
  max-width: 430px;
}
.login-card .brand {
  margin-bottom: 52px;
}
.login-card h1 {
  font-size: 28px;
}
.login-card form {
  display: grid;
  gap: 19px;
  margin-top: 28px;
}
.login-card .footnote {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 25px;
  color: #89907f;
}
.login-card .tabs {
  display: flex;
  gap: 8px;
  margin: 25px 0 8px;
}
.tabs button.active {
  background: #e7ecdf;
  border-color: #d7dfcb;
  color: #4c6240;
}
.app-topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.app-topbar .brand {
  font-size: 21px;
}
.app-topbar .org-tag {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  font-size: 13px;
  margin-left: 20px;
}
.app-topbar-left {
  display: flex;
  align-items: center;
}
.app-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}
.app-content .heading {
  margin-bottom: 25px;
}
.app-description {
  font-size: 12px;
}
.new-task {
  display: flex;
  gap: 10px;
  padding: 20px 24px;
  background: #fafbf8;
  border-bottom: 1px solid var(--line);
}
.task-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 24px;
  min-height: 63px;
  border-bottom: 1px solid #edf0e9;
}
.task-row:last-child {
  border: 0;
}
.task-row .title {
  flex: 1;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.task-row.done .title {
  text-decoration: line-through;
  color: #94998e;
}
.task-row .actions {
  opacity: 0.4;
}
.task-row:hover .actions,
.task-row:focus-within .actions {
  opacity: 1;
}
.app-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.room-card {
  border: 1px solid var(--line);
  padding: 20px 24px;
  border-radius: 9px;
  background: white;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.room-card p {
  font-size: 12px;
  margin-top: 6px;
}
.game {
  background: #19261f;
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 24px;
  color: #eef5e7;
}
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 25px;
  align-items: center;
  margin-bottom: 15px;
}
.scoreboard strong {
  font-size: 13px;
  font-weight: 500;
}
.scoreboard strong:last-child {
  text-align: right;
}
.score {
  font-size: 34px;
  font-family: ui-monospace, monospace;
  letter-spacing: 14px;
  white-space: nowrap;
}
.game-status {
  text-align: center;
  font-size: 12px;
  color: #a5b4a0;
  margin: 14px 0;
}
.game canvas {
  width: 100%;
  display: block;
  aspect-ratio: 900/520;
  background: #19261f;
  border-top: 1px solid #3a4b3e;
  border-bottom: 1px solid #3a4b3e;
}
.game-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}
.game-controls button {
  background: #2c3c30;
  color: #e0ead6;
  border-color: #4c5b4a;
  touch-action: none;
  user-select: none;
}
.game p {
  color: #a9b8a2;
  text-align: center;
  font-size: 11px;
  margin-top: 12px;
}
.access-list {
  margin-top: 24px;
}
.access-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid #edf0e9;
}
.access-row p {
  font-size: 11px;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 70vh;
  color: var(--muted);
  font-size: 14px;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #283126;
  color: white;
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 5px 25px #0002;
  z-index: 100;
  max-width: calc(100vw - 32px);
  display: none;
}
#notice.visible {
  display: block;
}
#notice.error {
  background: #984331;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 480px;
  color: var(--ink);
  box-shadow: 0 20px 90px #0002;
}
dialog::backdrop {
  background: #16241265;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
  margin-bottom: 8px;
}
dialog form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.code-box {
  background: #f1f4ec;
  border: 1px solid #dae3d1;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.dialog-error {
  font-size: 12px;
  color: #b0442f;
  line-height: 1.5;
}
.footer-note {
  font-size: 11px;
  color: #8a9180;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 48px;
  }
  .catalogue {
    gap: 24px;
  }
  .app-card {
    padding: 28px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 190px;
    padding: 25px 15px;
  }
  .main {
    margin-left: 190px;
  }
  .content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .install-row {
    grid-template-columns: 1fr auto;
  }
  .install-row > .state {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat-icon {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    gap: 12px;
  }
  .sidebar .workspace,
  .sidebar-footer {
    display: none;
  }
  .sidebar .brand {
    font-size: 21px;
  }
  .nav {
    display: flex;
    gap: 0;
  }
  .nav a {
    padding: 9px;
  }
  .nav a span {
    display: none;
  }
  .main {
    margin: 0;
  }
  .topbar {
    height: 55px;
    padding: 0 20px;
  }
  .content {
    padding: 26px 20px;
  }
  .heading {
    align-items: flex-start;
    margin-bottom: 23px;
  }
  .heading h1 {
    font-size: 25px;
  }
  .heading .primary {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 27px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat-label {
    font-size: 10px;
    line-height: 1.4;
    min-height: 28px;
    margin-bottom: 6px;
  }
  .stat-value {
    font-size: 24px;
  }
  .catalogue {
    gap: 12px;
  }
  .app-card {
    padding: 16px;
    gap: 15px;
  }
  .card-top {
    gap: 9px;
    align-items: flex-start;
  }
  .app-icon {
    width: 37px;
    height: 37px;
    border-radius: 9px;
  }
  .app-card h3 {
    font-size: 16px;
  }
  .app-card p {
    font-size: 11px;
  }
  .tag {
    font-size: 8px;
  }
  .app-card .card-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .section-title h2 {
    font-size: 15px;
  }
  .org-row {
    padding: 16px;
  }
  .org-apps .pill {
    display: none;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-head .search {
    max-width: 150px;
  }
  .install-row {
    padding: 17px;
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .install-row .actions {
    margin-left: 50px;
  }
  .app-topbar {
    padding: 0 20px;
    height: 68px;
  }
  .app-topbar .org-tag {
    font-size: 11px;
    padding-left: 12px;
    margin-left: 12px;
    max-width: 140px;
  }
  .app-content {
    padding: 28px 18px;
  }
  .app-content h1 {
    font-size: 25px;
  }
  .app-toolbar button {
    padding: 8px;
  }
  .app-toolbar span {
    display: none;
  }
  .new-task {
    padding: 16px;
    gap: 8px;
  }
  .task-row {
    padding: 14px 16px;
    gap: 10px;
  }
  .task-row .actions {
    opacity: 1;
  }
  .game {
    padding: 16px;
  }
  .scoreboard {
    gap: 12px;
  }
  .score {
    font-size: 26px;
    letter-spacing: 8px;
  }
  .scoreboard strong {
    font-size: 11px;
  }
  .room-card {
    padding: 17px;
  }
  .access-row {
    padding: 15px 17px;
  }
  .activity-row {
    padding: 17px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
  .top-right > span {
    display: none;
  }
}
