:root {
  --brand: #ee531a;
  --brand-strong: #c73b08;
  --brand-soft: #fff0e9;
  --brand-ink: #111c2d;
  --brand-muted: #685750;
  --brand-line: #e4e8f1;
  --brand-blue: #eef2ff;
  --brand-mint: #006c49;
  color: var(--brand-ink);
  background: #f9f9ff;
}
body { background: #f9f9ff; color: var(--brand-ink); }
a { color: var(--brand-strong); }
a:hover { color: #9f2e05; }
button, .button { background: var(--brand); color: white; }
button:hover, .button:hover { background: var(--brand-strong); color: white; }
button.secondary, .button-light { background: #e1e8ff; color: #243655; }
button.secondary:hover, .button-light:hover { background: #d4dfff; color: #172743; }
.text-button { background: transparent; color: var(--brand-strong); }
.text-button:hover { background: transparent; color: #932900; }
.muted, .heading p, .section-title > span { color: #74645f; }
.eyebrow { color: var(--brand-strong) !important; }
.panel {
  background: #fff;
  border-color: var(--brand-line);
  box-shadow: 0 3px 14px #1a254009;
}
.panel h2, .panel h3 { color: var(--brand-ink); }
label { color: #4a3b37; }
input, select, textarea { border-color: #d7dce8; color: var(--brand-ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline-color: #ffae91; }
details summary { color: var(--brand-strong); }
.notice { background: #e8f6ef; color: #00583b; border-color: #c8e9d6; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 35;
  background: #f9f9ffed;
  color: var(--brand-ink);
  border-bottom: 1px solid #e7eaf3;
  backdrop-filter: blur(16px);
}
.header-inner { max-width: 1240px; min-height: 74px; gap: 32px; }
.brand { color: var(--brand-ink); gap: 11px; }
.brand:hover { color: var(--brand-ink); }
.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fcb94b;
  box-shadow: 0 2px 8px #7836001f;
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 19px; line-height: 1.12; white-space: nowrap; letter-spacing: -.025em; }
.brand-copy small { color: #73615b; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.desktop-nav { gap: 4px; height: 74px; }
.desktop-nav a { color: #604d46; border-radius: 11px; }
.desktop-nav a.active, .desktop-nav a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-alert {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #664e44;
  font-size: 25px;
  border-radius: 50%;
}
.header-alert:hover { background: var(--brand-soft); text-decoration: none; }
.header-alert svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  background: #ffe5d8;
  border: 2px solid #ffbd9e;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}
.header-avatar:hover { text-decoration: none; color: var(--brand-strong); }
.app-main { max-width: 1240px; padding-top: 26px; }
footer { color: #998780; }

.brand-page { width: 100%; }
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: #fff;
  border: 1px solid #e7eaf3;
  border-radius: 24px;
  padding: 23px 28px;
  margin-bottom: 23px;
  box-shadow: 0 4px 18px #18264d09;
}
.stats-bar > div { display: grid; gap: 6px; padding: 0 24px; border-left: 1px solid #dbe2f6; }
.stats-bar > div:first-child { padding-left: 0; border-left: 0; }
.stats-bar span { color: #685750; font-size: 14px; }
.stats-bar strong { color: var(--brand-ink); font-size: 31px; line-height: 1; }
.stats-bar > div:first-child strong { color: var(--brand); }
.stats-bar > div:last-child strong { color: var(--brand-mint); }
.stats-bar strong small { font-size: 13px; font-weight: 600; margin-left: 4px; }
.create-hero {
  overflow: hidden;
  background: linear-gradient(120deg, #ff6425, #e34106);
  border-radius: 24px;
  color: white;
  margin: 0 0 30px;
  box-shadow: 0 8px 24px #dc4d1826;
}
.create-hero summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  color: white;
  list-style: none;
}
.create-hero summary::-webkit-details-marker { display: none; }
.create-hero summary > span:first-child { display: grid; gap: 5px; }
.create-hero summary small { justify-self: start; color: #fff; background: #ffffff32; border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; }
.create-hero summary strong { font-size: 24px; letter-spacing: -.03em; }
.create-hero summary em { font-size: 14px; font-style: normal; opacity: .92; }
.create-plus { display: grid; place-items: center; height: 54px; width: 54px; flex: none; border-radius: 50%; background: white; color: var(--brand); font-size: 35px; font-weight: 300; box-shadow: 0 3px 8px #8d230044; }
.create-hero[open] .create-plus { transform: rotate(45deg); }
.create-hero form { display: grid; gap: 3px; background: #fff; color: var(--brand-ink); padding: 16px 28px 22px; }
.create-hero form button { justify-self: start; }
.brand-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.brand-section-heading h1, .brand-section-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 21px; letter-spacing: -.02em; }
.brand-section-heading > span { color: #887775; font-size: 12px; white-space: nowrap; }
.heading-dot { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--brand); }
.brand-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.brand-project-card {
  display: grid;
  gap: 17px;
  min-width: 0;
  color: var(--brand-ink);
  background: white;
  border: 1px solid #e6eaf6;
  border-radius: 23px;
  padding: 22px;
  box-shadow: 0 3px 12px #1a25400a;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.brand-project-card:hover { color: var(--brand-ink); text-decoration: none; transform: translateY(-2px); border-color: #ffbea5; box-shadow: 0 8px 24px #ef531216; }
.card-topline { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.role-badge, .stage-badge, .title-chip {
  display: inline-flex; align-items: center; gap: 3px;
  border-radius: 999px; padding: 5px 10px; background: #e2e9ff; color: #334a8b;
  font-size: 12px; font-weight: 750; line-height: 1.1;
}
.role-badge.leader { background: var(--brand); color: white; }
.stage-badge { background: #fff0e9; color: var(--brand-strong); }
.stage-badge.mint { background: #d3f7e5; color: #006c49; }
.card-main { display: flex; gap: 14px; align-items: center; justify-content: space-between; min-width: 0; }
.card-main > div { min-width: 0; }
.card-main small { color: #86746e; font-size: 12px; }
.card-main h2 { margin: 4px 0 0; font-size: 21px; line-height: 1.36; overflow-wrap: anywhere; }
.card-illustration { display: grid; place-items: center; width: 58px; height: 58px; flex: none; background: #fff2e8; border: 1px solid #ffcfb8; border-radius: 17px; font-size: 27px; color: var(--brand); }
.card-stage { display: flex; align-items: center; gap: 9px; min-width: 0; border-radius: 14px; padding: 13px 14px; background: #eef2ff; color: #304263; font-size: 14px; line-height: 1.35; }
.card-stage span:last-child { overflow-wrap: anywhere; }
.stage-icon { color: var(--brand); font-size: 20px; font-weight: 900; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.card-bottom span { color: #8a7770; }
.card-bottom strong { background: var(--brand); color: white; border-radius: 10px; padding: 10px 13px; white-space: nowrap; }
.brand-project-card.member-card .card-bottom strong { background: #dce5ff; color: #243655; }
.brand-notices { margin-top: 28px; }
.brand-notices .notice-item { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 0; }
.brand-notices .notice-item p { margin: 4px 0 0; }

.brand-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 4px 0 22px; }
.brand-title h1 { margin: 0 0 5px; font-size: 31px; letter-spacing: -.035em; }
.brand-title p:not(.eyebrow) { margin: 0; color: #75635e; }
.title-chip { vertical-align: middle; border-radius: 8px; font-size: 11px; background: #fff0e9; color: var(--brand-strong); }
.task-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 25px; }
.task-metrics > div { display: grid; gap: 6px; padding: 15px 18px; border: 1px solid #e6eaf2; border-radius: 16px; background: #fff; }
.task-metrics small { color: #76635b; }
.task-metrics strong { font-size: 23px; line-height: 1; }
.task-metrics > div:last-child strong { color: var(--brand); }
.brand-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.brand-task-card { display: grid; gap: 15px; padding: 20px; background: #fff; border: 1px solid #e7eaf4; border-radius: 20px; color: var(--brand-ink); box-shadow: 0 3px 12px #1a25400a; min-width: 0; }
.brand-task-card.leader-task { border-color: #ffc9b4; }
.brand-task-card:hover { color: var(--brand-ink); text-decoration: none; border-color: #f9916d; }
.task-card-head, .task-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.task-card-project small { color: #85736f; }
.task-card-project h3 { font-size: 20px; margin: 3px 0 0; }
.task-current-step { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 14px; background: #fff0e9; color: var(--brand-ink); }
.current-step-number { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: white; background: var(--brand); font-weight: 800; }
.task-current-step > div { display: grid; gap: 3px; }
.task-current-step small { color: var(--brand-strong); font-size: 11px; }
.task-current-step strong { font-size: 16px; }
.task-current-step .task-arrow { margin-left: auto; font-size: 25px; color: var(--brand); }
.task-card-foot { border-top: 1px solid #eef0f6; padding-top: 12px; font-size: 12px; }
.task-card-foot span { color: #8c7b75; }
.task-card-foot strong { color: var(--brand-strong); }
.claimed-panel { margin-bottom: 8px; }
.claimed-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #ebedf5; color: var(--brand-ink); padding: 13px 0; }
.claimed-row:hover { text-decoration: none; color: var(--brand-strong); }
.claimed-row > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.claimed-row small { color: #8c7a73; }
.claimed-icon { display: grid; place-items: center; flex: none; height: 36px; width: 36px; border-radius: 11px; color: var(--brand); background: #fff0e9; font-size: 22px; }
.claimed-arrow { margin-left: auto; font-size: 26px; color: #9d8075; }

.profile-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.profile-hero h1 { margin: 0; font-size: 23px; }
.profile-hero p:not(.eyebrow) { margin: 5px 0 0; color: #786660; }
.profile-hero .role-badge { margin-left: auto; flex: none; }
.profile-avatar { display: grid; place-items: center; flex: none; height: 64px; width: 64px; border: 3px solid #ffbea3; border-radius: 50%; background: #ffe7d6; color: var(--brand-strong); font-size: 27px; font-weight: 800; }
.integration-placeholder { display: grid; justify-items: center; gap: 7px; text-align: center; background: #fff; border: 1px dashed #e9bfb2; border-radius: 20px; padding: 28px 16px; margin-bottom: 20px; }
.integration-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #eef2ff; color: #655362; font-size: 28px; }
.integration-placeholder h2 { margin: 0; font-size: 18px; color: #654f4a; }
.integration-placeholder p { margin: 0; color: #9b796e; font-size: 14px; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.logout-form { margin: 20px 0 0; }
.app-sidebar, .desktop-page-title { display: none; }

.page-intro { background: linear-gradient(115deg,#fff0e9,#f9f1ef 74%,#eef2ff); border-color: #f5d3c4; }
.page-intro h1 { color: var(--brand-ink); }
.page-intro p { color: #725d55; }
.role-pill { background: #fff; color: var(--brand-strong); box-shadow: 0 2px 7px #c33b1014; }
.workflow-focus { border-color: #ffd0bf; box-shadow: 0 8px 24px #ed54200e; }
.workflow-focus .eyebrow { color: var(--brand-strong) !important; }
.stage-highlight, .event-date { background: #fff1e9; border-color: #ffd5c3; }
.stage-dot { background: var(--brand); box-shadow: 0 0 0 5px #ffe0d3; }
.stage-highlight small, .event-date > span { color: #8b6a5d; }
.event-date > strong { color: var(--brand-strong); }
.stepper li { background: #eef1fa; color: #8b8b9b; }
.stepper li span { background: #dce1ef; color: #7b8194; }
.stepper li.done { background: #e0f6e9; color: #006c49; }
.stepper li.done span { background: #006c49; color: #fff; }
.stepper li.current { background: var(--brand); color: #fff; }
.stepper li.current span { background: #fff; color: var(--brand-strong); }
.option-card, .dish-card { border-color: #e9eaf2; }
.option-heading > span { background: #eef2ff; color: #344c7f; }
.vote-actions button.selected { background: var(--brand); color: #fff; }
.action-details { border-color: #f1c4b1; background: #fffaf7; }
.status-chip { background: #eef2ff; color: #344b7c; }
.avatar { background: #ffe5d9; color: var(--brand-strong); }
.info-pair, .member-status-list > div, .assignment-line, .item, .compact-link { border-color: #eceef5; }
.compact-link { color: var(--brand-ink); }
.compact-link:hover { color: var(--brand-strong); }
.empty-state { background: #fff9f6; border-color: #f2c8b7; color: #805546; }

@media (max-width: 820px) {
  .brand-project-grid, .brand-task-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .app-header .header-inner { min-height: 66px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 11px; }
  .header-actions { gap: 7px; }
  .header-alert { width: 32px; height: 32px; font-size: 22px; }
  .header-avatar { width: 32px; height: 32px; }
  .app-main { padding: 17px 15px calc(94px + env(safe-area-inset-bottom)); }
  .mobile-nav { background: #f9f9ff; border-color: #e4e7f1; }
  .mobile-nav a { color: #69534d; gap: 2px; }
  .mobile-nav a svg { display: block; width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; }
  .mobile-nav a.active { color: var(--brand); }
  .mobile-nav a.active svg { stroke-width: 2.2; }
  .mobile-nav a span { font-size: 12px; }
  .stats-bar { padding: 17px 12px; border-radius: 19px; margin-bottom: 17px; }
  .stats-bar > div { padding: 0 10px; }
  .stats-bar span { font-size: 11px; white-space: nowrap; }
  .stats-bar strong { font-size: 26px; }
  .stats-bar strong small { font-size: 11px; }
  .create-hero { border-radius: 21px; margin-bottom: 26px; }
  .create-hero summary { padding: 20px 18px; gap: 10px; }
  .create-hero summary strong { font-size: 23px; }
  .create-hero summary em { font-size: 12px; line-height: 1.45; }
  .create-plus { height: 48px; width: 48px; }
  .create-hero form { padding: 13px 18px 20px; }
  .brand-section-heading { align-items: start; }
  .brand-section-heading h1, .brand-section-heading h2 { font-size: 19px; }
  .brand-section-heading > span { white-space: normal; text-align: right; max-width: 40%; }
  .brand-project-grid, .brand-task-grid { gap: 12px; }
  .brand-project-card, .brand-task-card { border-radius: 20px; padding: 17px; }
  .card-main h2 { font-size: 18px; }
  .card-illustration { width: 49px; height: 49px; font-size: 23px; }
  .card-bottom { flex-wrap: wrap; }
  .card-bottom strong { margin-left: auto; }
  .brand-title { display: block; }
  .brand-title h1 { font-size: 27px; }
  .brand-title > .role-badge { margin-top: 12px; }
  .task-metrics > div { padding: 13px; }
  .task-metrics strong { font-size: 21px; }
  .profile-hero { padding: 16px; gap: 11px; flex-wrap: wrap; }
  .profile-avatar { height: 52px; width: 52px; font-size: 22px; }
  .profile-hero h1 { font-size: 20px; }
  .profile-hero .role-badge { margin-left: 63px; }
  .profile-grid { grid-template-columns: 1fr; gap: 14px; }
  .page-intro { background: linear-gradient(115deg,#fff0e9,#f7f0f0); }
  .role-pill { max-width: 130px; white-space: normal; line-height: 1.35; }
}
@media (max-width: 370px) {
  .brand-copy strong { font-size: 15px; }
  .header-alert { display: none; }
  .stats-bar { padding-left: 8px; padding-right: 8px; }
  .stats-bar > div { padding: 0 8px; }
}

/* Desktop has its own information architecture rather than enlarged mobile cards. */
@media (min-width: 1100px) {
  .signed-in .desktop-nav { display: none; }
  .header-inner { max-width: 1600px; min-height: 78px; padding: 0 28px; }
  .header-actions { margin-left: auto; }
  .app-shell.has-sidebar {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    width: min(100%, 1600px);
    margin: 0 auto;
    min-height: calc(100vh - 78px);
  }
  .app-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 78px;
    height: calc(100vh - 78px);
    min-height: 520px;
    padding: 31px 16px 18px;
    background: #fff;
    border-right: 1px solid #e7eaf3;
  }
  .sidebar-label {
    margin: 0 0 12px 15px;
    color: #9a8c8a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
  }
  .sidebar-nav { display: grid; gap: 5px; }
  .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    padding: 0 15px;
    border-radius: 12px;
    color: #5c6474;
    font-weight: 700;
    font-size: 14px;
  }
  .sidebar-nav a:hover, .sidebar-nav a.active {
    background: #fff0e9;
    color: var(--brand-strong);
    text-decoration: none;
  }
  .sidebar-nav a span { width: 22px; text-align: center; font-size: 20px; line-height: 1; }
  .sidebar-context {
    margin: 28px 7px 0;
    padding: 16px;
    border: 1px solid #dfe7ff;
    border-radius: 15px;
    background: linear-gradient(145deg,#f2f5ff,#fff9f6);
  }
  .sidebar-context strong { font-size: 13px; }
  .sidebar-context p { margin: 7px 0 0; color: #7a7b8c; font-size: 12px; line-height: 1.6; }
  .sidebar-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px 8px;
    border-top: 1px solid #ebedf5;
    color: var(--brand-ink);
  }
  .sidebar-account:hover { color: var(--brand-ink); text-decoration: none; }
  .sidebar-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #ffe6d9; color: var(--brand-strong); font-weight: 800; }
  .sidebar-account > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
  .sidebar-account strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .sidebar-account small { color: #928480; font-size: 10px; }
  .sidebar-account > span:last-child { margin-left: auto; font-size: 20px; color: #b09b94; }
  .app-shell.has-sidebar .app-main {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 31px clamp(24px, 3vw, 54px) 72px;
  }
  .app-main > .brand-page, .app-main > .workspace-layout, .app-main > .visit-layout { max-width: 1260px; }
  .desktop-page-title { display: block; }
  .desktop-page-title h1 { margin: 1px 0 5px; font-size: 30px; letter-spacing: -.035em; }
  .desktop-page-title p:last-child { margin: 0; color: #82736e; font-size: 14px; }

  .brand-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    grid-template-areas:
      "title title"
      "stats create"
      "heading create"
      "projects notices"
      "directory directory";
    column-gap: 24px;
    row-gap: 19px;
    align-items: start;
  }
  .brand-home > .desktop-page-title { grid-area: title; margin-bottom: 5px; }
  .brand-home > .stats-bar { grid-area: stats; margin: 0; border-radius: 17px; padding: 20px 14px; }
  .brand-home .stats-bar > div { padding: 0 16px; }
  .brand-home > .create-hero { grid-area: create; margin: 0; border-radius: 17px; box-shadow: 0 5px 18px #dc4d1820; }
  .brand-home .create-hero summary { min-height: 146px; padding: 18px; }
  .brand-home .create-hero summary strong { font-size: 20px; }
  .brand-home .create-hero summary em { font-size: 12px; line-height: 1.5; }
  .brand-home .create-plus { width: 42px; height: 42px; font-size: 28px; }
  .brand-home .create-hero form { padding: 10px 18px 18px; }
  .brand-home > .brand-section-heading { grid-area: heading; margin: 5px 0 0; }
  .brand-home > .brand-project-grid { grid-area: projects; grid-template-columns: 1fr; gap: 11px; }
  .brand-home > .brand-notices { grid-area: notices; margin: 0; padding: 20px; border-radius: 17px; }
  .brand-home .brand-project-card {
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: "top top" "main main" "stage bottom";
    gap: 10px 18px;
    padding: 17px 18px;
    border-radius: 16px;
  }
  .brand-home .card-topline { grid-area: top; }
  .brand-home .card-main { grid-area: main; }
  .brand-home .card-main h2 { font-size: 19px; }
  .brand-home .card-illustration { width: 48px; height: 48px; font-size: 21px; border-radius: 12px; }
  .brand-home .card-stage { grid-area: stage; padding: 10px 12px; font-size: 12px; }
  .brand-home .card-bottom { grid-area: bottom; align-self: center; }
  .brand-home .card-bottom span { display: none; }
  .brand-home .card-bottom strong { padding: 9px 11px; font-size: 12px; }

  .task-page {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(270px,310px);
    grid-template-areas: "title title" "metrics metrics" "heading claimed" "tasks claimed";
    gap: 16px 24px;
    align-items: start;
  }
  .task-page > .brand-title { grid-area: title; margin-bottom: 3px; }
  .task-page > .task-metrics { grid-area: metrics; grid-template-columns: repeat(2,minmax(0,230px)); margin: 0 0 8px; }
  .task-page > .brand-section-heading { grid-area: heading; margin: 4px 0 0; }
  .task-page > .brand-task-grid { grid-area: tasks; grid-template-columns: 1fr; margin: 0; gap: 11px; }
  .task-page > .claimed-panel { grid-area: claimed; align-self: start; padding: 20px; border-radius: 17px; }
  .task-page .brand-task-card {
    grid-template-columns: minmax(0,1fr) minmax(180px,240px);
    grid-template-areas: "head head" "project current" "foot foot";
    align-items: center;
    gap: 11px 16px;
    padding: 17px 19px;
    border-radius: 16px;
  }
  .task-page .task-card-head { grid-area: head; }
  .task-page .task-card-project { grid-area: project; }
  .task-page .task-current-step { grid-area: current; }
  .task-page .task-card-foot { grid-area: foot; }

  .profile-page {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(270px,320px);
    grid-template-areas: "hero integration" "settings integration" "logout integration";
    gap: 19px 24px;
    align-items: start;
  }
  .profile-page > .profile-hero { grid-area: hero; margin: 0; }
  .profile-page > .integration-placeholder { grid-area: integration; margin: 0; min-height: 230px; align-content: center; }
  .profile-page > .profile-grid { grid-area: settings; grid-template-columns: 1fr; }
  .profile-page > .logout-form { grid-area: logout; margin: 0; }
  .workspace-layout, .visit-layout { grid-template-columns: minmax(0, 1fr) minmax(285px, 330px); gap: 23px; }
  .workspace-side, .visit-side { gap: 15px; }
  .page-intro { padding: 26px 31px; border-radius: 17px; }
  .workflow-focus { padding: 31px 34px; }
}

.brand-directory { min-width: 0; }
.brand-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.directory-card { display: flex; flex-direction: column; min-width: 0; }
.directory-card h3, .directory-card p { overflow-wrap: anywhere; }
.directory-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.directory-actions form { margin: 0; }
.directory-pagination { display: flex; justify-content: center; gap: 20px; margin-top: 16px; }
@media (min-width: 1100px) { .brand-home > .brand-directory { grid-area: directory; } }
@media (max-width: 680px) { .brand-directory-grid { grid-template-columns: 1fr; } }

@media (min-width: 1100px) and (max-width: 1260px) {
  .app-shell.has-sidebar { grid-template-columns: 202px minmax(0,1fr); }
  .app-shell.has-sidebar .app-main { padding-left: 23px; padding-right: 23px; }
  .brand-home { grid-template-columns: minmax(0,1fr) 262px; gap: 16px; }
  .brand-home .stats-bar > div { padding: 0 10px; }
  .brand-home .card-bottom strong { max-width: 140px; white-space: normal; text-align: center; }
  .task-page { grid-template-columns: minmax(0,1fr) 264px; gap: 16px; }
}
