:root {
  color-scheme: dark;
  --bg: #0a0d11;
  --bg-soft: #0f1318;
  --surface: #12171d;
  --surface-high: #181e25;
  --border: #273039;
  --border-soft: #1d252d;
  --text: #f4f6f5;
  --muted: #8f9aa5;
  --muted-strong: #b4bdc5;
  --accent: #b8ff3d;
  --accent-soft: rgba(184, 255, 61, 0.12);
  --cyan: #54d6c8;
  --danger: #ff6969;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  min-width: 320px;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(440px, 0.83fr) minmax(520px, 1.17fr);
  min-height: 100vh;
  background: #0b0f13;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(48px, 8vw, 124px);
  position: relative;
  z-index: 2;
}

.login-brand,
.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.login-brand {
  position: absolute;
  left: clamp(48px, 8vw, 124px);
  top: 48px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(184, 255, 61, 0.38);
  border-radius: 11px;
  background: var(--accent);
  box-shadow: 0 8px 28px rgba(184, 255, 61, 0.12);
  color: #11170a;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.brand-mark.small {
  width: 37px;
  height: 37px;
  border-radius: 9px;
}

.brand-mark.small svg {
  width: 21px;
  height: 21px;
}

.login-copy {
  margin: 38px 0 40px;
  max-width: 500px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(40px, 4.3vw, 64px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.login-copy > p:last-child {
  max-width: 420px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

#login-form {
  width: 100%;
  max-width: 450px;
}

#login-form > label {
  display: block;
  margin: 0 0 9px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
}

#login-form > label:not(:first-child) {
  margin-top: 20px;
}

.field {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #10151a;
  padding: 0 16px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.field:focus-within {
  border-color: rgba(184, 255, 61, 0.72);
  background: #12181c;
  box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.08);
}

.field > svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: #68747f;
}

.field input {
  min-width: 0;
  height: 100%;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.field input::placeholder {
  color: #59636c;
}

.field-action {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #77828c;
  cursor: pointer;
}

.field-action:hover {
  background: var(--surface-high);
  color: var(--text);
}

.field-action svg {
  width: 19px;
  height: 19px;
}

.form-error {
  margin: 14px 0 -3px;
  color: #ff8989;
  font-size: 12px;
  line-height: 1.5;
}

.primary-button {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #0b1005;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.primary-button:hover {
  box-shadow: 0 12px 28px rgba(184, 255, 61, 0.16);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.7;
  transform: none;
}

.primary-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  color: #66717b;
  font-size: 11px;
}

.secure-note svg {
  width: 15px;
  height: 15px;
}

.login-visual {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  border-left: 1px solid #1b2229;
  background:
    radial-gradient(circle at 35% 40%, rgba(84, 214, 200, 0.1), transparent 32%),
    radial-gradient(circle at 74% 65%, rgba(184, 255, 61, 0.06), transparent 36%),
    #0d1217;
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent 2%, black 25%, black 75%, transparent);
}

.code-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(16, 22, 27, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.code-card-one {
  top: 24%;
  left: 12%;
  width: min(560px, 72%);
  padding: 19px 23px 29px;
  border-radius: 14px;
  transform: rotate(-1.2deg);
}

.code-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  opacity: 0.85;
}

.code-dot.red {
  background: #ff6e67;
}

.code-dot.yellow {
  background: #f0bf4c;
}

.code-dot.green {
  background: #63c98b;
}

.code-card pre {
  margin: 27px 0 0;
  color: #929eaa;
  font: 14px/1.9 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.code-card pre i {
  color: var(--accent);
  font-style: normal;
}

.code-card pre b {
  color: #e8edeb;
  font-weight: 500;
}

.code-cursor {
  color: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.code-card-two {
  top: 55%;
  right: 8%;
  width: 230px;
  padding: 24px;
  border-radius: 13px;
}

.code-card-two p {
  margin: 0 0 10px;
  color: #7f8a94;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.code-card-two strong {
  display: block;
  font-size: 54px;
  font-weight: 650;
  letter-spacing: -0.06em;
}

.code-card-two span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #7f8a94;
  font-size: 10px;
}

.code-card-two span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(184, 255, 61, 0.09);
}

.visual-caption {
  position: absolute;
  right: 8%;
  bottom: 8%;
  margin: 0;
  color: rgba(244, 246, 245, 0.74);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: right;
}

.dashboard {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -100px, rgba(84, 214, 200, 0.05), transparent 420px),
    var(--bg);
}

.topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 13, 17, 0.92);
  backdrop-filter: blur(16px);
}

.dashboard-brand {
  min-width: 220px;
}

.dashboard-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dashboard-brand strong {
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.dashboard-brand small {
  color: #727e88;
  font-size: 8px;
  letter-spacing: 0.22em;
}

.server-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(184, 255, 61, 0.07);
}

.server-state > span:last-child,
.user-chip > span:last-child {
  display: flex;
  flex-direction: column;
}

