/* Professional interface. The classic app styles remain available via data-interface.
   All rules are scoped; user palettes and accessibility preferences keep priority. */
html.tc-app[data-interface="professional"] {
    font-size:calc(16px * var(--app-text-scale,1));
    --tc-material-font: 'Fredoka', 'Segoe UI', sans-serif;
    --app-sidebar-width:232px;
    --app-topbar-height:60px;
    --tc-material-radius:10px;
    --tc-material-shadow:0 1px 2px rgb(15 23 42 / 4%);
    --tc-material-shadow-raised:0 16px 48px rgb(15 23 42 / 16%);
    --tc-panel-shadow:var(--tc-material-shadow);
}
/* Standard palettes: neutral work surfaces and one clear action color.
   Custom color presets are deliberately not overridden. */
html[data-interface="professional"][data-theme-preset="light"]:not([data-accessibility-contrast]) {
    --tc-bg-main:#f4f6f9!important; --tc-shell-gradient:#f4f6f9!important;
    --tc-bg-gradient:#f4f6f9!important; --tc-panel-bg-solid:#fff!important;
    --tc-panel-bg:#fff!important; --tc-panel-bg-modal:#fff!important;
    --tc-panel-bg-soft:#f8fafc!important; --tc-text-main:#172b4d!important;
    --tc-text-muted:#52627a!important; --tc-text-soft:#65738a!important;
    --tc-panel-border:#dce3ec!important; --tc-control-bg:#fff!important;
    --tc-control-border:#aab8ca!important; --tc-control-text:#172b4d!important;
    --tc-control-placeholder:#65738a!important; --tc-button-bg:#215cce!important;
    --tc-button-hover:#1747a6!important; --tc-button-text:#fff!important;
    --tc-button-hover-text:#fff!important; --tc-interactive-ink:#215cce!important;
    --tc-table-head-bg:#f4f7fb!important; --tc-table-row-bg:#fff!important;
    --tc-table-row-hover:#edf3fd!important; --tc-table-border:#e1e7ef!important;
    --tc-interactive-hover:#edf3fd!important;
}
html[data-interface="professional"][data-theme-preset="dark"]:not([data-accessibility-contrast]) {
    --tc-bg-main:#101720!important; --tc-shell-gradient:#101720!important;
    --tc-bg-gradient:#101720!important; --tc-panel-bg-solid:#192330!important;
    --tc-panel-bg:#192330!important; --tc-panel-bg-modal:#192330!important;
    --tc-panel-bg-soft:#202d3d!important; --tc-text-main:#e4edf7!important;
    --tc-text-muted:#acbcd0!important; --tc-text-soft:#99acc5!important;
    --tc-panel-border:#354458!important; --tc-control-bg:#15202d!important;
    --tc-control-border:#647895!important; --tc-control-text:#e4edf7!important;
    --tc-control-placeholder:#99acc5!important; --tc-button-bg:#8cb8ff!important;
    --tc-button-hover:#b0ceff!important; --tc-button-text:#102549!important;
    --tc-button-hover-text:#102549!important; --tc-interactive-ink:#8cb8ff!important;
    --tc-table-head-bg:#202d3d!important; --tc-table-row-bg:#192330!important;
    --tc-table-row-hover:#253851!important; --tc-table-border:#354458!important;
    --tc-interactive-hover:#253851!important;
}
html.tc-app[data-interface="professional"] body { font-size:calc(14px * var(--app-text-scale,1)); line-height:1.6; }
html.tc-app[data-interface="professional"] body :is(h1,h2,h3,h4,h5,h6) { font-family:var(--tc-material-font); font-weight:650; letter-spacing:-.02em; }
html.tc-app[data-interface="professional"] body p { line-height:1.65; }
html.tc-app[data-interface="professional"] body > main { padding:28px 32px 40px; }
html.tc-app[data-interface="professional"] body > main :is(.admin-heading h1,.account-heading h1,.projects-header h1,.classes-heading h1,.about-heading h1),
html.tc-app[data-interface="professional"] .workspace-page-heading h1 { font-size:1.65rem; font-weight:650; letter-spacing:-.035em; }
html.tc-app[data-interface="professional"] :is(.admin-eyebrow,.account-eyebrow,.classes-eyebrow,.workspace-page-heading > div > span) { font-size:.68rem; font-weight:650; letter-spacing:.1em; }
/* Navigation: quieter chrome, visible selection, consistent icon rhythm. */
html.tc-app[data-interface="professional"] .app-sidebar { padding:20px 12px 12px; background:var(--tc-panel-bg-solid)!important; border-right:1px solid var(--tc-panel-border); color:var(--tc-text-main); }
html.tc-app[data-interface="professional"] .app-brand { padding:0 10px 24px; gap:10px; }
html.tc-app[data-interface="professional"] .app-brand-symbol { width:32px; height:32px; border-radius:8px; background:var(--tc-button-bg); color:var(--tc-button-text); font-size:16px; }
html.tc-app[data-interface="professional"] .app-brand-copy strong { color:var(--tc-text-main); font-size:22px; font-weight:700; letter-spacing:-.07em; }
html.tc-app[data-interface="professional"] .app-brand-copy strong span { color:var(--tc-interactive-ink); }
html.tc-app[data-interface="professional"] .app-brand-copy small { color:var(--tc-text-muted); font-size:9px; letter-spacing:.04em; }
html.tc-app[data-interface="professional"] .app-nav-search { background:var(--tc-panel-bg-soft); border-color:var(--tc-panel-border); color:var(--tc-text-muted); margin-bottom:22px; border-radius:6px; }
html.tc-app[data-interface="professional"] .app-nav-search kbd { background:var(--tc-panel-bg-solid); color:var(--tc-text-muted); border:1px solid var(--tc-panel-border); }
html.tc-app[data-interface="professional"] .app-nav-label { color:var(--tc-text-muted); font-size:10px; font-weight:650; letter-spacing:.08em; }
html.tc-app[data-interface="professional"] .app-sidebar .app-nav-link { padding:10px; gap:10px; font-size:13px; border-radius:6px; color:var(--tc-text-muted); }
html.tc-app[data-interface="professional"] .app-sidebar .app-nav-link i { color:inherit; font-size:14px; }
html.tc-app[data-interface="professional"] .app-sidebar .app-nav-link:is(:hover,.is-current) { background:var(--tc-interactive-hover)!important; color:var(--tc-interactive-ink)!important; }
html.tc-app[data-interface="professional"] .app-sidebar .app-nav-link.is-current { box-shadow:inset 3px 0 var(--tc-interactive-ink); font-weight:650; }
html.tc-app[data-interface="professional"] body .app-admin-submenu .admin-nav-item { color:var(--tc-text-muted); }
html.tc-app[data-interface="professional"] body .app-admin-submenu .admin-nav-item:is(:hover,.is-active) { color:var(--tc-interactive-ink)!important; background:var(--tc-interactive-hover)!important; }
html.tc-app[data-interface="professional"] body .app-admin-submenu .admin-nav-item.is-active { box-shadow:inset 2px 0 var(--tc-interactive-ink); }
html.tc-app[data-interface="professional"] body #recentProjectsList .traceceni-recent-project-item { color:var(--tc-text-muted)!important; border-radius:6px; }
html.tc-app[data-interface="professional"] body #recentProjectsList .traceceni-recent-project-item > span { color:inherit!important; }
html.tc-app[data-interface="professional"] body #recentProjectsList .traceceni-recent-project-item:is(:hover,:focus-visible,:active) { background:var(--tc-interactive-hover)!important; color:var(--tc-interactive-ink)!important; }
html.tc-app[data-interface="professional"] .app-sidebar-signature { color:var(--tc-text-muted); border-top-color:var(--tc-panel-border); }
html.tc-app[data-interface="professional"] .app-topbar { padding-inline:28px; box-shadow:none; }
html.tc-app[data-interface="professional"] .app-current-page { font-weight:600; font-size:.82rem; }
html.tc-app[data-interface="professional"] .app-footer { background:transparent!important; border-top:1px solid var(--tc-panel-border); font-size:.75rem; }
/* Common component system: one form, button, table and dialog language. */
html.tc-app[data-interface="professional"] body .btn { border-radius:6px!important; font-size:.82rem; font-weight:600; padding:.6rem .9rem; letter-spacing:0; text-transform:none; box-shadow:none!important; transform:none; line-height:1.4; }
html.tc-app[data-interface="professional"] body .btn-sm { padding:.45rem .7rem; font-size:.76rem; }
html.tc-app[data-interface="professional"] body .btn:focus-visible { outline:2px solid var(--tc-interactive-ink); outline-offset:3px; }
html.tc-app[data-interface="professional"] body :is(.form-control,.form-select) { border-radius:6px!important; font-size:.85rem; padding:.65rem .8rem; line-height:1.5; box-shadow:none; }
html.tc-app[data-interface="professional"] body :is(.form-control,.form-select):focus { border-color:var(--tc-interactive-ink); box-shadow:0 0 0 3px color-mix(in srgb,var(--tc-interactive-ink) 15%,transparent); }
html.tc-app[data-interface="professional"] .form-label { font-size:.79rem; font-weight:600; margin-bottom:.45rem; }
html.tc-app[data-interface="professional"] body .badge { border-radius:4px; font-weight:600; letter-spacing:0; padding:.3rem .45rem; }
html.tc-app[data-interface="professional"] body :is(.principal-panel,.access-form-card,.projects-panel,.account-panel,.admin-panel,.classes-panel,.class-card,.about-shell,.card) { border-radius:10px!important; box-shadow:var(--tc-material-shadow)!important; border-color:var(--tc-panel-border); }
html.tc-app[data-interface="professional"] body :is(.admin-config-card,.account-preference-card,.account-security-card,.team-section,.team-card,.team-event,.class-knowledge-document,.admin-update-record) { border-radius:8px!important; box-shadow:none; }
html.tc-app[data-interface="professional"] body :is(.admin-panel-header,.account-panel-header,.classes-panel-heading) { padding-bottom:1.1rem; margin-bottom:1.4rem; border-bottom:1px solid var(--tc-panel-border); }
html.tc-app[data-interface="professional"] body :is(.admin-panel h2,.account-panel h2,.classes-panel h2,.principal-panel-title h2) { font-size:1.1rem; font-weight:650; }
html.tc-app[data-interface="professional"] body :is(.admin-config-card h3,.account-security-card h3,.class-card h3) { font-size:.94rem; }
html.tc-app[data-interface="professional"] body :is(.modal-content,.classes-modal,.projects-modal,.app-command-dialog,.principal-chatbot-panel) { border-radius:12px!important; box-shadow:var(--tc-material-shadow-raised)!important; }
html.tc-app[data-interface="professional"] body .modal-header { padding:1.15rem 1.5rem; background:var(--tc-panel-bg-soft); border-radius:12px 12px 0 0; }
html.tc-app[data-interface="professional"] body .modal-title { font-size:1.05rem!important; font-weight:650; }
html.tc-app[data-interface="professional"] body .modal-body { font-size:.88rem; }
html.tc-app[data-interface="professional"] body .modal-footer { padding:1rem 1.5rem; background:var(--tc-panel-bg-soft); gap:.6rem; }
html.tc-app[data-interface="professional"] body .dropdown-menu { padding:.4rem; border-radius:8px; box-shadow:var(--tc-material-shadow-raised); }
html.tc-app[data-interface="professional"] body .dropdown-item { padding:.6rem .75rem; border-radius:4px; font-size:.83rem; }
/* Bootstrap floating help otherwise falls back to its own system font. */
html.tc-app[data-interface="professional"] body :is(.tooltip,.popover) { font-family:inherit; }
html.tc-app[data-interface="professional"] body .table { font-size:.82rem; line-height:1.5; }
html.tc-app[data-interface="professional"] body .table th { font-size:.72rem; font-weight:650; letter-spacing:.025em; color:var(--tc-text-muted); background:var(--tc-table-head-bg); text-transform:none; }
html.tc-app[data-interface="professional"] body .table > :not(caption) > * > * { padding:.85rem 1rem; border-color:var(--tc-table-border); }
html.tc-app[data-interface="professional"] body .projects-table .btn-link { text-align:left; font-weight:600; }
@media(min-width:1200px) {
    html.tc-app[data-interface="professional"] .projects-table { min-width:0; table-layout:auto; }
    html.tc-app[data-interface="professional"] .projects-table th { white-space:normal; }
}
html.tc-app[data-interface="professional"] body :is(.nav-tabs,.tab-group) { border-radius:0; padding:0; background:transparent; border-bottom:1px solid var(--tc-panel-border); gap:.35rem; }
html.tc-app[data-interface="professional"] body .nav-tabs .nav-link { border:0; border-bottom:2px solid transparent; border-radius:0; color:var(--tc-text-muted); font-size:.84rem; padding:.8rem 1rem; background:transparent; }
html.tc-app[data-interface="professional"] body .nav-tabs .nav-link.active { color:var(--tc-interactive-ink); border-bottom-color:var(--tc-interactive-ink); font-weight:650; }
/* Workspace: emphasize the artifact-to-evidence workbench instead of decoration. */
html.tc-app[data-interface="professional"] .workspace-page-heading { padding-bottom:20px; border-bottom:1px solid var(--tc-panel-border); margin-bottom:20px; }
html.tc-app[data-interface="professional"] .workspace-page-heading p { font-size:.88rem; }
html.tc-app[data-interface="professional"] .workspace-system-identity { padding:12px 16px; border-left:3px solid var(--tc-interactive-ink); background:var(--tc-panel-bg-solid); border-radius:0 6px 6px 0; }
html.tc-app[data-interface="professional"] .github-connection-strip { padding:14px 18px; border-radius:8px; background:var(--tc-panel-bg-solid); }
html.tc-app[data-interface="professional"] body .principal-panel { padding:20px; }
html.tc-app[data-interface="professional"] body .trace-filter-card { border-radius:8px; background:var(--tc-panel-bg-soft)!important; padding:14px; }
html.tc-app[data-interface="professional"] body #accordionImportedArtifacts .accordion-item { margin-bottom:.7rem; border:1px solid var(--tc-panel-border)!important; }
/* The header contains only the title/count and chevron; add/help are sibling controls. */
html.tc-app[data-interface="professional"] body.principal-body #accordionImportedArtifacts .artifact-accordion-header { grid-template-columns:minmax(0,1fr) 24px; padding:12px 10px; background:var(--tc-panel-bg-solid); }
html.tc-app[data-interface="professional"] body.principal-body #accordionImportedArtifacts .artifact-accordion-title { overflow-wrap:anywhere; }
html.tc-app[data-interface="professional"] body .trace-matrix-wrapper { border-radius:8px; border:1px solid var(--tc-panel-border); }
html.tc-app[data-interface="professional"] body .trace-matrix-table { font-size:.83rem; }
html.tc-app[data-interface="professional"] body .trace-matrix-table th { background:var(--tc-table-head-bg); font-weight:600; }
html.tc-app[data-interface="professional"] :is(.team-bar,.devops-stage-card,.learning-mission,.class-code-box) { border-radius:8px; }
/* Public pages and authentication share the same product identity. */
html.tc-app[data-interface="professional"] .home-feature { background:var(--tc-panel-bg-solid); border-radius:12px; padding:clamp(24px,4vw,56px); gap:40px; box-shadow:none; }
html.tc-app[data-interface="professional"] .home-feature h2 { font-size:clamp(2rem,4vw,3.6rem); font-weight:700; line-height:1.1; letter-spacing:-.045em; }
html.tc-app[data-interface="professional"] .home-feature h2 span { color:var(--tc-interactive-ink); }
html.tc-app[data-interface="professional"] .home-example { transform:none; border-radius:10px; background:var(--tc-panel-bg-soft); box-shadow:none; }
html.tc-app[data-interface="professional"] .home-action-card { border-radius:8px; box-shadow:none; }
html.tc-app[data-interface="professional"] .access-intro { border-left:3px solid var(--tc-interactive-ink); padding:1.5rem 2rem; }
html.tc-app[data-interface="professional"] body .access-intro h1 { font-size:clamp(2rem,3.5vw,3rem); font-weight:700; }
html.tc-app[data-interface="professional"] body .access-intro p { font-size:.95rem; }
html.tc-app[data-interface="professional"] .access-intro-icons span { border-radius:8px; width:42px; height:42px; border-width:1px; }
html.tc-app[data-interface="professional"] .access-form-card { padding:2rem; }
html.tc-app[data-interface="professional"] .about-author-card { border-radius:10px; }
html.tc-app[data-interface="professional"] .projects-toolbar { padding-block:1rem; gap:1rem; }
html.tc-app[data-interface="professional"] .classes-summary article { border-radius:8px; box-shadow:none; border-top:3px solid var(--tc-interactive-ink); }
html.tc-app[data-interface="professional"] .account-security-icon { border-radius:8px; }
html.tc-app[data-interface="professional"] .admin-role-permission-card { border-radius:8px; }
@media(max-width:991.98px) {
    html.tc-app[data-interface="professional"] body > main { padding:24px 20px 36px; }
}
@media(min-width:961px) {
    html.tc-app[data-interface="professional"].app-nav-collapsed { --app-sidebar-width:72px; }
}
@media(max-width:960px) {
    html.tc-app[data-interface="professional"] { --app-sidebar-width:0px; }
    html.tc-app[data-interface="professional"] .app-sidebar-close { color:var(--tc-text-main); }
}
@media(max-width:575.98px) {
    html.tc-app[data-interface="professional"] { --app-topbar-height:112px; }
    html.tc-app[data-interface="professional"] body > main { padding:20px 12px 32px; }
    html.tc-app[data-interface="professional"] .app-topbar { padding-inline:12px; }
    html.tc-app[data-interface="professional"] body :is(.principal-panel,.access-form-card,.admin-panel,.account-panel,.classes-panel) { padding:16px; }
    html.tc-app[data-interface="professional"] body :is(.form-control,.form-select) { font-size:16px; }
    html.tc-app[data-interface="professional"] body .btn { min-height:44px; }
    html.tc-app[data-interface="professional"] body :is(.modal-header,.modal-footer) { padding:1rem; }
    html.tc-app[data-interface="professional"] .access-intro { padding:1rem; }
    html.tc-app[data-interface="professional"] .workspace-system-identity { width:100%; }
}
@media(prefers-reduced-motion:reduce) {
    html[data-interface="professional"] *,html[data-interface="professional"] *::before,html[data-interface="professional"] *::after { scroll-behavior:auto!important; }
}

