.workspace {
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background: #10121d;
  border-right: 1px solid var(--border-soft);
  padding: 28px 17px 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 0 10px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-brand .brand {
  font-size: 24px;
}
.workspace-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #181b28;
  border: 1px solid #282d40;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 30px;
}
.workspace-monogram {
  width: 30px;
  height: 32px;
  border-radius: 6px;
  background: #333049;
  color: #c9c3e9;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.workspace-switch strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
}
.workspace-switch small {
  display: block;
  font-size: 9px;
  color: var(--subtle);
}
.workspace-switch > svg {
  margin-left: auto;
  color: var(--muted);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.nav-item:hover {
  color: var(--text);
  background: #ffffff04;
}
.nav-item.active {
  background: #27233e;
  border-color: #41395f88;
  color: #c7c1ff;
}
.nav-item.active svg {
  color: #a69dff;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 19px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 56px;
}
.project-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--subtle);
  padding: 0 13px 18px;
}
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 19px 0;
  border-top: 1px solid var(--border-soft);
}
.sidebar-profile strong {
  font-size: 10px;
  font-weight: 500;
  display: block;
}
.sidebar-profile small {
  font-size: 9px;
  color: var(--subtle);
}
.sidebar-profile .icon-button {
  margin-left: auto;
  width: 25px;
}
.workspace-body {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 72px;
  padding: 0 38px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0e101a;
  gap: 16px;
}
.breadcrumbs {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  color: var(--subtle);
}
.breadcrumbs strong {
  color: #d1d4e0;
  font-weight: 400;
}
.slash {
  color: #454b64;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.notification-button {
  position: relative;
  border-left: 1px solid var(--border-soft);
  border-radius: 0;
  padding-left: 13px;
  width: 40px;
}
.notification-button > span {
  position: absolute;
  right: 2px;
  top: 7px;
  width: 4px;
  height: 4px;
  background: #aaa0ff;
  border-radius: 50%;
}
.app-main {
  padding: 35px 38px 30px;
  width: 100%;
  max-width: 1580px;
  margin-inline: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 9px;
}
.page-heading h1 {
  font-size: 28px;
}
.page-heading > div > p:last-child {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 34px;
}
.stat-card {
  padding: 20px 22px;
  border-right: 1px solid var(--border-soft);
  min-width: 0;
}
.stat-card:last-child {
  border: none;
}
.stat-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat-card > div svg {
  color: #7c83a2;
}
.stat-card h2 {
  margin: 16px 0 10px;
  font-size: 29px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat-card h2 small {
  font-size: 13px;
  font-weight: 400;
  color: var(--subtle);
  margin-left: 8px;
  letter-spacing: 0;
}
.stat-card > p {
  color: var(--subtle);
  font-size: 9px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.stat-dash {
  width: 5px;
  height: 1px;
  background: var(--subtle);
}
.desktop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.desktop-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  padding: 22px;
}
.desktop-card.desktop-active {
  border-color: #3f3b63;
  background: linear-gradient(120deg, #1b1a30, #151823 75%);
}
.desktop-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.desktop-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #232737;
  border: 1px solid #303548;
  color: #9ba3bd;
}
.desktop-symbol.lit {
  background: #312953;
  border-color: #554677;
  color: #b5a4fb;
}
.desktop-card h3 {
  font-size: 16px;
}
.desktop-subtitle {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.desktop-subtitle > span {
  color: #62677d;
}
.spec-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  font-size: 10px;
  color: var(--muted);
}
.spec-row > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spec-row svg {
  color: #7d86a1;
}
.spec-row .rate {
  margin-left: auto;
  color: #c6cadd;
  gap: 2px;
}
.spec-row .rate small {
  color: var(--subtle);
  font-size: 9px;
}
.session-strip {
  display: flex;
  justify-content: space-between;
  background: #080a133e;
  border: 1px solid #2a2d414d;
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 17px;
}
.session-strip > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.session-strip > div:last-child {
  text-align: right;
}
.session-strip span {
  font-size: 8px;
  color: var(--subtle);
  letter-spacing: 1px;
}
.session-strip strong {
  font-size: 13px;
  font-weight: 500;
}
.desktop-actions {
  display: flex;
  gap: 10px;
}
.desktop-actions .button {
  flex: 1;
  font-size: 11px;
  padding-inline: 11px;
  min-height: 37px;
}
.desktop-actions .delete-button {
  flex: 0 0 42px;
  padding-inline: 0;
}
.desktop-actions .stop-button {
  flex: 0 0 80px;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  margin-top: 26px;
}
.usage-panel,
.activity-panel {
  padding: 21px 23px 0;
  overflow: hidden;
}
.dashboard-bottom h2 {
  font-size: 14px;
}
.chart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.chart-summary strong {
  font-size: 23px;
  font-weight: 500;
}
.chart-summary strong > span {
  font-size: 11px;
  margin-left: 7px;
  color: var(--subtle);
  font-weight: 400;
}
.chart-legend {
  color: var(--subtle);
  font-size: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.chart-legend > i {
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: #9382ed;
}
.usage-chart {
  display: flex;
  gap: 11px;
  height: 143px;
  margin: 13px 0 14px;
}
.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 24px;
  font-size: 8px;
  color: var(--subtle);
  width: 14px;
}
.chart-columns {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  flex: 1;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 49px,
    #ffffff06 50px,
    transparent 51px
  );
}
.chart-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bar-area {
  height: 115px;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.chart-bar {
  width: 100%;
  background: linear-gradient(to top, #49416d, #706191);
  border: 1px solid #82729f33;
  border-radius: 4px 4px 0 0;
  position: relative;
  max-width: 41px;
  margin-inline: auto;
}
.chart-bar.highlight {
  background: linear-gradient(to top, #7360bf, #b2a0ef);
  border-color: #c7b2ff55;
}
.chart-bar > span {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: #353047;
  padding: 2px 4px;
  border-radius: 3px;
  color: #eee;
  font-size: 8px;
  opacity: 0;
}
.chart-bar:hover > span {
  opacity: 1;
}
.chart-column > small {
  font-size: 8px;
  color: var(--subtle);
}
.panel-footer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-soft);
  margin-inline: -23px;
  padding: 12px 23px;
  font-size: 10px;
  color: var(--muted);
}
.panel-footer-link:hover {
  color: var(--accent-light);
  background: #ffffff03;
}
.activity-list {
  padding-bottom: 5px;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #282b3d70;
}
.activity-item:first-child {
  padding-top: 4px;
}
.activity-item:last-child {
  border: none;
}
.activity-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #2a3b39;
  background: #1d2b28;
  border-radius: 50%;
  color: #8daf9e;
}
.activity-item strong {
  font-weight: 500;
  font-size: 11px;
}
.activity-item p {
  color: var(--subtle);
  font-size: 9px;
  margin-top: 3px;
}
.activity-item p > span {
  margin: 0 5px;
}
.activity-item > small {
  font-size: 8px;
  color: var(--subtle);
  margin-left: auto;
  white-space: nowrap;
}
.app-footer {
  padding: 16px 38px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 9px;
}
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.segmented button {
  border-radius: 5px;
  font-size: 11px;
  padding: 7px 13px;
  color: var(--muted);
}
.segmented button.selected {
  background: #302b46;
  color: #d4ccff;
}
.search-input {
  display: flex;
  align-items: center;
  position: relative;
  width: 230px;
}
.search-input svg {
  position: absolute;
  left: 12px;
  color: var(--subtle);
}
.search-input input {
  padding: 10px 12px 10px 39px;
  background: var(--surface);
  font-size: 11px;
}
.empty-notification {
  text-align: center;
  padding: 20px 0 35px;
  color: var(--muted);
}
.empty-notification svg {
  margin-bottom: 18px;
}
.empty-notification span {
  font-size: 11px;
  display: block;
  margin-top: 9px;
}
.billing-overview {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 22px;
  margin-bottom: 38px;
}
.billing-total,
.billing-chart {
  padding: 27px;
}
.billing-total h2 {
  font-size: 39px;
  margin: 17px 0 7px;
  letter-spacing: -1px;
}
.billing-total > p {
  color: var(--muted);
  font-size: 11px;
}
.billing-metrics {
  display: flex;
  gap: 55px;
  margin: 26px 0 20px;
}
.billing-metrics > span {
  display: flex;
  flex-direction: column;
  color: var(--subtle);
  font-size: 10px;
  gap: 3px;
}
.billing-metrics strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.preview-pill,
.local-badge {
  font-size: 10px;
  color: #c0b5f3;
  border: 1px solid #4c426d;
  background: #30264266;
  border-radius: 5px;
  padding: 4px 8px;
}
.billing-chart .muted {
  font-size: 11px;
  margin-top: 6px;
}
.billing-chart .usage-chart {
  height: 172px;
  margin-top: 28px;
}
.billing-chart .bar-area {
  height: 145px;
}
.table-filters {
  display: flex;
  gap: 10px;
}
.table-filters select {
  padding: 8px 10px;
  font-size: 11px;
  width: auto;
}
.table-scroll {
  overflow-x: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
.data-table th {
  color: var(--muted);
  font-weight: 400;
  padding: 15px 20px;
  background: #ffffff02;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}
.data-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table .table-cost {
  color: var(--text);
  font-weight: 500;
}
.table-desktop {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
}
.table-desktop svg {
  color: #8d80b8;
}
.completed-badge {
  color: #91c8b0;
  background: #1d342b;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
}
.settings-form {
  max-width: 960px;
}
.settings-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  padding: 8px 0 30px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  max-width: 960px;
}
.settings-section > div:first-child > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 250px;
}
.settings-fields {
  padding: 25px;
}
.settings-fields .field:last-child {
  margin-bottom: 0;
}
.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
}
.toggle-field strong {
  font-size: 12px;
  font-weight: 500;
}
.toggle-field small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.toggle-field input {
  appearance: none;
  width: 36px;
  min-width: 36px;
  height: 21px;
  border-radius: 30px;
  padding: 2px;
  background: #353a4e;
  cursor: pointer;
}
.toggle-field input::before {
  content: '';
  width: 15px;
  height: 15px;
  display: block;
  background: #eee;
  border-radius: 50%;
  transition: transform 0.15s;
}
.toggle-field input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle-field input:checked::before {
  transform: translateX(14px);
}
.settings-save {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 45px;
}
.settings-save > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.reset-section {
  border: none;
}
.reset-panel {
  padding: 25px;
}
.reset-panel p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 18px;
}
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr);
  gap: 30px;
}
.support-chat {
  overflow: hidden;
}
.support-chat > header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.support-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--accent-light);
  background: #312949;
  border-radius: 10px;
}
.support-chat h2 {
  font-size: 14px;
}
.support-chat header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.support-chat header .local-badge {
  margin-left: auto;
  font-size: 8px;
  white-space: nowrap;
}
.chat-messages {
  height: 330px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chat-message {
  max-width: 92%;
  font-size: 12px;
}
.chat-message small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: var(--subtle);
  margin-bottom: 7px;
}
.chat-message p {
  background: #212436;
  border: 1px solid #30334c;
  padding: 13px 16px;
  border-radius: 0 9px 9px;
  line-height: 1.8;
  color: #c3c9db;
}
.chat-message.user {
  align-self: flex-end;
}
.chat-message.user small {
  text-align: right;
}
.chat-message.user p {
  background: #322b53;
  border-color: #483f6a;
  border-radius: 9px 0 9px 9px;
  color: #e1daff;
}
.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 22px 20px;
}
.suggested-questions button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  padding: 7px 10px;
  color: var(--accent-light);
  border: 1px solid #443a63;
  border-radius: 5px;
}
.suggested-questions button:hover {
  background: #312846;
}
.chat-form {
  display: flex;
  gap: 10px;
  padding: 18px 22px 10px;
  border-top: 1px solid var(--border-soft);
}
.chat-form input {
  font-size: 12px;
  background: #111420;
}
.chat-form .icon-button {
  width: 42px;
  height: 43px;
}
.chat-disclaimer {
  text-align: center;
  font-size: 8px;
  color: var(--subtle);
  padding: 0 15px 16px;
}
.support-resources > h2 {
  font-size: 14px;
  margin-bottom: 17px;
}
.support-resources > button {
  display: block;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  padding: 15px 0 22px;
}
.support-resources > button > svg {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-light);
}
.support-resources > button strong {
  font-size: 13px;
  font-weight: 500;
}
.support-resources p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.support-resources > button > span {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 12px;
  color: var(--accent-light);
  font-size: 10px;
}
.support-note {
  margin-top: 24px;
}
.support-note strong {
  font-size: 12px;
  font-weight: 500;
}

