@font-face { font-family: Inter; src: url("/assets/inter-variable-latin-1f021a24.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
.teams-page {
  --teams-bg: #1a191e;
  --teams-panel: #212025;
  --teams-field: #242327;
  --teams-border: #323138;
  --teams-muted: #aaa9b1;
  --teams-accent: #879dff;
  background: var(--teams-bg);
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  color-scheme: dark;
}
.teams-page * { box-sizing: border-box; }
.teams-page h1, .teams-page h2, .teams-page h3, .teams-page p { color: inherit; margin: 0; }
.teams-page h1 { font-size: 28px; line-height: 1.25; font-weight: 700; }
.teams-page h2 { font-size: 18px; line-height: 1.35; font-weight: 600; }
.teams-page h3 { font-size: 15px; font-weight: 600; }
.teams-page a, .teams-link { color: var(--teams-accent); text-decoration: none; text-underline-offset: 3px; }
.teams-page a:hover, .teams-link:hover { text-decoration: underline; }
.teams-page button, .teams-page input, .teams-page select, .teams-page textarea { font: inherit; }
.teams-page :focus-visible { outline: 3px solid #a9b8ff; outline-offset: 3px; }
.teams-page ::selection { background: #5177ff; color: white; }
.teams-page ::placeholder { color: var(--teams-muted); opacity: 1; }
.teams-page ::-webkit-scrollbar { width: 10px; height: 10px; }
.teams-page ::-webkit-scrollbar-thumb { background: #53515d; border: 2px solid var(--teams-bg); border-radius: 8px; }
.teams-skip { position: absolute; left: 12px; top: -60px; padding: 12px; z-index: 30; background: var(--teams-panel); }
.teams-skip:focus { top: 10px; }
.teams-brand { color: white !important; font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.teams-brand span { color: var(--teams-accent); font-size: 11px; letter-spacing: 1.1px; }
.teams-auth { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 64px 24px 88px; }
.teams-auth > .teams-brand { font-size: 24px; }
.teams-auth-card { width: min(100%, 440px); background: var(--teams-panel); border: 1px solid var(--teams-border); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.teams-auth-card h1 { font-size: 24px; }
.teams-auth-card.wide { width: min(100%, 600px); }
.teams-auth-card.picker { width: min(100%, 640px); }
.teams-stack { display: flex; flex-direction: column; gap: 18px; }
.teams-muted { color: var(--teams-muted) !important; }
.teams-page small { font-size: 12px; }
.teams-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.teams-field label, .teams-page label { color: var(--teams-muted); font-size: 13px; }
.teams-field input, .teams-field select, .teams-field textarea,
.teams-page input:not([type=checkbox]):not([type=radio]):not([type=submit]), .teams-page select, .teams-page textarea {
  background: var(--teams-field); color: white; border: 1px solid var(--teams-border); border-radius: 8px; padding: 11px 13px; width: 100%; min-width: 0;
}
.teams-page input[readonly] { color: var(--teams-muted) !important; }
.teams-page input[type=checkbox], .teams-page input[type=radio] { accent-color: #5177ff; width: 16px; height: 16px; flex-shrink: 0; }
.teams-button { background: #5177ff; border: 1px solid #5177ff; color: white !important; border-radius: 8px; padding: 10px 16px; min-height: 42px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.teams-button:hover { background: #4164e6; border-color: #4164e6; }
.teams-button.secondary { background: var(--teams-field); border-color: var(--teams-border); }
.teams-button.secondary:hover { background: #302f37; }
.teams-button.danger { background: #bd3541; border-color: #bd3541; }
.teams-button:disabled { opacity: .55; cursor: wait; }
.teams-link { border: 0; background: transparent; padding: 3px 0; cursor: pointer; }
.teams-header { display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 12px 32px; background: #151418; border-bottom: 1px solid var(--teams-border); }
.teams-nav { min-width: 0; max-width: 100%; display: flex; gap: 4px; align-items: center; }
.teams-nav a { flex-shrink: 0; color: var(--teams-muted); border-radius: 8px; padding: 8px 12px; white-space: nowrap; }
.teams-nav a.active { background: var(--teams-field); color: white; font-weight: 600; }
.teams-nav a:hover { background: var(--teams-field); text-decoration: none; }
.teams-menu { position: relative; min-width: 0; }
.teams-menu summary { cursor: pointer; padding: 7px 12px; border: 1px solid var(--teams-border); border-radius: 8px; background: var(--teams-field); white-space: nowrap; }
.teams-user-menu { margin-left: auto; }
.teams-user-menu summary { border: 0; background: transparent; }
.teams-user-menu summary span { font-size: 12px; margin-left: 5px; }
.teams-user-menu summary .teams-user-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; margin-left: 0; }
.teams-user-menu summary img { flex-shrink: 0; }
.teams-menu-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; background: var(--teams-panel); border: 1px solid var(--teams-border); border-radius: 10px; min-width: 210px; padding: 12px; box-shadow: 0 12px 25px #0004; }
.teams-menu-panel > a, .teams-menu-panel form { display: block; padding: 8px; }
.teams-menu-panel > a, .teams-menu-panel .teams-link { color: inherit; }
.teams-menu-panel > a:hover, .teams-menu-panel a[aria-current] { background: var(--teams-field); border-radius: 7px; text-decoration: none; }
.teams-switcher summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.teams-switcher { max-width: 280px; }
.teams-switcher summary img { flex-shrink: 0; }
.teams-switcher .teams-menu-panel { width: min(436px, calc(100vw - 32px)); }
.teams-switcher .teams-menu-panel > a { display: flex; align-items: center; gap: 8px; }
.teams-switcher .teams-menu-panel .teams-badge { margin-left: auto; }
.teams-switcher .teams-menu-panel .teams-badge-muted { background: var(--teams-border); color: var(--teams-muted); }
.teams-switcher .teams-menu-panel p { font-size: 12px; margin: 10px 8px 4px; }
.teams-selected-check { color: var(--teams-accent); }
.teams-user-menu .teams-menu-panel { left: auto; right: 0; }
.teams-content { width: 100%; max-width: 1600px; margin: 0 auto; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
.teams-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.teams-page-heading p { margin-top: 6px; }
.teams-panel { background: var(--teams-panel); border: 1px solid var(--teams-border); border-radius: 14px; padding: 24px; min-width: 0; }
.teams-panel > h2, .teams-panel > h3 { margin-bottom: 18px; }
.teams-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.teams-panel-heading h2 { margin: 0; }
.teams-grid { display: grid; gap: 24px; min-width: 0; }
.teams-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.teams-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.teams-grid.sidebar { grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr); }
.teams-toolbar { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.teams-toolbar .teams-field { flex: 1; min-width: 150px; }
.teams-toolbar .teams-button { align-self: end; }
.teams-table-wrap, .teams-page .data-table-wrapper { position: relative; overflow-x: auto; border: 1px solid var(--teams-border); border-radius: 10px; }
.teams-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.teams-table thead th { color: var(--teams-muted); font-size: 11px; text-transform: uppercase; font-weight: 500; background: var(--teams-field); }
.teams-table th, .teams-table td { padding: 13px 15px; border-bottom: 1px solid var(--teams-border); vertical-align: middle; }
.teams-table tbody tr:last-child td { border-bottom: 0; }
.teams-table tbody tr:hover { background: #ffffff03; }
.teams-table th a { color: inherit; }
.teams-table td { font-variant-numeric: tabular-nums; }
.teams-table td:first-child { font-weight: 500; }
.teams-stat { background: var(--teams-panel); border: 1px solid var(--teams-border); border-radius: 12px; padding: 20px; }
.teams-stat .value { font-size: 32px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.teams-stat .label, .teams-stat small { color: var(--teams-muted); }
.teams-empty { padding: 32px 20px; text-align: center; color: var(--teams-muted); }
.teams-empty h2 { margin-bottom: 8px; color: white; }
.teams-flash, .teams-errors { border-radius: 10px; padding: 14px 18px; border: 1px solid #686168; width: 100%; }
.teams-auth > .teams-flash { max-width: 600px; }
.teams-flash.error, .teams-errors { color: #ffb7be; background: #49242b; border-color: #834651; }
.teams-flash.notice { color: #b8ebce; background: #1e392d; border-color: #37664e; }
.teams-errors ul { margin: 0; padding-left: 18px; }
.teams-footer { padding: 20px 40px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--teams-muted); border-top: 1px solid var(--teams-border); font-size: 12px; }
.teams-footer a { color: inherit; }
.teams-admin-banner { min-height: 120px; background: #392822; color: #ffbd8b; display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; gap: 20px; }
.teams-page .metric-card { background: var(--teams-panel); border: 1px solid var(--teams-border); box-shadow: none; color: white; border-radius: 12px; padding: 20px; }
.teams-page .metric-label, .teams-page .metric-subtitle { color: var(--teams-muted); }
.teams-page .metric-value { color: white; font-size: 30px; }
.teams-page .status-badge { padding: 4px 10px; font-size: 12px; line-height: 1.2; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.teams-page .status-high, .teams-page .status-danger { background: #542b34; color: #ffacb6; }
.teams-page .status-medium, .teams-page .status-warning, .teams-page .status-elevated { background: #533a2c; color: #ffc193; }
.teams-page .status-low, .teams-page .status-success, .teams-page .status-normal { background: #254532; color: #9be4b3; }
.teams-page .status-info { background: #2d355d; color: #b0beff; }
.teams-page .status-neutral { background: #35343b; color: #c1bfc8; }
.teams-page .pagination { margin: 18px 0 0; gap: 4px; }
.teams-page .page-link { color: var(--teams-accent); background: var(--teams-field); border-color: var(--teams-border); }
.teams-page .page-item.active .page-link { background: #5177ff; color: white; }
.teams-page .page-item.disabled .page-link { color: var(--teams-muted); background: var(--teams-panel); }
.teams-page dialog { background: var(--teams-panel); color: white; border: 1px solid var(--teams-border); border-radius: 16px; padding: 32px; width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
.teams-page dialog::backdrop { background: #0009; }
.teams-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.teams-check { display: flex; gap: 10px; align-items: start; }
.teams-check label { color: white; }
.teams-qr { display: flex; gap: 20px; align-items: center; }
.teams-qr svg { width: 160px; height: 160px; background: white; padding: 8px; flex-shrink: 0; }
.teams-page pre { background: #111014; color: white; padding: 16px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.teams-page code { color: #cbd3ff; overflow-wrap: anywhere; }
.teams-team-choice { padding: 16px 18px; border: 1px solid var(--teams-border); background: var(--teams-field); border-radius: 10px; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: white !important; }
.teams-team-choice small { color: var(--teams-muted); display: block; margin-top: 4px; }
@media (max-width: 1200px) {
  .teams-header { flex-wrap: wrap; gap: 12px 20px; padding: 14px 24px; }
  .teams-nav { order: 4; width: 100%; overflow-x: auto; }
  .teams-content { padding: 28px 24px; }
}
@media (max-width: 700px) {
  .teams-auth { padding: 40px 16px; }
  .teams-auth-card { padding: 24px; }
  .teams-content { padding: 24px 16px; gap: 18px; }
  .teams-grid.two, .teams-grid.sidebar { grid-template-columns: 1fr; }
  .teams-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .teams-page-heading { align-items: start; flex-wrap: wrap; }
  .teams-header { position: relative; padding: 12px 16px; }
  .teams-user-menu { margin-left: 0; }
  .teams-menu summary { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
  .teams-qr { align-items: start; flex-direction: column; }
  .teams-panel { padding: 18px; }
  .teams-admin-banner { min-height: 0; align-items: start; flex-direction: column; padding: 16px; gap: 8px; }
  .teams-footer { padding: 20px 16px; }
  .teams-table { min-width: 640px; }
}
.teams-auth-note { text-align: center; font-size: 13px; color: var(--teams-muted); max-width: 600px; }
.teams-auth-note p + p { margin-top: 6px; }
.teams-qr-setup { display: flex; align-items: center; gap: 20px; }
.teams-qr-code svg { width: 160px; height: 160px; background: white; padding: 8px; }
.teams-manual-key { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.teams-backup-codes { background: #111014; padding: 16px; border-radius: 10px; font-family: ui-monospace, monospace; }
.teams-team-list { display: flex; flex-direction: column; gap: 16px; }
.teams-team-option { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; gap: 16px; border: 1px solid var(--teams-border); border-radius: 10px; background: var(--teams-field); color: white !important; }
.teams-team-option small { display: block; color: var(--teams-muted); margin-top: 4px; }
.teams-badge { border-radius: 999px; background: #2d355d; color: #b0beff; font-size: 12px; padding: 4px 10px; white-space: nowrap; }
.teams-auth-card.consent { width: min(100%, 760px); }
.teams-consent-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.teams-consent-details { background: var(--teams-field); border-radius: 12px; padding: 20px; }
.teams-data-list { padding-left: 20px; margin: 12px 0 0; }
.teams-data-list li + li { margin-top: 10px; }
.teams-data-list.shared li::marker { color: #9be4b3; }
.teams-data-list.private li::marker { color: #ffacb6; }
@media(max-width: 700px) {
  .teams-qr-setup { align-items: start; flex-direction: column; }
  .teams-consent-columns { grid-template-columns: 1fr; }
}

.teams-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; }
.teams-menu summary::-webkit-details-marker { display: none; }
.teams-menu summary img { width: 16px; height: 16px; }
.teams-admin-banner > p { display: flex; align-items: center; gap: 10px; }
.teams-admin-banner img { flex-shrink: 0; }
.teams-grid.detail { grid-template-columns: minmax(240px, 350px) minmax(0, 1fr); }
.teams-details { display: grid; grid-template-columns: max-content 1fr; gap: 12px 20px; }
.teams-details dt { color: var(--teams-muted); font-weight: 400; }
.teams-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.teams-confirm { padding-top: 12px; }
.teams-confirm summary { color: var(--teams-accent); cursor: pointer; }
@media(max-width: 800px) { .teams-grid.detail { grid-template-columns: 1fr; } }

.teams-page .metric-label { text-transform: none; letter-spacing: normal; font-size: 13px; }
.teams-page .metric-card { display: flex; flex-direction: column; gap: 5px; }
.teams-page .metric-subtitle { font-size: 12px; }
.teams-page .metric-value .unit { font-size: 14px; color: var(--teams-muted); }
.teams-panel > .teams-page-heading { margin-bottom: 24px; }
.teams-page .risk-assessment { background: transparent; border: 0; padding: 0; margin: 0; box-shadow: none; }
.teams-page .risk-assessment .risk-label { color: var(--teams-muted); text-transform: none; letter-spacing: normal; font-size: 13px; }
.teams-page .risk-assessment .risk-header .risk-content .risk-value { color: white; font-size: 24px; }
.teams-page .risk-assessment .risk-indicator { background: var(--teams-field) !important; box-shadow: none !important; }
.teams-page .risk-assessment .risk-indicator.low { color: #9be4b3; }
.teams-page .risk-assessment .risk-indicator.medium { color: #ffc193; }
.teams-page .risk-assessment .risk-indicator.high { color: #ffacb6; }
@media(max-width: 700px) {
  .teams-page-heading > * { max-width: 100%; }
  .teams-toolbar { width: 100%; gap: 12px; }
  .teams-toolbar .teams-field { min-width: min(140px, 100%); flex-basis: calc(50% - 6px); }
  .teams-toolbar .teams-button { flex-shrink: 0; }
  .teams-header .teams-user-menu { margin-left: auto; }
  .teams-header .teams-user-menu summary { max-width: 140px; }
  .teams-user-menu summary .teams-user-role { display: none; }
  .teams-menu-panel { max-width: calc(100vw - 32px); }
}
.teams-risk-summary { display: flex; align-items: center; justify-content: space-between; background: var(--teams-field); border-radius: 10px; padding: 14px 16px; margin-top: 12px; }
.teams-risk-summary .value { font-size: 26px; }
.teams-dashboard-risks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.teams-dashboard-risks .teams-risk-summary { flex-direction: column; align-items: start; gap: 10px; margin-top: 0; padding: 14px 10px; }
.teams-table tbody th { font-size: 13px; font-weight: 600; background: transparent; color: white; text-transform: none; }
@media(max-width: 700px) { .teams-toolbar .teams-field { flex-basis: calc(50% - 6px); min-width: 0; } .teams-toolbar input { max-width: 100%; } }
.teams-header > * { min-width: 0; }
@media(max-width: 700px) {
  .teams-header > .teams-menu:not(.teams-user-menu) { max-width: calc(100% - 140px); }
  .teams-header > .teams-menu:not(.teams-user-menu) summary { max-width: 100%; }
  .teams-switcher { position: static; }
  .teams-switcher .teams-menu-panel { left: 16px; right: 16px; top: calc(100% + 4px); }
  .teams-grid.sidebar { grid-template-columns: minmax(0, 1fr); }
}
.teams-content > * { min-width: 0; }
.teams-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media(max-width: 700px) { .teams-grid.three { grid-template-columns: minmax(0, 1fr); } }
