:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #18252d;
  background: #f4f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
a { color: inherit; }
.skip-link { position: absolute; top: 8px; left: -10000px; z-index: 5; padding: 12px; background: white; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid #1468c7; outline-offset: 3px; }
.login-header { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 76px); background: #fff; border-bottom: 1px solid #e5eaee; }
.login-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 25px; font-weight: 750; letter-spacing: -1.1px; }
.login-brand img { width: 36px; height: 36px; }
.login-brand span span { color: #36a7a0; }
.login-product { color: #677781; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
.login-product span { margin: 0 7px; color: #36a7a0; }
.login-layout { width: min(1160px, calc(100% - 48px)); min-height: calc(100vh - 152px); margin: 0 auto; padding: 58px 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); align-items: center; gap: clamp(48px, 8vw, 112px); }
.login-intro { max-width: 600px; }
.eyebrow { margin: 0; color: #26736f; font-size: 12px; font-weight: 750; letter-spacing: 1.35px; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 0; border-radius: 50%; background: #32a69c; }
.login-intro h1 { max-width: 550px; margin: 20px 0 16px; color: #16252e; font-size: clamp(42px, 5.5vw, 66px); line-height: 1.02; letter-spacing: -2.9px; }
.login-lede { max-width: 510px; margin: 0; color: #536570; font-size: 18px; line-height: 1.65; }
.trust-list { display: grid; gap: 18px; margin: 39px 0 28px; }
.trust-list > div { display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: 14px; }
.trust-list > div > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #d7e4e1; border-radius: 12px; color: #287b75; background: #edf6f4; font-size: 12px; font-weight: 750; }
.trust-list p { margin: 1px 0 0; color: #5a6b73; font-size: 14px; line-height: 1.55; }
.trust-list strong { color: #243740; font-size: 15px; }
.login-disclaimer { max-width: 510px; margin: 0; padding-left: 14px; border-left: 3px solid #d2a254; color: #596971; font-size: 13px; line-height: 1.55; }
.signin-card { width: 100%; max-width: 438px; padding: 38px 38px 30px; border: 1px solid #e1e7eb; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px #203b4a12; }
.signin-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 2px; width: 24px; margin-bottom: 30px; }
.signin-mark span { width: 9px; height: 9px; background: #2176c7; }
.signin-mark span:nth-child(2) { background: #42a5f5; }
.signin-mark span:nth-child(3) { background: #66bb6a; }
.signin-mark span:nth-child(4) { background: #f8c447; }
.signin-card .eyebrow { color: #6a7b84; font-size: 10px; }
.signin-card h2 { margin: 10px 0 8px; color: #172832; font-size: 29px; letter-spacing: -.8px; }
.signin-copy { margin: 0; color: #64747c; font-size: 14px; line-height: 1.5; }
.microsoft-button { min-height: 54px; margin: 26px 0 16px; padding: 0 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #bbc7cd; border-radius: 7px; color: #23353f; background: #fff; text-decoration: none; font-size: 14px; font-weight: 650; transition: background-color .15s ease, border-color .15s ease; }
.microsoft-button:hover { border-color: #718691; background: #f8fafb; }
.microsoft-mark { width: 18px; height: 18px; display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 2px; flex: 0 0 18px; }
.microsoft-mark i:nth-child(1) { background: #f35325; }
.microsoft-mark i:nth-child(2) { background: #81bc06; }
.microsoft-mark i:nth-child(3) { background: #05a6f0; }
.microsoft-mark i:nth-child(4) { background: #ffba08; }
.button-arrow { margin-left: auto; color: #60737c; font-size: 19px; font-weight: 400; }
.signin-scope { display: flex; align-items: center; gap: 8px; margin: 0; color: #687982; font-size: 12px; line-height: 1.45; }
.lock-mark { color: #387a73; font-size: 20px; }
.signin-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: #89969b; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.signin-divider::before, .signin-divider::after { content: ""; height: 1px; flex: 1; background: #e8ecef; }
.signin-facts { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; color: #576970; font-size: 12px; }
.signin-facts li { display: flex; align-items: center; gap: 9px; }
.signin-facts li span { color: #238277; font-weight: 800; }
.back-link { display: inline-block; margin-top: 28px; color: #416778; font-size: 12px; font-weight: 650; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.login-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px clamp(22px, 5vw, 76px); border-top: 1px solid #e2e8eb; background: #fff; color: #718087; font-size: 11px; }
.workspace-page .login-header { gap: 20px; }
.workspace-signout { color: #315d69; font-size: 13px; font-weight: 650; text-decoration: none; }
.workspace-signout:hover { text-decoration: underline; }
.workspace-layout { width: min(1120px, calc(100% - 48px)); min-height: calc(100vh - 152px); margin: 0 auto; padding: 54px 0 70px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 32px; }
.workspace-heading h1 { margin: 13px 0 8px; color: #16252e; font-size: clamp(34px, 4vw, 48px); letter-spacing: -1.8px; }
.workspace-lede { max-width: 600px; margin: 0; color: #5d6e76; font-size: 15px; line-height: 1.55; }
.operator-card { display: flex; align-items: center; gap: 12px; min-width: 250px; padding: 13px 16px; border: 1px solid #e1e7eb; border-radius: 12px; background: #fff; }
.operator-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: #297d77; font-weight: 700; }
.operator-card small, .operator-card strong { display: block; }
.operator-card small { margin-bottom: 4px; color: #718087; font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.operator-card strong { max-width: 210px; overflow-wrap: anywhere; color: #243740; font-size: 13px; }
.connection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.connection-card { padding: 22px 24px 19px; border: 1px solid #e1e7eb; border-radius: 15px; background: #fff; }
.connection-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.service-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #fff; font-size: 17px; font-weight: 750; }
.service-m365 { background: #7254b5; }
.service-azure { background: #1672c4; }
.service-state { display: inline-flex; align-items: center; gap: 7px; color: #6c7b80; font-size: 10px; font-weight: 750; letter-spacing: .65px; }
.service-state i { width: 7px; height: 7px; border-radius: 50%; background: #99a7aa; }
.connection-card .eyebrow { color: #738087; font-size: 10px; }
.connection-card h2 { margin: 7px 0 8px; color: #22343d; font-size: 21px; letter-spacing: -.4px; }
.connection-card > p:not(.eyebrow) { min-height: 44px; margin: 0 0 18px; color: #5d6e76; font-size: 13px; line-height: 1.55; }
.connection-foot { display: inline-flex; padding: 7px 10px; border-radius: 6px; color: #64767c; background: #f2f5f6; font-size: 11px; font-weight: 600; }
.workspace-status { display: flex; align-items: flex-start; gap: 15px; margin: 22px 0; padding: 18px 20px; border: 1px solid #eadcbf; border-radius: 12px; background: #fffaf0; }
.workspace-status-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; color: #775b22; background: #f3e2b9; font-weight: 800; }
.workspace-status .eyebrow { color: #806323; font-size: 10px; }
.workspace-status h2 { margin: 5px 0; color: #44391f; font-size: 17px; }
.workspace-status p:not(.eyebrow) { margin: 0; color: #685b3e; font-size: 13px; line-height: 1.5; }
.workspace-empty { display: grid; justify-items: center; margin-top: 22px; padding: 44px 24px 36px; border: 1px dashed #cad4d8; border-radius: 15px; background: #fbfcfc; text-align: center; }
.empty-orbit { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 15px; border: 1px solid #d5e4e1; border-radius: 17px; color: #287b75; background: #edf6f4; font-size: 28px; }
.workspace-empty h2 { margin: 0 0 8px; color: #243740; font-size: 20px; }
.workspace-empty > p:not(.disabled-reason) { max-width: 620px; margin: 0; color: #62737b; font-size: 14px; line-height: 1.6; }
.workspace-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.workspace-actions button { min-height: 42px; padding: 0 16px; border: 1px solid #d4dcdf; border-radius: 7px; color: #718087; background: #f4f6f7; font: inherit; font-size: 12px; font-weight: 650; cursor: not-allowed; }
.workspace-actions button:not(:disabled) { border-color: #16857e; color: #fff; background: #16857e; cursor: pointer; }
.workspace-actions button:not(:disabled):hover { background: #116f69; }
.workspace-actions button:focus-visible { outline: 3px solid #147d75; outline-offset: 3px; }
.workspace-report-button { min-height: 38px; padding: 0 13px; border: 1px solid #d4dcdf; border-radius: 7px; color: #718087; background: #f4f6f7; font: inherit; font-size: 12px; font-weight: 650; cursor: not-allowed; }
.workspace-report-button:not(:disabled) { border-color: #16857e; color: #fff; background: #16857e; cursor: pointer; }
.workspace-report-button:not(:disabled):hover { background: #116f69; }
.workspace-report-button:focus-visible { outline: 3px solid #147d75; outline-offset: 3px; }
.workspace-report { width: min(100%, 680px); margin-top: 24px; padding: 20px; border: 1px solid #d8e4e5; border-radius: 12px; background: #fff; color: #2d4149; text-align: left; }
.workspace-report h2 { margin: 0 0 8px; font-size: 18px; }
.workspace-report h3 { margin: 16px 0 5px; font-size: 14px; }
.workspace-report p, .workspace-report li { font-size: 13px; line-height: 1.55; }
.workspace-report ul { margin: 0; padding-left: 20px; }
.disabled-reason { margin: 13px 0 0; color: #718087; font-size: 11px; }
.workspace-boundary { margin: 20px 0 0; color: #718087; font-size: 12px; line-height: 1.5; text-align: center; }
.workspace-catalog { margin-top: 25px; }
.assistant-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: end; margin-top: 22px; padding: 20px; border: 1px solid #dbe3e6; border-radius: 13px; background: #f8fafb; }
.assistant-preview-copy { grid-column: 1 / -1; }
.assistant-preview h2 { margin: 5px 0 7px; color: #243740; font-size: 19px; }
.assistant-preview-copy > p:last-child { max-width: 680px; margin: 0; color: #62737b; font-size: 13px; line-height: 1.55; }
.assistant-disconnected { margin-left: 7px; padding: 4px 7px; border-radius: 999px; color: #64727a; background: #edf1f3; font-size: 9px; letter-spacing: .5px; }
.assistant-preview textarea { width: 100%; min-height: 52px; padding: 11px 12px; border: 1px solid #d4dcdf; border-radius: 8px; color: #66757b; background: #f0f3f4; font: inherit; font-size: 13px; resize: vertical; }
.assistant-preview textarea:disabled { opacity: 1; cursor: not-allowed; }
.assistant-preview button { min-height: 42px; padding: 0 17px; border: 1px solid #d4dcdf; border-radius: 8px; color: #718087; background: #edf1f3; font: inherit; font-size: 12px; font-weight: 650; cursor: not-allowed; }
.assistant-preview textarea:not(:disabled) { color: #243740; background: #fff; }
.assistant-preview button:not(:disabled) { color: #fff; background: #237f7b; border-color: #237f7b; cursor: pointer; }
.assistant-preview button:not(:disabled):hover { background: #1b6663; }
.assistant-preview button:focus-visible, .assistant-preview textarea:focus-visible { outline: 3px solid #147aab; outline-offset: 3px; }
.assistant-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.assistant-preview > .disabled-reason, .assistant-suggestion { grid-column: 1 / -1; }
.assistant-suggestion { padding: 16px; border: 1px solid #bbd9d6; border-radius: 9px; background: #fff; }
.assistant-suggestion[hidden] { display: none; }
.assistant-suggestion p { margin: 0 0 12px; color: #243740; font-size: 14px; line-height: 1.55; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.desktop-catalog { margin-top: 22px; padding: 20px; border: 1px solid #e1e7eb; border-radius: 13px; background: #fff; }
.desktop-catalog-heading h2 { margin: 5px 0 7px; color: #263941; font-size: 18px; }
.desktop-catalog-heading p:last-child { margin: 0; color: #62737b; font-size: 13px; line-height: 1.55; }
.desktop-validation { margin: 14px 0; padding: 10px 12px; border-radius: 7px; color: #69551f; background: #fff7e5; font-size: 12px; line-height: 1.5; }
.desktop-check-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.desktop-check-list li { display: grid; align-content: start; gap: 5px; padding: 12px; border: 1px solid #e7ecee; border-radius: 8px; }
.desktop-check-list strong { color: #344951; font-size: 12px; }
.desktop-check-list span { color: #68787e; font-size: 11px; line-height: 1.45; }
.workspace-catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.workspace-catalog-heading h2 { margin: 5px 0 7px; color: #243740; font-size: 24px; letter-spacing: -.5px; }
.workspace-catalog-heading p:not(.eyebrow) { max-width: 680px; margin: 0; color: #62737b; font-size: 13px; line-height: 1.55; }
.workspace-catalog-group { margin: 24px 0 12px; color: #465a61; font-size: 14px; }
.workspace-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.catalog-card { min-width: 0; padding: 18px; border: 1px solid #e1e7eb; border-radius: 12px; background: #fff; }
.catalog-card-ready { border-color: #b7d8cf; }
.catalog-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.catalog-kind, .catalog-state { color: #718087; font-size: 9px; font-weight: 750; letter-spacing: .6px; }
.catalog-state { padding: 5px 7px; border-radius: 999px; white-space: nowrap; }
.state-ready { color: #176749; background: #e5f4ec; }
.state-blocked { color: #80500b; background: #fff2d8; }
.state-draft { color: #64727a; background: #edf1f3; }
.catalog-card h3 { margin: 0 0 8px; color: #263941; font-size: 16px; }
.catalog-card > p { min-height: 62px; margin: 0 0 13px; color: #62737b; font-size: 12px; line-height: 1.55; }
.catalog-card .workspace-report { width: 100%; }
.catalog-card .disabled-reason { margin-bottom: 0; }
code { padding: 1px 4px; border-radius: 4px; color: #38494f; background: #f0f3f4; font-size: .95em; }

@media (max-width: 760px) {
  .login-header { height: 68px; }
  .login-product { font-size: 10px; letter-spacing: .8px; }
  .login-layout { width: min(520px, calc(100% - 34px)); min-height: auto; padding: 42px 0; grid-template-columns: 1fr; gap: 34px; }
  .login-intro h1 { font-size: 46px; }
  .login-lede { font-size: 16px; }
  .trust-list { gap: 15px; margin: 27px 0 21px; }
  .signin-card { max-width: none; padding: 30px 26px 25px; }
  .login-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; font-size: 11px; }
  .workspace-layout { width: min(560px, calc(100% - 34px)); padding: 38px 0 48px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .operator-card { width: 100%; }
  .connection-grid { grid-template-columns: 1fr; gap: 13px; }
  .workspace-catalog-grid { grid-template-columns: 1fr; }
  .assistant-preview { grid-template-columns: 1fr; }
  .assistant-preview-copy { grid-column: auto; }
  .desktop-check-list { grid-template-columns: 1fr; }
  .catalog-card > p { min-height: 0; }
  .connection-card > p:not(.eyebrow) { min-height: 0; }
  .workspace-empty { padding-right: 17px; padding-left: 17px; }
}

@media (max-width: 390px) {
  .login-header { padding-right: 16px; padding-left: 16px; }
  .login-product { font-size: 9px; letter-spacing: .4px; }
  .login-layout { width: calc(100% - 28px); }
  .login-intro h1 { font-size: 40px; letter-spacing: -1.8px; }
  .signin-card { padding-right: 20px; padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  .microsoft-button { border-width: 2px; }
  .trust-list > div > span { border-width: 2px; }
}

#assistant-suggestion-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#assistant-query-result { grid-column: 1 / -1; max-width: 100%; overflow-x: auto; }
#assistant-query-result table { width: 100%; border-collapse: collapse; text-align: left; }
#assistant-query-result th, #assistant-query-result td { padding: 0.65rem; border-bottom: 1px solid #dce5e8; overflow-wrap: anywhere; }
