/* =========================================================
   2S DEVELOPMENT — Vendor Agent UI, PORTED for the Network Agent
   Portal (network/agent/index.html).

   This file is a DELIBERATE, VERBATIM, RULE-FOR-RULE COPY of
   css/agent.css (the legacy /agent tool's stylesheet) — every
   selector below is byte-identical to that file. It exists as a
   separate file (not a direct <link> to css/agent.css) so the
   Network Agent Portal's UI is technically decoupled from the
   internal /agent tool's own stylesheet — css/agent.css is the
   permanent, unmodified reference implementation and must never be
   edited to satisfy anything about this portal; this copy is what
   changes instead, if the port's visual language ever needs to
   diverge from legacy on purpose. Until then, treat any diff between
   this file and css/agent.css (other than this header comment) as a
   bug — verified via an automated diff check as part of this port's
   own QA pass.

   Same dependency chain as the original: reuses design tokens from
   css/main.css and component classes already defined in
   css/studio.css (studio-stage, budget-hero/budget-list, studio-btn)
   and css/project.css (pe-app/pe-topbar/pe-stage shell, pe-btn,
   pe-chip). Loaded on network/agent/index.html after css/portal.css,
   before css/network-agent.css (the portal's own genuinely-new
   na-*/an-* classes stay the most-specific layer for anything this
   file doesn't cover).
   ========================================================= */

/* ---------------- topbar / nav ---------------- */
.ag-topbar{ justify-content:flex-start; gap:28px; }
.ag-topbar-badge{
  font:10px var(--mono); text-transform:uppercase; letter-spacing:.1em; color:var(--ivory);
  background:var(--sage-deep); padding:5px 10px; border-radius:3px; flex:0 0 auto;
}
.ag-nav{ display:flex; align-items:center; gap:4px; flex:1; overflow-x:auto; scrollbar-width:none; }
.ag-nav::-webkit-scrollbar{ display:none; }
.ag-nav-link{
  border:none; background:none; cursor:pointer; white-space:nowrap;
  font:11px var(--sans); letter-spacing:.02em; color:var(--sage); padding:8px 12px; border-radius:3px; transition:background .2s, color .2s;
}
.ag-nav-link:hover{ color:var(--ink); }
.ag-nav-link.is-active{ background:var(--ink); color:var(--ivory); }
@media (max-width:900px){ .ag-topbar{ flex-wrap:wrap; height:auto; padding:12px 16px; } .ag-nav{ order:3; width:100%; margin-top:6px; } }

.ag-stage{ padding-top:calc(var(--nav-h) + 40px); }
.ag-back-link{ display:inline-block; margin-bottom:24px; font:11px var(--mono); text-transform:uppercase; letter-spacing:.06em; color:var(--sage); cursor:pointer; }
.ag-back-link:hover{ color:var(--ink); }

/* ---------------- dashboard ---------------- */
.ag-quick-actions{ display:flex; gap:14px; margin-top:40px; }
.ag-footnote{ margin-top:70px; padding-top:24px; border-top:1px solid var(--line); font-size:12px; line-height:1.7; color:var(--sage); max-width:640px; }

.ag-review-queue{ margin-top:24px; max-width:820px; border-top:1px solid var(--line); }
.ag-review-row{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 0; border-bottom:1px solid var(--line); flex-wrap:wrap;
}
.ag-review-name{ font:400 18px var(--serif); letter-spacing:-.01em; }
.ag-review-meta{ font:11px var(--mono); color:var(--sage); flex:1; }

/* ---------------- vendor cards / grid ---------------- */
.ag-vendor-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:16px; }
.ag-vendor-card{
  border:1px solid var(--line); border-radius:4px; overflow:hidden; background:var(--ivory);
  display:flex; flex-direction:column; transition:border-color .2s;
}
.ag-vendor-card:hover{ border-color:var(--ink); }
.ag-vc-figure{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--clay); }
.ag-vc-figure img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ag-vc-body{ padding:16px; display:flex; flex-direction:column; gap:6px; }
.ag-vc-top{ display:flex; gap:8px; align-items:center; margin-bottom:2px; }
.ag-vc-name{ font:400 19px var(--serif); letter-spacing:-.01em; }
.ag-vc-meta{ font:11px var(--sans); color:var(--sage); }
.ag-vc-body .pe-btn{ margin-top:8px; align-self:flex-start; }

