/* Embedded preview inside the marketing site — readable, same structure as the full mock. */

html.is-embed {
  --sidebar-w: 200px;
  --header-h: 52px;
  --footer-h: 0px;
  --fs-15: 0.875rem;
  --fs-16: 0.9375rem;
  --fs-32: 1.5rem;
  --fs-24: 1.25rem;
  --fs-20: 1.125rem;
}

html.is-embed,
html.is-embed body {
  height: 100%;
  overflow: hidden;
}

html.is-embed .app {
  height: 100%;
  min-height: 0;
}

html.is-embed .footer,
html.is-embed .embed-compact-hide {
  display: none !important;
}

html.is-embed .search {
  display: block !important;
  grid-column: 2;
  justify-self: center;
  width: 200px;
  max-width: 200px;
  min-width: 0;
  margin: 0;
}

html.is-embed .search input {
  height: 34px;
  font-size: 12px;
  padding: 0 10px 0 32px;
}

html.is-embed .search-icon {
  left: 10px;
  width: 16px;
  height: 16px;
}

html.is-embed .logo {
  grid-column: 1;
  justify-self: start;
  flex-shrink: 0;
}

html.is-embed .header-actions {
  grid-column: 3;
  justify-self: end;
  margin-left: 0;
  flex-shrink: 0;
}

html.is-embed .header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 12px;
  gap: 8px;
  min-width: 0;
}

html.is-embed .logo-wordmark {
  font-size: var(--fs-16);
}

html.is-embed .user-meta {
  display: none;
}

/* Keep vertical sidebar — override app.css @media (max-width: 860px) inside iframes */
html.is-embed .shell {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) !important;
  min-height: 0;
}

html.is-embed .sidebar {
  display: flex;
  flex-direction: column !important;
  flex-shrink: 0;
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  max-width: var(--sidebar-w);
  padding: 8px 8px 10px;
  overflow-x: hidden !important;
  overflow-y: auto;
  scrollbar-width: none;
  border-right: 1px solid var(--ink-100) !important;
  border-bottom: none !important;
}

html.is-embed .sidebar::-webkit-scrollbar {
  display: none;
}

html.is-embed .sidebar-gap {
  height: 6px;
}

html.is-embed .nav-label {
  display: block !important;
  font-size: 10px;
  padding: 4px 8px 2px;
  letter-spacing: 0.06em;
}

html.is-embed .nav-item {
  width: 100%;
  flex-shrink: 0;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
  white-space: nowrap;
}

html.is-embed .nav-item svg {
  width: 16px;
  height: 16px;
}

html.is-embed .sidebar-foot {
  display: block !important;
  margin-top: auto;
  padding: 8px 4px 0;
}

html.is-embed .help-link {
  padding: 8px 10px;
  text-align: left;
}

html.is-embed .help-link strong {
  font-size: 11px;
  line-height: 1.3;
}

html.is-embed .help-link span {
  font-size: 10px;
  line-height: 1.3;
  display: block;
}

html.is-embed .main {
  padding: 16px 18px 18px;
  overflow: auto;
  min-height: 0;
  min-width: 0;
}

html.is-embed .page-head {
  margin-bottom: 12px;
  align-items: center;
  flex-direction: row !important;
}

html.is-embed .page-head h1 {
  font-size: var(--fs-24);
}

html.is-embed .lede {
  font-size: var(--fs-13);
  margin-top: 4px;
  max-width: 36ch;
}

html.is-embed .kicker {
  font-size: var(--fs-11);
  margin-bottom: 2px;
}

html.is-embed .btn {
  height: 36px;
  padding: 0 14px;
  font-size: var(--fs-13);
}

html.is-embed .work-grid {
  grid-template-columns: 1.45fr 1fr !important;
  gap: 14px;
  margin-bottom: 0;
}

html.is-embed .stack {
  gap: 12px;
}

html.is-embed .panel-head {
  padding: 12px 16px 10px;
}

html.is-embed .panel-head h2 {
  font-size: var(--fs-14);
}

html.is-embed .row {
  padding: 10px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

html.is-embed .row-title {
  font-size: var(--fs-13);
  line-height: 1.35;
}

html.is-embed .row-sub {
  font-size: var(--fs-11);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.is-embed .chip {
  height: 20px;
  font-size: var(--fs-11);
}

html.is-embed .date-warn,
html.is-embed .date-ok {
  font-size: var(--fs-11);
}

html.is-embed .row-list--trim > li:nth-child(n + 4) {
  display: none;
}

html.is-embed .stack .row-list > li:nth-child(n + 3) {
  display: none;
}

html.is-embed .toolbar {
  flex-wrap: wrap;
  gap: 8px;
}

html.is-embed .tabs {
  flex-wrap: wrap;
}

html.is-embed .filter {
  min-width: 0;
  flex: 1 1 140px;
}

html.is-embed .table-wrap {
  overflow-x: auto;
}

html.is-embed table.data {
  font-size: var(--fs-12);
  min-width: 0;
}

html.is-embed table.data th,
html.is-embed table.data td {
  padding: 10px 10px;
}

html.is-embed table.data .id {
  white-space: nowrap;
}

html.is-embed table.data td:nth-child(3),
html.is-embed table.data th:nth-child(3) {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.is-embed .kanban {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html.is-embed .cal {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html.is-embed .kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html.is-embed .shortcuts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html.is-embed .meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html.is-embed .case-hero h1 {
  font-size: var(--fs-18);
}

html.is-embed .view {
  max-width: none;
}
