/* Teamo MasterAdmin test center: scoped dark Work administration. */
.tta-admin,
.tta-entry,
.tta-dialog,
.tta-join {
  --tta-bg: #121a26;
  --tta-panel: #192434;
  --tta-panel-soft: #202e40;
  --tta-line: #405267;
  --tta-text: #f3f7fc;
  --tta-muted: #bdcad9;
  --tta-accent: #b6e352;
  color: var(--tta-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color-scheme: dark;
  text-align: left;
}
.tta-admin *, .tta-entry *, .tta-dialog *, .tta-join * { box-sizing: border-box; }
.tta-admin { width: 100%; min-width: 0; max-width: 1440px; margin-inline: auto; padding: clamp(16px, 2.3vw, 30px); border: 1px solid var(--tta-line); border-radius: 24px; background: var(--tta-bg); }
.tta-admin h2, .tta-admin h3, .tta-admin h4, .tta-entry strong, .tta-dialog h3, .tta-join h1 { color: var(--tta-text); line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.tta-admin p, .tta-entry p, .tta-dialog p, .tta-join p { color: var(--tta-muted); margin: 6px 0 0; }
.tta-header, .tta-section-title, .tta-launch, .tta-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tta-header { align-items: flex-start; margin-bottom: 24px; }
.tta-header h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 5px; }
.tta-header > div, .tta-section-title > div, .tta-launch > div, .tta-entry > div { min-width: 0; }
.tta-eyebrow { display: block; font-size: 11px; letter-spacing: .11em; color: var(--tta-accent); font-weight: 700; }
.tta-entry { margin-bottom: 12px; padding: 14px 18px; border: 1px solid var(--tta-line); border-radius: 18px; background: var(--tta-bg); }
.tta-entry strong { display: block; font-size: 18px; margin-top: 3px; }
.tta-entry p { font-size: 13px; }
.tta-admin .tta-button, .tta-entry .tta-button, .tta-dialog .tta-button, .tta-join .tta-button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 10px 15px; margin: 0; border: 1px solid var(--tta-line); border-radius: 12px; background: var(--tta-panel-soft); color: var(--tta-text); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; text-decoration: none; white-space: normal; word-break: normal; overflow-wrap: anywhere; cursor: pointer; touch-action: manipulation; box-shadow: none;
}
.tta-admin .tta-button:hover, .tta-entry .tta-button:hover, .tta-dialog .tta-button:hover, .tta-join .tta-button:hover { background: #2b3d51; border-color: #71879e; }
.tta-admin .tta-primary, .tta-entry .tta-primary, .tta-dialog .tta-primary, .tta-join .tta-primary { background: var(--tta-accent); color: #17220a; border-color: var(--tta-accent); }
.tta-admin .tta-primary:hover, .tta-entry .tta-primary:hover, .tta-dialog .tta-primary:hover, .tta-join .tta-primary:hover { background: #c8f26e; border-color: #c8f26e; }
.tta-admin button:disabled, .tta-dialog button:disabled, .tta-join button:disabled { cursor: not-allowed; opacity: .48; }
.tta-admin :focus-visible, .tta-entry :focus-visible, .tta-dialog :focus-visible, .tta-join :focus-visible { outline: 3px solid #a9d6ff; outline-offset: 3px; }
.tta-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tta-toolbar > label { width: min(100%, 420px); }
.tta-actions, .tta-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tta-form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tta-toolbar label, .tta-form > label { display: flex; flex-direction: column; align-items: stretch; gap: 7px; color: var(--tta-text); font-size: 14px; font-weight: 600; min-width: 0; }
.tta-admin input:not([type="checkbox"]), .tta-admin select, .tta-dialog input:not([type="checkbox"]), .tta-dialog textarea, .tta-dialog select, .tta-join input:not([type="checkbox"]), .tta-join textarea {
  display: block; width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--tta-line); border-radius: 10px; background: #0f1722; color: var(--tta-text); font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none;
}
.tta-dialog textarea { resize: vertical; word-break: break-all; }
.tta-admin input::placeholder, .tta-dialog input::placeholder { color: #94a9be; opacity: 1; }
.tta-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tta-summary > span { display: flex; align-items: baseline; gap: 9px; padding: 13px 16px; border: 1px solid var(--tta-line); border-radius: 13px; color: var(--tta-muted); background: var(--tta-panel); font-size: 14px; }
.tta-summary strong { font-size: 25px; color: var(--tta-text); font-weight: 700; }
.tta-launch { background: #20302b; border: 1px solid #547340; border-radius: 14px; padding: 15px 18px; margin-bottom: 22px; }
.tta-launch strong { display: block; overflow-wrap: anywhere; }
.tta-launch p { font-size: 13px; }
.tta-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border: 1px solid var(--tta-line); border-radius: 14px; background: #0c131c; margin-bottom: 22px; }
.tta-tabs button { display: flex; justify-content: center; align-items: center; gap: 9px; min-width: 0; min-height: 48px; padding: 9px; border: 0; border-radius: 10px; background: transparent; color: var(--tta-muted); font: inherit; font-weight: 650; line-height: 1.3; cursor: pointer; }
.tta-tabs button[aria-selected="true"] { background: var(--tta-panel-soft); color: var(--tta-text); box-shadow: 0 1px 5px #0004; }
.tta-tabs span { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: #ffffff14; }
.tta-section-title { margin-bottom: 14px; }
.tta-section-title h3 { font-size: 20px; }
.tta-section-title p { font-size: 13px; }
.tta-note { background: #1a2a3b; border: 1px solid #48637d; border-radius: 12px; padding: 13px 15px; margin: 0 0 17px; overflow-wrap: anywhere; }
.tta-note strong { color: #e6f2ff; font-size: 14px; }
.tta-note p { color: #c4d8ec; font-size: 13px; margin-top: 5px; }
.tta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tta-card { min-width: 0; padding: 18px; border: 1px solid var(--tta-line); border-radius: 16px; background: var(--tta-panel); }
.tta-card > header { display: flex; align-items: center; gap: 11px; min-width: 0; margin-bottom: 16px; }
.tta-card > header > div { min-width: 0; flex: 1; }
.tta-card h4 { font-size: 17px; font-weight: 650; }
.tta-card > header p { font-size: 12px; }
.tta-avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: #344563; color: #dce8ff; font-size: 15px; font-weight: 700; }
.tta-project-avatar { background: #3d4430; color: #d7ed9d; }
.tta-status { border-radius: 7px; padding: 4px 7px; color: #b2edc4; background: #204532; font-size: 11px; font-weight: 650; }
.tta-status-off { color: #ffd0ca; background: #5a302f; }
.tta-inactive { border-style: dashed; }
.tta-permissions, .tta-group-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 17px; }
.tta-permission-badge, .tta-group-list > span { display: inline-flex; min-width: 0; padding: 4px 9px; border: 1px solid #52647b; border-radius: 7px; background: #273549; color: #e0e9f4; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.tta-group-list > span { background: #303b2c; border-color: #62704b; color: #dfebce; }
.tta-muted-badge { color: #b4c0ce !important; background: #26303c !important; border-color: #46576b !important; }
.tta-card-actions { border-top: 1px solid #ffffff12; padding-top: 15px; }
.tta-card-actions .tta-button { flex: 1 1 auto; font-size: 13px; padding-inline: 10px; }
.tta-empty { padding: 25px 0; color: var(--tta-muted); }
.tta-setup { width: min(100%, 560px); margin: 35px auto 18px; text-align: center; }
.tta-setup-icon { display: flex; width: 70px; height: 70px; margin: 0 auto 20px; align-items: center; justify-content: center; border-radius: 22px; background: #344829; color: var(--tta-accent); font-size: 32px; font-weight: 700; }
.tta-setup h3 { font-size: 24px; }
.tta-setup > p { margin: 13px 0 23px; }
.tta-setup .tta-form { text-align: left; }
.tta-mode-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 23px 0 10px; }
.tta-mode-pills > span { border: 1px solid #728398; border-radius: 100px; padding: 8px 17px; font-size: 13px; font-weight: 600; }
.tta-private-pill { color: #253346; background: #f2f7fd; }
.tta-work-pill { color: #e8eef7; background: #111b28; }
.tta-dialog { position: fixed; width: min(640px, calc(100vw - 28px)); max-width: none; max-height: min(88dvh, calc(var(--tta-viewport-height, 100dvh) - 24px), 850px); padding: 0; border: 1px solid var(--tta-line); border-radius: 20px; background: var(--tta-bg); box-shadow: 0 24px 90px #0009; overflow: hidden; margin: auto; overscroll-behavior: contain; }
.tta-dialog[open] { display: flex; flex-direction: column; }
.tta-dialog::backdrop { background: #02070cb5; backdrop-filter: blur(3px); }
.tta-dialog-head { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--tta-line); }
.tta-dialog-head h3 { font-size: 19px; }
.tta-dialog-head .tta-button { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; font-size: 26px; }
.tta-dialog-body { flex: 1 1 auto; min-height: 0; padding: 22px; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.tta-permission-fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
.tta-permission-fieldset legend { color: var(--tta-text); font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.tta-permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tta-dialog .tta-check { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 64px; gap: 11px; border: 1px solid var(--tta-line); border-radius: 11px; padding: 11px; background: var(--tta-panel); cursor: pointer; }
.tta-dialog .tta-check input[type="checkbox"] { appearance: auto; width: 21px; height: 21px; min-width: 21px; min-height: 21px; flex: 0 0 21px; margin: 0; padding: 0; accent-color: var(--tta-accent); box-shadow: none; }
.tta-check > span { min-width: 0; }
.tta-check strong { display: block; font-size: 14px; color: var(--tta-text); }
.tta-check small { display: block; color: var(--tta-muted); font-size: 11px; font-weight: 400; margin-top: 3px; line-height: 1.4; }
.tta-check-disabled { opacity: .55; cursor: not-allowed !important; }
.tta-hint { font-size: 13px; color: var(--tta-muted); font-weight: 400; }
.tta-form-footer { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid var(--tta-line); }
.tta-form-footer .tta-button { flex: 1 1 auto; }
.tta-form-error { width: 100%; margin: 0 !important; padding: 11px 13px; border-radius: 9px; border: 1px solid #a35b56; background: #532c2a; color: #ffe1dd !important; font-size: 14px; font-weight: 400; }
.tta-form-error[hidden] { display: none; }
.tta-member-list { display: flex; flex-direction: column; gap: 11px; }
.tta-member { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--tta-line); border-radius: 12px; background: var(--tta-panel); }
.tta-member > div { min-width: 0; }
.tta-member strong { display: block; overflow-wrap: anywhere; }
.tta-member small { display: block; font-size: 12px; color: var(--tta-muted); margin-top: 3px; }
.tta-member .tta-permissions { margin: 10px 0 0; }
.tta-member .tta-actions { flex: 0 0 145px; }
.tta-member .tta-actions .tta-button { width: 100%; }
.tta-member-heading { padding: 14px; background: var(--tta-panel); border-radius: 11px; }
.tta-member-heading strong, .tta-member-heading span { display: block; overflow-wrap: anywhere; }
.tta-member-heading span { color: var(--tta-muted); font-size: 13px; margin-top: 3px; }
.tta-error { padding: 22px; border: 1px solid #a55e52; border-radius: 14px; background: #362927; }
.tta-error .tta-button { margin-top: 17px; }
.tta-join { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); background: radial-gradient(ellipse at 35% 10%, #244551, #101b2a 55%); }
.tta-join-card { width: min(100%, 500px); min-width: 0; padding: clamp(24px, 6vw, 38px); border: 1px solid var(--tta-line); border-radius: 26px; background: var(--tta-bg); box-shadow: 0 25px 60px #0004; }
.tta-join-icon { display: block; width: 72px; height: 72px; object-fit: contain; margin-bottom: 25px; }
.tta-join h1 { font-size: 30px; margin: 8px 0 15px; }
.tta-join-card > .tta-button { width: 100%; margin-top: 16px; }
.tta-join-card > .tta-form-error { margin-top: 15px !important; }
.tta-join .tta-note { margin: 20px 0 0; }
@media (max-width: 1000px) {
  .tta-grid { grid-template-columns: 1fr; }
  .tta-summary > span { flex-direction: column; gap: 0; }
}
@media (max-width: 900px) {
  .tta-dialog { top: calc(var(--tta-viewport-top, 0px) + 12px); bottom: auto; margin-block: 0; }
  .shell[data-app="teamo"] .content:has(> .tta-admin) { overflow-x: hidden !important; overflow-y: auto !important; padding: 10px !important; background: #121a26; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
  .shell[data-app="teamo"] .content:has(> .tta-entry) { display: flex !important; flex-direction: column !important; }
  .shell[data-app="teamo"] .content > .tta-entry { flex: 0 0 auto; margin: 6px; }
  .shell[data-app="teamo"] .content:has(> .tta-entry) > .tm-app { flex: 1 1 0 !important; height: auto !important; min-height: 0 !important; max-height: 100% !important; }
}
@media (max-width: 600px) {
  .tta-admin { padding: 16px 12px; border-radius: 17px; }
  .tta-header { flex-direction: column; gap: 14px; margin-bottom: 19px; }
  .tta-header h2 { font-size: 25px; }
  .tta-header p { font-size: 13px; }
  .tta-header > .tta-button { min-height: 44px; padding-block: 9px; }
  .tta-toolbar { flex-direction: column; align-items: stretch; gap: 11px; }
  .tta-toolbar > label { width: 100%; }
  .tta-toolbar > .tta-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tta-summary { gap: 7px; }
  .tta-summary > span { padding: 10px; font-size: 11px; }
  .tta-summary strong { font-size: 23px; }
  .tta-launch { flex-direction: column; align-items: stretch; padding: 14px; }
  .tta-tabs { gap: 3px; padding: 4px; }
  .tta-tabs button { gap: 6px; font-size: 12px; padding: 9px 6px; }
  .tta-tabs span { padding: 2px 5px; font-size: 11px; }
  .tta-section-title { flex-direction: column; align-items: stretch; gap: 12px; }
  .tta-section-title h3 { font-size: 20px; }
  .tta-note { padding: 12px; }
  .tta-card { padding: 14px; }
  .tta-card > header { gap: 9px; }
  .tta-card h4 { font-size: 16px; }
  .tta-status { padding: 4px 6px; font-size: 10px; }
  .tta-card-actions { gap: 7px; }
  .tta-card-actions .tta-button { font-size: 12px; padding: 10px 9px; }
  .tta-entry { padding: 11px 13px; gap: 10px; }
  .tta-entry strong { font-size: 15px; }
  .tta-entry p { display: none; }
  .tta-entry .tta-eyebrow { font-size: 9px; }
  .tta-entry .tta-button { font-size: 12px; padding-inline: 11px; }
  .tta-dialog { width: calc(100vw - 14px); max-height: calc(var(--tta-viewport-height, 100dvh) - 24px); border-radius: 16px; }
  .tta-dialog-head { padding: 12px 14px; }
  .tta-dialog-head h3 { font-size: 18px; }
  .tta-dialog-body { padding: 16px 14px max(20px, env(safe-area-inset-bottom)); }
  .tta-permission-grid { grid-template-columns: 1fr; gap: 8px; }
  .tta-dialog .tta-check { min-height: 61px; padding: 11px 13px; }
  .tta-check small { font-size: 12px; }
  .tta-member { flex-direction: column; gap: 11px; padding: 13px; }
  .tta-member .tta-actions { flex-basis: auto; width: 100%; display: flex; }
  .tta-member .tta-actions .tta-button { width: auto; flex: 1; }
  .tta-setup { margin-top: 24px; }
  .tta-setup h3 { font-size: 22px; }
  .tta-join-card { border-radius: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .tta-admin *, .tta-dialog *, .tta-entry * { scroll-behavior: auto !important; }
}
