/* Authenticated workspace. The public login keeps its existing presentation. */
.app-shell { --line: #e5e7e8; --muted: #62666a; --surface: #f6f7f7; display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; font-size: 14px; line-height: 1.5; }
.app-shell .ui-icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.app-shell .skip-link { position: fixed; left: 16px; top: -80px; z-index: 5; background: #000; color: #fff; padding: 14px 20px; }
.app-shell .skip-link:focus { top: 12px; }
.app-sidebar { border-right: 1px solid var(--line); padding: 35px 20px 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.app-brand { display: block; color: #000; text-decoration: none; padding: 0 12px; }
.app-brand .wordmark { width: 154px; }
.app-brand > span { display: block; font-size: 9px; letter-spacing: .18em; margin-top: 12px; color: var(--muted); }
.company-switch { display: flex; gap: 11px; align-items: center; padding: 18px 10px; margin: 30px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.company-avatar { width: 33px; height: 33px; display: grid; place-items: center; background: #000; color: #fff; border-radius: 7px; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.company-switch > div { min-width: 0; }
.company-switch strong { display: block; font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.meta-label { display: block; font-size: 9px; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.app-navigation { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 13px; color: #45494d; text-decoration: none; padding: 12px 14px; border-radius: 6px; min-height: 46px; }
.nav-item:hover { background: var(--surface); color: #000; }
.nav-item.is-active { background: #000; color: #fff; font-weight: 700; }
.nav-item.is-active .ui-icon { color: #2aea33; }
.nav-item.is-active::after { content: ''; margin-left: auto; width: 5px; height: 5px; background: #2aea33; border-radius: 50%; }
.sidebar-bottom { margin-top: auto; padding: 44px 12px 0; }
.preview-note { font-size: 11px; font-weight: 700; }
.preview-note .status-dot { width: 6px; height: 6px; border-radius: 50%; }
.sidebar-bottom > p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 8px 0 24px; }
.session-identity { padding-top: 20px; border-top: 1px solid var(--line); }
.session-email { display: block; margin: 7px 0 14px; font-size: 12px; overflow-wrap: anywhere; }
.app-logout { display: flex; align-items: center; gap: 8px; padding: 8px 0; background: none; border: 0; font: inherit; font-size: 12px; cursor: pointer; color: var(--muted); }
.app-logout:hover { color: #000; }
.app-logout .ui-icon { width: 16px; height: 16px; }
.mobile-navigation { display: none; }
.app-body { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { height: 76px; border-bottom: 1px solid var(--line); padding: 0 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.app-topbar strong { color: #000; font-weight: 500; }
.breadcrumb-slash { padding: 0 12px; color: #9a9ea1; }
.topbar-badge { font-size: 10px; letter-spacing: .08em; white-space: nowrap; border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; }
.app-main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 43px 46px 44px; flex: 1; }
.app-main:focus { outline: none; }
.app-shell .eyebrow { font-size: 10px; letter-spacing: .14em; margin: 0 0 11px; color: var(--muted); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.app-shell h1 { font-size: 38px; line-height: 1.12; letter-spacing: -.045em; margin: 0 0 12px; font-weight: 700; }
.page-description { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.7; max-width: 650px; }
.status-label, .quiet-label { font-size: 11px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 6px 10px; color: #53575a; }
.status-label { white-space: nowrap; }
.welcome-panel { display: grid; grid-template-columns: 1.12fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.welcome-copy { padding: 34px; }
.app-shell h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.03em; }
.welcome-copy h2 { font-size: clamp(26px, 2.6vw, 35px); line-height: 1.13; margin: 16px 0; letter-spacing: -.045em; }
.welcome-copy p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 410px; margin-bottom: 22px; }
.welcome-copy strong { color: #000; font-weight: 500; }
.app-shell .button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 17px; border-radius: 5px; font-size: 12px; min-height: 44px; }
.app-shell .button .ui-icon { width: 17px; height: 17px; }
.workflow-preview { background: var(--surface); padding: 34px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.workflow-caption { font-size: 9px; letter-spacing: .13em; font-weight: 700; color: var(--muted); margin-bottom: 20px; }
.workflow-step { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid #dddfe0; }
.workflow-number { font-size: 10px; color: var(--muted); }
.workflow-step > .ui-icon { width: 20px; }
.workflow-step strong { display: block; font-size: 13px; }
.workflow-step div > span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.workflow-footnote { font-size: 10px; color: var(--muted); margin-top: 19px; }
.workflow-footnote::before { content: ''; display: inline-block; width: 5px; height: 5px; background: #2aea33; margin-right: 7px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 34px 0 18px; }
.section-heading h2 { font-size: 17px; }
.section-heading > span { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.shortcut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shortcut-card { display: block; padding: 23px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: #000; }
.shortcut-card:hover { border-color: #000; background: #fafafa; }
.icon-tile { width: 39px; height: 39px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.app-shell h3 { font-size: 15px; letter-spacing: -.02em; margin: 16px 0 8px; }
.shortcut-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shortcut-card h3 .ui-icon { width: 17px; height: 17px; }
.shortcut-card p, .provider-card p, .explanation-grid p { font-size: 12px; color: var(--muted); line-height: 1.75; margin: 0 0 20px; }
.card-status { font-size: 10px; color: var(--muted); }
.account-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.account-strip strong { display: block; font-size: 13px; }
.account-strip div > span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.app-shell .text-link { font-size: 12px; font-weight: 700; text-underline-offset: 4px; }
.account-strip .text-link { white-space: nowrap; padding: 12px 0; }
.app-footer { margin: 0 46px; border-top: 1px solid var(--line); padding: 20px 0; font-size: 10px; letter-spacing: 0; color: var(--muted); }
.empty-panel { border: 1px solid var(--line); border-radius: 10px; text-align: center; padding: 42px 28px; }
.icon-tile.large { width: 54px; height: 54px; margin-bottom: 20px; border-top: 2px solid #2aea33; }
.icon-tile.large .ui-icon { width: 26px; height: 26px; }
.empty-panel h2 { font-size: 23px; }
.empty-panel > p { max-width: 560px; margin: 14px auto 22px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.quiet-label { display: inline-block; }
.provider-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.provider-card { border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.provider-initial { display: grid; place-items: center; width: 34px; height: 34px; font-size: 16px; font-weight: 700; border: 1px solid var(--line); border-radius: 7px; }
.provider-card p { min-height: 42px; }
.info-strip { display: flex; align-items: center; gap: 20px; padding: 22px 0; margin-top: 24px; border-top: 1px solid var(--line); }
.info-strip p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; flex: 1; }
.info-strip strong { display: block; color: #000; font-weight: 500; }
.info-strip .text-link { white-space: nowrap; }
.explanation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; list-style: none; padding: 0; margin: 24px 0 0; }
.explanation-grid li { border-top: 1px solid var(--line); padding-top: 18px; }
.step-index { color: var(--muted); font-size: 11px; }
.explanation-grid h3 { margin-top: 10px; }
.stage-preview { display: flex; justify-content: center; align-items: center; margin: 0 auto 26px; }
.stage-preview span { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: var(--surface); }
.stage-preview span:first-child { background: #000; color: #2aea33; border-color: #000; }
.stage-preview i { width: 34px; height: 1px; background: #d1d5db; }
.task-empty { padding-top: 46px; padding-bottom: 46px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.settings-panel { border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.panel-title { display: flex; gap: 14px; align-items: center; }
.panel-title h2 { font-size: 17px; }
.panel-title p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.settings-details { margin: 24px 0; }
.settings-details dt { font-size: 11px; color: var(--muted); margin-top: 20px; }
.settings-details dd { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.panel-note { border-top: 1px solid var(--line); padding-top: 16px; margin: 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.connection-settings { margin-top: 24px; }
.connection-settings h2 { font-size: 17px; }
.connection-settings p { font-size: 12px; color: var(--muted); }
.connection-settings turbo-frame { margin-top: 20px; }
@media (min-width: 1700px) { .app-main { padding-top: 55px; } }
@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .app-topbar { padding: 0 28px; }
  .app-main { padding: 32px 28px; }
  .app-footer { margin: 0 28px; }
  .welcome-copy, .workflow-preview { padding: 25px; }
  .shortcut-card { padding: 20px; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .app-shell { display: block; }
  .app-sidebar { position: static; width: 100%; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 24px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .app-brand { padding: 0; align-self: center; }
  .app-brand > span { font-size: 8px; margin-top: 7px; }
  .company-switch { margin: 0; padding: 0; border: 0; justify-content: flex-end; }
  .company-avatar { display: none; }
  .company-switch > div { text-align: right; }
  .company-switch strong { max-width: 240px; font-size: 11px; }
  .desktop-navigation { display: none; }
  .mobile-navigation { display: block; grid-column: 1 / -1; }
  .mobile-navigation summary { list-style: none; cursor: pointer; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 700; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation summary::after { content: '+'; float: right; font-size: 16px; line-height: 18px; }
  .mobile-navigation[open] summary::after { content: '−'; }
  .mobile-navigation summary > span { color: var(--muted); font-weight: 400; margin-left: 12px; }
  .mobile-navigation .app-navigation { margin-top: 12px; }
  .sidebar-bottom { grid-column: 1 / -1; margin: 0; padding: 0; }
  .sidebar-bottom > p, .preview-note, .session-identity > .meta-label { display: none; }
  .session-identity { padding: 0; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .session-email { margin: 0; font-size: 10px; }
  .app-logout { font-size: 11px; min-height: 32px; white-space: nowrap; }
  .app-topbar { display: none; }
  .app-main { padding-top: 30px; }
}
@media (max-width: 600px) {
  .app-sidebar { padding: 20px 20px 10px; gap: 15px; }
  .app-brand .wordmark { width: 130px; }
  .app-main { padding: 30px 20px; }
  .app-shell h1 { font-size: 32px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 24px; }
  .page-description { font-size: 13px; }
  .welcome-panel { grid-template-columns: 1fr; }
  .welcome-copy { padding: 26px; }
  .welcome-copy h2 { font-size: 29px; }
  .workflow-preview { border-left: 0; border-top: 1px solid var(--line); padding: 26px; }
  .shortcut-grid, .explanation-grid, .settings-grid { grid-template-columns: 1fr; gap: 16px; }
  .shortcut-card { padding: 24px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 28px; }
  .account-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .empty-panel { padding: 30px 22px; }
  .empty-panel h2 { font-size: 22px; }
  .provider-card { padding: 18px; }
  .provider-card h3 { font-size: 14px; }
  .provider-card p { min-height: 0; }
  .info-strip { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .info-strip .text-link { width: 100%; margin-left: 35px; }
  .settings-panel { padding: 23px; }
  .app-footer { margin: 0 20px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .turbo-progress-bar { transition: none; } }
.monday-heading { margin-top: 28px; }
.monday-panel { border-top: 3px solid #2aea33; }
.monday-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.monday-description { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 650px; margin: 24px 0; }
.monday-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.monday-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.monday-actions form { margin: 0; }
.monday-actions button[disabled] { opacity: .6; cursor: wait; }
.monday-error { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 6px; padding: 14px 18px; line-height: 1.7; font-size: 13px; margin-top: 24px; }
@media (max-width: 600px) {
  .monday-summary { align-items: flex-start; flex-direction: column; }
  .monday-details { grid-template-columns: 1fr; }
  .monday-actions, .monday-actions form, .monday-actions .button { width: 100%; }
}