/* Remote desktop is an explicitly labelled simulation, with native controls around it. */
.remote-session {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0c0e17;
}
.remote-toolbar {
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}
.remote-title strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.remote-title > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.remote-meter {
  margin-left: auto;
  display: flex;
  gap: 25px;
  color: var(--muted);
  font-size: 12px;
}
.remote-footer {
  padding: 12px 22px;
  font-size: 9px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.remote-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.remote-footer a {
  color: var(--accent-light);
}
/* The streamed Windows desktop fills the session workspace. */
.remote-stream {
  position: relative;
  flex: 1;
  min-height: 480px;
  overflow: hidden;
  background: #05060b;
}
.stream-display {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: default;
}
.stream-display:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.stream-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  text-align: center;
  background: rgba(11, 13, 23, 0.94);
}
.stream-status strong {
  font-size: 16px;
  font-weight: 600;
}
.stream-status p {
  max-width: 400px;
  color: var(--muted);
  font-size: 13px;
}
.stream-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent-light);
  animation: stream-spin 0.9s linear infinite;
}
.stream-spinner[hidden] {
  display: none;
}
@keyframes stream-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stream-spinner {
    animation-duration: 3s;
  }
}
.offline-banner {
  padding: 10px 20px;
  background: #493519;
  color: #ffd18b;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.session-unavailable {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 35px;
  text-align: center;
}
.session-unavailable > svg {
  color: var(--accent-light);
}
.session-unavailable p {
  color: var(--muted);
}

