/* Shared workbench shell. Load after each page's content styles. */
:root {
  --red: #d52c1f;
  --red-soft: #fff1ee;
  --blue: #0d308f;
  --blue-soft: #eef3ff;
  --ink: #232c3d;
  --muted: #758092;
  --line: #e5e8ee;
  --canvas: #f5f6f8;
  --radius: 12px;
  --sidebar: 196px;
}
body {
  line-height: 1.6;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 40;
}
.brand {
  display: block;
  padding: 0 8px;
}
.brand img {
  width: 148px;
  height: auto;
  margin: 0 auto;
}
.sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 32px;
}
.sidebar nav > :is(a, button) {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7484;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.sidebar nav > :is(a, button):hover {
  background: #f5f6f8;
}
.sidebar nav > :is(a, button).active {
  color: var(--red);
  background: var(--red-soft);
  font-weight: 700;
}
.sidebar nav svg {
  width: 18px;
  height: 18px;
}
.sidebar nav em {
  margin-left: auto;
  padding: 1px 5px;
  border-radius: 4px;
  color: #9098a6;
  background: #f0f1f4;
  font-size: 10px;
  font-style: normal;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.sidebar nav .active em {
  color: var(--red);
  background: #ffe1da;
}
.side-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.side-bottom button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  color: #6b7484;
  font-size: 13px;
}
.brand-promise {
  margin: 20px 0 0;
  padding: 0 12px;
  color: var(--red);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.shell {
  margin-left: var(--sidebar);
  min-width: 0;
}
.topbar {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar > strong {
  flex-shrink: 0;
  font-size: 14px;
  white-space: nowrap;
}
.topbar > div,
.top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
#account-name {
  max-width: 160px;
  overflow: hidden;
  color: #6c7686;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.shell > main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 28px 40px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading > div:first-child {
  min-width: 0;
}
.page-heading h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.page-heading h1 > span,
.red-dot {
  color: var(--red);
  margin-left: 3px;
}
.page-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover,
.button:hover {
  background: #f8f9fb;
  border-color: #cdd3de;
}
.btn.primary,
.button.primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.btn.primary:hover,
.button.primary:hover {
  background: #b9251b;
  border-color: #b9251b;
}
.btn.small,
.button.small,
.topbar .btn,
.topbar .button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.panel,
.creative-card,
.asset-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (max-width: 1100px) {
  .shell > main {
    padding: 24px 20px 36px;
  }
  .topbar {
    padding-inline: 20px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 700px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    position: relative;
    inset: auto;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 60px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    width: 132px;
    padding: 0;
  }
  .brand img {
    width: 132px;
    margin: 0;
  }
  .side-bottom {
    display: none;
  }
  .sidebar nav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
    padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
    z-index: 40;
  }
  .sidebar nav > :is(a, button) {
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    height: 48px;
    padding: 3px;
    gap: 3px;
    font-size: 11px;
  }
  .sidebar nav svg {
    width: 18px;
    height: 18px;
  }
  .sidebar nav em {
    display: none;
  }
  .topbar {
    height: auto;
    min-height: 64px;
    justify-content: flex-end;
    padding: 10px 16px;
  }
  .topbar > strong {
    display: none;
  }
  .topbar > div,
  .top-right {
    flex-wrap: wrap;
    gap: 8px;
  }
  #account-name {
    max-width: 100px;
    font-size: 11px;
  }
  .shell > main {
    padding: 22px 16px calc(96px + env(safe-area-inset-bottom));
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    max-width: none;
    font-size: 25px;
  }
  .heading-actions {
    align-self: flex-end;
  }
}