/* Guided learning uses the same surfaces and stays usable with long translations. */
html.tc-app[data-interface="professional"] .principal-learning-panel { border-radius:12px; box-shadow:var(--tc-material-shadow-raised); }
html.tc-app[data-interface="professional"] .principal-learning-header { background:var(--tc-panel-bg-soft); }
html.tc-app[data-interface="professional"] :is(.principal-learning-header,.principal-learning-footer,.principal-learning-counter,.principal-learning-progress) { flex-shrink:0; }
html.tc-app[data-interface="professional"] .principal-learning-footer { flex-wrap:wrap; }
html.tc-app[data-interface="professional"] .principal-learning-navigation { margin-left:auto; flex-wrap:wrap; }
html.tc-app[data-interface="professional"] .principal-learning-mission { border-radius:8px; gap:.75rem; padding:.85rem; }
html.tc-app[data-interface="professional"] .principal-learning-launcher { border-radius:8px; box-shadow:var(--tc-material-shadow); }
html.tc-app[data-interface="professional"] .principal-learning-panel :is(p,strong,small) { overflow-wrap:anywhere; }
html.tc-app[data-interface="professional"] .principal-learning-progress span { background:var(--tc-interactive-ink); }
html.tc-app[data-interface="professional"] .principal-learning-highlight { outline-color:var(--tc-interactive-ink)!important; }
html.tc-app[data-interface="professional"] body .modal-header .modal-title { min-width:0; overflow-wrap:anywhere; }
html.tc-app[data-interface="professional"] body .modal-header .btn-close { flex-shrink:0; }
@media(max-width:575.98px) {
    html.tc-app[data-interface="professional"] :is(.principal-learning-close,.modal-header .btn-close) { min-width:44px; min-height:44px; padding:0; }
    html.tc-app[data-interface="professional"] .principal-learning-panel { max-width:calc(100% - 24px); }
    html.tc-app[data-interface="professional"] .principal-learning-mission { align-items:flex-start; flex-wrap:wrap; }
    html.tc-app[data-interface="professional"] .principal-learning-mission-copy { flex-basis:calc(100% - 2rem); }
    html.tc-app[data-interface="professional"] .principal-learning-mission > .btn { margin-left:auto; }
}

