/* AgencyOperator.ai
   Dashboard layout in the Designer Mindset brand (see designermindset-brand skill).
   Tokens from designermindset.net, 2 Aug 2026: #0a0a0a dark, #ff4500 accent,
   Instrument Sans display, Inter body, muted #7d7d7d, soft #f5f5f5.
   Type scale is anchored to 16px body. */

:root {
  --dark: #0a0a0a;
  --page: #ffffff;
  --accent: #ff4500;
  --text: #0a0a0a;
  --muted: #6f6f6f;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.62);
  --soft: #f5f5f5;
  --border: #ececec;
  --green: #16a34a;
  --claude: #d97757;
  --radius-card: 20px;
  --font-display: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Shell: floating white sidebar + main */
.shell { display: flex; gap: 24px; max-width: 1520px; margin: 0 auto; min-height: calc(100vh - 32px); }

.sidebar {
  width: 268px; flex-shrink: 0;
  background: var(--page); color: var(--text);
  border-radius: 24px; padding: 28px 18px;
  display: flex; flex-direction: column;
  position: sticky; top: 16px; align-self: flex-start;
  max-height: calc(100vh - 32px); overflow-y: auto;
  box-shadow:
    0 1px 2px rgba(10, 10, 10, 0.04),
    0 6px 16px rgba(10, 10, 10, 0.05),
    0 20px 40px -12px rgba(10, 10, 10, 0.10);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; margin-bottom: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: var(--text); letter-spacing: -0.02em; white-space: nowrap;
}
.brand-text span { color: var(--accent); }
.sidebar .tagline { font-size: 13px; color: var(--muted); padding: 0 12px; margin-bottom: 16px; line-height: 1.45; }

/* Runs-inside-Claude badge */
.claude-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 12px 26px; padding: 7px 14px 7px 10px;
  background: #fdf3ef; border: 1px solid #f6ded4; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #8a5a45; white-space: nowrap;
}
.claude-badge strong { color: #b4593a; font-weight: 600; }
.claude-mark { width: 18px; height: 18px; display: block; flex-shrink: 0; }

.nav-group { margin-bottom: 18px; }
.nav-item {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer;
}
.nav-item:hover { color: var(--text); background: #fafafa; text-decoration: none; }
.nav-item.active { background: var(--soft); color: var(--text); font-weight: 600; }
.nav-item.active::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }

.sidebar-foot { margin-top: auto; padding: 22px 12px 0; }
.sidebar-foot .cta {
  display: block; text-align: center; background: var(--accent); color: #fff;
  padding: 13px 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.sidebar-foot .cta:hover { background: #e63e00; text-decoration: none; }
.sidebar-foot p { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.sidebar-foot p a { color: var(--text); font-weight: 500; }

/* Main */
.main { flex: 1; min-width: 0; padding: 16px 40px 48px; }

.page { display: none; max-width: 920px; margin: 0 auto; }
.page.active { display: block; }

.page-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.page-header h1 { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.page-header .stamp { font-size: 13px; color: var(--muted); }
.page-sub {
  font-family: var(--font-display); font-size: 25px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.25; color: var(--text);
  max-width: 640px; margin: 4px 0 16px;
}
.page-intro { font-size: 17px; color: var(--muted); max-width: 740px; margin-bottom: 32px; line-height: 1.6; }
.page-intro strong { color: var(--text); font-weight: 600; }

/* Claude strip */
.claude-strip {
  display: flex; align-items: center; gap: 20px;
  background: #fdf3ef; border-radius: var(--radius-card);
  padding: 24px 28px; margin-bottom: 28px;
}
.claude-strip img { width: 52px; height: 52px; flex-shrink: 0; }
.claude-strip h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #7a4b38; margin-bottom: 4px; }
.claude-strip p { font-size: 15px; color: #96695a; }

/* Metric cards */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 28px; }
.metric { background: var(--soft); border-radius: var(--radius-card); padding: 22px; }
.metric .value { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.metric .value.accent { color: var(--accent); }
.metric .label { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.45; }

/* Panels */
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 28px; }
.panel { background: var(--soft); border-radius: var(--radius-card); padding: 26px; margin-bottom: 28px; }
.panel-grid .panel { margin-bottom: 0; }
.panel.dark { background: var(--dark); color: var(--on-dark); }
.panel.dark p, .panel.dark li { color: var(--on-dark-muted); }
.panel.dark h3, .panel.dark strong { color: var(--on-dark); }
.panel h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.panel p { font-size: 15px; color: var(--muted); }
.panel p + p { margin-top: 11px; }
.panel ul, .panel ol { list-style: none; margin-top: 6px; }
.panel li { font-size: 15px; color: var(--muted); padding-left: 20px; position: relative; margin-bottom: 9px; }
.panel li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.panel ol { counter-reset: n; }
.panel ol li { counter-increment: n; padding-left: 28px; }
.panel ol li::before { content: counter(n); background: none; width: auto; height: auto; top: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.panel strong { color: var(--text); font-weight: 600; }
.panel code, td code, .example code { font-size: 14px; background: rgba(10,10,10,0.06); padding: 2px 8px; border-radius: 6px; }
.panel.dark code { background: rgba(255,255,255,0.12); color: var(--on-dark); }

/* Diagram */
.diagram {
  background: var(--soft); border-radius: var(--radius-card);
  padding: 24px; margin-bottom: 12px; overflow-x: auto;
}
.diagram svg { display: block; width: 100%; height: auto; max-width: 760px; margin: 0 auto; }

/* Notion band */
.notion-strip {
  display: flex; align-items: center; gap: 20px;
  background: var(--soft); border-radius: var(--radius-card);
  padding: 24px 28px; margin-bottom: 32px;
}
.notion-strip img { width: 46px; height: 47px; flex-shrink: 0; }
.notion-strip h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 5px; }
.notion-strip p { font-size: 15px; color: var(--muted); }

/* Notion screenshot mock */
.shot {
  border-radius: 14px; overflow: hidden; margin-bottom: 16px;
  background: #ffffff; border: 1px solid #dcdcdc;
  box-shadow: 0 1px 2px rgba(10,10,10,0.05), 0 10px 30px -8px rgba(10,10,10,0.16);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}
.shot-chrome {
  display: flex; align-items: center; gap: 8px;
  background: #e9e9e9; padding: 10px 14px 0; border-bottom: 1px solid #d6d6d6;
  position: relative; height: 42px;
}
.shot-chrome .tl { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-bottom: 10px; }
.shot-chrome .tl.r { background: #ff5f57; }
.shot-chrome .tl.y { background: #febc2e; }
.shot-chrome .tl.g { background: #28c840; }
.browser-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff; border-radius: 8px 8px 0 0; padding: 8px 22px 9px;
  font-size: 12.5px; color: #3c3c3c; margin-left: 14px; white-space: nowrap;
}
.browser-tab img { display: block; }
.tab-plus { font-size: 15px; color: #6b6b6b; margin-bottom: 8px; }
.shot-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; font-size: 12.5px; color: #6b6a67; background: #fff;
  border-bottom: 1px solid #f0f0ef;
}
.crumb { display: inline-flex; align-items: center; gap: 7px; }
.crumb-mark { display: block; }
.crumb .sep { color: #c9c8c5; margin: 0 4px; }
.topbar-right { color: #9b9a97; }
.topbar-right .share { border: 1px solid #e6e6e5; border-radius: 5px; padding: 3px 9px; }
.shot-page { padding: 26px 26px 0; background: #fff; }
.n-title { font-family: inherit; font-size: 30px; font-weight: 700; color: #37352f; letter-spacing: -0.01em; margin-bottom: 10px; }
.n-desc p { font-size: 14px; color: #37352f; line-height: 1.55; margin: 0; }
.n-desc p.gap { margin-top: 13px; }
.n-views {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin: 22px 0 0; padding-bottom: 6px; position: relative;
}
.n-view { font-size: 13.5px; color: #7c7b78; padding: 5px 9px; border-radius: 5px; white-space: nowrap; }
.n-view.active { background: #efefee; color: #37352f; font-weight: 500; }
.n-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.n-icon { color: #3b7dd8; font-size: 13px; }
.n-new { background: #2383e2; color: #fff; font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 5px; white-space: nowrap; }
.n-new .caret { opacity: 0.75; margin-left: 4px; }
.n-body { position: relative; overflow: hidden; }
.n-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 1020px; }
.n-table th {
  text-align: left; font-size: 12.5px; font-weight: 400; color: #9b9a97;
  padding: 9px 14px 9px 0; border-top: 1px solid #ececeb; border-bottom: 1px solid #ececeb;
  white-space: nowrap; text-transform: none; letter-spacing: 0;
}
.n-table th i { font-style: normal; color: #b5b4b1; margin-right: 5px; font-size: 12px; }
.n-table td {
  padding: 10px 14px 10px 0; border-bottom: 1px solid #f1f1f0;
  color: #37352f; white-space: nowrap; font-weight: 400; vertical-align: middle;
}
.n-table tr:last-child td { border-bottom: none; }
.n-name { font-weight: 500; }
.n-name .pg {
  display: inline-block; width: 12px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 1px solid #c4c3c0; border-radius: 2px; background: #fff;
}
.n-link { color: #37352f; text-decoration: underline; text-decoration-color: #d6d5d2; }
.n-link span { color: #9b9a97; }
.npill { display: inline-block; font-size: 12.5px; padding: 2px 8px; border-radius: 4px; }
.npill.green { background: #dbeddb; color: #1c3829; }
.npill.blue { background: #d3e5ef; color: #183347; }
.npill.purple { background: #e8deee; color: #412454; }
.npill.yellow { background: #fdecc8; color: #402c1b; }
.npill.teal { background: #ddedea; color: #1a3b35; }
.npill.grey { background: #f1f1ef; color: #5f5e5b; }
.n-fade {
  position: absolute; top: 0; right: -1px; width: 130px; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0), #ffffff 72%);
  pointer-events: none;
}

/* File tree */
.lede-sm { font-size: 15px; color: var(--muted); max-width: 700px; margin: -6px 0 16px; }
.tree {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 2; color: #a9a8a5;
  background: var(--page); border-radius: 12px; padding: 18px 20px;
  margin: 4px 0 14px; overflow-x: auto; white-space: pre;
}
.tree .f { color: var(--text); font-weight: 600; }
.tree .k { color: var(--accent); font-weight: 600; }
.tree .c { color: #a9a8a5; }

/* Step flow */
.steps-flow { margin-bottom: 28px; }
.step-row { display: flex; gap: 22px; padding-bottom: 14px; }
.step-row:last-child { padding-bottom: 0; }
.rail { position: relative; width: 34px; flex-shrink: 0; display: flex; justify-content: center; }
.rail::after {
  content: ""; position: absolute; left: 50%; margin-left: -1px;
  top: 42px; bottom: -14px; width: 2px; background: #e6e6e6;
}
.step-row:last-child .rail::after { display: none; }
.rail .num {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
}
.rail .num.alt { background: var(--dark); }
.step-card {
  position: relative; overflow: hidden; flex: 1; min-width: 0;
  background: var(--soft); border-radius: var(--radius-card);
  padding: 24px 28px; height: 176px;
}
.step-card.soft { background: #fafafa; }
.step-card h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.25;
}
.step-card p { max-width: 640px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.step-card p + p { margin-top: 9px; }
.step-card strong { color: var(--text); font-weight: 600; }
.step-card code { font-size: 13.5px; background: rgba(10,10,10,0.06); padding: 2px 7px; border-radius: 6px; }
.card-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  background: linear-gradient(to bottom, rgba(245,245,245,0), var(--soft) 82%);
  pointer-events: none;
}
.step-card.soft .card-fade { background: linear-gradient(to bottom, rgba(250,250,250,0), #fafafa 82%); }

/* Members callout */
.members {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  background: var(--dark); color: var(--on-dark);
  border-radius: var(--radius-card); padding: 26px 28px; margin-bottom: 28px;
}
.members h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.members p { font-size: 15px; color: var(--on-dark-muted); max-width: 560px; }
.members a.btn {
  background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap; flex-shrink: 0;
}
.members a.btn:hover { background: #e63e00; text-decoration: none; }
.members.big { padding: 34px 34px; }
.members.big h3 { font-size: 23px; margin-bottom: 8px; }
.members.big p { font-size: 16px; }
.members.big a.btn { padding: 16px 34px; font-size: 16px; }

/* Section titles */
.section-title { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; margin: 40px 0 16px; }
.section-title:first-of-type { margin-top: 0; }

/* Tables */
.table-wrap { background: var(--soft); border-radius: var(--radius-card); padding: 8px 22px; overflow-x: auto; margin-bottom: 28px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 9px; border-bottom: 1px solid #e2e2e2; white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid #e6e6e6; color: var(--muted); vertical-align: top; line-height: 1.5; }
tr:last-child td { border-bottom: none; }
td:first-child { color: var(--text); font-weight: 500; }
td.name { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Status pills */
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 13px; border-radius: 999px; white-space: nowrap; }
.pill.now { background: var(--accent); color: #fff; }
.pill.next { background: var(--dark); color: #fff; }
.pill.planned { background: #e8e8e8; color: var(--muted); }
.pill.shipped { background: #e7f6ec; color: var(--green); }
.pill.internal { background: #e8e8e8; color: var(--muted); }

/* Example block */
.example {
  background: var(--page); border: 1px dashed #d9d9d9; border-radius: 14px;
  padding: 20px 22px; font-size: 15px; color: var(--muted); margin-top: 14px;
}
.example .line { margin-bottom: 8px; }
.example .line:last-child { margin-bottom: 0; }
.example strong { color: var(--text); }

/* Changelog */
.release { padding: 32px 0; border-bottom: 1px solid var(--border); }
.release:last-child { border-bottom: none; }
.release .meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.release .version { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.release .date { font-size: 14px; color: var(--muted); }
.release .name { font-size: 16px; color: var(--muted); margin-bottom: 16px; max-width: 780px; }
.release h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin: 20px 0 9px; }
.release ul { list-style: none; }
.release li { font-size: 15px; color: var(--muted); padding-left: 20px; position: relative; margin-bottom: 8px; max-width: 780px; }
.release li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.release strong { color: var(--text); font-weight: 600; }
.release code { font-size: 14px; background: var(--soft); padding: 2px 8px; border-radius: 6px; }

@media (max-width: 900px) {
  body { padding: 10px; }
  .shell { flex-direction: column; gap: 16px; }
  .sidebar { width: 100%; position: static; max-height: none; border-radius: 20px; padding: 22px 16px; }
  .sidebar .nav-group { margin-bottom: 10px; }
  .sidebar-foot { padding-top: 14px; }
  .main { padding: 8px 4px 32px; }
  .page-header h1 { font-size: 27px; }
  .page-sub { font-size: 21px; }
  .section-title { font-size: 20px; }
  .claude-strip { padding: 20px; gap: 14px; }
  .claude-strip img { width: 40px; height: 40px; }
  .step-row { gap: 14px; }
  .rail { width: 30px; }
  .rail .num { width: 30px; height: 30px; font-size: 14px; }
  .rail::after { top: 38px; }
  .step-card { padding: 20px; height: 210px; }
  .shot-page { padding: 18px 16px 0; }
  .n-title { font-size: 24px; }
  .members { padding: 22px; }
}