@media (min-width: 1700px) {
  .app-main {
    padding: 48px 60px;
  }
  .desktop-card {
    padding: 28px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .desktop-card h3 {
    font-size: 19px;
  }
  .spec-row {
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  :root {
    --sidebar: 224px;
  }
  .app-main {
    padding: 30px 25px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .stat-card {
    padding: 18px 15px;
  }
  .stat-card h2 {
    font-size: 25px;
  }
  .stat-card > p {
    font-size: 8px;
  }
  .desktop-card {
    padding: 18px;
  }
  .chart-columns {
    gap: 10px;
  }
  .activity-item {
    gap: 8px;
  }
  .chart-legend {
    max-width: 100px;
  }
}

@media (max-width: 1020px) {
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    margin-top: 5px;
    font-size: 11px;
    padding-inline: 12px;
  }
  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card:nth-child(2) {
    border-right: none;
  }
  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-soft);
  }
  .desktop-grid,
  .dashboard-bottom,
  .billing-overview {
    grid-template-columns: 1fr;
  }
  .stat-card > p {
    font-size: 9px;
  }
  .chart-legend {
    max-width: none;
  }
  .usage-chart {
    height: 160px;
  }
  .bar-area {
    height: 134px;
  }
  .settings-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .settings-section > div:first-child > p {
    max-width: none;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .search-input {
    width: 100%;
  }
}

/* Only phones see the hint: there the session table is wider than the screen. */
.table-hint {
  display: none;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 760px) {
  .table-hint {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 270px;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: #0008;
    backdrop-filter: blur(3px);
  }
  .workspace-body {
    margin-left: 0;
  }
  .topbar {
    height: 60px;
    padding: 0 17px;
  }
  .breadcrumbs {
    gap: 8px;
  }
  .breadcrumbs > span:first-of-type {
    display: none;
  }
  .breadcrumbs .slash {
    display: none;
  }
  .topbar-actions {
    gap: 8px;
  }
  .topbar-actions .preview-label {
    font-size: 9px;
  }
  .notification-button {
    border: none;
    padding: 0;
    width: 28px;
  }
  .app-main {
    padding: 26px 19px;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 17px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading > div > p:last-child {
    line-height: 1.8;
    font-size: 11px;
  }
  .page-heading > .button {
    font-size: 12px;
    padding-inline: 15px;
  }
  .overview-stats {
    margin-bottom: 27px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-card h2 {
    font-size: 26px;
  }
  .stat-card > div {
    font-size: 10px;
  }
  .desktop-card {
    padding: 20px;
  }
  .desktop-grid {
    gap: 17px;
  }
  .dashboard-bottom {
    gap: 18px;
    margin-top: 20px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .section-heading > .text-link {
    font-size: 10px;
  }
  .app-footer {
    padding: 16px 19px;
    flex-direction: column;
    gap: 3px;
  }
  .billing-overview {
    gap: 16px;
  }
  .billing-total,
  .billing-chart {
    padding: 22px;
  }
  .table-filters {
    gap: 5px;
  }
  .table-filters select {
    font-size: 10px;
    max-width: 125px;
  }
  .data-table td,
  .data-table th {
    padding-inline: 15px;
  }
  .settings-fields {
    padding: 20px;
  }
  .settings-save > span {
    font-size: 9px;
  }
  .settings-save .button {
    font-size: 11px;
  }
  .support-chat > header {
    padding: 15px;
    gap: 9px;
  }
  .support-chat header p {
    font-size: 8px;
  }
  .support-chat header .local-badge {
    display: none;
  }
  .chat-messages {
    padding: 19px;
    height: 365px;
  }
  .chat-message {
    max-width: 96%;
  }
  .chat-message p {
    font-size: 11px;
  }
  .chat-form {
    padding-inline: 15px;
  }
  .remote-toolbar {
    padding: 10px;
    gap: 8px;
    height: auto;
    flex-wrap: wrap;
  }
  .remote-title {
    flex: 1;
  }
  .remote-meter {
    gap: 12px;
    font-size: 10px;
    margin-left: 0;
  }
  .remote-toolbar > .icon-button:nth-last-child(2) {
    display: none;
  }
  .remote-toolbar .button {
    font-size: 10px;
    padding-inline: 9px;
  }
  .remote-footer {
    font-size: 8px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .remote-footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
}

/* Wallet (usage.html): balance, top-up button and the last few top-ups. */
.wallet-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
  align-items: center;
  padding: 24px 27px;
  margin-bottom: 38px;
}
.wallet-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wallet-balance {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.wallet-balance.negative {
  color: var(--danger);
}
.wallet-summary p {
  color: var(--muted);
  font-size: 11px;
}
.wallet-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wallet-history {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
}
.wallet-history:empty {
  display: none;
}
.wallet-history li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
}
.wallet-history strong {
  color: var(--text);
  font-weight: 500;
}
.sample-badge {
  color: #c0b5f3;
  background: #30264266;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
}

/* Add money dialog: amount and payment method as large tap targets. */
.top-up-form fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
.top-up-form legend {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-chip {
  position: relative;
}
.choice-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input);
  font-size: 13px;
}
.choice-chip input:checked + span {
  border-color: var(--accent);
  background: #302b46;
  color: #e4deff;
}
.choice-chip input:focus-visible + span {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .wallet-panel {
    grid-template-columns: 1fr;
  }
  .wallet-actions {
    align-items: stretch;
  }
  .wallet-history li {
    grid-template-columns: 1fr auto;
  }
  .wallet-history small {
    grid-column: 1 / -1;
  }
}
