/* Workspace presentation; no integration or publication behavior. */
[hidden] { display: none !important; }
:root { --ink: #302c40; --muted: #6d677c; --line: #e6e2ed; --purple: #65419c; }
body { color: var(--ink); }
.preview-banner { padding: 9px 16px; background: #fff4d9; color: #76561b; font-size: .75rem; text-align: center; }
a, button, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9975d2; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; transform: translateY(-150%); background: #fff; padding: 12px; color: var(--purple); }
.skip-link:focus { transform: none; }
.shell { grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: #1a1d2d; padding: 30px 18px 24px; gap: 26px; }
.sidebar-brand { padding-bottom: 23px; }
.publisher-space { margin-top: 27px; }
.sidebar nav { gap: 5px; }
.nav-item { padding: 13px 14px; min-height: 44px; font-size: .875rem; font-weight: 550; }
.nav-item.active { background: #35334d; box-shadow: inset 3px 0 #b29cff; font-weight: 750; }
.nav-heading { font-size: .65rem; margin: 0 14px 10px; }
.nav-heading-secondary { margin-top: 25px; }
.menu-toggle { display: none; }
.workspace { width: min(1320px, 100%); min-width: 0; padding: 39px clamp(24px, 4vw, 64px) 64px; }
.topbar { align-items: center; padding-bottom: 27px; margin-bottom: 30px; }
.topbar h1 { font-size: 1.85rem; font-weight: 750; letter-spacing: -.04em; line-height: 1.2; }
.topbar .eyebrow { margin-bottom: 9px; }
.topbar .muted { margin-top: 9px; }
.eyebrow { color: #797084; font-size: .65rem; }
.muted { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.status { font-size: .68rem; padding: 7px 10px; letter-spacing: .025em; border-radius: 6px; max-width: 100%; white-space: normal; }
.neutral { color: #625a73; }
.primary, .secondary, .text-action, .photo-load { min-height: 42px; font-size: .875rem; line-height: 1.35; }
.primary, .secondary { padding: 11px 17px; border-radius: 8px; }
.primary { box-shadow: 0 3px 8px #53368114; }
button:disabled { cursor: not-allowed; }
.panel, .execution-card { border-radius: 14px; padding: 26px; box-shadow: 0 3px 14px #29223703; }
.panel h2, .execution-title h2 { font-size: 1.16rem; line-height: 1.4; letter-spacing: -.025em; }
.execution-card { margin-top: 0; padding: 29px; }
.execution-title h2 { font-size: 1.55rem; }
.overview-mark { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 14px; background: #f0eafa; color: #7959ad; font-size: 1.65rem; font-weight: 800; flex-shrink: 0; }
.metrics { margin-top: 27px; padding-top: 24px; gap: 0; }
.metrics a { display: grid; gap: 7px; padding: 0 20px; border-left: 1px solid var(--line); text-decoration: none; border-radius: 3px; }
.metrics a:first-child { padding-left: 0; border-left: 0; }
.metrics strong { font-size: 2rem; font-weight: 650; }
.metrics span { font-size: .8rem; color: var(--muted); }
.metrics a:hover strong { color: var(--purple); }
.overview-notice { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 17px 20px; border: 1px solid #e6dff0; border-radius: 10px; background: #f2eef8; font-size: .85rem; }
.overview-notice p { flex: 1; margin: 0; line-height: 1.5; }
.overview-notice a { color: #563583; font-weight: 650; text-decoration: none; white-space: nowrap; }
.notice-symbol { border: 1px solid #9a82ba; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: .8rem; color: #68468e; flex-shrink: 0; }
.section-intro { margin: 37px 0 18px; }
.section-intro h2 { margin: 0; font-size: 1.05rem; font-weight: 650; }
.section-intro p { margin-top: 5px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shortcut { display: flex; flex-direction: column; align-items: start; padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); text-decoration: none; }
.shortcut:hover { border-color: #b49ccb; background: #fefcff; }
.shortcut-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f2edf9; color: #78579f; font-size: 1.3rem; margin-bottom: 20px; }
.shortcut h3 { margin: 0; font-size: 1rem; }
.shortcut p { font-size: .84rem; color: var(--muted); line-height: 1.6; margin: 9px 0 22px; }
.shortcut-link { margin-top: auto; color: #64458d; font-size: .8rem; font-weight: 650; }
.workspace-footnote { color: #767083; font-size: .77rem; line-height: 1.6; margin: 25px 0 0; }
.workspace-footnote a { color: var(--purple); }
.executions-panel, .activity { margin-top: 0; }
.panel-heading { align-items: center; gap: 24px; margin-bottom: 24px; }
.panel-heading button { flex-shrink: 0; width: auto; margin: 0; }
.task { gap: 16px; padding: 20px 0; }
.task h3 { font-size: .98rem; font-weight: 650; overflow-wrap: anywhere; }
.task p { font-size: .84rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.task-icon { width: 32px; height: 32px; }
#execution-list > .task { grid-template-columns: 32px minmax(0, 1fr) auto; }
.execution-disclosure { grid-column: 2 / -1; min-width: 0; }
summary { color: #62418a; font-size: .84rem; font-weight: 600; cursor: pointer; padding: 11px 0; line-height: 1.5; }
.execution-disclosure > div { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.execution-disclosure .text-action { background: #f5f2f9; padding: 9px 12px; border-radius: 7px; max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.detail-panel { margin-top: 18px; }
.detail-panel > summary { padding: 0; }
.detail-panel[open] > summary { margin-bottom: 24px; }
.detail-panel dt { font-size: .78rem; color: var(--muted); }
.detail-panel dd { font-size: .9rem; }
.profile-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-options .panel { padding: 28px; }
.profile-options button { width: auto; margin-top: 24px; }
.list-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 0 0 23px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.list-toolbar label { font-size: .8rem; color: #5e566e; font-weight: 650; width: min(420px, 100%); }
.list-toolbar input { display: block; width: 100%; padding: 12px; margin-top: 8px; border: 1px solid #dcd5e7; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); font-weight: 400; }
.list-toolbar .muted { white-space: nowrap; font-size: .8rem; margin-bottom: 10px; }
.ad-card { padding: 21px; gap: 9px; }
.ad-card h3 { font-size: .99rem; line-height: 1.5; overflow-wrap: anywhere; font-weight: 650; }
.ad-card-heading { align-items: start; }
.card-summary { font-size: .8rem; color: var(--muted); margin: 7px 0 0; }
.card-disclosure { min-width: 0; }
.card-disclosure > summary { padding-bottom: 0; }
.card-disclosure[open] > summary { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.card-disclosure > p { font-size: .9rem; line-height: 1.7; overflow-wrap: anywhere; }
.ad-card-facts { row-gap: 18px; }
.ad-card-facts dt { color: var(--muted); font-size: .76rem; }
.ad-card-facts dd { font-size: .87rem; line-height: 1.5; }
.card-disclosure .form-note { font-size: .79rem; }
.adapter-row { padding: 20px; }
.adapter-title strong { font-size: 1rem; }
.adapter-row p { font-size: .86rem; line-height: 1.6; }
.adapter-row summary { margin-top: 12px; }
.empty-state { text-align: center; max-width: 480px; margin: 25px auto; }
.empty-state .shortcut-icon { margin: 0 auto 22px; }
.empty-state p, .empty-search { font-size: .9rem; line-height: 1.7; color: var(--muted); }
.empty-search { padding: 25px 0; }
.button-link { display: inline-block; color: #fff; text-decoration: none; margin-top: 15px; }
.pack-dialog { max-height: calc(100dvh - 40px); border-radius: 14px; }
.pack-dialog form { padding: 28px; }
.pack-dialog .field-label { font-size: .84rem; }
.pack-dialog input, .pack-dialog select, .pack-dialog textarea, .auth-card input { font-size: .93rem; }
.pack-dialog input[type=checkbox] { width: auto; }
.pack-dialog .form-note { font-size: .79rem; color: var(--muted); line-height: 1.6; }
.pack-dialog .dialog-actions { border-top: 1px solid var(--line); padding-top: 18px; }
.pack-dialog:not(.task-dialog) .dialog-actions { position: sticky; bottom: -28px; background: #fff; padding-bottom: 18px; margin-bottom: -18px; z-index: 1; }
.toast { max-width: min(420px, calc(100vw - 32px)); font-size: .87rem; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 224px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .markimage-wordmark { font-size: 1.3rem; }
  .workspace { padding-inline: 26px; }
  .shortcut-grid { gap: 12px; }
  .shortcut { padding: 18px; }
  .metrics a { padding-inline: 12px; }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; display: grid; grid-template-columns: 1fr auto; padding: 17px 22px; gap: 0; overflow: visible; }
  .sidebar-brand { display: block; padding: 0; }
  .publisher-space { display: none; }
  .sidebar nav { display: none; grid-column: 1 / -1; padding-top: 22px; overflow: visible; }
  .menu-open .sidebar nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nav-heading { display: none; }
  .menu-toggle { display: block; padding: 10px 15px; border: 1px solid #535469; border-radius: 7px; background: #343447; color: #fff; font-size: .85rem; }
  .workspace { padding-top: 27px; }
  .security-note { display: none; }
}
@media (max-width: 620px) {
  .workspace { padding: 24px 16px 40px; }
  .topbar { align-items: start; gap: 18px; padding-bottom: 22px; margin-bottom: 22px; }
  .topbar h1 { font-size: 1.65rem; }
  .topbar .status { font-size: .61rem; }
  .topbar .muted { font-size: .84rem; }
  .panel, .execution-card { padding: 20px; }
  .execution-title { flex-direction: row; }
  .execution-title h2 { font-size: 1.35rem; }
  .overview-mark { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 25px 10px; }
  .metrics a { padding: 0; border: 0; }
  .metrics strong { font-size: 1.7rem; }
  .metrics span { font-size: .75rem; }
  .overview-notice { align-items: start; flex-wrap: wrap; padding: 16px; }
  .overview-notice p { min-width: calc(100% - 40px); }
  .overview-notice a { margin-left: 33px; }
  .shortcut-grid, .profile-options { grid-template-columns: 1fr; }
  .shortcut { padding: 22px; }
  .shortcut-icon { margin-bottom: 15px; }
  .shortcut p { margin-bottom: 15px; }
  .panel-heading { align-items: start; flex-direction: column; gap: 16px; }
  .list-toolbar { flex-direction: column; align-items: start; gap: 6px; }
  .list-toolbar label { width: 100%; }
  .ad-card { padding: 16px; }
  .ad-card-heading { flex-direction: column; gap: 12px; }
  .ad-card-facts { grid-template-columns: 1fr 1fr; }
  #execution-list > .task { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  #execution-list > .task > .status { grid-column: 2; }
  .task { grid-template-columns: 28px minmax(0, 1fr); }
  .task > .status { grid-column: 2; }
  .pack-dialog form { padding: 22px; }
  .pack-dialog:not(.task-dialog) .dialog-actions { bottom: -22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.sidebar-session { padding: 0 12px 16px; }
.sidebar-session button { width: 100%; }
.sidebar-session p { color: #d8d5e8; font-size: .8rem; line-height: 1.5; }
.sidebar-session p:empty { display: none; }
