/* Brand, welcome page and overview only. Existing work views stay unchanged. */
.brand-logo { display: block; width: auto; height: auto; max-width: 132px; max-height: 56px; object-fit: contain; }
.brand-wordmark { display: block; font-weight: 700; font-size: 1.15rem; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.login { padding: 32px 0 54px; }
.welcome-layout { display: grid; grid-template-columns: 1.18fr 1fr; min-height: 640px; border: 1px solid #dfe3f0; border-radius: 18px; background: #fff; overflow: hidden; }
.welcome-story { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 4.4vw, 62px); background: #eef2ff; }
.welcome-story::after { content: ""; position: absolute; width: 380px; height: 380px; right: -220px; bottom: -220px; border: 65px solid #dce4ff; border-radius: 50%; z-index: -1; }
.welcome-story > .eyebrow { color: #4545a0; margin-bottom: 26px; letter-spacing: .15em; }
.welcome-story h1 { font-size: clamp(32px, 3.4vw, 47px); line-height: 1.16; color: #21227f; font-weight: 600; max-width: 550px; }
.welcome-story h1 span { color: #5865a8; }
.welcome-description { margin-top: 23px; font-size: 15px; line-height: 1.8; max-width: 440px; color: #54617f; }
.welcome-workflow { list-style: none; margin: 35px 0; padding: 0; display: grid; gap: 23px; }
.welcome-workflow li { display: flex; align-items: center; gap: 17px; }
.welcome-step { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border: 1px solid #ccd5f2; background: #ffffff70; border-radius: 11px; color: #4545a0; font-size: 12px; font-weight: 600; }
.welcome-workflow h2 { font-size: 15px; color: #28365c; letter-spacing: -.015em; }
.welcome-workflow p { font-size: 12px; margin-top: 4px; color: #5c6885; }
.welcome-channels { display: flex; flex-wrap: wrap; gap: 9px 17px; align-items: center; font-size: 12px; color: #47567c; }
.welcome-channels span:first-child { color: #647192; }
.welcome-channels span:not(:first-child) { font-weight: 600; }
.welcome-access { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 38px; }
.welcome-access .login-card { border: 0; border-radius: 0; padding: 20px 10px; max-width: 340px; }
.login-card > .eyebrow { color: #65648b; }
.login-card h2 { font-size: 30px; margin: 12px 0 8px; color: #232b4b; letter-spacing: -.04em; }
.login-card label { font-size: 12px; }
.login-card input { border-color: #ccd2e2; border-radius: 7px; min-height: 48px; }
.login-card .button-primary { background: #21227f; border-color: #21227f; min-height: 48px; border-radius: 7px; }
.login-card .button-primary:hover:not(:disabled) { background: #32369a; }
.login-card .login-help { font-size: 12px !important; line-height: 1.8; margin-top: 24px; color: #758095; }
.welcome-control { margin-top: 23px; padding-top: 22px; border-top: 1px solid #eef0f5; font-size: 12px; color: #758095; text-align: center; }
.welcome-control span { color: #6668ad; margin-right: 5px; }
.overview { --overview-blue: #21227f; }
.overview-heading { align-items: flex-end; padding: 28px 0 24px; }
.overview-heading .eyebrow { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; color: #687594; letter-spacing: .09em; }
.overview-heading h1 { font-size: clamp(25px, 2.6vw, 33px); color: #242b4c; }
.overview-heading-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.overview-heading-actions .small-note { font-size: 12px; max-width: 155px; text-align: right; }
.overview-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.overview-stat { display: flex; flex-direction: column; text-decoration: none; padding: 19px 22px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.overview-stat:first-child { background: #f0f2ff; border-color: #d9dff4; }
.overview-stat:hover { border-color: #929fc7; }
.overview-stat > span { font-size: 12px; color: #59647d; }
.overview-stat strong { font-size: 36px; line-height: 1.3; font-weight: 600; letter-spacing: -.05em; color: #2a3061; padding: 7px 0; font-variant-numeric: tabular-nums; }
.overview-stat small { font-size: 12px; color: #737d90; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.overview-panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 23px; min-width: 0; }
.overview-panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 17px; }
.overview-panel-heading h2 { font-size: 18px; color: #2a3454; margin-top: 5px; }
.overview-panel-heading .eyebrow { font-size: 12px; letter-spacing: .1em; color: #778198; }
.overview-panel-heading > a, .overview-panel-heading > button { font-size: 12px; white-space: nowrap; text-decoration: none; color: #414c8c; }
.overview-panel-heading > a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.overview-panel-heading > button { padding: 6px 0 6px 8px; }
.overview-panel-symbol { color: #7a85ac; font-size: 22px; }
.overview-upcoming { display: grid; gap: 8px; }
.overview-post { display: grid; grid-template-columns: 47px minmax(0, 1fr) auto; align-items: center; gap: 13px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #edf0f5; border-radius: 0; text-align: left; background: #fff; font-weight: 400; color: var(--ink); }
.overview-post:last-child { border-bottom: 0; }
.overview-post:hover { background: #f7f8fc; }
.overview-post-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 7px; background: #f1f3f9; padding: 5px; color: #505e87; font-size: 12px; }
.overview-post-date b { font-size: 19px; font-weight: 500; color: #303e67; line-height: 1.35; }
.overview-post-copy { min-width: 0; }
.overview-post-copy strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.overview-post-copy small { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.overview-panel-note { font-size: 12px; margin-top: 14px; }
.overview .empty-state { border: 0; padding: 18px 0; background: transparent; }
.overview .empty-state h3 { font-size: 15px; color: #485576; }
.overview .empty-state p { font-size: 12px; }
.overview-attention { display: grid; gap: 7px; }
.overview-task { display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; align-items: center; gap: 11px; text-align: left; padding: 11px; width: 100%; background: #f8f9fc; border: 1px solid #edf0f5; border-radius: 7px; color: #414d6b; font-size: 12px; font-weight: 500; }
.overview-task:hover { background: #eef1fb; border-color: #ccd4ee; }
.overview-task-count { display: grid; place-items: center; min-height: 29px; background: #eaeefb; border-radius: 6px; color: #414780; font-size: 13px; }
.overview-task span:last-child { color: #7b89ad; }
.overview-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 13px; }
.overview-primary-link { display: inline-flex; align-items: center; min-height: 44px; color: #373887; text-decoration: none; font-size: 12px; font-weight: 600; }
.overview-shortcuts .button-text { padding-left: 0; padding-right: 0; font-size: 12px; }
.overview-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.overview-channel { padding: 13px; border: 1px solid #e7eaf2; border-radius: 7px; min-width: 0; }
.overview-channel-label { display: flex; align-items: center; gap: 7px; color: #505d78; font-size: 12px; }
.overview-channel-icon { display: inline-grid; place-items: center; background: #edf1fd; color: #4a5a9c; width: 23px; height: 23px; border-radius: 6px; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.overview-channel-count { display: block; margin-top: 8px; font-size: 22px; line-height: 1.4; font-weight: 600; color: #343f64; }
.overview-channel small { font-size: 12px; color: #758099; }
.overview-services { display: flex; flex-wrap: wrap; gap: 7px 14px; padding-bottom: 13px; border-bottom: 1px solid #edf0f5; }
.overview-service { font-size: 12px; color: #64718a; }
.overview-service::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #7d83c6; margin-right: 6px; }
.overview-service.is-unavailable::before { background: #c19463; }
.overview-activity { margin-top: 8px; }
.overview-activity-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 7px 0; font-size: 12px; color: #4e5c79; }
.overview-activity-row small { display: block; font-size: 12px; color: #7b8599; }
.overview-activity-row .status-badge { margin-top: 2px; }
.overview-activity-row .is-failed { background: var(--red-soft); color: var(--red); }
.overview-footnote { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 0 2px; }
.overview-footnote p { font-size: 12px; color: #717d94; }
.overview-footnote strong { font-weight: 500; color: #556380; }
.overview-status-dot { height: 7px; width: 7px; flex-shrink: 0; border-radius: 50%; background: #99a4c5; }
@media (max-width: 1080px) {
  .welcome-story { padding: 34px; }
  .welcome-access { padding: 26px; }
  .overview-heading { flex-wrap: wrap; gap: 16px; }
  .overview-heading-actions .small-note { text-align: left; }
  .overview-channel { padding: 10px; }
  .overview-channel-label { flex-wrap: wrap; gap: 5px; }
}
@media (max-width: 740px) {
  .brand-logo { max-width: 106px; max-height: 46px; }
  .login { padding: 20px 0 35px; }
  .welcome-layout { grid-template-columns: minmax(0, 1fr); }
  .welcome-story { padding: 29px; }
  .welcome-story h1 { font-size: 32px; }
  .welcome-story > .eyebrow { margin-bottom: 17px; }
  .welcome-description { font-size: 13px; margin-top: 17px; }
  .welcome-workflow { display: none; }
  .welcome-channels { margin-top: 24px; }
  .welcome-access { padding: 20px 28px 30px; }
  .welcome-access .login-card { max-width: 460px; padding: 15px 0; }
  .welcome-control { margin-top: 10px; font-size: 12px; }
  .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .overview-stat { padding: 16px; }
  .overview-stat > span { font-size: 12px; }
  .overview-stat strong { font-size: 30px; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .overview-panel { padding: 19px; }
  .overview-heading h1 { font-size: 27px; }
  .overview-panel-heading h2 { font-size: 17px; }
  .overview-heading-actions { width: 100%; justify-content: space-between; }
  .overview-post { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
  .overview-post > .status-badge { grid-column: 2; justify-self: start; margin-top: -6px; }
  .overview-channels { gap: 7px; }
  .overview-channel { padding: 10px 8px; }
  .overview-channel-label { display: grid; gap: 6px; font-size: 12px; }
  .overview-footnote { align-items: flex-start; }
  .overview-status-dot { margin-top: 5px; }
}
@media (max-width: 370px) {
  .brand-logo { max-width: 87px; max-height: 40px; }
  .welcome-story, .welcome-access { padding-left: 20px; padding-right: 20px; }
  .welcome-story h1 { font-size: 28px; }
  .overview-panel { padding: 15px; }
  .overview-panel-heading { align-items: flex-start; flex-wrap: wrap; gap: 2px; }
  .overview-panel-heading > button { padding-left: 0; }
  .overview-stat { padding: 13px; }
}
