/* AXORK Core — Apple-matched suite chrome on top of workspace tokens */

.suite-page .suite-new { text-decoration: none; }
.suite-page .suite-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.suite-page .suite-main > .topbar { flex: 0 0 auto; }

.suite-hub {
  flex: 1;
  overflow: auto;
  padding: 48px 36px 56px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.suite-hero { text-align: center; margin-bottom: 36px; }
.suite-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.suite-hero h2 {
  margin: 0;
  font: 600 clamp(34px, 4vw, 48px)/1.05 var(--display);
  letter-spacing: -0.035em;
}
.suite-lead {
  margin: 12px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.suite-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.suite-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.08);
}
.suite-card .workspace-app-icon { width: 48px; height: 48px; border-radius: 13px; }
.suite-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.suite-card .role {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.suite-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.suite-engine {
  margin: 28px 0 0;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

/* App layout */
.suite-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.suite-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  backdrop-filter: blur(16px);
}
.suite-toolbar .tiny {
  border-radius: 980px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
}
.suite-toolbar-spacer { flex: 1; }
.suite-upload { cursor: pointer; display: inline-flex; align-items: center; }

.suite-work {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 300px;
  gap: 0;
}

.suite-files {
  border-right: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: color-mix(in srgb, var(--sidebar) 70%, transparent);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.suite-files-head {
  padding: 14px 12px 8px;
  display: grid;
  gap: 8px;
}
.suite-files-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}
.suite-files-head input {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  font: inherit;
  font-size: 13px;
}
.suite-file-list {
  list-style: none;
  margin: 0;
  padding: 4px 8px 16px;
  overflow: auto;
  flex: 1;
}
.suite-file-list li button {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.suite-file-list li button:hover { background: var(--hover); }
.suite-file-list li button.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.suite-file-list b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suite-file-list small { color: var(--faint); font-size: 11px; }
.suite-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 13px; }

.suite-stage {
  position: relative;
  min-width: 0;
  background: var(--bg);
  display: grid;
}
.suite-empty-stage {
  place-self: center;
  text-align: center;
  padding: 32px;
  max-width: 360px;
}
.suite-empty-stage h3 {
  margin: 0 0 8px;
  font: 600 22px/1.2 var(--display);
  letter-spacing: -0.03em;
}
.suite-empty-stage p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.suite-preview {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--surface);
}

.suite-toolbox {
  border-left: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  min-height: 0;
  overflow: auto;
}
.suite-box-head h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.suite-box-head p { margin: 0; color: var(--faint); font-size: 12px; line-height: 1.4; }

.suite-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.suite-tools button {
  border: 0;
  border-radius: 980px;
  padding: 7px 11px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink);
  font: 500 12.5px/1 var(--text);
  cursor: pointer;
}
.suite-tools button:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.suite-tools button:disabled { opacity: .45; cursor: default; }
.suite-tools button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

.suite-ask textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--bg);
  font: inherit;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.suite-ask-go { width: 100%; border-radius: 980px; padding: 10px; font-weight: 600; }
.suite-ask-go:disabled { opacity: .45; }

.suite-ai-out {
  flex: 1;
  min-height: 120px;
  border-radius: 14px;
  padding: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow: auto;
}
.suite-ai-out:empty::before {
  content: "AI replies appear here.";
  color: var(--faint);
}

@media (max-width: 1100px) {
  .suite-work { grid-template-columns: 200px minmax(0, 1fr); }
  .suite-toolbox { display: none; }
}
@media (max-width: 860px) {
  .suite-page .shell, .suite-page .shell.collapsed { grid-template-columns: minmax(0, 1fr); }
  .suite-work { grid-template-columns: minmax(0, 1fr); }
  .suite-files { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .suite-hub { padding: 28px 18px 40px; }
}
