/* Shared application chrome follows the supplied workspace reference.
   Colour tokens remain the existing Marshall Marketing palette. */
.workspace-shell.shell {
  --ew-ink: var(--ink);
  --ew-paper: var(--paper);
  --ew-line: var(--line);
  --ew-accent: var(--aqua);
  --font: "Email Figtree", ui-sans-serif, system-ui, sans-serif;
  --radius: 12px;
  display: block;
  font-family: var(--font);
}

.workspace-shell .ew-topbar {
  min-height: 72px;
  gap: 20px;
}

.workspace-shell .ew-brand img {
  max-height: 44px;
  width: 158px;
}

.workspace-shell .ew-brand { flex-basis: 180px; }

.workspace-tabrow {
  display: flex;
  background: var(--snow);
  border-bottom: 1px solid var(--line);
}

.workspace-tabrow .ew-tabs {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border-bottom: 0;
}

.workspace-tabrow .ew-tabs a { padding: 0 13px; }

.workspace-tools-toggle {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 0 22px;
  border: 0;
  border-left: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 13px !important;
  font-weight: 600 !important;
}

.workspace-tools-toggle[aria-current="page"] { background: #eaf0ff; box-shadow: inset 0 -3px 0 var(--aqua); }

.workspace-tools-toggle:hover { background: var(--paper); }

.workspace-shell .workspace-body { min-height: calc(100dvh - 128px); }

.workspace-shell .workspace-context {
  padding: 24px 16px;
  min-width: 0;
}

.workspace-shell .workspace-context h2 { padding: 0 8px; }

.workspace-shell .ew-module-icon {
  background: #eaf0ff;
  color: var(--signal);
  width: 36px;
  height: 36px;
}

.workspace-shell .workspace-section-nav a {
  padding: 11px 12px;
  min-height: 44px;
  border-radius: 12px;
  line-height: 1.4;
}

.workspace-shell .workspace-section-nav a > span {
  flex: 1;
  margin: 0;
  font: inherit;
}

.workspace-shell .workspace-section-nav small {
  font: 500 12px "Email Mono", monospace;
}

.workspace-shell .workspace-section-nav a.is-current {
  background: #eaf0ff;
  color: var(--ink);
}

.workspace-shell .ew-usage a { color: var(--signal) !important; }

.workspace-brand-foot { color: var(--mist); font-size: 11px; padding: 0 8px; }

.workspace-shell .workspace-content {
  min-width: 0;
  padding: 28px 32px 40px;
}

.workspace-shell .workspace-content h1 {
  font-family: "Email Bricolage", var(--font);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}

.workspace-shell .workspace-content .toolbar { margin-bottom: 24px; }

.workspace-shell .workspace-content .panel,
.workspace-shell .workspace-content .home-stat,
.workspace-shell .workspace-content .social-post-card {
  border-radius: 16px;
  box-shadow: none;
}

.workspace-shell .workspace-content .panel { padding: 24px; }
.workspace-shell .workspace-content .panel > h2 { font-size: 20px; }
.workspace-shell .workspace-content .lede { color: #637184; }

.workspace-shell .workspace-content .button {
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--snow);
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.workspace-shell .workspace-content .button-quiet {
  color: var(--ink);
  background: var(--snow);
  border-color: #8a97a8;
}

.workspace-shell .workspace-content .button-danger {
  background: var(--danger);
  border-color: var(--danger);
}

.workspace-shell .workspace-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.workspace-shell .workspace-content select,
.workspace-shell .workspace-content textarea {
  min-height: 44px;
  border-radius: 8px;
}

.workspace-shell .workspace-content .data-table th { font-size: 12px; font-weight: 600; padding: 12px 16px; }
.workspace-shell .workspace-content .data-table td { padding: 16px; }

.workspace-page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.workspace-page-heading > div { min-width: 0; }
.workspace-page-heading h1 { margin: 8px 0; }
.workspace-eyebrow { font-size: 12px; color: #637184; }
.workspace-description { font-size: 15px; color: #637184; }

.workspace-shell .home-grid { margin: 24px 0; gap: 16px; }
.workspace-shell .home-stat { padding: 24px; }
.workspace-shell .home-stat strong { font: 700 32px "Email Bricolage", var(--font); margin-bottom: 10px; }
.workspace-shell .home-stat span { color: #637184; font-size: 13px; }
.workspace-shell .inbox { height: calc(100dvh - 184px); border-radius: 16px; }
.workspace-shell .message-body { border-radius: 12px; }
.workspace-shell .thread h1 { font-size: 24px; }
.workspace-shell .board-column { border-radius: 16px; }
.workspace-shell .deal-card { border-radius: 12px; padding: 14px; }

.workspace-account-menu { position: relative; flex-shrink: 0; }
.workspace-account-menu .ew-user { width: 36px; height: 36px; }
.workspace-account-menu summary { cursor: pointer; list-style: none; border: 2px solid white; }
.workspace-account-menu summary::-webkit-details-marker { display: none; }

.workspace-account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: 230px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 32px #0b122020;
  font-size: 14px;
}

.workspace-account-dropdown button { border: 0; background: transparent; padding: 0; color: var(--signal); }

.workspace-tool-dialog {
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100dvh - 48px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: white;
  overflow: auto;
}

.workspace-tool-dialog::backdrop { background: #0b122070; backdrop-filter: blur(3px); }
.workspace-tool-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workspace-tool-dialog > header h2 { font-size: 24px; }
.workspace-tool-dialog > header button { width: 44px; height: 44px; border: 0; border-radius: 12px; font-size: 24px; background: var(--paper); }
.workspace-shell .workspace-tool-dialog .shell-sidebar { display: flex; position: static; inset: auto; width: auto; background: white; color: var(--ink); padding: 16px 0 0; gap: 16px; }
.workspace-tool-dialog .shell-brand, .workspace-tool-dialog .menu-close { display: none; }
.workspace-tool-dialog .shell-nav a { color: var(--ink); padding: 11px 14px; border-radius: 10px; }
.workspace-tool-dialog .shell-nav a:hover, .workspace-tool-dialog .shell-nav a.is-active { background: #eaf0ff; color: var(--ink); }
.workspace-tool-dialog .shell-sidebar-foot { padding: 0 14px; }
.workspace-menu-search { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); margin-top: 8px; }

.workspace-skip-link { position: absolute; top: -100px; left: 16px; padding: 10px 16px; background: white; border-radius: 8px; z-index: 40; }
.workspace-skip-link:focus { top: 12px; }
.workspace-search-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.workspace-search-form input[type="search"] { flex: 1; min-width: 0; }
.workspace-search-form label { flex-basis: 100%; }

@media (max-width: 1150px) {
  .workspace-shell .workspace-content { padding: 24px; }
  .workspace-tabrow .ew-tabs a { padding: 0 12px; }
  .workspace-tools-toggle { padding: 0 16px; }
}

@media (max-width: 900px) {
  .workspace-shell .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .workspace-shell .ew-topbar { padding: 12px 16px; gap: 10px; flex-wrap: nowrap; min-height: 68px; }
  .workspace-shell .ew-brand { flex: 0 0 122px; }
  .workspace-shell .ew-brand img { width: 122px; }
  .workspace-shell .ew-switcher { min-width: 0; max-width: none; flex: 1; }
  .workspace-shell .workspace-account-menu .ew-user { display: grid; height: 30px; width: 30px; }
  .workspace-shell .workspace-body { display: block; }
  .workspace-shell .workspace-context { padding: 16px; gap: 12px; }
  .workspace-shell .workspace-context h2 { padding: 0; font-size: 24px; }
  .workspace-shell .workspace-context-summary, .workspace-shell .workspace-brand-foot { display: none; }
  .workspace-shell .workspace-section-nav { gap: 8px; }
  .workspace-shell .workspace-section-nav a { min-height: 38px; padding: 9px 12px; }
  .workspace-shell .workspace-content { padding: 24px 16px; }
  .workspace-shell .workspace-content h1 { font-size: 28px; }
  .workspace-shell .workspace-content .panel { padding: 20px 16px; }
  .workspace-shell .home-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-shell .inbox { height: auto; }
  .workspace-tools-toggle { padding: 0 12px; gap: 6px; font-size: 12px !important; }
  .workspace-tool-dialog { max-height: calc(100dvh - 24px); }
  .workspace-shell .workspace-tool-dialog .shell-sidebar { display: flex; }
}