.server-state small,
.user-chip small {
  color: #68737d;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.server-state strong {
  margin-top: 2px;
  color: #d6ddd9;
  font-size: 11px;
  font-weight: 550;
}

.topbar-actions {
  display: flex;
  min-width: 220px;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #313b44;
  border-radius: 8px;
  background: var(--surface-high);
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
}

.user-chip strong {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
}

.icon-button {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted-strong);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.icon-button:hover {
  border-color: #3b4751;
  background: var(--surface-high);
  color: var(--text);
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.icon-button svg {
  width: 15px;
  height: 15px;
}

.icon-button.logout {
  border: 0;
  background: transparent;
  color: #737f89;
  padding: 0 4px;
}

.sessions-section,
.workspace-section {
  padding-right: clamp(20px, 4vw, 64px);
  padding-left: clamp(20px, 4vw, 64px);
}

.sessions-section {
  padding-top: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(15, 19, 24, 0.54);
}

.section-heading,
.workspace-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading .eyebrow,
.workspace-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h1,
.workspace-heading h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.section-heading h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

#last-update {
  color: #64707a;
  font-size: 10px;
}

.session-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding: 1px;
}

.session-card {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 88px;
  align-items: center;
  gap: 13px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  padding: 15px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.session-card:hover {
  border-color: #414d56;
  background: #151b21;
  transform: translateY(-1px);
}

.session-card.open {
  border-color: rgba(184, 255, 61, 0.52);
  background:
    linear-gradient(120deg, rgba(184, 255, 61, 0.06), transparent 60%),
    #151b1d;
}

.session-card.open::after {
  content: "";
  width: 44px;
  height: 44px;
  position: absolute;
  top: -26px;
  right: -20px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(18px);
  opacity: 0.18;
}

.session-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #303942;
  border-radius: 9px;
  background: #0d1216;
  color: #7f8b94;
}

.session-card.open .session-icon {
  border-color: rgba(184, 255, 61, 0.28);
  background: var(--accent-soft);
  color: var(--accent);
}

.session-icon svg {
  width: 20px;
  height: 20px;
}

.session-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.session-info strong {
  overflow: hidden;
  font: 650 13px/1.3 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #75818a;
  font-size: 9px;
}

.session-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 255, 61, 0.07);
}

.session-arrow {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #55616a;
}

.session-card:hover .session-arrow,
.session-card.open .session-arrow {
  color: var(--accent);
}

