:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #121212;
  color: #f3f1ed;
  --accent: #d95007;
  --accent-text: #ffa475;
  --muted: #b2afa9;
  --panel: #1b1b1d;
  --line: #39393c;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
a { color: var(--accent-text); }
button, textarea { font: inherit; }
button, .button { min-height: 44px; }

.page-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  color: #f3f1ed;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -1px;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 9px;
  height: 27px;
  background: var(--accent);
  border-radius: 3px;
}

.header-context { color: var(--muted); font-size: 14px; }
main { padding: 24px 0 36px; }
.intro { margin-bottom: 26px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.6;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.3px;
}

h2 { margin: 0 0 12px; font-size: 21px; line-height: 1.35; }
h3 { font-size: 17px; line-height: 1.4; }
p { color: var(--muted); line-height: 1.65; }
.intro-text { margin: 14px 0 0; max-width: 60ch; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  overflow-wrap: anywhere;
}

.session-banner {
  margin: 0 0 24px;
  padding: 16px 20px;
  color: #f0d6c8;
  background: #2b201b;
  border: 1px solid #70412b;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.login-panel { max-width: 670px; padding: clamp(24px, 4vw, 40px); }
.login-panel > p { max-width: 58ch; }
.login-panel .button { margin: 10px 0 6px; }
.quiet-note { font-size: 13px; line-height: 1.6; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #505054;
  border-radius: 8px;
  padding: 11px 17px;
  background: #272729;
  color: #f7f3ef;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .button:hover { background: #35302d; border-color: #b97754; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .button.primary:hover { background: #b94406; border-color: #ffaf84; }
button.button-subtle { background: transparent; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffb18a;
  outline-offset: 4px;
}

.workspace-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0 24px;
}

.workspace-toolbar .eyebrow { margin-bottom: 4px; }
.owner-label { margin: 0; color: #f3f1ed; overflow-wrap: anywhere; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.connection-panel { margin-bottom: 24px; }
.connection-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 20px 0;
}

dt { color: var(--muted); font-size: 12px; line-height: 1.5; }
dd { margin: 6px 0 0; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.connection-panel .quiet-note { margin-bottom: 0; }
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 24px;
}

.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-heading h2 { margin: 0; }
.count {
  display: inline-flex;
  justify-content: center;
  min-width: 32px;
  padding: 4px 9px;
  border-radius: 7px;
  background: #2e2926;
  color: #ecc7b3;
  font-size: 13px;
}

.section-description { margin: 12px 0 22px; font-size: 13px; }
.task-list { display: grid; gap: 12px; }
.task-list > button, .task-list .task-card {
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 18px;
  text-align: left;
  justify-content: stretch;
  background: #202022;
  border: 1px solid #454548;
  border-radius: 9px;
  overflow-wrap: anywhere;
}

.task-list button:hover { background: #2a2421; border-color: #b97754; }
.task-list [aria-pressed="true"] {
  background: #30231d;
  border-color: var(--accent);
}

.task-list strong { font-size: 16px; line-height: 1.45; }
.task-list small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.task-list p { margin: 0; }
.detail-panel { min-height: 235px; }
.detail-panel p, .detail-panel li { white-space: pre-wrap; }
.detail-panel dl { margin: 20px 0 0; }
.detail-panel dt { margin-top: 18px; }
.detail-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
.command-panel { margin-top: 24px; }
label { display: block; color: #ddd7d1; font-size: 14px; margin: 20px 0 9px; }
textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  padding: 14px;
  color: #f3f1ed;
  background: #121212;
  border: 1px solid #555559;
  border-radius: 8px;
  resize: vertical;
  line-height: 1.6;
}

.command-status:empty { display: none; }
.command-status { margin: 18px 0 0; color: #f0d6c8; }
.security-note { margin: 36px 0 0; max-width: 76ch; }
.security-note h2 { color: #d2ccc5; font-size: 14px; margin-bottom: 8px; }
.security-note p { font-size: 13px; margin: 0; }
.page-footer { padding: 10px 0 30px; color: #9c9892; font-size: 12px; line-height: 1.6; }
.skip-link {
  position: absolute;
  left: 18px;
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  min-height: 44px;
  background: #272729;
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

@media (max-width: 760px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .connection-facts { grid-template-columns: 1fr; gap: 18px; }
  .page-header { padding: 20px 0; }
  main { padding-top: 18px; }
  .panel { padding: 22px; }
  .workspace-toolbar { align-items: flex-start; }
}

@media (max-width: 420px) {
  .header-context { width: 100%; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions button { flex: 1; }
  .panel { padding: 18px; }
  .login-panel .button { width: 100%; }
  h1 { letter-spacing: -.7px; }
}