.ag-status-pill{
  font:9px var(--mono); text-transform:uppercase; letter-spacing:.06em; padding:4px 9px; border-radius:20px;
  background:var(--clay); color:var(--sage-deep); display:inline-block;
}
.ag-status-pill[data-status="approved"]{ background:#3f4a3a; color:var(--ivory); }
.ag-status-pill[data-status="pending_review"]{ background:var(--brass); color:var(--ink); }
.ag-status-pill[data-status="draft"]{ background:var(--line); color:var(--sage-deep); }
.ag-status-pill[data-status="rejected"]{ background:#9c5b3e; color:var(--ivory); }
.ag-status-pill[data-status="inactive"]{ background:transparent; border:1px solid var(--line); color:var(--sage); }
.ag-verified-badge{ font:9px var(--mono); text-transform:uppercase; letter-spacing:.06em; color:var(--sage-deep); }
.ag-verified-badge::before{ content:"\2713 "; }

/* ---------------- filters / lists ---------------- */
.ag-head-row{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.ag-filter-bar{ display:flex; gap:12px; margin-top:40px; flex-wrap:wrap; }
.ag-filter-bar input, .ag-filter-bar select{
  font:13px var(--sans); padding:10px 14px; border:1px solid var(--line); border-radius:3px; background:var(--ivory); color:var(--ink);
}
.ag-filter-bar input{ flex:1; min-width:200px; }
.ag-result-count{ margin-top:20px; font:11px var(--mono); text-transform:uppercase; letter-spacing:.06em; color:var(--sage); }
.ag-vendor-grid#ag-vendor-grid{ margin-top:24px; }

/* ---------------- vendor profile ---------------- */
.ag-profile-header{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.ag-profile-actions{ display:flex; gap:10px; margin-top:24px; flex-wrap:wrap; }
.ag-tab-nav{ display:flex; gap:4px; margin-top:44px; border-bottom:1px solid var(--line); overflow-x:auto; }
.ag-tab-link{
  border:none; background:none; cursor:pointer; padding:12px 16px; font:11px var(--mono); text-transform:uppercase;
  letter-spacing:.06em; color:var(--sage); border-bottom:2px solid transparent; white-space:nowrap;
}
.ag-tab-link:hover{ color:var(--ink); }
.ag-tab-link.is-active{ color:var(--ink); border-bottom-color:var(--ink); }
.ag-tab-body{ padding-top:36px; }

.ag-profile-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:60px; }
.ag-profile-col h3{ font:400 14px var(--sans); text-transform:uppercase; letter-spacing:.06em; color:var(--sage); margin-bottom:20px; }
.ag-desc{ font-size:14px; line-height:1.7; color:#4a4b45; margin-bottom:24px; max-width:52ch; }
.ag-fact-row{ display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; }
.ag-fact-row span{ color:var(--sage); }
.ag-fact-row b{ font-weight:500; text-align:right; }

.ag-tag-list{ margin-top:18px; }
.ag-tag-label{ display:block; font:10px var(--mono); text-transform:uppercase; letter-spacing:.06em; color:var(--sage); margin-bottom:8px; }
.ag-tag{ display:inline-block; font-size:12px; padding:5px 10px; border:1px solid var(--line); border-radius:20px; margin:0 6px 6px 0; }

@media (max-width:760px){ .ag-profile-grid{ grid-template-columns:1fr; gap:40px; } }

/* ---------------- internal panel ---------------- */
.ag-internal-warning{
  font:11px var(--mono); text-transform:uppercase; letter-spacing:.05em; color:#9c5b3e;
  border:1px solid #e3c9be; background:#fbf1ec; padding:10px 14px; border-radius:3px; margin-bottom:24px; display:inline-block;
}
.ag-internal-panel textarea{ width:100%; max-width:640px; font:13px var(--sans); padding:12px; border:1px solid var(--line); border-radius:3px; resize:vertical; }

/* ---------------- products ---------------- */
.ag-inline-form{ max-width:760px; border:1px solid var(--line); border-radius:4px; padding:24px; margin-bottom:32px; background:var(--clay); }
.ag-inline-form h3{ font:400 14px var(--sans); text-transform:uppercase; letter-spacing:.06em; color:var(--sage-deep); margin-bottom:16px; }
.ag-product-list{ display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); max-width:820px; }
.ag-product-row{ display:flex; align-items:center; gap:16px; background:var(--ivory); padding:12px 16px; cursor:default; }
.ag-product-list[data-vendor] .ag-product-row, .ag-product-row[data-vendor]{ cursor:pointer; }
.ag-pr-figure{ width:56px; height:56px; flex:0 0 auto; border-radius:3px; overflow:hidden; background:var(--clay); }
.ag-pr-figure img{ width:100%; height:100%; object-fit:cover; }
.ag-pr-body{ flex:1; display:flex; flex-direction:column; gap:2px; min-width:0; }
.ag-pr-name{ font:400 15px var(--serif); letter-spacing:-.01em; }
.ag-pr-meta{ font:11px var(--sans); color:var(--sage); }
.ag-review-check{ display:flex; align-items:center; gap:6px; font:11px var(--mono); color:var(--sage); white-space:nowrap; }

/* ---------------- images / documents ---------------- */
.ag-image-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:12px; }
.ag-image-tile{ position:relative; aspect-ratio:1; border-radius:3px; overflow:hidden; background:var(--clay); }
.ag-image-tile img{ width:100%; height:100%; object-fit:cover; }
.ag-image-tile span{
  position:absolute; left:0; right:0; bottom:0; padding:6px 8px; font:10px var(--sans); color:var(--ivory);
  background:linear-gradient(0deg, rgba(10,10,8,.78), rgba(10,10,8,0)); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.ag-upload-zone{
  position:relative; border:1px dashed var(--line); border-radius:4px; padding:28px; text-align:center; margin-bottom:20px; max-width:640px;
}
.ag-upload-zone span{ font:12px var(--sans); color:var(--sage); }
.ag-upload-zone input[type="file"]{ position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.ag-document-list{ display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); max-width:820px; }
.ag-document-row{ display:flex; align-items:center; gap:16px; background:var(--ivory); padding:12px 16px; font-size:13px; }
.ag-doc-type{ font:10px var(--mono); text-transform:uppercase; letter-spacing:.05em; color:var(--brass); flex:0 0 auto; }
.ag-doc-name{ flex:1; }
.ag-doc-vendor, .ag-doc-date{ color:var(--sage); font-size:11px; flex:0 0 auto; }

/* ---------------- add vendor: source selection ---------------- */
.ag-source-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px; margin-top:52px; max-width:1040px; }
.ag-source-card{
  text-align:left; border:1px solid var(--line); border-radius:4px; padding:26px 22px; background:var(--ivory); cursor:pointer;
  display:flex; flex-direction:column; gap:10px; transition:border-color .2s, background .2s;
}
.ag-source-card:hover{ border-color:var(--ink); background:var(--clay); }
.ag-source-name{ font:400 19px var(--serif); letter-spacing:-.01em; }
.ag-source-desc{ font-size:12.5px; line-height:1.6; color:var(--sage); }

/* ---------------- forms ---------------- */
.ag-section-title{ font:400 14px var(--sans); text-transform:uppercase; letter-spacing:.06em; color:var(--sage); margin:48px 0 20px; }
.ag-field-row{ display:flex; gap:20px; flex-wrap:wrap; margin-bottom:6px; }
.ag-field-row > .ag-field{ flex:1; min-width:200px; }
.ag-field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; max-width:640px; }
.ag-field label{ font:10px var(--mono); text-transform:uppercase; letter-spacing:.06em; color:var(--sage); }
.ag-field-hint-inline{ text-transform:none; letter-spacing:0; font-size:11px; }
.ag-field input, .ag-field select, .ag-field textarea{
  font:14px var(--sans); padding:11px 14px; border:1px solid var(--line); border-radius:3px; background:var(--ivory); color:var(--ink);
}
.ag-field textarea{ resize:vertical; }
.pe-chip-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.ag-form-actions{ display:flex; gap:14px; margin-top:44px; flex-wrap:wrap; }
.ag-import-note{ margin-top:16px; font:12px var(--mono); color:var(--sage-deep); }
.ag-form-error{ margin-top:20px; font:13px var(--sans); color:#9c5b3e; }

/* ---------------- import checklist ---------------- */
.ag-import-checklist{ border:1px solid var(--line); border-radius:4px; padding:28px; background:var(--clay); max-width:520px; }
.ag-import-title{ display:block; font:11px var(--mono); text-transform:uppercase; letter-spacing:.08em; color:var(--sage-deep); margin-bottom:18px; }
.ag-import-stage{ display:flex; justify-content:space-between; padding:8px 0; font-size:14px; color:var(--sage); border-bottom:1px solid #d9d4c9; opacity:.55; transition:opacity .3s; }
.ag-import-stage.is-done{ color:var(--ink); opacity:1; }
.ag-import-stage b{ font-weight:500; color:var(--sage-deep); }
.ag-import-stage.is-done b{ color:#3f4a3a; }
.ag-import-progress{ margin-top:16px; font:12px var(--mono); color:var(--sage-deep); }
.ag-import-progress b{ color:var(--ink); }

/* ---------------- review ---------------- */
.ag-review-card{ border:1px solid var(--line); border-radius:4px; padding:28px; max-width:820px; margin-top:36px; }
/* Product Placement step only (Step 4 rework, "sufficiently large and
   usable" photo) — widens the wizard card so the SAME width:100%,
   height:auto photo (unchanged, see .ag-pp-photo-wrap above) simply
   renders bigger in a bigger container; min() keeps it from ever
   overflowing a narrow viewport. */
.ag-review-card.is-pp-step{ max-width:min(1100px, 96vw); }

/* ---------------- categories ---------------- */
.ag-category-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; margin-top:52px; }
.ag-category-card{
  text-align:left; border:1px solid var(--line); border-radius:4px; padding:22px; background:var(--ivory); cursor:pointer;
  display:flex; flex-direction:column; gap:8px; transition:border-color .2s;
}
.ag-category-card:hover{ border-color:var(--ink); }
.ag-cat-name{ font:400 17px var(--serif); letter-spacing:-.01em; }
.ag-cat-meta{ font:11px var(--mono); color:var(--sage); }

/* ---------------- structured classification (Vendor Management Upgrade) ---------------- */
.ag-field-hint{ font-size:12.5px; color:var(--sage); margin:-10px 0 18px; max-width:640px; line-height:1.6; }
.ag-classification-blocks{ display:flex; flex-direction:column; gap:32px; margin-top:8px; }
.ag-classification-block{ border-top:1px solid var(--line); padding-top:20px; }
.ag-block-title{ font:400 15px var(--serif); letter-spacing:-.01em; margin-bottom:16px; }
.ag-chip-group{ margin-bottom:16px; }
.ag-chip-group:last-child{ margin-bottom:0; }
.ag-chip-group-label{ display:block; font:10px var(--mono); text-transform:uppercase; letter-spacing:.06em; color:var(--sage); margin-bottom:8px; }
.pe-chip.is-add{ border-style:dashed; color:var(--sage-deep); }
.pe-chip.is-add:hover{ border-style:dashed; }
/* Select All / Clear All (Vendor Card / Vendor Network bug-fix set):
   same dashed "utility" chip as "+Create New…"/"+Add Service" above —
   deliberately reused, not a new visual language — but solid-bordered
   so it doesn't read as "creates a new value" the way is-add's dashed
   border already signals elsewhere on these same screens. */
.pe-chip.is-util{ border-style:solid; }
.pe-chip.is-util:hover{ border-style:solid; }
.ag-classification-select-all{ margin-bottom:14px; display:flex; gap:10px; }

/* ---------------- Vendor Information architecture (migration 0011): Additional Information blocks, checkbox field ---------------- */
.ag-checkbox-field{
  display:flex; align-items:center; gap:8px; font:12.5px var(--sans); color:var(--ink);
  border:1px solid var(--line); border-radius:3px; padding:11px 14px; background:var(--ivory); flex:1; min-width:200px; align-self:flex-start;
}
.ag-checkbox-field input{ margin:0; }
.ag-additional-info-list{ display:flex; flex-direction:column; gap:1px; margin-bottom:16px; }
.ag-addinfo-block{
  border:1px solid var(--line); border-radius:4px; padding:20px; margin-bottom:14px; background:var(--clay); max-width:640px;
}
.ag-addinfo-photo{ width:100%; max-width:220px; aspect-ratio:4/3; border-radius:3px; overflow:hidden; margin-bottom:14px; background:var(--ivory); }
.ag-addinfo-photo img{ width:100%; height:100%; object-fit:cover; }
.ag-upload-zone.is-small{ padding:16px; max-width:220px; margin-bottom:14px; }
/* Explicit Save control for an Additional Information block (2S
   Development Vendor Network/Vendor Card bug-fix set, Bug 2) — same
   pe-btn vocabulary as every other action on this screen; the "Saved"
   note briefly confirms the persisted state rather than leaving the
   agent to guess whether the click did anything. */
.ag-addinfo-actions{ display:flex; align-items:center; gap:12px; margin-top:6px; }
.ag-addinfo-saved-note{ font:12px var(--sans); color:var(--sage); }

/* ---------------- completed projects portfolio ---------------- */
.ag-project-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; margin-top:24px; }
.ag-project-card{ border:1px solid var(--line); border-radius:4px; overflow:hidden; background:var(--ivory); }
.ag-project-figure{ aspect-ratio:4/3; background:var(--clay); overflow:hidden; }
.ag-project-figure img{ width:100%; height:100%; object-fit:cover; }
.ag-project-body{ padding:14px; display:flex; flex-direction:column; gap:4px; }
.ag-project-body .ag-pr-name{ font:400 15px var(--serif); letter-spacing:-.01em; }
.ag-project-body .pe-btn{ margin-top:10px; align-self:flex-start; }
.ag-project-figure-empty{ width:100%; height:100%; background:var(--clay); }

/* ---------------- vendor projects wizard step (Add Vendor Step 02) ---------------- */
.ag-pi-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:16px; margin-top:16px; }
.ag-pi-tile{ border:1px solid var(--line); border-radius:4px; padding:10px; display:flex; flex-direction:column; gap:8px; background:var(--ivory); }
.ag-pi-figure{ aspect-ratio:4/3; border-radius:3px; overflow:hidden; background:var(--clay); }
.ag-pi-figure img{ width:100%; height:100%; object-fit:cover; }
.ag-pi-cover{ display:flex; align-items:center; gap:6px; font:11px var(--mono); text-transform:uppercase; letter-spacing:.04em; color:var(--sage); }
.ag-pi-tile select, .ag-pi-tile input[type="text"]{ width:100%; font:12.5px var(--sans); padding:7px 9px; border:1px solid var(--line); border-radius:3px; background:var(--ivory); }
.ag-ba-groups{ display:flex; flex-direction:column; gap:14px; margin-top:8px; }
.ag-ba-pair{ border:1px solid var(--line); border-radius:4px; padding:12px; }
.ag-ba-label{ display:block; font:10px var(--mono); text-transform:uppercase; letter-spacing:.06em; color:var(--sage); margin-bottom:8px; }
.ag-ba-imgs{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ag-ba-slot{ aspect-ratio:4/3; border-radius:3px; overflow:hidden; background:var(--clay); display:flex; align-items:center; justify-content:center; }
.ag-ba-slot img{ width:100%; height:100%; object-fit:cover; }
.ag-ba-missing{ font:11px var(--sans); color:var(--sage); padding:8px; text-align:center; }

/* Area/space multi-select chips inside a narrow project-image tile
   (Phase 47) — the base .pe-chip is sized for full-width form rows
   (14px/20px padding); scaled down here so a tag row with a dozen+
   options still fits an ~200px tile without overflowing it. */
.ag-pi-area-label{ display:block; font:11px var(--mono); text-transform:uppercase; letter-spacing:.04em; color:var(--sage); margin-top:2px; }
.ag-pi-tile .pe-chip-row{ gap:6px; margin-top:4px; }
.ag-pi-tile .pe-chip{ font-size:11px; padding:6px 10px; }

/* ---------------- Product Placement wizard step (migration 0012) ---------------- */
.ag-pp-photos{ display:flex; flex-direction:column; gap:28px; margin-top:16px; }
.ag-pp-photo-block{ border:1px solid var(--line); border-radius:4px; padding:14px; background:var(--ivory); }
.ag-pp-photo-wrap{ position:relative; border-radius:3px; overflow:hidden; background:var(--clay); line-height:0; }
/* height:auto keeps the photo at its own natural aspect ratio — markers
   are positioned as a percentage of this exact box (see .ag-pp-marker
   below), so any fixed/cropped/letterboxed sizing here would silently
   misalign every marker on it. "Sufficiently large and usable" (Step 4
   rework) is instead achieved by widening the whole wizard card for
   this one step (.ag-review-card.is-pp-step below) rather than by
   constraining the image itself — same percentage-of-container math at
   click time and at render time either way, just a bigger container. */
.ag-pp-photo-wrap img{ width:100%; height:auto; display:block; }
.ag-pp-photo-wrap.is-armed{ cursor:crosshair; outline:2px solid var(--ink); outline-offset:2px; }
/* Marker button is absolutely positioned via inline left/top (normalized
   x/y * 100%, set per-marker in productPlacementMarkerHtml) — the dot
   itself is centered exactly ON that point via the -50%/-50% transform,
   never offset by its own size, so it stays correctly positioned
   regardless of viewport/image render size (the whole point of storing
   normalized coordinates rather than raw pixels). */
.ag-pp-marker{ position:absolute; transform:translate(-50%, -50%); display:flex; flex-direction:column; align-items:center; gap:4px; background:none; border:none; padding:0; cursor:default; }
.ag-pp-marker-dot{ width:14px; height:14px; border-radius:50%; background:var(--ink); border:2px solid var(--ivory); box-shadow:0 0 0 1px var(--ink); }
.ag-pp-marker-label{ font:10px var(--mono); text-transform:uppercase; letter-spacing:.04em; color:var(--ivory); background:var(--ink); padding:2px 6px; border-radius:2px; white-space:nowrap; }
.ag-pp-marker-list{ display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.ag-pp-marker-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ag-pp-marker-row select{ flex:1 1 200px; font:12.5px var(--sans); padding:7px 9px; border:1px solid var(--line); border-radius:3px; background:var(--ivory); }

/* ---------------- Vendor Card: Portfolio/Renders (Phase 47) ----------------
   Aggregated view of every Vendor Project's images, grouped under a
   heading per project (not one anonymous grid) — see tabBody()'s
   tab === "portfolio" branch in agent-app.js. */
.ag-portfolio-project{ border-top:1px solid var(--line); padding-top:24px; margin-top:28px; }
.ag-portfolio-project:first-child{ border-top:none; padding-top:0; margin-top:0; }
.ag-portfolio-project-head{ margin-bottom:16px; }
.ag-portfolio-project-name{ font:400 19px var(--serif); letter-spacing:-.01em; }
.ag-portfolio-project-head .ag-pr-meta{ display:block; font:12px var(--mono); color:var(--sage); margin-top:4px; }
.ag-portfolio-project-head .ag-tag-list{ margin-top:12px; }
.ag-portfolio-project-head .ag-desc{ margin-top:12px; margin-bottom:0; }
.ag-portfolio-legacy{ margin-top:28px; }

/* ---------------- create vendor workspace (Phase 55) ---------------- */
.ag-wizard-rail{ display:flex; gap:4px; margin-top:36px; margin-bottom:8px; border-bottom:1px solid var(--line); overflow-x:auto; }
.ag-wizard-step{
  display:flex; align-items:center; gap:8px; border:none; background:none; cursor:pointer;
  padding:12px 14px; border-bottom:2px solid transparent; white-space:nowrap; color:var(--sage);
}
.ag-wizard-step:hover:not(:disabled){ color:var(--ink); }
.ag-wizard-step:disabled{ cursor:default; }
.ag-wizard-step-num{ font:11px var(--mono); letter-spacing:.04em; color:var(--sage); }
.ag-wizard-step-label{ font:11px var(--mono); text-transform:uppercase; letter-spacing:.06em; }
.ag-wizard-step.is-done .ag-wizard-step-num,
.ag-wizard-step.is-done .ag-wizard-step-label{ color:var(--sage-deep); }
.ag-wizard-step.is-active{ border-bottom-color:var(--ink); }
.ag-wizard-step.is-active .ag-wizard-step-num,
.ag-wizard-step.is-active .ag-wizard-step-label{ color:var(--ink); }

.ag-review-summary-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; margin-top:24px; }
.ag-review-summary-col h4{ font:400 14px var(--serif); letter-spacing:-.01em; margin-bottom:12px; }
.ag-review-project-row{ display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--line); }
.ag-review-project-row:first-child{ border-top:none; }
.ag-review-project-thumb{ width:44px; height:44px; border-radius:3px; overflow:hidden; background:var(--clay); flex-shrink:0; }
.ag-review-project-thumb img{ width:100%; height:100%; object-fit:cover; }

/* ---------------- history ---------------- */
.ag-history-clickable{ cursor:pointer; }
.ag-history-clickable:hover .br-name{ color:var(--sage-deep); }

/* ---------------- gate ---------------- */
.ag-gate{ max-width:640px; }