.session-skeleton {
  width: 100%;
  min-width: 0;
  height: 88px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: linear-gradient(90deg, #11161b, #171d23, #11161b);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.sessions-empty {
  color: var(--muted);
  font-size: 13px;
}

.workspace-section {
  padding-top: 30px;
  padding-bottom: 70px;
}

.workspace-heading {
  align-items: center;
}

.workspace-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.workspace-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.count-pill {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 10px;
}

.zoom-control,
.layout-switcher {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 3px;
}

.zoom-control > span,
.layout-switcher > span {
  margin: 0 8px 0 6px;
  color: #67737d;
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.zoom-control button,
.layout-switcher button {
  display: grid;
  width: 27px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #72808a;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.zoom-control button:hover,
.layout-switcher button:hover {
  color: var(--text);
}

.zoom-control button:disabled {
  color: #424c54;
  cursor: not-allowed;
}

.zoom-control .zoom-value {
  width: 44px;
  background: #202830;
  color: var(--accent);
  font-size: 9px;
}

.layout-switcher button.active {
  background: #29323a;
  color: var(--accent);
}

.terminal-grid {
  display: flex;
  min-height: 350px;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.empty-workspace {
  display: flex;
  width: 100%;
  min-height: 350px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #273039;
  border-radius: 13px;
  background:
    radial-gradient(circle at center, rgba(84, 214, 200, 0.025), transparent 42%),
    rgba(15, 19, 24, 0.38);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border: 1px solid #2c363f;
  border-radius: 14px;
  background: #11161b;
  color: #65717a;
}

.empty-icon svg {
  width: 26px;
  height: 26px;
}

.empty-workspace h3 {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.empty-workspace p {
  margin: 9px 0 0;
  color: #66717b;
  font-size: 11px;
  line-height: 1.65;
}

.terminal-panel {
  width: calc(50% - 8px);
  min-width: 380px;
  height: 490px;
  min-height: 280px;
  max-width: 100%;
  position: relative;
  border: 1px solid #303a43;
  border-radius: 11px;
  background: #080b0e;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  resize: both;
}

.terminal-panel::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 4;
  border-right: 2px solid rgba(184, 255, 61, 0.58);
  border-bottom: 2px solid rgba(184, 255, 61, 0.58);
  border-radius: 0 0 4px;
  pointer-events: none;
}

.terminal-panel.maximized {
  width: auto !important;
  height: auto !important;
  min-width: 0;
  max-width: none;
  position: fixed;
  inset: 12px;
  z-index: 100;
  resize: none;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.terminal-panel.maximized::after {
  display: none;
}

body.has-maximized {
  overflow: hidden;
}

.terminal-header {
  display: flex;
  height: 45px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #252d34;
  background: #12171b;
  padding: 0 10px 0 14px;
  user-select: none;
}

.terminal-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  flex: 1;
}

.terminal-title svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--accent);
}

.terminal-title strong {
  overflow: hidden;
  font: 650 11px/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-connection {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #78848d;
  font-size: 9px;
}

.terminal-connection i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f0bf4c;
}

.terminal-connection.connected i {
  background: var(--accent);
}

.terminal-connection.error i {
  background: var(--danger);
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.terminal-action {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #73808a;
  cursor: pointer;
}

.terminal-action:hover {
  background: #20272e;
  color: var(--text);
}

.terminal-action.close:hover {
  background: rgba(255, 105, 105, 0.1);
  color: #ff8989;
}

.terminal-action svg {
  width: 14px;
  height: 14px;
}

.terminal-body {
  height: calc(100% - 45px);
  position: relative;
  background: #080b0e;
  padding: 10px 8px 8px 12px;
}

.terminal-host {
  width: 100%;
  height: 100%;
}

.terminal-host .xterm {
  height: 100%;
}

.terminal-host .xterm-viewport {
  scrollbar-color: #303a42 #080b0e;
  scrollbar-width: thin;
}

.terminal-host .xterm-screen {
  cursor: text;
}

.terminal-reconnect {
  display: none;
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  border: 1px solid #39444d;
  border-radius: 7px;
  background: #171d22;
  color: var(--text);
  padding: 7px 11px;
  font-size: 10px;
  cursor: pointer;
}

.terminal-reconnect.visible {
  display: block;
}

.toast-region {
  display: flex;
  width: min(380px, calc(100vw - 32px));
  flex-direction: column;
  gap: 8px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
}

.toast {
  border: 1px solid #35414a;
  border-radius: 9px;
  background: rgba(19, 25, 30, 0.96);
  box-shadow: var(--shadow);
  color: #d7ddda;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.5;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-color: rgba(255, 105, 105, 0.35);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1180px) {
  .session-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-card {
    min-height: 100vh;
  }

  .login-visual {
    display: none;
  }

  .server-state {
    display: none;
  }

  .terminal-panel {
    width: 100% !important;
  }

}

@media (max-width: 680px) {
  .login-card {
    justify-content: flex-start;
    padding: 130px 24px 42px;
  }

  .login-brand {
    left: 24px;
    top: 30px;
  }

  .login-copy {
    margin: 30px 0 34px;
  }

  .login-copy h1 {
    font-size: 42px;
  }

  .topbar {
    min-height: 62px;
    padding: 10px 16px;
  }

  .dashboard-brand {
    min-width: 0;
  }

  .dashboard-brand > span:last-child,
  .user-chip {
    display: none;
  }

  .topbar-actions {
    min-width: 0;
    margin-left: auto;
  }

  .icon-button.logout span,
  .session-tools #last-update,
  .layout-switcher > span {
    display: none;
  }

  .sessions-section,
  .workspace-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sessions-section {
    padding-top: 26px;
    padding-bottom: 23px;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h1 {
    font-size: 21px;
  }

  .session-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .session-card,
  .session-skeleton {
    width: 100%;
    min-width: 0;
    height: 72px;
  }

  .session-card {
    gap: 9px;
    border-radius: 9px;
    padding: 10px;
  }

  .session-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
  }

  .session-icon svg {
    width: 17px;
    height: 17px;
  }

  .session-info strong {
    font-size: 10.5px;
  }

  .session-meta {
    gap: 6px;
    margin-top: 5px;
    font-size: 8px;
  }

  .session-arrow {
    display: none;
  }

  .workspace-section {
    padding-top: 24px;
  }

  .workspace-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .workspace-controls {
    width: 100%;
  }

  .zoom-control {
    width: 100%;
    height: 42px;
    justify-content: flex-end;
  }

  .zoom-control > span {
    margin-right: auto;
    margin-left: 9px;
  }

  .zoom-control button {
    width: 37px;
    height: 34px;
    font-size: 16px;
  }

  .zoom-control .zoom-value {
    width: 54px;
    font-size: 10px;
  }

  .layout-switcher {
    display: none;
  }

  .terminal-grid {
    gap: 13px;
    margin-top: 14px;
  }

  .terminal-panel {
    width: 100% !important;
    min-width: 0;
    height: min(64svh, 520px);
    min-height: 380px;
    resize: vertical;
  }

  .terminal-connection span {
    display: none;
  }

  .terminal-header {
    height: 48px;
    padding-right: 7px;
    padding-left: 11px;
  }

  .terminal-body {
    height: calc(100% - 48px);
    padding: 8px 5px 6px 8px;
  }

  .terminal-action {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 360px) {
  .session-card {
    gap: 7px;
    padding: 8px;
  }

  .session-icon {
    width: 31px;
    height: 31px;
  }

  .section-heading .icon-button {
    width: 38px;
    padding: 0;
  }

  .section-heading .icon-button span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
