:root {
    --sidebar-w: 280px;
    --sidebar-mini-w: 78px;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #f3f5f7;
    --surface-muted: #eef1f4;
    --ink: #1f2933;
    --muted: #6b7280;
    --line: #d9dee5;
    --primary: #334155;
    --primary-2: #1f2937;
    --red: #7f1d1d;
    --green: #166534;
    --yellow: #854d0e;
    --radius: 10px;
    --radius-sm: 8px;
    --shadow: 0 8px 22px rgba(15, 23, 42, .04);
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, .035);
    --focus: 0 0 0 .18rem rgba(51, 65, 85, .14);
}

html[data-bs-theme="dark"] {
    --bg: #111827;
    --surface: #182230;
    --surface-soft: #1f2a3a;
    --surface-muted: #263345;
    --ink: #f3f4f6;
    --muted: #a1aab8;
    --line: #2f3b4c;
    --primary: #cbd5e1;
    --primary-2: #f8fafc;
    --shadow: none;
    --shadow-sm: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
    font-weight: 400;
}

.min-w-0 { min-width: 0; }
.text-secondary, .text-muted { color: var(--muted) !important; }
a { color: var(--primary); }
.text-primary { color: var(--primary) !important; }
.fw-black, .fw-bold, strong, b { font-weight: 600 !important; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--ink); }
:focus-visible { outline: none !important; box-shadow: var(--focus) !important; }

