:root {
  --green: #87cefa;
  --sky-ink: #174b6a;
  --sky-deep: #123b57;
  --sky-soft: #eaf6fd;
  --sky-line: #d5eaf7;
}

body { min-height: 100dvh; display: flex; flex-direction: column; }
.shell { width: min(1200px, calc(100% - 56px)); flex: 1 0 auto; }
.mobile-top-tools { display: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline-color: #398bc0;
}
.brand-icon { color: var(--sky-deep); }
.primary, .mobile-publish { color: var(--sky-deep); font-weight: 700; }
.primary:hover, .mobile-publish:hover { background: #72bdec; color: var(--sky-deep); }
#desktop-nav button.active:after, .type-tabs button.active:after { background: var(--green); }
.type-tabs button.active, .bottom-nav button.active, .budget, .bookmark.is-saved,
.result-summary button, .post-title:hover, .text-button, .reply-person,
.unread .notification-dot, .work-nav nav .active { color: var(--sky-ink); }
.unread .notification-dot { background: var(--green); }
.work-nav nav .active { background: var(--sky-soft); }
.editor input:focus, .editor textarea:focus, .editor select:focus { border-color: #65b3e3; box-shadow: 0 0 0 3px var(--sky-soft); }
.editor input[type=checkbox] { accent-color: #398bc0; }
.org-logo, .mint, .quick-icon, .home-type, .followed { background: var(--sky-soft); color: var(--sky-ink); }
.home-search button { background: var(--green); color: var(--sky-deep); }
.home-search button:hover { background: #72bdec; color: var(--sky-deep); }
.home-hero { background: var(--green); color: var(--sky-deep); }
.hero-kicker, .hero-copy>p { color: var(--sky-deep); }
.hero-actions .primary { background: var(--sky-deep); color: #fff; }
.hero-actions .primary:hover { background: #24597a; color: #fff; }
.hero-secondary { border-color: var(--sky-deep); color: var(--sky-deep); }
.hero-secondary:hover { border-color: var(--sky-deep); color: var(--sky-deep); background: #ffffff55; }
.hero-feature { background: #dff2fd; color: var(--sky-deep); }
.hero-feature>span, .hero-feature p, .hero-link, .section-kicker,
.home-service small, .home-updates span, .home-updates small { color: var(--sky-ink); }
.hero-link { border-color: var(--sky-ink); }
.hero-mark { color: #bee5fb; }
.quick-card:hover { border-color: #87cefa; color: var(--sky-deep); }
.quick-card b, .quick-card small { color: var(--sky-ink); }
.home-bottom { background: var(--sky-soft); }
.message-item.mine { background: var(--sky-soft); border-color: var(--sky-line); }
.message-item strong { color: var(--sky-ink); }

/* Static first-paint skeleton, replaced after /api/bootstrap responds. */
.sk-block { display: block; width: var(--sk-width); max-width: 100%; height: 14px; border-radius: 7px; background: linear-gradient(100deg, #e4edf3 20%, #f3f8fb 43%, #e4edf3 68%); background-size: 220% 100%; animation: skeleton-sheen 1.5s ease-in-out infinite; }
.sk-small { height: 11px; }
.sk-title { height: 21px; border-radius: 8px; }
.sk-heading { height: 38px; border-radius: 10px; }
.sk-button { height: 40px; border-radius: 8px; }
.sk-icon { height: 34px; border-radius: 10px; }
.sk-nav { align-items: center !important; }
.sk-actions { display: flex; }
.loading-skeleton { min-height: 650px; }
.loading-skeleton>div { display: grid; gap: 22px; }
.sk-search, .sk-hero, .sk-card, .sk-page-title, .sk-detail, .sk-stats, .sk-filters, .sk-quick { display: flex; gap: 14px; }
.sk-search { align-items: center; justify-content: space-between; height: 58px; padding: 0 13px 0 20px; background: #fff; border: 1px solid var(--sky-line); border-radius: 12px; }
.sk-hero { min-height: 360px; overflow: hidden; border-radius: 20px; background: #d7edfa; }
.sk-hero>div { flex: 1.2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 55px; }
.sk-hero .sk-hero-side { flex: .8; background: #e9f5fc; }
.sk-quick { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.sk-quick>div, .sk-card { background: #fff; border: 1px solid #e8eef2; border-radius: 12px; }
.sk-quick>div { display: flex; flex-direction: column; gap: 15px; padding: 22px; min-height: 120px; }
.sk-grid, .sk-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.sk-card { flex-direction: column; align-items: flex-start; min-width: 0; padding: 24px; gap: 15px; }
.sk-page-title { flex-direction: column; gap: 12px; margin-bottom: 5px; }
.sk-filters { align-items: center; flex-wrap: wrap; padding: 17px 20px; background: #fff; border: 1px solid #e8eef2; border-radius: 9px; }
.sk-list { display: grid; gap: 12px; max-width: 860px; }
.sk-detail { align-items: flex-start; }
.sk-detail>.sk-card:first-child { flex: 2; min-height: 380px; }
.sk-detail>.sk-card:last-child { flex: 1; min-height: 230px; }
@keyframes skeleton-sheen { to { background-position-x: -220%; } }
@media (prefers-reduced-motion: reduce) { .sk-block { animation: none; } }

.site-footer { border-top: 1px solid #dbe7ee; background: #f7fbfe; color: #506473; }
.site-footer-inner { max-width: 1200px; margin: auto; padding: 29px 0 31px; font-size: 13px; line-height: 1.8; }
.footer-main, .footer-records { display: flex; align-items: center; gap: 17px; flex-wrap: wrap; }
.footer-main strong { color: var(--sky-deep); font-size: 17px; }
.footer-records { margin-top: 8px; }
.footer-records a { color: var(--sky-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-records a:hover { color: #0c709f; }
.site-footer p { margin: 4px 0 0; }

@media (max-width: 1240px) { .site-footer-inner { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 700px) {
  .topbar { padding-left: 12px; padding-right: 12px; gap: 0; }
  .topbar .brand, .topbar .top-actions { display: none !important; }
  .mobile-top-tools { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; }
  .mobile-top-tools button { flex: none; display: grid; place-items: center; color: var(--sky-ink); }
  .mobile-top-tools svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-top-icon { width: 34px; height: 38px; position: relative; }
  .mobile-top-message i { position: absolute; top: 6px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #ef6548; }
  .mobile-top-search { flex: 1 1 auto !important; min-width: 0; height: 38px; display: flex !important; flex-direction: row; justify-content: flex-start; gap: 9px; padding: 0 12px; border: 1px solid #d8e8f1; border-radius: 20px; background: #f5fafe; text-align: left; }
  .mobile-top-search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #778d9a; font-size: 13px; }
  .mobile-top-avatar { width: 29px; height: 29px; border-radius: 50%; background: #e2f3fc; font-size: 13px; font-weight: 650; }
  .shell { width: 100%; }
  .sk-nav, .sk-actions .sk-block:first-child { display: none !important; }
  .loading-skeleton { min-height: 760px; margin: 0 16px; }
  .loading-skeleton>div { gap: 18px; }
  .loading-home>div { display: flex; flex-direction: column; }
  .loading-home .sk-search { order: 0; }
  .loading-home .sk-quick { order: 1; }
  .loading-home .sk-hero { order: 2; }
  .loading-home .sk-grid { order: 3; }
  .sk-heading { height: 28px; }
  .sk-hero { min-height: 155px; border-radius: 14px; }
  .sk-hero>div { padding: 24px; gap: 11px; }
  .sk-hero .sk-hero-side { display: none; }
  .sk-quick { gap: 5px; }
  .sk-quick>div { border: 0; background: transparent; align-items: center; min-height: 80px; padding: 5px 0; }
  .sk-quick .sk-block:not(.sk-icon) { width: 60%; }
  .sk-grid, .sk-stats { grid-template-columns: 1fr; gap: 10px; }
  .sk-grid>.sk-card:nth-child(n+3), .sk-stats>.sk-card:nth-child(n+3) { display: none; }
  .sk-card { padding: 18px; }
  .sk-search { height: 48px; }
  .sk-detail { flex-direction: column; }
  .sk-detail>.sk-card { width: 100%; }
  .sk-bottom { align-items: center; justify-content: space-around; }
  .sk-bottom>span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
  .sk-bottom .sk-icon { height: 20px; }
  main { padding-bottom: 24px; }
  .home-page { padding-bottom: 12px; }
  .site-footer-inner { padding: 26px 18px calc(88px + env(safe-area-inset-bottom)); font-size: 12px; }
  .footer-main, .footer-records { align-items: flex-start; gap: 3px 12px; }
  .footer-main { flex-direction: column; }
  .footer-records { flex-direction: column; margin-top: 11px; }
  .site-footer p { margin-top: 7px; }
}

/* Home refresh: compact portal navigation and an editorial opportunity board. */
.home-search { height: 54px; padding: 0 9px 0 17px; gap: 12px; border-color: #d9e5ec; }
.home-search .search-icon, .search-box .search-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #456c80; font-size: inherit; line-height: 1; transform: none; }
.search-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.home-hero { min-height: 390px; grid-template-columns: minmax(0,1.1fr) minmax(350px,.9fr); background: #fff; border: 1px solid #dbe8ef; border-radius: 16px; }
.hero-copy { padding: 52px 55px 48px; }
.hero-kicker { color: var(--sky-ink); font-size: 13px; letter-spacing: .03em; }
.hero-copy h1 { color: #172e3d; font-size: 44px; line-height: 1.24; margin: 22px 0 15px; }
.hero-copy>p { color: #526b7a; font-size: 16px; line-height: 1.8; max-width: 500px; margin-bottom: 27px; }
.hero-actions .primary { background: var(--green); color: var(--sky-deep); }
.hero-actions .primary:hover { background: #72bdec; color: var(--sky-deep); }
.hero-secondary { border-color: #a9cde2; color: var(--sky-ink); }
.hero-secondary:hover { background: var(--sky-soft); border-color: #84bbe0; color: var(--sky-deep); }
.hero-feature { display: block; min-width: 0; padding: 0; background: #f3f9fd; border-left: 1px solid #dbe8ef; }
.hero-feature-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 24px 29px 20px; border-bottom: 1px solid #dcebf3; }
.hero-feature-head strong { font-size: 18px; color: #183a50; }
.hero-feature-head span { font-size: 12px; color: #708694; }
.feature-main { padding: 25px 29px 22px; }
.feature-main small { color: var(--sky-ink); font-size: 12px; }
.feature-main h2 { max-width: none; font-size: 23px; line-height: 1.5; margin: 9px 0 6px; }
.feature-main p { color: #617b89; font-size: 13px; margin: 0; }
.feature-main .hero-link { margin-top: 14px; font-size: 13px; }
.hero-more { border-top: 1px solid #dcebf3; }
.hero-more button { display: block; position: relative; width: 100%; padding: 13px 29px; text-align: left; border-bottom: 1px solid #dcebf3; }
.hero-more button:hover { background: #e8f5fc; color: #123b57; }
.hero-more span { display: block; color: #78909d; font-size: 11px; margin-bottom: 3px; }
.hero-more strong { display: block; color: #24485e; font-size: 13px; font-weight: 600; padding-right: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-more b { position: absolute; right: 29px; bottom: 14px; font-weight: 400; color: #5e8aa4; }
.home-quick { margin-top: 44px; }
.home-quick .home-section-heading { margin-bottom: 13px; }
.home-quick .home-section-heading h2 { font-size: 22px; }
.quick-grid { gap: 0; border-top: 1px solid #d9e3e8; border-bottom: 1px solid #d9e3e8; }
.quick-card { min-height: 92px; padding: 18px 16px; flex-direction: row; align-items: center; gap: 13px; background: transparent; border: 0; border-radius: 0; transition: background .15s; }
.quick-card+.quick-card { border-left: 1px solid #d9e3e8; }
.quick-card:hover { transform: none; background: #eaf6fd; }
.quick-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--sky-soft); color: var(--sky-ink); font-style: normal; }
.quick-icon svg { width: 22px; height: 22px; }
.quick-card .quick-copy { display: flex; flex-direction: column; gap: 3px; padding: 0; min-width: 0; }
.quick-copy strong { margin: 0; color: #172e3d; font-size: 16px; font-weight: 650; white-space: nowrap; }
.quick-copy small { font-size: 12px; color: #718694; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions .avatar, .account-title .avatar, .mobile-me .avatar { background: #e2f3fc; color: var(--sky-ink); }
.mobile-me .identity-row { background: #eaf6fd; color: var(--sky-ink); border: 1px solid #d2e9f6; }
.mobile-me .me-actions button>span { color: var(--sky-ink); }
.mobile-me .menu-group strong { color: #1d394b; }
.mobile-me .menu-group>button { border-bottom-color: #e8eff3; }
.mobile-me .me-profile p, .mobile-me .me-stats span, .mobile-me .menu-group small, .mobile-me .me-note { color: #748b99; }
.mobile-work-back button, .work-nav nav button { color: var(--sky-ink); }
.section-title.work-title .primary { color: var(--sky-deep); }
.editor label { color: #36556a; }
.metric-list strong { color: var(--sky-deep); }
.sk-hero { background: #fff; border: 1px solid #dbe8ef; }
.sk-hero .sk-hero-side { background: #f3f9fd; }
.sk-quick { gap: 0; border-top: 1px solid #d9e3e8; border-bottom: 1px solid #d9e3e8; }
.sk-quick>div { flex-direction: row; align-items: center; min-height: 92px; padding: 18px 16px; background: transparent; border: 0; border-radius: 0; }
.sk-quick>div+div { border-left: 1px solid #d9e3e8; }

/* Site-owned select controls; the native field remains available to FormData. */
select.native-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; clip-path: inset(50%) !important; }
.custom-select { min-width: 0; width: 100%; font-size: 14px; color: #203a4a; }
.custom-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; width: 100%; padding: 9px 13px; border: 1px solid #d5e2e9; border-radius: 7px; background: #fff; cursor: pointer; line-height: 1.45; user-select: none; }
.custom-select-trigger::after { content: ''; flex: none; width: 7px; height: 7px; border-right: 1.7px solid #608097; border-bottom: 1.7px solid #608097; transform: rotate(45deg) translateY(-2px); }
.custom-select-trigger:hover { border-color: #9bc9e4; }
.custom-select-trigger:focus-visible, .custom-select.is-open .custom-select-trigger { outline: 0; border-color: #65b3e3; box-shadow: 0 0 0 3px #e3f4fd; }
.custom-select-list { display: none; position: fixed; z-index: 120; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid #d6e3eb; border-radius: 9px; background: #fff; box-shadow: 0 14px 36px #15374924; }
.custom-select.is-open .custom-select-list { display: block; }
.custom-select-option { min-height: 38px; display: flex; align-items: center; padding: 8px 11px; border-radius: 5px; cursor: pointer; line-height: 1.35; }
.custom-select-option:hover, .custom-select-option.active { background: #eaf6fd; color: #075483; }
.custom-select-option.selected { color: #075483; font-weight: 600; }
.custom-select-option[aria-disabled="true"] { color: #9cabb4; cursor: not-allowed; }
.custom-select-option[aria-disabled="true"]:hover { background: transparent; }
.row-actions .custom-select, .manage-row > .custom-select { width: auto; min-width: 122px; }
.row-actions .custom-select-trigger { min-height: 36px; padding: 7px 10px; }
.work-nav .custom-select { margin-top: 8px; }

@media (max-width: 800px) and (min-width: 701px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-feature { border-left: 0; border-top: 1px solid #dbe8ef; }
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-card:nth-child(3) { border-left: 0; }
}
@media (max-width: 700px) {
  .home-search { height: 48px; padding: 0 5px 0 13px; margin: 10px 16px 0; }
  .home-hero { display: block; min-height: 0; margin: 20px 16px 0; border: 0; border-radius: 14px; }
  .hero-copy { display: none; }
  .hero-feature { min-height: 153px; background: #dff2fd; border: 0; border-radius: 14px; }
  .hero-feature-head { padding: 17px 21px 0; border: 0; }
  .hero-feature-head strong { display: none; }
  .hero-feature-head span { color: var(--sky-ink); font-size: 12px; }
  .feature-main { padding: 0 21px 18px; }
  .feature-main small, .hero-more { display: none; }
  .feature-main h2 { font-size: 19px; margin: 7px 0 4px; }
  .feature-main p { font-size: 12px; }
  .feature-main .hero-link { margin-top: 9px; font-size: 13px; }
  .home-quick { margin: 25px 16px 0; }
  .home-quick .home-section-heading h2 { font-size: 19px; }
  .quick-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; border: 0; }
  .quick-card { min-height: 91px; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 7px 2px; border: 0; }
  .quick-card+.quick-card { border-left: 0; }
  .quick-icon { width: 44px; height: 44px; border-radius: 13px; }
  .quick-card .quick-copy { display: flex; align-items: center; margin-top: 6px; }
  .quick-copy strong { font-size: 12px; margin: 0; }
  .quick-copy small { display: none; }
  .sk-hero { background: #dff2fd; border: 0; }
  .sk-quick { gap: 5px; border: 0; }
  .sk-quick>div { flex-direction: column; align-items: center; min-height: 80px; padding: 5px 0; }
  .sk-quick>div+div { border-left: 0; }
}
