.sa-mode-switch {
    display: none;
    align-items: center;
    gap: 0.2rem;
    padding: 0.16rem;
    border-radius: 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.sa-mode-switch.is-on { display: inline-flex; }
.sa-mode-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.32rem 0.65rem;
    border-radius: 0.58rem;
    cursor: pointer;
    white-space: nowrap;
}
.sa-mode-btn .sa-mode-short { display: none; }
.sa-mode-btn .sa-mode-long { display: inline; }
.sa-mode-btn.is-active {
    background: #0f172a;
    color: #f8fafc;
}
#teacher-panel.is-sa-admin .sa-mode-btn[data-mode="admin"] {
    background: #b45309;
    color: #fff7ed;
}
/* Öğretmen görünümünde etiket yok; yalnız SA modülünde göster */
.sa-tools-drawer-label { display: none !important; }
#teacher-panel.is-sa-admin .sa-tools-drawer-label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
.sa-system-nav { display: none; padding-top: 0.45rem; }
#teacher-panel.is-sa-admin .sa-system-nav,
#teacher-panel.is-sa-admin .sa-system-nav.is-on { display: block; }
#teacher-panel:not(.is-sa-admin) .sa-system-nav { display: none !important; }
#teacher-workspace-park { display: none !important; }
#teacher-panel.is-sa-admin #teacher-workspace,
#teacher-panel.is-sa-admin #teacher-workspace-park .view-block,
#teacher-panel.is-sa-admin main > .view-block { display: none !important; }
#superadmin-view {
    position: relative;
    inset: auto;
    min-height: 100%;
    background: #f1f5f9;
}
#teacher-panel:not(.is-sa-admin) #superadmin-view { display: none !important; }
#teacher-panel.is-sa-admin #superadmin-view { display: block !important; }
#superadmin-view .sa-tab-panel { display: none !important; }
#superadmin-view .sa-tab-panel.is-live { display: block !important; }
#sa-placeholder-page.hidden { display: none !important; }
.sa-usage-warn {
    color: #b91c1c;
    font-weight: 800;
    background: #fef2f2;
}
.sa-status-on { color: #047857; font-weight: 800; }
.sa-status-off { color: #94a3b8; font-weight: 700; }
.sa-act-key {
    display: inline-block;
    margin-right: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: #334155;
}
.sa-status-toggle {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.62rem;
    font-weight: 800;
    border-radius: 0.55rem;
    padding: 0.22rem 0.5rem;
    cursor: pointer;
}
.sa-status-toggle.is-on {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}
.sa-inst-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.22rem;
    max-width: 100%;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f766e;
    line-height: 1.25;
}
.sa-inst-badge > i {
    flex-shrink: 0;
    font-size: 0.68rem;
    opacity: 0.9;
}
.sa-inst-badge .sa-inst-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sa-inst-badge[hidden] { display: none !important; }
#teacher-sidebar .sa-inst-badge {
    font-size: 0.7rem;
    font-weight: 700;
}
.tset-inst-line {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    font-size: 0.72rem;
}
.sa-placeholder-page {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    padding: 2.4rem 1.4rem;
    text-align: center;
    min-height: 16rem;
}
.sa-placeholder-page h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}
.sa-placeholder-page p {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}
#sa-teacher-tools-drawer > summary { list-style: none; }
#sa-teacher-tools-drawer > summary::-webkit-details-marker { display: none; }
#teacher-panel.is-sa-user #sa-teacher-tools-drawer > summary { cursor: pointer; }
#teacher-panel.is-sa-admin #sa-teacher-tools-drawer:not([open]) #sa-teacher-tools-body {
    display: none;
}
.sa-sys-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.42rem 0.55rem;
    border-radius: 0.65rem;
    cursor: pointer;
}
.sa-sys-item:hover { background: #fff7ed; color: #9a3412; }
.sa-sys-item.is-active { background: #ffedd5; color: #9a3412; }
.sa-sys-item i {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.42rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffedd5;
    color: #c2410c;
    font-size: 0.68rem;
}
.sa-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.75rem;
}
.sa-metric-card {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}
.sa-metric-card em { display: block; font-style: normal; font-size: 0.62rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sa-metric-card strong { display: block; font-size: 1.55rem; font-weight: 900; margin-top: 0.2rem; }
.sa-chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.9rem;
    min-height: 12rem;
}
.sa-chart-card h4 { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 800; color: #334155; }
.sa-pie {
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 50%;
    margin: 0 auto;
}
.sa-pie-legend { margin-top: 0.65rem; font-size: 0.68rem; color: #475569; display: grid; gap: 0.25rem; }
.sa-log-term {
    background: #0b1220;
    color: #86efac;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.68rem;
    border-radius: 0.85rem;
    padding: 0.75rem;
    max-height: 18rem;
    overflow: auto;
    line-height: 1.45;
}
.sa-log-term .is-warn { color: #fbbf24; }
.sa-log-term .is-error { color: #fda4af; }
.sa-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.55rem; }
.sa-quick-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 0.8rem;
    padding: 0.7rem 0.8rem;
    text-align: left;
    cursor: pointer;
}
.sa-quick-btn strong { display: block; font-size: 0.75rem; color: #0f172a; }
.sa-quick-btn span { display: block; font-size: 0.62rem; color: #64748b; margin-top: 0.15rem; }
.sa-pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.65rem; }
.sa-pkg-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    padding: 0.8rem;
    background: #fff;
}
.sa-pkg-card h4 { margin: 0 0 0.25rem; font-size: 0.82rem; }
.sa-table-lite { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.sa-table-lite th, .sa-table-lite td { text-align: left; padding: 0.4rem 0.35rem; border-bottom: 1px solid #e2e8f0; }
.sa-inst-row { cursor: pointer; }
.sa-inst-row:hover { background: #f8fafc; }
.sa-inst-row.is-open { background: #ecfeff; }
.sa-inst-detail {
    margin-top: 0.85rem;
    border: 1px solid #bae6fd;
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}
.sa-inst-detail.hidden { display: none !important; }
.sa-inst-detail-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.sa-inst-detail-head h3 { margin: 0; font-size: 1rem; font-weight: 800; color: #0f172a; }
.sa-inst-detail-head p { margin: 0.2rem 0 0; font-size: 0.72rem; color: #475569; }
.sa-inst-meta { font-size: 0.65rem !important; color: #64748b !important; }
.sa-flow h4, .sa-inst-cols h4 { margin: 0 0 0.45rem; font-size: 0.75rem; font-weight: 800; color: #0f172a; }
.sa-flow ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.sa-flow li {
    flex: 1 1 6.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.7rem;
    padding: 0.45rem 0.5rem;
    background: #fff;
    color: #94a3b8;
}
.sa-flow li.is-on { border-style: solid; border-color: #67e8f9; background: #ecfeff; color: #155e75; }
.sa-flow li strong, .sa-flow li span { display: block; }
.sa-flow li strong { font-size: 0.68rem; }
.sa-flow li span { font-size: 0.6rem; margin-top: 0.12rem; }
.sa-flow-chat { margin: 0.5rem 0 0; font-size: 0.68rem; color: #475569; }
.sa-access-grid { display: grid; gap: 0.45rem; }
.sa-access-toggle {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
}
.sa-access-toggle strong, .sa-access-toggle em { display: block; }
.sa-access-toggle strong { font-size: 0.72rem; color: #0f172a; }
.sa-access-toggle em { font-size: 0.6rem; color: #64748b; font-style: normal; margin-top: 0.1rem; }
.sa-inst-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 800px) { .sa-inst-cols { grid-template-columns: 1fr; } }
.sa-inst-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.sa-inst-people li {
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.68rem;
}
.sa-inst-people li.is-empty { color: #94a3b8; font-style: italic; }
.sa-inst-people em { display: block; color: #64748b; font-style: normal; font-size: 0.6rem; }
.sa-inst-people-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.sa-mini-grant { font-size: 0.58rem; font-weight: 800; color: #334155; display: inline-flex; gap: 0.25rem; align-items: center; }
.sa-bind-row { display: flex; gap: 0.35rem; margin-top: 0.45rem; }
.sa-bind-row select, .sa-bind-row button {
    font-size: 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.3rem 0.45rem;
}
.sa-bind-row button { background: #0ea5e9; color: #fff; border-color: #0284c7; font-weight: 800; cursor: pointer; }
.sa-building-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.7rem; }
.sa-building-card {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 0.95rem;
    padding: 0.85rem;
    cursor: pointer;
}
.sa-building-card:hover { border-color: #7dd3fc; background: #f0f9ff; }
.sa-building-card.is-solo { cursor: default; }
.sa-building-card i {
    width: 2.1rem; height: 2.1rem; border-radius: 0.65rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e0f2fe; color: #0369a1;
}
.sa-building-card h4 { margin: 0; font-size: 0.86rem; font-weight: 800; color: #0f172a; }
.sa-building-card p, .sa-building-card em { display: block; font-size: 0.66rem; color: #64748b; font-style: normal; margin-top: 0.15rem; }
.sa-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.68rem; font-weight: 700; color: #64748b; margin-bottom: 0.65rem; }
.sa-crumb button { border: 0; background: transparent; color: #0369a1; font-weight: 800; cursor: pointer; padding: 0; }
.sa-crumb i { font-size: 0.5rem; color: #94a3b8; }
.sa-floorplan-wrap {
    margin: 0.15rem 0 0.45rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: #e8edf2;
}
.sa-bp {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "office it guidance teachers"
        "hall hall hall hall"
        "c5 c6 c7 c8";
    gap: 0;
    background: #f3f4f6;
    border: 7px solid #2d3748;
    overflow: hidden;
}
.sa-bp.is-hold { outline: 3px dashed #b91c1c; outline-offset: 4px; }
.sa-bp-room {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 7.2rem;
    margin: 0;
    border: 0;
    border-right: 5px solid #2d3748;
    border-bottom: 5px solid #2d3748;
    padding: 0.7rem 0.45rem 1.1rem;
    text-align: center;
    cursor: pointer;
    color: #1e293b;
}
.sa-bp-room:last-child,
.sa-bp-room.is-c8 { border-right: 0; }
.sa-bp-room.is-teachers { border-right: 0; }
.sa-bp-room i { font-size: 1.35rem; color: #334155; }
.sa-bp-room strong {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}
.sa-bp-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 0.58rem;
    font-weight: 800;
    color: #334155;
}
.sa-bp-room:hover { filter: brightness(0.97); }
.sa-bp-room.is-here { box-shadow: inset 0 0 0 3px #0f766e; }
.sa-bp-room.is-office { grid-area: office; background: #fecaca; }
.sa-bp-room.is-it { grid-area: it; background: #bfdbfe; }
.sa-bp-room.is-teachers { grid-area: teachers; background: #bbf7d0; border-right: 0; }
.sa-bp-room.is-guidance { grid-area: guidance; background: #e9d5ff; }
.sa-bp-room.is-c5,
.sa-bp-room.is-c6,
.sa-bp-room.is-c7,
.sa-bp-room.is-c8 { background: #fde68a; }
.sa-bp-room.is-c5 { grid-area: c5; }
.sa-bp-room.is-c6 { grid-area: c6; }
.sa-bp-room.is-c7 { grid-area: c7; }
.sa-bp-room.is-c8 { grid-area: c8; }
.sa-bp-door {
    position: absolute;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #334155;
    background: transparent;
    pointer-events: none;
}
.sa-bp-room.is-top .sa-bp-door {
    bottom: -2px;
    left: 22%;
    border-width: 0 0 2px 2px;
    border-radius: 0 0 0 100%;
}
.sa-bp-room.is-top .sa-bp-door.is-second {
    left: auto;
    right: 22%;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 100% 0;
}
.sa-bp-room.is-bot .sa-bp-door {
    top: -2px;
    left: 28%;
    border-width: 2px 2px 0 0;
    border-radius: 0 100% 0 0;
}
.sa-bp-hall {
    grid-area: hall;
    position: relative;
    min-height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 5px solid #2d3748;
    color: #64748b;
}
.sa-bp-hall-line {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 0;
    border-top: 2px dashed #cbd5e1;
}
.sa-bp-hall-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.45rem;
    background: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.sa-bp-hall-label i { font-size: 0.7rem; transform: rotate(-20deg); }
.sa-room-lead { margin: 0.35rem 0 0.55rem; font-size: 0.68rem; color: #475569; }
.sa-room-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}
.sa-room-assign {
    margin: 0.45rem 0 0.65rem;
    padding: 0.55rem 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
}
.sa-room-assign-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.sa-room-assign-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.sa-room-empty {
    margin: 0.35rem 0;
    font-size: 0.68rem;
    color: #94a3b8;
    font-style: italic;
}
.sa-class-head {
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    margin: 0.35rem 0 0.45rem;
}
.sa-class-cards { margin-top: 0.25rem; }
.sa-it-drawer.is-inline {
    margin-top: 0.35rem;
    padding: 0.45rem;
    background: #f8fafc;
    border-radius: 0.45rem;
    border: 1px solid #e2e8f0;
}
.sa-desk.is-counselor { border-color: #7c3aed; background: linear-gradient(#f5f3ff, #faf5ff); }
.sa-desk-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.35rem 0 0.7rem; }
.sa-desk {
    width: 7.8rem;
    border: 2px solid #475569;
    background: linear-gradient(#e2e8f0, #f8fafc);
    border-radius: 0.35rem;
    padding: 0.55rem 0.4rem 0.45rem;
    text-align: center;
    cursor: pointer;
    color: #0f172a;
}
.sa-desk i { display: block; font-size: 1.45rem; color: #334155; margin-bottom: 0.25rem; }
.sa-desk strong, .sa-desk em { display: block; }
.sa-desk strong { font-size: 0.68rem; font-weight: 800; }
.sa-desk em { font-size: 0.58rem; color: #64748b; font-style: normal; margin-top: 0.12rem; }
.sa-desk.is-empty { border-style: dashed; opacity: 0.78; }
.sa-desk.is-add { border-color: #0284c7; background: #f0f9ff; color: #0369a1; }
.sa-desk.is-me { border-color: #0f766e; background: #ecfdf5; }
.sa-desk.is-seat { cursor: default; }
.sa-desk-sheet {
    margin-top: 0.55rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 0.85rem;
    padding: 0.7rem;
    display: grid;
    gap: 0.4rem;
}
.sa-desk-sheet h4 { margin: 0; font-size: 0.78rem; font-weight: 800; color: #0f172a; }
.sa-desk-sheet p { margin: 0 0 0.2rem; font-size: 0.65rem; color: #64748b; }
.sa-class-reg { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.55rem; }
.sa-class-reg input, .sa-class-reg button {
    font-size: 0.72rem;
    border-radius: 0.55rem;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 0.55rem;
}
.sa-class-reg button { background: #0f766e; color: #ecfdf5; border-color: #0f766e; font-weight: 800; cursor: pointer; }
.principal-mode-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0.5rem 0.75rem 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    font-size: 0.72rem;
}
.principal-mode-banner i { font-size: 1.1rem; margin-top: 0.1rem; color: #0284c7; }
.principal-mode-banner strong { display: block; font-size: 0.75rem; margin-bottom: 0.15rem; }
#teacher-panel.is-observe-staff .principal-write-hide { display: none !important; }
#teacher-panel.is-observe-staff #teacher-dashboard-view .tsh-data-card,
#teacher-panel.is-observe-staff #teacher-dashboard-view .tdash-icard-row,
#teacher-panel.is-observe-staff #teacher-dashboard-view button[onclick*="switchView"],
#teacher-panel.is-observe-staff #teacher-dashboard-view a[onclick*="switchView"] {
    pointer-events: none;
    cursor: default;
    opacity: 0.72;
}
@media (max-width: 720px) {
    .sa-floorplan-wrap { padding: 0.5rem; }
    .sa-bp {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "office it"
            "guidance teachers"
            "hall hall"
            "c5 c6"
            "c7 c8";
    }
    .sa-bp-room { min-height: 5.6rem; }
    .sa-bp-room.is-teachers,
    .sa-bp-room.is-c8 { border-right: 0; }
    .sa-bp-room.is-it,
    .sa-bp-room.is-c6 { border-right: 0; }
}
.sa-announce-btn {
    border: 0; background: #0f766e; color: #ecfdf5; font-size: 0.72rem; font-weight: 800;
    border-radius: 0.7rem; padding: 0.5rem 0.75rem; cursor: pointer;
}
.sa-office-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.45rem; }
.sa-office-stats article { background: #0f172a; color: #e2e8f0; border-radius: 0.75rem; padding: 0.55rem 0.65rem; }
.sa-office-stats article.is-warn { background: #7f1d1d; }
.sa-office-stats em { display: block; font-size: 0.58rem; color: #94a3b8; font-style: normal; }
.sa-office-stats strong { display: block; font-size: 1.05rem; margin-top: 0.1rem; }
.sa-maint-banner {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: #7f1d1d;
    color: #fecaca;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.4rem 0.75rem;
}
.sa-maint-banner.is-on { display: flex; }

/* —— IT / İK kullanıcı rehberi —— */
.sa-it-directory {
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.85rem;
}
.sa-it-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}
.sa-it-head h4 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 900;
    color: #0f172a;
}
.sa-it-head h4 i { color: #0f766e; margin-right: 0.35rem; }
.sa-it-head p {
    margin: 0.25rem 0 0;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.4;
    max-width: 36rem;
}
.sa-it-search {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    background: #f8fafc;
    padding: 0.35rem 0.55rem;
    min-width: 10rem;
}
.sa-it-search input {
    border: 0;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 600;
    outline: none;
    min-width: 0;
    width: 8rem;
}
.sa-it-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}
.sa-it-tab {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 0.65rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    max-width: 100%;
    text-align: left;
    line-height: 1.25;
}
.sa-it-tab-label { font-size: 0.72rem; }
.sa-it-tab.is-on {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}
.sa-it-tab-n {
    display: block;
    opacity: 0.82;
    font-size: 0.6rem;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
}
.sa-it-body {
    min-height: 4rem;
    overflow: visible;
}
.sa-it-cards {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: min(58vh, 32rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.15rem;
}
.sa-it-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #fff;
    padding: 0.55rem 0.65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem 0.65rem;
}
.sa-it-card-main { flex: 1 1 14rem; min-width: 0; }
.sa-it-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #0f172a;
}
.sa-it-card-email {
    font-size: 0.68rem;
    color: #475569;
    word-break: break-all;
    margin-top: 0.15rem;
}
.sa-it-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin-top: 0.35rem;
    font-size: 0.64rem;
    color: #64748b;
    line-height: 1.35;
}
.sa-it-card-meta.is-soft { color: #94a3b8; font-size: 0.62rem; }
.sa-it-card-uname { margin-top: 0.35rem; max-width: 100%; }
.sa-it-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: flex-end;
    flex: 0 1 auto;
    max-width: 100%;
}
.sa-it-role-badge {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.58rem;
    font-weight: 800;
}
.sa-it-card-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.sa-it-card-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
}
.sa-it-kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 0.35rem;
    width: 100%;
}
.sa-it-kv-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.45rem;
    padding: 0.32rem 0.45rem;
    font-size: 0.64rem;
    color: #475569;
    line-height: 1.35;
    min-width: 0;
    word-break: break-word;
}
.sa-it-kv-k {
    display: block;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    margin-bottom: 0.12rem;
}
.sa-it-presence-line {
    width: 100%;
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.4;
    padding: 0.35rem 0.45rem;
    background: #f0fdf4;
    border-radius: 0.45rem;
    border: 1px solid #dcfce7;
}
.sa-it-muted { color: #94a3b8; font-size: 0.62rem; font-style: italic; }
.sa-it-mentor-toggle {
    width: 100%;
    border: 1px solid #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
    border-radius: 0.5rem;
    padding: 0.38rem 0.55rem;
    font-size: 0.66rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: space-between;
    text-align: left;
}
.sa-it-mentor-toggle.is-open { background: #ccfbf1; }
.sa-it-drawer {
    width: 100%;
    border: 1px dashed #cbd5e1;
    border-radius: 0.55rem;
    background: #fafafa;
    padding: 0.45rem 0.55rem;
}
.sa-it-drawer-head {
    font-size: 0.64rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 0.35rem;
}
.sa-it-drawer-list { display: flex; flex-direction: column; gap: 0.35rem; }
.sa-it-drawer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    background: #fff;
    border-radius: 0.45rem;
    border: 1px solid #e2e8f0;
}
.sa-it-drawer-row.is-single { padding: 0; background: transparent; border: 0; }
.sa-it-drawer-st {
    flex: 1 1 8rem;
    min-width: 0;
    font-size: 0.64rem;
    color: #475569;
}
.sa-it-drawer-st strong { display: block; color: #0f172a; font-size: 0.68rem; }
.sa-it-drawer-st span { word-break: break-all; }
.sa-it-drawer-empty { font-size: 0.62rem; color: #94a3b8; font-style: italic; margin: 0.2rem 0; }
.sa-it-drawer-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}
.sa-it-btn-primary {
    border: 0;
    border-radius: 0.45rem;
    padding: 0.32rem 0.55rem;
    font-size: 0.64rem;
    font-weight: 800;
    cursor: pointer;
    background: #0f766e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.sa-it-drawer-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    padding: 0.45rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.45rem;
}
.sa-it-drawer-form.is-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.sa-it-drawer-form label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.58rem;
    font-weight: 800;
    color: #64748b;
}
.sa-it-field {
    font-size: 0.65rem;
    padding: 0.28rem 0.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.4rem;
}
.sa-it-field.is-narrow { max-width: 4rem; }
.sa-it-drawer-block { display: flex; flex-direction: column; gap: 0.25rem; }
.sa-it-drawer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-end;
    flex: 1 1 auto;
}
.sa-it-chip {
    border: 0;
    border-radius: 0.4rem;
    padding: 0.22rem 0.42rem;
    font-size: 0.58rem;
    font-weight: 800;
    cursor: pointer;
    background: #e0f2fe;
    color: #0369a1;
    white-space: nowrap;
}
.sa-it-chip.is-warn { background: #fffbeb; color: #b45309; }
.sa-it-chip.is-danger { background: #fee2e2; color: #b91c1c; }
.sa-it-drawer-pick {
    padding: 0.35rem;
    background: #f8fafc;
    border-radius: 0.4rem;
    border: 1px dashed #cbd5e1;
}
.sa-it-mentor-select {
    flex: 1 1 7rem;
    min-width: 0;
    max-width: 100%;
    font-size: 0.62rem;
    padding: 0.25rem 0.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.4rem;
    background: #fff;
}
.sa-it-mentor-select.is-wide { flex: 1 1 100%; }
.sa-it-btn-ghost {
    border: 0;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 0.4rem;
    padding: 0.22rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.sa-it-badge.is-warn { background: #fffbeb; color: #b45309; }
.sa-it-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.65rem;
    color: #64748b;
}
.sa-it-pager-btns { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.sa-it-btn-mail {
    border: 0;
    border-radius: 0.45rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.62rem;
    font-weight: 800;
    cursor: pointer;
    background: #ecfdf5;
    color: #047857;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}
.sa-it-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    max-height: none;
}
.sa-it-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.68rem;
}
.sa-it-table th {
    position: sticky;
    top: 0;
    background: #f1f5f9;
    color: #475569;
    font-weight: 800;
    text-align: left;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.sa-it-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.sa-it-table tr:hover td { background: #f8fafc; }
.sa-it-empty, .sa-it-loading {
    font-size: 0.72rem;
    color: #94a3b8;
    font-style: italic;
    padding: 1rem 0.25rem;
}
.sa-it-btn-sm, .sa-it-btn-warn {
    border: 0;
    border-radius: 0.45rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.62rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.sa-it-btn-sm { background: #e0f2fe; color: #0369a1; }
.sa-it-btn-warn { background: #fbbf24; color: #1e293b; }
.sa-it-uname { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; max-width: 100%; }
.sa-it-uname-input {
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.65rem;
    flex: 1 1 5.5rem;
    min-width: 0;
    max-width: 8rem;
}
.sa-it-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
    font-size: 0.6rem;
    font-weight: 800;
}
.sa-it-badge.is-ok { background: #ecfdf5; color: #047857; }
.sa-it-badge.is-warn { background: #fffbeb; color: #b45309; }
.sa-it-presence.is-on { color: #059669; font-weight: 800; }
.sa-it-ip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; color: #334155; }
.mp-temp-hidden, .sa-temp-badge.is-empty { color: #94a3b8; font-size: 0.78rem; font-style: italic; }

@media (max-width: 767px) {
    .sa-mode-switch { width: 100%; justify-content: center; }
    .sa-mode-btn .sa-mode-long { display: none; }
    .sa-mode-btn .sa-mode-short { display: inline; }
    .sa-mode-btn { font-size: 0.74rem; padding: 0.42rem 0.5rem; }
}