.bg-primary, .btn-primary, .text-bg-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.btn-primary { font-weight: 500; box-shadow: none; border-radius: 8px; }
.btn-primary:hover { background-color: var(--primary-2) !important; border-color: var(--primary-2) !important; }
.btn-outline-primary { color: var(--primary); border-color: var(--line); font-weight: 500; border-radius: 8px; }
.btn-outline-primary:hover, .btn-outline-primary.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn, .form-control, .form-select, .input-group-text { border-radius: 8px; }
.form-control, .form-select, .input-group-text { border-color: var(--line); background-color: var(--surface); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: #9ca3af; box-shadow: var(--focus); }
.form-label { color: var(--ink); font-weight: 500; }
.badge { font-weight: 500; border-radius: 6px; }
.text-bg-success, .bg-success { background-color: #e8f2ec !important; color: #166534 !important; }
.text-bg-warning, .bg-warning { background-color: #f4efe3 !important; color: #7c5a13 !important; }
.text-bg-danger, .bg-danger { background-color: #f5e8e8 !important; color: #7f1d1d !important; }
.text-bg-secondary, .bg-secondary { background-color: var(--surface-muted) !important; color: var(--muted) !important; }
.table-light { --bs-table-bg: var(--surface-soft); --bs-table-color: var(--ink); }

.pryzm-shell { min-height: 100vh; position: relative; }
.pryzm-main { min-height: 100vh; margin-left: var(--sidebar-w); display: flex; flex-direction: column; transition: margin-left .2s ease; }
.pryzm-content { flex: 1; padding: 22px 0 30px; }
.pryzm-container { padding-inline: clamp(14px, 2vw, 30px); }

.pryzm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    height: 100vh;
    z-index: 1040;
    color: var(--ink);
    background: var(--surface);
    border-right: 1px solid var(--line);
    transition: width .2s ease, transform .2s ease;
}
.sidebar-brand { min-height: 72px; padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.brand-link { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: var(--surface-soft); border: 1px solid var(--line); flex: 0 0 auto; }
.brand-mark i { width: 19px; height: 19px; }
.brand-name { display: block; font-size: 1rem; font-weight: 600; line-height: 1.1; color: var(--ink); }
.brand-copy small { color: var(--muted); font-weight: 400; }
.sidebar-scroll { height: calc(100vh - 72px); overflow-y: auto; overflow-x: hidden; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.sidebar-scroll::-webkit-scrollbar { width: 7px; }
.sidebar-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #cbd5e1; }
.sidebar-profile { margin: 14px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-soft); }
.sidebar-profile small { color: var(--muted); font-size: .78rem; }
.avatar-circle { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 600; background: var(--surface-muted); border: 1px solid var(--line); flex: 0 0 auto; }
.avatar-lg { width: 44px; height: 44px; }
.sidebar-search { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.sidebar-search i { color: var(--muted); width: 17px; }
.sidebar-search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: .92rem; }
.sidebar-nav { padding: 4px 0 10px; }
.nav-section { padding: 18px 22px 8px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.sidebar-nav .nav-link { position: relative; display: flex; align-items: center; gap: 11px; margin: 2px 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; transition: background .16s ease, color .16s ease; }
.sidebar-nav .nav-link:hover { background: var(--surface-soft); color: var(--ink); }
.sidebar-nav .nav-link.active { color: var(--ink); background: var(--surface-muted); box-shadow: none; }
.nav-icon { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); flex: 0 0 auto; }
.nav-icon i { width: 18px; height: 18px; }
.sidebar-nav .nav-link.active .nav-icon { color: var(--ink); }
.sidebar-footer-action { padding: 12px 14px 18px; }
.btn-sidebar-logout { min-height: 42px; border-radius: 8px; color: var(--ink); border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.btn-sidebar-logout:hover { background: var(--surface-soft); color: var(--red); border-color: var(--line); }
.pryzm-backdrop { display: none; }

body.sidebar-collapsed .pryzm-sidebar { width: var(--sidebar-mini-w); }
body.sidebar-collapsed .pryzm-main { margin-left: var(--sidebar-mini-w); }
body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .sidebar-profile,
body.sidebar-collapsed .nav-section,
body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .btn-sidebar-logout span { display: none !important; }
body.sidebar-collapsed .sidebar-brand { justify-content: center; padding-inline: 14px; }
body.sidebar-collapsed .sidebar-nav .nav-link { justify-content: center; margin-inline: 14px; padding-inline: 0; }

.pryzm-topbar { position: sticky; top: 0; z-index: 1020; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px clamp(14px, 2vw, 28px); background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-left { flex: 1; }
.command-search { flex: 1; max-width: 620px; min-height: 42px; align-items: center; gap: 10px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.command-search i { color: var(--muted); width: 17px; }
.command-search input { border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--ink); }
.kbd-pill { font-size: .68rem; font-weight: 500; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.icon-btn, .btn-pryzm-soft { min-height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn { width: 40px; padding: 0; }
.icon-btn i { width: 18px; height: 18px; }
.btn-pryzm-soft { padding-inline: 13px; font-weight: 500; }
.icon-btn:hover, .btn-pryzm-soft:hover { color: var(--ink); border-color: #c5ccd6; background: var(--surface-soft); }
.user-chip { min-height: 44px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 5px 11px 5px 5px; max-width: 260px; }
.user-chip small { color: var(--muted); font-weight: 400; }
.pryzm-dropdown { border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: var(--shadow); min-width: 272px; background: var(--surface); }
.pryzm-dropdown .dropdown-item { border-radius: 8px; padding: 10px 12px; font-weight: 500; color: var(--ink); }
.pryzm-dropdown .dropdown-item:hover { background: var(--surface-soft); color: var(--ink); }

.page-hero { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); padding: clamp(16px, 2vw, 22px); box-shadow: none; }
.page-hero-grid { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-hero-icon { width: 46px; height: 46px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; }
.page-hero-icon i { width: 22px; height: 22px; }
.page-kicker { color: var(--muted); font-size: .76rem; font-weight: 600; }
.page-title { font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.65rem); margin: 0; }
.page-subtitle { color: var(--muted); max-width: 760px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.status-chip { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 500; }
.topbar-datetime { min-width: 238px; justify-content: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.topbar-datetime span { letter-spacing: .01em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #64748b; display: inline-block; }

.card, .egov-card, .egov-stat-card { border: 1px solid var(--line) !important; background: var(--surface) !important; border-radius: 10px !important; box-shadow: none !important; overflow: hidden; }
.card-header, .card-footer { background: var(--surface) !important; border-color: var(--line) !important; }
.card-title { margin: 0; font-size: 1rem; font-weight: 600; }
.stat-icon { width: 42px; height: 42px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; }
.stat-icon i { width: 20px; height: 20px; }
.egov-soft-panel { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
.list-group-item { background: var(--surface); color: var(--ink); border-color: var(--line); }
.progress { background: var(--surface-muted); border-radius: 999px; height: 8px; }
.progress-bar { background-color: #64748b !important; }
.table { --bs-table-bg: var(--surface); --bs-table-color: var(--ink); --bs-table-border-color: var(--line); margin: 0; }
.table thead th { color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.table tbody td { vertical-align: middle; }
.module-scroll-pane { max-height: 560px; overflow: auto; }
.module-scroll-pane .table thead th { position: sticky; top: 0; z-index: 2; }
.alert { border-radius: 10px; border-color: var(--line); }
.modal-content { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); color: var(--ink); }
.modal-header, .modal-footer { border-color: var(--line); }
.footer, .pryzm-footer { color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }

.stat-card-modern { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.stat-card-modern:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quick-action-btn { min-height: 44px; padding-inline: 18px; font-weight: 500; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; }
.status-badge { font-size: .72rem; padding: 5px 10px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; text-transform: capitalize; }
.status-low, .priority-low { background: #e8f2ec; color: #166534; }
.status-medium, .priority-medium { background: #f4efe3; color: #854d0e; }
.status-high, .priority-high { background: #f5e8e8; color: #7f1d1d; }
.status-done, .status-completed { background: #e8f2ec; color: #166534; }
.status-pending { background: var(--surface-muted); color: var(--muted); }
.status-open, .status-active { background: #eef2ff; color: #3730a3; }
.status-paused { background: #f4efe3; color: #854d0e; }
.status-archived { background: #f5e8e8; color: #7f1d1d; }
.todo-row { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 14px 16px; transition: .16s ease; }
.todo-row:hover { background: var(--surface-soft); transform: translateX(2px); }
.small-label { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.metric-value { font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; }
.search-result-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 12px; display: none; }
.empty-state { min-height: 190px; border: 1px dashed var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--surface-soft); color: var(--muted); padding: 24px; }
.color-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; background: #64748b; }
.note-card.pinned { border-color: #9ca3af !important; background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%) !important; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: min(100%, 460px); }
.installer-wrap { min-height: 100vh; padding: 32px 16px; background: var(--bg); }
.installer-card { max-width: 980px; margin: 0 auto; }

@media (max-width: 991.98px) {
    .pryzm-sidebar { transform: translateX(-100%); box-shadow: var(--shadow); }
    body.sidebar-open .pryzm-sidebar { transform: translateX(0); }
    .pryzm-main { margin-left: 0 !important; }
    body.sidebar-open .pryzm-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(15,23,42,.25); }
    .page-hero-grid { align-items: flex-start; flex-direction: column; }
    .page-actions { justify-content: flex-start; }
    .command-search { display: none !important; }
}

@media (max-width: 575.98px) {
    .pryzm-content { padding-top: 16px; }
    .pryzm-topbar { min-height: 62px; }
    .page-hero-icon { display: none; }
    .user-chip { padding-right: 5px; }
}

.file-type-icon { width: 42px; height: 42px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; }
.file-type-icon i { width: 20px; height: 20px; }
.upload-panel { border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-soft); padding: 24px; text-align: center; }
.upload-panel > i { width: 34px; height: 34px; color: var(--muted); margin-bottom: 10px; }
.category-pill { min-height: 42px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; font-weight: 500; }
.category-pill:hover { color: var(--ink); background: var(--surface-soft); }
.category-pill strong { color: var(--muted); font-size: .85rem; }

.notif-badge { position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#7f1d1d; color:#fff; font-size:.68rem; display:inline-flex; align-items:center; justify-content:center; border:2px solid var(--surface); }
.notif-dropdown { width: min(380px, 92vw); }
.notif-item { border:1px solid transparent; margin-bottom:4px; }
.notif-item.unread { background: var(--surface-soft); border-color: var(--line); }
.nav-count { margin-left:auto; min-width:20px; height:20px; border-radius:999px; background:var(--surface-muted); color:var(--muted); display:inline-flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:600; }
.kanban-board { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(280px,1fr); gap:16px; overflow-x:auto; padding-bottom:8px; }
.kanban-column { background:var(--surface-soft); border:1px solid var(--line); border-radius:12px; min-height:440px; }
.kanban-column-header { padding:14px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.kanban-card { margin:12px; padding:14px; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow-sm); }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(110px,1fr)); border:1px solid var(--line); border-radius:12px; overflow:auto; background:var(--surface); }
.calendar-head, .calendar-day { min-height:118px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:10px; }
.calendar-head { min-height:auto; background:var(--surface-soft); font-size:.76rem; font-weight:600; color:var(--muted); text-transform:uppercase; }
.calendar-day:nth-child(7n), .calendar-head:nth-child(7n) { border-right:0; }
.calendar-date { font-weight:600; font-size:.86rem; color:var(--ink); }
.calendar-date.muted { color:var(--muted); }
.calendar-event { display:block; margin-top:7px; padding:5px 7px; border-radius:7px; background:var(--surface-soft); border:1px solid var(--line); color:var(--ink); font-size:.74rem; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.calendar-event.high { background:#f5e8e8; color:#7f1d1d; }
.calendar-event.medium { background:#f4efe3; color:#854d0e; }
.calendar-event.low { background:#e8f2ec; color:#166534; }
.report-bar { height:10px; border-radius:999px; background:var(--surface-muted); overflow:hidden; }
.report-bar > span { display:block; height:100%; background:#64748b; }
.link-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid var(--line); border-radius:999px; background:var(--surface-soft); color:var(--ink); text-decoration:none; font-size:.82rem; font-weight:500; }
.timeline { position:relative; padding-left:20px; }
.timeline:before { content:""; position:absolute; left:8px; top:0; bottom:0; width:1px; background:var(--line); }
.timeline-item { position:relative; padding:0 0 16px 14px; }
.timeline-item:before { content:""; position:absolute; left:-16px; top:5px; width:9px; height:9px; border-radius:50%; background:var(--muted); border:2px solid var(--surface); }
body[data-density="compact"] .card-body { padding: .85rem !important; }
body[data-density="compact"] .todo-row, body[data-density="compact"] .kanban-card { padding:10px 12px; }
body[data-density="compact"] .pryzm-content { padding-top:14px; }
@media (max-width: 767.98px) { .calendar-grid { grid-template-columns:repeat(7, minmax(88px, 1fr)); } .calendar-head, .calendar-day { min-height:100px; padding:8px; } }

/* Smooth tab navigation + content-only skeleton loading */
.pryzm-sidebar {
    display: flex;
    flex-direction: column;
}
.sidebar-scroll {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}
.sidebar-footer-action {
    flex: 0 0 auto;
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.sidebar-nav .nav-link.loading {
    background: var(--surface-soft);
    color: var(--ink);
}
.sidebar-nav .nav-link.loading::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: auto;
    border-radius: 999px;
    border: 2px solid var(--line);
    border-top-color: var(--primary);
    animation: navSpin .72s linear infinite;
}
body.sidebar-collapsed .sidebar-nav .nav-link.loading::after {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-width: 1.5px;
}
@keyframes navSpin { to { transform: rotate(360deg); } }

.pryzm-container {
    transform-origin: top center;
}
.pryzm-container.page-enter {
    animation: pageEnter .34s cubic-bezier(.22, 1, .36, 1) both;
}
.pryzm-container.page-exit {
    animation: pageExit .14s ease both;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes pageExit {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(6px); }
}
.content-skeleton {
    display: grid;
    gap: 18px;
}
.skeleton-hero,
.skeleton-card,
.skeleton-table {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}
.skeleton-hero {
    min-height: 106px;
    padding: clamp(16px, 2vw, 22px);
    display: flex;
    align-items: center;
    gap: 16px;
}
.skeleton-label {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.skeleton-icon {
    width: 46px;
    height: 46px;
    border-radius: 9px;
    flex: 0 0 auto;
}
.skeleton-button {
    width: 148px;
    height: 42px;
    border-radius: 8px;
}
.skeleton-line {
    height: 11px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.skeleton-title {
    height: 21px;
    margin-bottom: 12px;
}
.skeleton-card {
    min-height: 150px;
}
.skeleton-table {
    min-height: 320px;
}
.shimmer {
    background: linear-gradient(90deg, var(--surface-soft) 0%, var(--surface-muted) 45%, var(--surface-soft) 90%);
    background-size: 220% 100%;
    animation: shimmerMove 1.15s ease-in-out infinite;
}
@keyframes shimmerMove {
    from { background-position: 100% 0; }
    to { background-position: -100% 0; }
}
@media (max-width: 767.98px) {
    .skeleton-grid { grid-template-columns: 1fr; }
    .skeleton-hero { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .pryzm-container.page-enter,
    .pryzm-container.page-exit,
    .shimmer,
    .sidebar-nav .nav-link.loading::after {
        animation: none !important;
    }
}

/* Canvas LMS integration */
.canvas-course-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    max-height: 760px;
    overflow: auto;
}
.canvas-course-card {
    display: block;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: .95rem;
    background: var(--surface-soft);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.canvas-course-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
    box-shadow: var(--shadow-sm);
}
.canvas-course-card.active {
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    border-color: color-mix(in srgb, var(--primary) 46%, var(--line));
    box-shadow: inset 4px 0 0 var(--primary);
}
.canvas-score {
    white-space: nowrap;
    font-weight: 800;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
    border-radius: 999px;
    padding: .25rem .55rem;
    font-size: .78rem;
}
.canvas-feature-card {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    border-radius: 18px;
}
.canvas-feature-card i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex: 0 0 auto;
    margin-top: .15rem;
}

/* Canvas LMS polish/fixes: keeps Canvas page aligned with app.css card system */
.metric-card { min-height: 112px; }
.metric-card > .card-body { padding: 18px !important; }
.metric-subtitle { color: var(--muted); font-size: .88rem; line-height: 1.35; min-width: 0; }
.canvas-metrics .card { overflow: hidden; }
.canvas-metric-card { transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.canvas-metric-card:hover { transform: translateY(-1px); background: var(--surface-soft) !important; }
.canvas-metric-icon { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); }
.canvas-metric-icon i { width: 18px; height: 18px; }

.canvas-course-card { color: var(--ink); border-color: var(--line); border-radius: 10px; background: var(--surface); padding: 14px; }
.canvas-course-card:hover { border-color: #c5ccd6; background: var(--surface-soft); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.canvas-course-card.active { background: var(--surface-soft); border-color: #b7c0cd; box-shadow: inset 3px 0 0 var(--primary); }
.canvas-score { color: var(--ink); background: var(--surface-muted); border: 1px solid var(--line); }
.canvas-feature-card { border-color: var(--line); background: var(--surface-soft); border-radius: 10px; }
.canvas-feature-card i { color: var(--muted); }
@media (max-width: 1199.98px) { .canvas-metrics .metric-card { min-height: 104px; } }


/* Canvas quiz/exam experimental launcher */
.canvas-quiz-launcher-card .canvas-quiz-item {
    border-style: solid;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.canvas-quiz-launcher-card .canvas-quiz-item:hover {
    transform: translateY(-1px);
    border-color: #c5ccd6;
    background: var(--surface-soft);
}
.canvas-quiz-swal {
    border-radius: 16px !important;
    overflow: hidden;
}
.canvas-quiz-html {
    margin: 0 !important;
    padding: 0 !important;
}
.canvas-quiz-modal-shell {
    text-align: left;
    background: var(--surface, #fff);
    color: var(--ink, #0f172a);
}
.canvas-quiz-modal-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line, #e2e8f0);
    border-bottom: 1px solid var(--line, #e2e8f0);
    background: var(--surface-soft, #f8fafc);
}
.canvas-quiz-modal-meta div {
    border: 1px solid var(--line, #e2e8f0);
    background: var(--surface, #fff);
    border-radius: 10px;
    padding: 10px;
    min-width: 0;
}
.canvas-quiz-modal-meta span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted, #64748b);
    margin-bottom: 3px;
}
.canvas-quiz-modal-meta strong {
    display: block;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.canvas-quiz-embed-note,
.canvas-quiz-fallback {
    margin: 12px 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line, #e2e8f0);
    background: var(--surface-soft, #f8fafc);
    color: var(--muted, #64748b);
    font-size: 13px;
}
.canvas-quiz-fallback {
    border-style: dashed;
}
.canvas-quiz-frame {
    width: calc(100% - 28px);
    height: min(72vh, 760px);
    margin: 0 14px 14px;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    background: #fff;
}
@media (max-width: 991.98px) {
    .canvas-quiz-modal-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .canvas-quiz-frame { height: 68vh; }
}
@media (max-width: 575.98px) {
    .canvas-quiz-modal-meta { grid-template-columns: 1fr; }
}

/* Weather Center integration from the user's old PH weather app */
.weather-metrics .metric-card { min-height: 118px; }
.weather-clock { font-variant-numeric: tabular-nums; font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
#weather-radar-map { height: 360px; width: 100%; z-index: 1; background: var(--surface-soft); }
.weather-chart-wrap { height: 320px; padding: 18px; }
.weather-telemetry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.weather-telemetry-item { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.weather-telemetry-item:nth-child(3n) { border-right: 0; }
.weather-status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: .72rem; font-weight: 600; padding: 5px 10px; }
.weather-status-clear { background: #e8f2ec; color: #166534; border-color: #cfe5d6; }
.weather-status-warning { background: #f4efe3; color: #854d0e; border-color: #eadbb9; }
.weather-status-danger { background: #f5e8e8; color: #7f1d1d; border-color: #ebcbcb; }
.weather-local-hero { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px; }
.weather-temp-big { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.weather-small-muted { color: var(--muted); font-size: .86rem; }
.leaflet-container { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
html[data-bs-theme="dark"] .leaflet-control-attribution,
html[data-bs-theme="dark"] .leaflet-control-zoom a { background: #182230; color: #f3f4f6; border-color: #2f3b4c; }
@media (max-width: 767.98px) {
    .weather-telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weather-telemetry-item:nth-child(3n) { border-right: 1px solid var(--line); }
    .weather-telemetry-item:nth-child(2n) { border-right: 0; }
    .weather-local-hero { align-items: flex-start; flex-direction: column; }
}

/* Canvas modules + course files listing */
.canvas-module-box { transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.canvas-module-box:hover { background: var(--surface-soft); border-color: #c5ccd6; transform: translateY(-1px); }
.canvas-module-item-list { display: grid; gap: 8px; margin-top: 10px; }
.canvas-module-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.canvas-module-item i { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.canvas-module-item .btn { flex: 0 0 auto; }
.canvas-module-item:hover { background: var(--surface-muted); }

/* Canvas LMS redesign: clean academic workspace */
.canvas-learning-shell {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}
.canvas-learning-grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    min-height: 560px;
}
.canvas-course-panel {
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    min-width: 0;
}
.canvas-panel-head {
    min-height: 78px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.canvas-count-pill {
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
    font-size: .8rem;
}
.canvas-course-list-pro {
    max-height: 720px;
    padding: 14px;
    gap: 10px;
}
.canvas-course-card-pro {
    border-radius: 12px;
    padding: 12px;
    background: var(--surface);
}
.canvas-course-card-pro.active {
    background: var(--surface);
    box-shadow: inset 4px 0 0 var(--primary), 0 8px 24px rgba(15, 23, 42, .04);
}
.canvas-course-mainline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.canvas-course-avatar,
.canvas-subject-icon,
.canvas-assignment-icon,
.canvas-resource-item-icon,
.canvas-file-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    flex: 0 0 auto;
}
.canvas-course-avatar i,
.canvas-subject-icon i,
.canvas-assignment-icon i,
.canvas-resource-item-icon i,
.canvas-file-icon i { width: 18px; height: 18px; }
.canvas-course-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 600;
}
.canvas-subject-panel {
    padding: 18px;
    min-width: 0;
}
.canvas-subject-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}
.canvas-subject-title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    letter-spacing: -.02em;
}
.canvas-subject-meta { color: var(--muted); }
.canvas-subject-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.canvas-subject-actions .btn,
.canvas-section-toolbar .btn { display: inline-flex; align-items: center; gap: 7px; }
.canvas-subject-actions i,
.canvas-section-toolbar i { width: 16px; height: 16px; }
.canvas-subject-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.canvas-subject-stats div {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    padding: 13px;
}
.canvas-subject-stats span {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.canvas-subject-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 1.45rem;
    line-height: 1;
}
.canvas-section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 2px 2px 12px;
}
.canvas-assignment-list {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}
.canvas-assignment-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    padding: 14px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.canvas-assignment-card:hover {
    background: var(--surface-soft);
    border-color: #c5ccd6;
    transform: translateY(-1px);
}
.canvas-assignment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}
.canvas-assignment-meta span { display: inline-flex; align-items: center; gap: 5px; }
.canvas-assignment-meta i { width: 14px; height: 14px; }
.canvas-assignment-action { flex: 0 0 auto; align-self: center; }
.canvas-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.compact-empty { min-height: 130px; }

.canvas-resource-hub {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}
.canvas-resource-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}
.canvas-resource-tabs {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.canvas-resource-tabs .nav-link {
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
}
.canvas-resource-tabs .nav-link i { width: 15px; height: 15px; }
.canvas-resource-tabs .nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.canvas-resource-body { padding: 18px; }
.canvas-module-timeline {
    display: grid;
    gap: 14px;
}
.canvas-module-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
}
.canvas-module-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 15px;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}
.canvas-module-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-weight: 800;
    flex: 0 0 auto;
}
.canvas-module-items-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}
.canvas-resource-item,
.canvas-announcement-card,
.canvas-todo-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    padding: 12px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.canvas-resource-item:hover,
.canvas-announcement-card:hover,
.canvas-todo-card:hover,
.canvas-file-card:hover {
    background: var(--surface-soft);
    border-color: #c5ccd6;
    transform: translateY(-1px);
}
.empty-inline {
    margin: 14px;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface-soft);
    text-align: center;
    font-size: .9rem;
}
.canvas-files-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.canvas-file-card {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 170px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.canvas-file-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.canvas-file-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: .78rem;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.canvas-file-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.canvas-announcement-list,
.canvas-todo-list-pro {
    display: grid;
    gap: 10px;
}

@media (max-width: 1399.98px) {
    .canvas-files-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
    .canvas-learning-grid { grid-template-columns: 1fr; }
    .canvas-course-panel { border-right: 0; border-bottom: 1px solid var(--line); }
    .canvas-course-list-pro { max-height: 360px; }
    .canvas-subject-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .canvas-module-items-grid { grid-template-columns: 1fr; }
    .canvas-files-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .canvas-subject-hero,
    .canvas-resource-header,
    .canvas-section-toolbar { flex-direction: column; align-items: stretch; }
    .canvas-subject-actions,
    .canvas-resource-tabs { justify-content: flex-start; }
    .canvas-subject-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .canvas-assignment-card { flex-direction: column; }
    .canvas-assignment-action { align-self: stretch; }
    .canvas-assignment-action .btn { width: 100%; }
    .canvas-files-grid { grid-template-columns: 1fr; }
}

/* Public Booking module */
.booking-slot-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:.75rem;
}
.booking-slot-card{
    border:1px solid var(--line);
    background:var(--surface);
    border-radius:var(--radius-sm);
    padding:.85rem .95rem;
    min-height:74px;
    transition:var(--transition);
}
.booking-slot-card.available{
    border-color:rgba(22,163,74,.25);
    background:rgba(22,163,74,.045);
}
.booking-slot-card.occupied{
    background:var(--surface-soft);
}
.blurred-reason{
    filter:blur(4px);
    user-select:none;
    pointer-events:none;
    opacity:.75;
}
.public-booking-body .card{
    border:1px solid #dbe3ed;
}
.public-booking-body .form-control,
.public-booking-body .form-select{
    border-color:#dbe3ed;
    border-radius:12px;
}

/* Public Booking private request list: compact + SweetAlert details */
.booking-requests-card .booking-request-list{
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.booking-request-mini{
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 16px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 44px minmax(170px,1.2fr) minmax(145px,.8fr) minmax(130px,.7fr) 36px;
    gap: 12px;
    align-items: center;
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.booking-request-mini:hover{
    border-color: var(--primary);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
    background: var(--surface-soft);
}
.booking-mini-avatar{
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--muted);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--ink);
    flex: 0 0 auto;
}
.booking-mini-main,
.booking-mini-meta,
.booking-mini-purpose{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.booking-mini-meta small,
.booking-mini-purpose small{
    color: var(--muted);
}
.booking-mini-chevron{
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    background: var(--surface);
}
.booking-mini-chevron svg{
    width: 17px;
    height: 17px;
}
.booking-swal-popup{
    border-radius: 22px !important;
}
.booking-modal-details{
    color: var(--text, #0f172a);
}
.booking-modal-head{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 18px;
    margin-bottom: 14px;
}
.booking-modal-head h3{
    font-size: 1.2rem;
    margin: 0;
    letter-spacing: -.02em;
}
.booking-modal-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.booking-modal-info,
.booking-modal-section,
.booking-modal-counts{
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 16px;
}
.booking-modal-info{
    padding: 12px;
}
.booking-modal-info span{
    display: block;
    color: #64748b;
    font-size: .72rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
}
.booking-modal-info strong{
    display: block;
    font-size: .9rem;
}
.booking-modal-section{
    padding: 14px;
    margin-bottom: 12px;
}
.booking-modal-slots{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.booking-modal-slot{
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: .84rem;
    font-weight: 700;
}
.booking-modal-purpose,
.booking-modal-notes{
    margin-top: 6px;
    line-height: 1.55;
    white-space: pre-wrap;
}
.booking-modal-counts{
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    color: #64748b;
    font-size: .86rem;
    margin-bottom: 14px;
}
.booking-modal-actions{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.booking-modal-action-form{
    margin: 0;
}
@media (max-width: 900px){
    .booking-request-mini{
        grid-template-columns: 42px minmax(0,1fr) 34px;
    }
    .booking-mini-meta,
    .booking-mini-purpose{
        grid-column: 2 / 4;
    }
    .booking-mini-chevron{
        grid-column: 3;
        grid-row: 1;
    }
    .booking-modal-grid{
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
@media (max-width: 520px){
    .booking-modal-grid{
        grid-template-columns: 1fr;
    }
    .booking-modal-head{
        align-items: flex-start;
    }
}

/* Accounts Vault */
.accounts-vault-grid .account-vault-card {
    border: 1px solid var(--border);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.accounts-vault-grid .account-vault-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, .10);
    border-color: rgba(51, 65, 85, .22);
}
.account-vault-card.is-favorite {
    border-color: rgba(245, 158, 11, .35);
}
.account-platform-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--primary);
    background: var(--soft);
    border: 1px solid var(--border);
}
.account-meta-list {
    display: grid;
    gap: .45rem;
    color: var(--muted);
}
.account-meta-list > div {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}
.account-meta-list svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}
.account-meta-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vault-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid var(--border);
    background: var(--soft);
    color: var(--muted);
    border-radius: 999px;
    padding: .32rem .62rem;
    font-size: .76rem;
    font-weight: 700;
}
.vault-pill svg {
    width: 13px;
    height: 13px;
}
.account-status-active { background: rgba(16,185,129,.10); color: #059669; }
.account-status-needs_update { background: rgba(245,158,11,.12); color: #d97706; }
.account-status-inactive { background: rgba(100,116,139,.12); color: #64748b; }
.account-status-archived { background: rgba(239,68,68,.10); color: #dc2626; }
.vault-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}
.vault-detail-row,
.vault-secret-box {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 14px;
    padding: .85rem;
}
.vault-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.vault-detail-row span,
.vault-secret-box .small-label {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .15rem;
}
.vault-detail-row strong {
    display: block;
    word-break: break-word;
}
@media (max-width: 767px) {
    .vault-detail-grid { grid-template-columns: 1fr; }
}