.team-cursor-layer{position:fixed;inset:0;pointer-events:none;z-index:1090;overflow:hidden}.team-live-cursor{position:absolute;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff;border:1px solid currentColor;border-radius:8px;padding:3px 7px;font-size:12px;box-shadow:0 2px 8px #0002;pointer-events:none}

/* Interaction refinement: shared rhythm, readable groups and calm motion. */
html.tc-app[data-interface="professional"] :is(.card,.team-section,.admin-card,.class-card,.project-card) { border-radius:14px; }
html.tc-app[data-interface="professional"] :is(.modal-header,.modal-footer) { padding:18px 24px; gap:12px; }
html.tc-app[data-interface="professional"] .modal-body { padding:24px; }
html.tc-app[data-interface="professional"] .modal-body > :is(section,fieldset,article) + :is(section,fieldset,article) { margin-top:20px; }
html.tc-app[data-interface="professional"] :is(.dropdown-menu,.app-nav-search) { border-radius:12px; }
html.tc-app[data-interface="professional"] .dropdown-menu { padding:8px; max-width:calc(100vw - 24px); box-shadow:var(--tc-material-shadow-raised); }
html.tc-app[data-interface="professional"] .dropdown-item { border-radius:8px; padding:10px 12px; white-space:normal; overflow-wrap:anywhere; }
html.tc-app[data-interface="professional"] :is(.btn,.app-nav-link,.dropdown-item,.form-control,.form-select) { transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease; }
html.tc-app[data-interface="professional"] .btn:active { transform:translateY(1px); }
html.tc-app[data-interface="professional"] :is(.btn,.app-nav-link,.dropdown-item):focus-visible { outline:3px solid var(--tc-interactive-ink); outline-offset:3px; }
html.tc-app[data-interface="professional"] :is(.workflow-actions,.principal-toolbar,.projects-toolbar) { gap:12px!important; }
html.tc-app[data-interface="professional"] .action-cluster { padding:12px; border:1px solid var(--tc-panel-border); border-radius:12px; background:var(--tc-panel-bg-soft); }
html.tc-app[data-interface="professional"] .action-cluster + .action-cluster { padding-top:12px; }
html.tc-app[data-interface="professional"] .team-event { background:var(--tc-panel-bg-solid); }
html.tc-app[data-interface="professional"] .team-section-activity { display:flex; align-items:center; gap:8px; }
html.tc-app[data-interface="professional"] .team-section-activity::before { content:''; width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:var(--tc-interactive-ink); }
@media(min-width:1200px) { html.tc-app[data-interface="professional"] .workflow-actions { grid-template-columns:repeat(2,minmax(0,1fr))!important; align-items:start; } }
@media(max-width:575.98px) {
 html.tc-app[data-interface="professional"] .modal-body { padding:16px; }
 html.tc-app[data-interface="professional"] :is(.modal-header,.modal-footer) { padding:14px 16px; }
 html.tc-app[data-interface="professional"] .modal-footer > .btn { flex:1 1 130px; white-space:normal; }
 html.tc-app[data-interface="professional"] .action-cluster { padding:10px; }
}
@media(prefers-reduced-motion:reduce) {
 html.tc-app[data-interface="professional"] *, .team-live-cursor { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
/* Secondary screens use the same surface, heading and action rhythm. */
html.tc-app[data-interface="professional"] :is(.account-panel,.classes-panel,.projects-panel,.admin-panel) { padding:clamp(16px,2vw,28px); border:1px solid var(--tc-panel-border); border-radius:16px; background:var(--tc-panel-bg-solid); margin-bottom:24px; min-width:0; }
html.tc-app[data-interface="professional"] :is(.account-panel-header,.classes-panel-heading,.projects-header) { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:24px; }
html.tc-app[data-interface="professional"] :is(.classes-heading-actions,.account-form-actions,.account-photo-actions) { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
html.tc-app[data-interface="professional"] :is(.classes-grid,.account-security-grid,.account-preferences-grid) { gap:20px; min-width:0; }
html.tc-app[data-interface="professional"] :is(.account-panel,.classes-panel,.admin-panel) .form-label { line-height:1.5; margin-bottom:8px; }
html.tc-app[data-interface="professional"] :is(.account-panel,.classes-panel,.admin-panel) :is(input,select,textarea) { max-width:100%; }
html.tc-app[data-interface="professional"] :is(.account-panel,.classes-panel,.admin-panel) :is(h2,h3) { line-height:1.35; }
html.tc-app[data-interface="professional"] .table-responsive { border:1px solid var(--tc-panel-border); border-radius:12px; }
html.tc-app[data-interface="professional"] .table-responsive table { margin-bottom:0; }
html.tc-app[data-interface="professional"] .table-responsive :is(th,td) { padding:14px 16px; vertical-align:middle; }
html.tc-app[data-interface="professional"] :is(.nav-tabs,.nav-pills) { gap:6px; flex-wrap:wrap; }
html.tc-app[data-interface="professional"] .nav-link { border-radius:8px; }
@media(max-width:575.98px) {
 html.tc-app[data-interface="professional"] :is(.account-panel,.classes-panel,.projects-panel,.admin-panel) { padding:16px; margin-bottom:16px; }
 html.tc-app[data-interface="professional"] :is(.classes-grid,.account-security-grid,.account-preferences-grid) { grid-template-columns:minmax(0,1fr); }
 html.tc-app[data-interface="professional"] :is(.classes-heading-actions,.account-form-actions) { width:100%; }
 html.tc-app[data-interface="professional"] :is(.classes-heading-actions,.account-form-actions) > .btn { flex:1 1 130px; white-space:normal; }
}
/* Public pages have a full-width header without workspace navigation. */
html.tc-app body:not(:has(#appSidebar)) { --app-sidebar-width:0px; }
html.tc-app body:not(:has(#appSidebar)) .app-topbar { left:0!important; }
html.tc-app body:not(:has(#appSidebar)) > main { margin-left:0!important; }
/* Keep the three floating tools on a deliberate shared baseline. */
html.tc-app .principal-body .principal-chatbot { right:20px; bottom:calc(20px + env(safe-area-inset-bottom)); }
html.tc-app .principal-body .principal-learning-launcher { right:88px; bottom:calc(20px + env(safe-area-inset-bottom)); min-height:48px; margin:0; }
html.tc-app .principal-body .tc-back-to-top { right:24px; bottom:calc(88px + env(safe-area-inset-bottom)); }
html.tc-app .team-live-cursor { padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; overflow:visible; }
html.tc-app .team-cursor-layer { pointer-events:none; }
@media(max-width:575.98px) { html.tc-app .app-topbar-tools { flex-wrap:wrap; } html.tc-app body:not(:has(#appSidebar)) .app-topbar { position:relative; } }
@media(max-width:575.98px) {
 html.tc-app body:not(:has(#appSidebar)) { padding-top:0!important; }
 html.tc-app body:not(:has(#appSidebar)) .app-topbar { height:auto!important; min-height:64px; padding:12px 16px; flex-wrap:wrap; gap:10px; }
 html.tc-app body:not(:has(#appSidebar)) .app-topbar-tools { width:100%; justify-content:flex-start; gap:8px; }
 html.tc-app body:not(:has(#appSidebar)) .app-topbar-tools .app-sign-in { padding:6px; font-size:.8rem; }
}

/* Administration heading keeps its eyebrow above the full-width title row. */
html.tc-app[data-interface="professional"] .admin-heading {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 gap: .45rem;
 margin-bottom: 24px;
 min-width: 0;
}
html.tc-app[data-interface="professional"] .admin-heading-row {
 width: 100%;
 min-width: 0;
 align-items: center;
}
html.tc-app[data-interface="professional"] .admin-heading-row > div {
 flex: 1 1 0;
 min-width: 0;
}
html.tc-app[data-interface="professional"] .admin-role-badge {
 flex: 0 0 auto;
 max-width: 100%;
 white-space: normal;
 overflow-wrap: anywhere;
}
@media (max-width: 767px) {
 html.tc-app[data-interface="professional"] .admin-heading-row {
  flex-direction: column;
  align-items: flex-start;
 }
 html.tc-app[data-interface="professional"] .admin-heading-row > div { flex-basis: auto; }
}
