:root {
  --navy: #090c42;
  --navy-2: #11165f;
  --navy-3: #242b7a;
  --sidebar: #070a32;
  --ink: #171a2b;
  --muted: #6f7485;
  --line: #e3e6ee;
  --surface: #ffffff;
  --canvas: #f4f6fb;
  --soft: #f8f9fc;
  --purple: #7666d4;
  --green: #1c9362;
  --amber: #c97b19;
  --red: #d9414e;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(20, 28, 62, .07);
  --sidebar-width: 256px;
  --topbar-height: 68px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { display: flex; height: 100vh; }
.sidebar {
  position: relative;
  z-index: 50;
  display: flex;
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(87, 91, 199, .18), transparent 30%),
    linear-gradient(180deg, #080b38 0%, var(--sidebar) 100%);
  box-shadow: 12px 0 36px rgba(5, 8, 39, .1);
}
.brand { display: flex; min-height: var(--topbar-height); align-items: center; gap: 11px; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand strong { display: block; font-size: 15px; letter-spacing: -.15px; }
.brand small { display: block; margin-top: 1px; color: rgba(255,255,255,.48); font-size: 10px; }
.eem-mark { display: flex; align-items: baseline; font-size: 23px; font-weight: 900; letter-spacing: -5px; padding-right: 5px; }
.eem-mark span:nth-child(1) { color: #ec2446; }
.eem-mark span:nth-child(2) { color: #79bc43; }
.eem-mark span:nth-child(3) { color: #248bc2; }
.nav { flex: 1; min-height: 0; overflow-y: auto; padding: 19px 12px; }
.nav-label { margin: 0 9px 8px; color: rgba(255,255,255,.34); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-group { margin-top: 24px; }
.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  margin: 2px 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: rgba(255,255,255,.66);
  background: transparent;
  font-size: 13px;
  text-align: left;
  transition: .18s ease;
}
.nav-item svg { width: 17px; height: 17px; color: rgba(255,255,255,.5); }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, #1a2074, #151a62); box-shadow: inset 3px 0 #7b82f5, 0 8px 20px rgba(0,0,0,.14); font-weight: 600; }
.nav-item.active svg { color: #fff; }
.storage-widget { padding: 14px 18px 13px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.67); font-size: 10px; }
.storage-widget > div:first-child { display: flex; justify-content: space-between; }
.storage-track { height: 5px; margin: 7px 0 5px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.12); }
.storage-track i { display: block; width: 70.6%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2ab17a, #6974de); }
.storage-widget small { display: block; text-align: right; color: rgba(255,255,255,.4); font-size: 9px; }
.sidebar-user { display: flex; width: 100%; align-items: center; gap: 10px; padding: 13px 17px; border: 0; border-top: 1px solid rgba(255,255,255,.08); color: #fff; background: transparent; text-align: left; }
.sidebar-user:hover { background: rgba(255,255,255,.05); }
.sidebar-user > span:nth-child(2), .top-profile > span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-user strong, .sidebar-user small, .top-profile strong, .top-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 12px; }
.sidebar-user small { margin-top: 2px; color: rgba(255,255,255,.45); font-size: 10px; }
.sidebar-user > svg { width: 14px; color: rgba(255,255,255,.4); }

.avatar { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #414ba8, #242a83); font-size: 10px; font-weight: 800; }
.avatar.soft { color: var(--navy); background: #edf0fb; }
.app-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.topbar { position: relative; z-index: 40; display: flex; min-height: var(--topbar-height); align-items: center; gap: 18px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); box-shadow: 0 1px 0 rgba(20,30,60,.02); backdrop-filter: blur(12px); }
.top-search { display: flex; width: min(450px, 48vw); height: 39px; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #e1e4ec; border-radius: 9px; color: #8a8fa0; background: #f8f9fc; transition: .18s; }
.top-search:focus-within { border-color: #aeb5dc; background: #fff; box-shadow: 0 0 0 3px rgba(30,38,120,.07); }
.top-search svg { width: 17px; }
.top-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.top-search kbd { padding: 3px 6px; border: 1px solid #e1e4ec; border-radius: 5px; color: #9a9ead; background: #fff; font: 9px "Segoe UI", sans-serif; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mode-switch { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #d9ddea; border-radius: 9px; color: #4f5668; background: #fff; font-size: 9px; font-weight: 700; transition: .18s; }
.mode-switch svg { width: 15px; height: 15px; color: #5a63b4; }
.mode-switch:hover { border-color: #aeb5d4; color: var(--navy); background: #f8f9fe; }
.mode-switch.active { border-color: #242d82; color: #fff; background: linear-gradient(135deg, #323c99, var(--navy)); box-shadow: 0 6px 14px rgba(9,12,66,.16); }
.mode-switch.active svg { color: #fff; }
.platform-mode .sidebar { background: radial-gradient(circle at 0 0, rgba(74, 114, 184, .2), transparent 32%), linear-gradient(180deg, #071338 0%, #050b27 100%); }
.icon-button { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; color: #5f6575; background: #fff; }
.icon-button:hover { color: var(--navy); border-color: #cbd0df; background: var(--soft); }
.notification-button { position: relative; border: 0; }
.notification-button span { position: absolute; top: 2px; right: 1px; display: flex; width: 16px; height: 16px; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--red); font-size: 8px; font-weight: 800; }
.top-profile { display: flex; align-items: center; gap: 9px; padding: 4px 9px 4px 4px; border: 0; border-radius: 9px; background: transparent; text-align: left; }
.top-profile:hover { background: var(--soft); }
.top-profile strong { font-size: 11px; }
.top-profile small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.mobile-menu { display: none; }
.sidebar-backdrop { display: none; }
.notification-panel { position: absolute; top: 59px; right: 24px; display: none; width: 350px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 18px 50px rgba(16,21,55,.16); }
.notification-panel.open { display: block; animation: pop .16s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-5px) scale(.98); } }
.popover-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 11px; border-bottom: 1px solid var(--line); font-size: 13px; }
.popover-head button { border: 0; color: var(--navy-3); background: none; font-size: 10px; }
.notice { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eef0f5; }
.notice:last-child { border: 0; }
.notice.unread { background: #f9f9ff; }
.notice-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 5px; border-radius: 50%; background: #5964d4; }
.notice:not(.unread) .notice-dot { background: #d7d9e2; }
.notice strong { display: block; font-size: 11px; }
.notice p { margin: 3px 0; color: var(--muted); font-size: 10px; }
.notice small { color: #9a9ead; font-size: 9px; }

.content { flex: 1; overflow-y: auto; padding: 26px 28px 42px; }
.view { display: none; width: min(1520px, 100%); margin: 0 auto; animation: viewIn .24s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(5px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 4px 0 5px; color: #161a2d; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.04em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.eyebrow { color: #5963bd; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 650; transition: .16s; }
.button svg { width: 15px; height: 15px; }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--navy-3), var(--navy)); box-shadow: 0 7px 16px rgba(9,12,66,.17); }
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(9,12,66,.22); }
.button.ghost { border-color: var(--line); color: #4f5566; background: #fff; }
.button.ghost:hover { border-color: #c5cada; color: var(--navy); background: #fafbff; }
.button.danger { padding: 0 11px; border-color: #f1cdd1; color: var(--red); background: #fff; box-shadow: none; }
.button.small { min-height: 32px; padding: 0 11px; font-size: 10px; }
.button.full { width: 100%; }
.text-button { display: flex; align-items: center; gap: 3px; border: 0; color: #555eae; background: none; font-size: 10px; font-weight: 650; }
.text-button svg { width: 13px; }

.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.pills { display: flex; min-width: 0; gap: 7px; overflow-x: auto; padding: 3px 1px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; min-height: 33px; flex: 0 0 auto; align-items: center; gap: 6px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; color: #656a79; background: #fff; font-size: 10px; }
.pill svg { width: 13px; height: 13px; }
.pill:hover { border-color: #c5cada; color: var(--navy); }
.pill.active { border-color: var(--navy); color: #fff; background: var(--navy); box-shadow: 0 5px 13px rgba(9,12,66,.15); }
.filter-row select { min-height: 34px; flex: 0 0 auto; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: #565b69; background: #fff; font-size: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 27px; }
.stat-card { position: relative; overflow: hidden; padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 4px 15px rgba(20,30,60,.035); }
.stat-card::after { position: absolute; top: -20px; right: -15px; width: 75px; height: 75px; border-radius: 50%; background: rgba(86,96,190,.055); content: ""; }
.stat-card span, .stat-card small { display: block; color: var(--muted); font-size: 9px; }
.stat-card strong { display: block; margin: 4px 0 2px; color: var(--navy); font-size: 24px; letter-spacing: -.05em; }
.stat-card small b { color: var(--green); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.section-heading h2, .panel h2 { margin: 0; font-size: 14px; letter-spacing: -.015em; }
.section-heading p, .panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid #e1e4eb; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(18,25,57,.055); cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.video-card:hover { transform: translateY(-3px); border-color: #d0d4e1; box-shadow: 0 12px 28px rgba(18,25,57,.1); }
.video-card.hidden { display: none; }
.video-cover { position: relative; height: 174px; overflow: hidden; color: #fff; isolation: isolate; }
.video-cover::before, .thumb-visual::before { position: absolute; inset: -30%; z-index: -1; border: 1px solid rgba(255,255,255,.14); border-radius: 45%; content: ""; transform: rotate(-18deg); }
.video-cover::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,8,28,.05) 10%, rgba(3,5,20,.91) 100%); content: ""; }
.cover-1 { background: radial-gradient(circle at 25% 20%, #557ea5, transparent 34%), linear-gradient(135deg, #243f61, #11182e); }
.cover-2 { background: radial-gradient(circle at 70% 14%, #696ba5, transparent 35%), linear-gradient(135deg, #253256, #10152a); }
.cover-3 { background: radial-gradient(circle at 28% 10%, #547d76, transparent 35%), linear-gradient(135deg, #21464a, #101d29); }
.cover-4 { background: radial-gradient(circle at 75% 15%, #916d8d, transparent 32%), linear-gradient(135deg, #483652, #171526); }
.cover-5 { background: radial-gradient(circle at 24% 12%, #9b7260, transparent 34%), linear-gradient(135deg, #564036, #1c1719); }
.cover-6 { background: radial-gradient(circle at 72% 10%, #72849c, transparent 34%), linear-gradient(135deg, #3a495c, #171d28); }
.cover-7 { background: radial-gradient(circle at 25% 10%, #7b876b, transparent 34%), linear-gradient(135deg, #394739, #161e1b); }
.cover-8 { background: radial-gradient(circle at 70% 10%, #8373a0, transparent 35%), linear-gradient(135deg, #40375e, #171526); }
.cover-code { position: absolute; top: 12px; left: 12px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.17); border-radius: 5px; color: rgba(255,255,255,.65); background: rgba(7,10,35,.22); font-size: 8px; letter-spacing: .08em; backdrop-filter: blur(5px); }
.favorite { position: absolute; top: 10px; right: 10px; display: flex; width: 29px; height: 29px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: rgba(5,8,30,.32); backdrop-filter: blur(6px); }
.favorite svg { width: 14px; height: 14px; }
.favorite.active svg { fill: #ffd65c; stroke: #ffd65c; }
.cover-content { position: absolute; right: 13px; bottom: 12px; left: 13px; }
.media-type { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 5px; color: rgba(255,255,255,.65); font-size: 8px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.media-type svg { width: 11px; height: 11px; }
.cover-content h3 { overflow: hidden; margin: 0 0 7px; font-size: 14px; line-height: 1.25; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 5px rgba(0,0,0,.25); }
.cover-content p { display: flex; align-items: center; gap: 5px; margin: 0; color: rgba(255,255,255,.73); font-size: 8px; }
.cover-content p svg { width: 11px; height: 11px; margin-left: 5px; }
.cover-content p svg:first-child { margin-left: 0; }
.card-meta { display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.doctor { display: flex; min-width: 0; align-items: center; gap: 7px; color: #4d5260; font-size: 9px; }
.doctor > i { display: flex; width: 27px; height: 27px; flex: 0 0 27px; align-items: center; justify-content: center; border-radius: 50%; color: #49509d; background: #eff0f8; font-size: 8px; font-style: normal; font-weight: 800; }
.doctor > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doctor small { display: block; margin-bottom: 1px; color: #9a9dab; font-size: 7px; text-transform: uppercase; }
.badge { display: inline-flex; min-height: 21px; align-items: center; padding: 0 8px; border-radius: 99px; font-size: 8px; font-weight: 650; white-space: nowrap; }
.badge.purple { color: #5f4b9a; background: #f0edf9; }
.badge.amber { color: #995c0e; background: #fff1dc; }
.badge.green { color: #247449; background: #e8f6ec; }
.empty-state { display: none; padding: 65px 20px; text-align: center; }
.empty-state.show { display: block; }
.empty-state svg { width: 35px; height: 35px; color: #a0a5b6; }
.empty-state h3 { margin: 12px 0 5px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.back-button { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 15px; padding: 0; border: 0; color: #626879; background: transparent; font-size: 10px; }
.back-button svg { width: 14px; }
.back-button:hover { color: var(--navy); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .65fr); gap: 17px; }
.detail-main, .detail-aside { display: flex; flex-direction: column; gap: 17px; }
.player { position: relative; display: flex; min-height: 480px; overflow: hidden; align-items: center; justify-content: center; border-radius: 15px; color: rgba(255,255,255,.64); background: radial-gradient(circle at 50% 40%, #263558, #10182b 62%, #090e1d); box-shadow: 0 12px 35px rgba(10,16,38,.16); }
.player::before { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.035), transparent 60%); content: ""; }
.player > span { position: absolute; top: calc(50% + 57px); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.player-orbit { position: absolute; border: 1px solid rgba(152,167,208,.08); border-radius: 50%; }
.orbit-a { width: 500px; height: 500px; }
.orbit-b { width: 300px; height: 300px; }
.play-button { position: relative; z-index: 2; display: flex; width: 62px; height: 62px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: rgba(255,255,255,.1); box-shadow: 0 10px 30px rgba(0,0,0,.2); backdrop-filter: blur(8px); transition: .18s; }
.play-button:hover { transform: scale(1.05); background: rgba(255,255,255,.17); }
.play-button svg { width: 25px; height: 25px; }
.player-bar { position: absolute; right: 25px; bottom: 20px; left: 25px; height: 3px; border-radius: 5px; background: rgba(255,255,255,.14); }
.player-bar i { display: block; width: 35%; height: 100%; border-radius: inherit; background: #fff; }
.surgery-summary { padding: 18px; }
.summary-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.summary-title h1 { margin: 8px 0 0; font-size: 20px; letter-spacing: -.03em; }
.summary-actions { display: flex; gap: 7px; }
.detail-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.detail-facts span, .profile-fields span { padding: 10px 11px; border-radius: 8px; background: #f7f8fb; }
.detail-facts small, .profile-fields small { display: block; margin-bottom: 3px; color: #8e92a1; font-size: 7px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.detail-facts strong, .profile-fields strong { font-size: 9px; }
.detail-main > .panel:not(.surgery-summary), .detail-aside .panel { padding: 17px; }
.media-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 14px; }
.media-thumb { min-width: 0; padding: 5px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; }
.media-thumb:hover, .media-thumb.active { border-color: #cfd3e5; background: #f8f9fd; }
.thumb-visual { position: relative; display: flex; height: 84px; overflow: hidden; align-items: center; justify-content: center; border-radius: 7px; color: #fff; }
.thumb-visual::after { position: absolute; inset: 0; background: rgba(4,7,20,.25); content: ""; }
.thumb-visual svg { position: relative; z-index: 1; width: 23px; height: 23px; }
.media-thumb strong, .media-thumb small { display: block; overflow: hidden; margin: 6px 2px 0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.media-thumb small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.member { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #eef0f4; }
.member:last-child { border: 0; }
.member > span:nth-child(2) { min-width: 0; flex: 1; }
.member strong, .member small { display: block; font-size: 9px; }
.member small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.member b { padding: 4px 6px; border-radius: 5px; color: #535aa6; background: #eef0fb; font-size: 7px; }
.count-badge { display: flex; width: 23px; height: 23px; align-items: center; justify-content: center; border-radius: 50%; color: #4e55a0; background: #eef0fb; font-size: 9px; font-weight: 700; }
.clinical-note { margin-top: 12px; padding: 11px; border-left: 2px solid #747bd3; border-radius: 0 8px 8px 0; background: #f8f8fc; }
.clinical-note div { display: flex; justify-content: space-between; gap: 5px; }
.clinical-note strong, .clinical-note small { font-size: 8px; }
.clinical-note small { color: #9699a7; }
.clinical-note p { margin: 7px 0 0; color: #5f6472; font-size: 9px; line-height: 1.45; }
textarea, input, select { border: 1px solid #dfe2ea; outline: 0; color: #383d4b; background: #fff; }
textarea:focus, input:focus, select:focus { border-color: #9ea6d0; box-shadow: 0 0 0 3px rgba(33,42,126,.06); }
.notes-card textarea { width: 100%; min-height: 70px; margin: 12px 0 8px; padding: 10px; resize: vertical; border-radius: 8px; font-size: 9px; }

.step-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.step-label strong { display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--navy); font-size: 9px; }
.step-label strong:nth-of-type(2) { color: var(--navy); background: #e8eaf5; }
.step-label i { width: 30px; height: 1px; background: #d9dce6; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .78fr); gap: 18px; }
.dropzone { display: flex; min-height: 250px; align-items: center; justify-content: center; flex-direction: column; padding: 25px; border: 1.5px dashed #bfc5d8; border-radius: 14px; color: #434958; background: linear-gradient(145deg, rgba(255,255,255,.8), #f8f9fd); text-align: center; transition: .18s; }
.dropzone:hover { border-color: #6d75c1; background: #f9f9ff; }
.dropzone input { display: none; }
.drop-icon { display: flex; width: 55px; height: 55px; align-items: center; justify-content: center; margin-bottom: 13px; border-radius: 15px; color: #5159aa; background: #ebeefa; }
.drop-icon svg { width: 26px; height: 26px; }
.dropzone strong { font-size: 14px; }
.dropzone p { margin: 5px 0; color: var(--muted); font-size: 10px; }
.dropzone small { color: #a0a4b2; font-size: 8px; }
.file-preview { display: flex; align-items: center; gap: 11px; margin-top: 11px; padding: 11px; box-shadow: none; }
.file-icon { display: flex; width: 39px; height: 39px; flex: 0 0 39px; align-items: center; justify-content: center; border-radius: 9px; color: #535aa7; background: #edf0fa; }
.file-icon.image { color: #36785c; background: #ebf6f0; }
.file-icon svg { width: 18px; }
.file-name { min-width: 0; flex: 1; }
.file-name strong, .file-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name strong { font-size: 10px; }
.file-name span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.progress { height: 3px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #eceef3; }
.progress i { display: block; width: 100%; height: 100%; background: #6069bd; }
.progress.complete i { background: var(--green); }
.status-chip { padding: 4px 7px; border-radius: 5px; color: var(--green); background: #e9f7f0; font-size: 8px; font-weight: 700; }
.upload-form { padding: 20px; }
.upload-form label, .ticket-card label { display: flex; flex-direction: column; gap: 5px; margin-top: 13px; color: #5b6070; font-size: 9px; font-weight: 650; }
.upload-form input, .upload-form select, .upload-form textarea, .ticket-card input, .ticket-card select, .ticket-card textarea { width: 100%; min-height: 37px; padding: 8px 10px; border-radius: 8px; font-size: 10px; font-weight: 400; }
.upload-form textarea, .ticket-card textarea { min-height: 78px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }

.category-hero { position: relative; display: flex; min-height: 180px; overflow: hidden; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 30px 35px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #0b0f49, #28317c); box-shadow: 0 14px 35px rgba(9,12,66,.17); }
.category-hero::before, .category-hero::after { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.category-hero::before { right: -65px; width: 250px; height: 250px; }
.category-hero::after { right: 80px; bottom: -120px; width: 210px; height: 210px; }
.category-hero div { position: relative; z-index: 1; }
.category-hero span { color: #9fa7ff; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.category-hero h2 { margin: 7px 0; font-size: 25px; letter-spacing: -.04em; }
.category-hero p { margin: 0; color: rgba(255,255,255,.62); font-size: 11px; }
.category-hero > svg { position: relative; z-index: 1; width: 74px; height: 74px; margin-right: 45px; color: rgba(255,255,255,.2); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { position: relative; overflow: hidden; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.category-card::after { position: absolute; top: -25px; right: -25px; width: 100px; height: 100px; border-radius: 50%; background: currentColor; opacity: .035; content: ""; }
.category-icon { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 20px; border-radius: 11px; }
.category-icon svg { width: 21px; }
.purple-card { color: #6656a7; }.purple-card .category-icon { background: #f0edf9; }
.amber-card { color: #a2661d; }.amber-card .category-icon { background: #fff1dd; }
.green-card { color: #317554; }.green-card .category-icon { background: #e8f6ed; }
.category-card > span { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.category-card h2 { margin: 6px 0 8px; color: var(--ink); font-size: 17px; }
.category-card p { min-height: 42px; margin: 0 0 17px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.category-card button { display: flex; align-items: center; gap: 5px; padding: 0; border: 0; color: inherit; background: none; font-size: 9px; font-weight: 700; }
.category-card button svg { width: 12px; }

.table-panel { overflow: hidden; }
.table-tools { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.table-tools label { display: flex; max-width: 310px; flex: 1; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #9a9eab; background: #fafbfc; }
.table-tools label svg { width: 15px; }
.table-tools input { width: 100%; height: 34px; border: 0; outline: 0; background: transparent; font-size: 10px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 15px; color: #898d9c; background: #fafbfc; font-size: 8px; font-weight: 750; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 15px; border-top: 1px solid #eceef3; color: #545968; font-size: 9px; white-space: nowrap; }
tbody tr:hover { background: #fbfbfe; }
.table-user { display: flex; align-items: center; gap: 8px; }
.table-user i { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; color: #565da5; background: #eff0f8; font-size: 8px; font-style: normal; }
.table-user strong { color: #2e3240; font-size: 9px; }
.status { display: inline-flex; min-height: 21px; align-items: center; padding: 0 8px; border-radius: 99px; font-size: 8px; font-weight: 700; }
.active-status { color: #1c7a50; background: #e5f5eb; }
.inactive-status { color: #737785; background: #eef0f3; }
.row-action { border: 0; color: #777c8c; background: none; letter-spacing: 2px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.table-footer button { min-height: 28px; margin-left: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 8px; }
.table-footer button:disabled { opacity: .45; }
.roles-panel { overflow: hidden; }
.role-legend { display: flex; justify-content: flex-end; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.role-legend span { display: flex; align-items: center; gap: 5px; }
.toggle-demo { display: inline-block; width: 20px; height: 11px; border-radius: 8px; background: #d7d9df; }
.toggle-demo.on { background: var(--navy-3); }
.permission-table th:not(:first-child), .permission-table td:not(:first-child) { text-align: center; }
.permission-table td:first-child strong, .permission-table td:first-child small { display: block; }
.permission-table td:first-child small { margin: 3px 0 0 13px; color: var(--muted); font-size: 7px; }
.role-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; }
.admin-dot { background: #5059af; }.surgeon-dot { background: #8a65b3; }.nurse-dot { background: #3b9970; }.resident-dot { background: #c3832b; }
.switch { position: relative; width: 27px; height: 15px; border: 0; border-radius: 12px; background: #d8dbe2; vertical-align: middle; transition: .16s; }
.switch::after { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); content: ""; transition: .16s; }
.switch.on { background: var(--navy-3); }
.switch.on::after { transform: translateX(12px); }

.help-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(285px, .55fr); gap: 17px; }
.help-layout > div, .help-layout > aside { display: flex; flex-direction: column; gap: 17px; }
.tutorial-card, .faq-card, .ticket-card { padding: 18px; }
.duration-chip { padding: 5px 8px; border-radius: 99px; color: #555ca8; background: #eff0fa; font-size: 8px; font-weight: 700; }
.tutorial-video { position: relative; display: flex; min-height: 330px; align-items: center; justify-content: center; flex-direction: column; margin-top: 14px; overflow: hidden; border-radius: 11px; color: #fff; background: radial-gradient(circle at 50% 30%, #303b70, #11172e 63%); }
.tutorial-video::before, .tutorial-video::after { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
.tutorial-video::after { width: 210px; height: 210px; }
.tutorial-logo { position: absolute; top: 18px; left: 20px; color: rgba(255,255,255,.55); font-size: 10px; font-weight: 700; }
.tutorial-video p { position: relative; margin: 13px 0 0; color: rgba(255,255,255,.55); font-size: 9px; }
.faq-list { margin-top: 12px; border-top: 1px solid var(--line); }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 10px; font-weight: 600; text-align: left; }
.faq-question svg { width: 14px; transition: .18s; }
.faq-question.open svg { transform: rotate(90deg); }
.faq-answer { display: none; padding: 0 5px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.5; }
.faq-answer.open { display: block; }
.support-card { padding: 24px; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #11175e, #080b3a); box-shadow: 0 13px 30px rgba(9,12,66,.2); }
.support-icon { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: rgba(255,255,255,.1); }
.support-card h2 { margin: 17px 0 7px; font-size: 17px; }
.support-card > p { margin: 0; color: rgba(255,255,255,.57); font-size: 9px; line-height: 1.5; }
.support-card ul { margin: 20px 0 0; padding: 0; list-style: none; }
.support-card li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.09); }
.support-card li small, .support-card li strong { display: block; }
.support-card li small { color: rgba(255,255,255,.4); font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.support-card li strong { margin-top: 3px; font-size: 9px; }
.ticket-card h2 { margin: 0; }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 17px; }
.profile-layout > aside { display: flex; flex-direction: column; gap: 17px; }
.profile-card { overflow: hidden; }
.profile-cover { height: 105px; background: linear-gradient(120deg, #11165f, #3a4599); }
.profile-cover::after { display: block; width: 170px; height: 170px; margin: -50px 0 0 70%; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; content: ""; }
.profile-intro { display: flex; align-items: center; gap: 15px; padding: 0 24px; transform: translateY(-33px); }
.profile-avatar { display: flex; width: 76px; height: 76px; align-items: center; justify-content: center; border: 5px solid #fff; border-radius: 50%; color: #fff; background: #343e94; box-shadow: 0 6px 16px rgba(20,25,70,.16); font-size: 18px; font-weight: 800; }
.profile-intro h2 { margin: 35px 0 2px; font-size: 18px; }
.profile-intro p { margin: 0 0 5px; color: var(--muted); font-size: 9px; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: #34795a; font-size: 8px; font-weight: 700; }
.verified svg { width: 12px; height: 12px; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -14px 24px 24px; }
.profile-fields span:last-child { grid-column: 1 / -1; }
.security-card { display: flex; align-items: center; gap: 11px; padding: 17px; }
.security-icon { display: flex; width: 39px; height: 39px; flex: 0 0 39px; align-items: center; justify-content: center; border-radius: 10px; color: #277a54; background: #e8f6ee; }
.security-icon svg { width: 19px; }
.security-card > div:nth-child(2) { min-width: 0; flex: 1; }
.security-card h2 { font-size: 11px; }
.security-card p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.quick-card { padding: 17px; }
.quick-card h2 { margin-bottom: 9px; }
.quick-card button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 9px; }
.quick-card button:last-child { border: 0; }
.quick-card button svg { width: 13px; color: #9498a7; }
.link-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 17px; }
.link-stats article { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.link-stats span, .link-stats strong { display: block; }
.link-stats span { color: var(--muted); font-size: 9px; }
.link-stats strong { margin-top: 5px; color: var(--navy); font-size: 23px; }

/* Consola del superadministrador */
.platform-banner { position: relative; display: flex; min-height: 150px; overflow: hidden; align-items: center; gap: 18px; margin-bottom: 18px; padding: 25px 28px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #081242, #253787 70%, #344aa5); box-shadow: 0 14px 35px rgba(8,18,66,.18); }
.platform-banner::before, .platform-banner::after { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.platform-banner::before { right: -70px; width: 250px; height: 250px; }
.platform-banner::after { right: 130px; bottom: -130px; width: 220px; height: 220px; }
.platform-badge { position: relative; z-index: 1; display: flex; width: 58px; height: 58px; flex: 0 0 58px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(255,255,255,.1); }
.platform-badge svg { width: 28px; height: 28px; }
.platform-banner > div:nth-child(2) { position: relative; z-index: 1; flex: 1; }
.platform-banner span:not(.mode-indicator) { color: #aab8ff; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.platform-banner h1 { margin: 5px 0 6px; font-size: 24px; letter-spacing: -.035em; }
.platform-banner p { margin: 0; color: rgba(255,255,255,.62); font-size: 10px; }
.mode-indicator { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.17); border-radius: 99px; color: rgba(255,255,255,.78); background: rgba(5,10,40,.22); font-size: 8px; font-weight: 700; white-space: nowrap; }
.mode-indicator i, .smtp-health i { width: 6px; height: 6px; border-radius: 50%; background: #61dda3; box-shadow: 0 0 0 3px rgba(97,221,163,.13); }
.platform-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 17px; }
.platform-stat-grid article { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(18,25,57,.045); }
.platform-stat-icon { position: absolute; top: 14px; right: 14px; display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; }
.platform-stat-icon svg { width: 16px; height: 16px; }
.platform-stat-icon.blue { color: #3e66a5; background: #e9f0fb; }.platform-stat-icon.violet { color: #6656a7; background: #f0edf9; }.platform-stat-icon.green { color: #277b55; background: #e7f5ed; }.platform-stat-icon.amber { color: #a66a1e; background: #fff1dc; }
.platform-stat-grid article > span, .platform-stat-grid article > small { display: block; color: var(--muted); font-size: 8px; }
.platform-stat-grid article > strong { display: block; margin: 6px 0 3px; color: var(--navy); font-size: 24px; letter-spacing: -.05em; }
.platform-stat-grid article > small b { color: var(--green); }
.platform-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(285px, .55fr); gap: 17px; }
.account-overview, .recent-activity { padding: 18px; }
.chart { display: flex; height: 230px; margin-top: 18px; }
.chart-scale { display: flex; width: 30px; flex-direction: column; justify-content: space-between; padding-bottom: 25px; color: #a0a4b2; font-size: 7px; }
.chart-bars { position: relative; display: flex; flex: 1; align-items: flex-end; justify-content: space-around; gap: 12px; padding: 0 12px 25px; border-bottom: 1px solid #e6e8ef; background: repeating-linear-gradient(to bottom, #fff 0, #fff 50px, #eef0f5 51px); }
.chart-bars i { position: relative; width: min(38px, 10%); height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #9ba3d8, #6d77c3); box-shadow: inset 0 1px rgba(255,255,255,.25); }
.chart-bars i.current { background: linear-gradient(180deg, #4252ad, #17246f); }
.chart-bars i span { position: absolute; right: -9px; bottom: -20px; left: -9px; color: #828694; font-size: 7px; font-style: normal; text-align: center; }
.activity-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #eef0f4; }
.activity-item:last-child { border: 0; }
.activity-icon { display: flex; width: 33px; height: 33px; flex: 0 0 33px; align-items: center; justify-content: center; border-radius: 9px; color: #4a61a1; background: #eaf0fa; }
.activity-icon.green { color: #2e7d58; background: #e8f6ee; }.activity-icon.amber { color: #9c681e; background: #fff1dd; }
.activity-icon svg { width: 15px; }
.activity-item strong, .activity-item p, .activity-item small { display: block; }
.activity-item strong { font-size: 9px; }.activity-item p { margin: 3px 0; color: #646978; font-size: 8px; }.activity-item small { color: #a0a4b0; font-size: 7px; }
.platform-mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.platform-mini-stats article { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.platform-mini-stats span { color: var(--muted); font-size: 8px; }.platform-mini-stats strong { color: var(--navy); font-size: 18px; }
.account-name { display: flex; align-items: center; gap: 8px; }
.account-name > i { display: flex; width: 31px; height: 31px; align-items: center; justify-content: center; border-radius: 8px; color: #4f5da9; background: #edf0fa; font-size: 8px; font-style: normal; font-weight: 800; }
.account-name strong, .account-name small { display: block; }.account-name small { margin-top: 2px; color: #999dab; font-size: 7px; }
.usage-cell { display: flex; min-width: 110px; flex-direction: column; gap: 4px; font-size: 8px; }
.usage-cell > i { width: 90px; height: 4px; overflow: hidden; border-radius: 5px; background: #e8eaf0; }
.usage-cell b { display: block; height: 100%; border-radius: inherit; background: #5e6abd; }
.pending-status { color: #8c651d; background: #fff2d9; }.available-status { color: #355fa3; background: #e9f1fc; }.danger-status { color: #aa3e49; background: #fbe9eb; }
.serial-layout { display: grid; grid-template-columns: minmax(290px, .7fr) minmax(0, 1.3fr); gap: 15px; margin-bottom: 15px; }
.serial-summary { position: relative; overflow: hidden; padding: 22px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #121b61, #314696); box-shadow: 0 10px 28px rgba(16,25,90,.17); }
.serial-rings { position: absolute; top: -28px; right: -25px; display: flex; width: 125px; height: 125px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.serial-rings::after { width: 80px; height: 80px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.serial-rings svg { position: absolute; width: 28px; color: rgba(255,255,255,.55); }
.serial-summary > span { color: rgba(255,255,255,.55); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }.serial-summary > strong { display: block; margin-top: 7px; font-size: 24px; }.serial-summary > p { margin: 5px 0 20px; color: rgba(255,255,255,.62); font-size: 8px; }
.serial-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; }.serial-legend i { width: 7px; height: 7px; border-radius: 50%; background: #65dda6; }
.serial-batch { padding: 20px; }
.serial-batch label { display: block; margin-top: 18px; color: #5a5f6e; font-size: 9px; font-weight: 650; }.serial-batch label div { display: flex; gap: 8px; margin-top: 6px; }.serial-batch input { min-width: 0; flex: 1; padding: 0 10px; border-radius: 8px; font-size: 10px; }.serial-batch > small { display: block; margin-top: 9px; color: var(--muted); font-size: 8px; }
.serial-code { padding: 5px 7px; border-radius: 5px; color: #465094; background: #f0f1f8; font: 8px ui-monospace, monospace; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 15px; }
.admin-card { padding: 18px; }.admin-card-head { display: flex; align-items: flex-start; justify-content: space-between; }.admin-avatar { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #384aa2, #19276f); font-size: 12px; font-weight: 800; }.admin-avatar.alternate { background: linear-gradient(145deg, #6570a6, #353d73); }
.admin-card h2 { margin: 14px 0 3px; font-size: 14px; }.admin-card > p { margin: 0; color: var(--muted); font-size: 8px; }.admin-card > div:nth-of-type(2) { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; padding: 11px; border-radius: 8px; background: #f7f8fb; }.admin-card div span small, .admin-card div span strong { display: block; }.admin-card div span small { color: #9296a5; font-size: 7px; }.admin-card div span strong { margin-top: 3px; font-size: 8px; }.secure-text { color: var(--green); }
.invite-card { display: flex; min-height: 225px; align-items: center; justify-content: center; flex-direction: column; border-style: dashed; text-align: center; box-shadow: none; }.invite-icon { display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; color: #5360ae; background: #edf0fa; }.invite-icon svg { width: 20px; }.invite-card h2 { margin-bottom: 6px; }.invite-card > p { max-width: 210px; margin-bottom: 15px; line-height: 1.45; }
.platform-warning { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #d8deee; border-radius: 11px; color: #34416f; background: #f2f5fb; }.platform-warning > svg { width: 20px; flex: 0 0 20px; }.platform-warning strong { font-size: 9px; }.platform-warning p { margin: 3px 0 0; color: #71798f; font-size: 8px; }.platform-warning.compact { padding: 13px; }
.smtp-health { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 99px; color: #287652; background: #e7f6ed; font-size: 8px; font-weight: 700; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 17px; }.settings-layout > aside { display: flex; flex-direction: column; gap: 15px; }.smtp-form { padding: 21px; }.settings-head { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }.settings-icon { display: flex; width: 41px; height: 41px; align-items: center; justify-content: center; border-radius: 10px; color: #4e5ca9; background: #ecf0fa; }.settings-icon svg { width: 19px; }.settings-head h2 { margin: 0; }.settings-head p { margin: 4px 0 0; color: var(--muted); font-size: 8px; }.smtp-form label, .support-editor label { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; color: #5b6070; font-size: 9px; font-weight: 650; }.smtp-form input, .smtp-form select, .support-editor input, .support-editor textarea { width: 100%; min-height: 38px; padding: 8px 10px; border-radius: 8px; font-size: 10px; font-weight: 400; }
.mail-preview { padding: 20px; }.preview-label { display: block; margin-bottom: 14px; color: #9296a4; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.preview-brand { display: flex; align-items: center; gap: 11px; color: var(--navy); }.preview-brand .eem-mark { font-size: 20px; }.mail-preview h2 { margin: 25px 0 8px; font-size: 15px; }.mail-preview p { margin: 0; color: var(--muted); font-size: 8px; }.preview-code { display: block; margin: 16px 0; padding: 13px; border-radius: 8px; color: var(--navy); background: #f0f2f9; font-size: 21px; letter-spacing: .16em; text-align: center; }.mail-preview > small { color: #9599a7; font-size: 7px; }.smtp-info { padding: 17px; }.smtp-info h2 { margin-bottom: 10px; }.smtp-info span { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); color: #606575; font-size: 8px; }.smtp-info svg { width: 14px; color: #5661ad; }
.support-admin-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 17px; }.support-admin-layout > aside { display: flex; flex-direction: column; gap: 15px; }.support-editor { overflow: hidden; }.editor-tabs { display: flex; gap: 5px; padding: 12px 14px; border-bottom: 1px solid var(--line); }.editor-tabs button { padding: 7px 10px; border: 0; border-radius: 7px; color: #737787; background: transparent; font-size: 8px; }.editor-tabs button.active { color: var(--navy); background: #eef0f8; font-weight: 700; }.editor-content { padding: 19px; }.support-editor textarea { min-height: 85px; resize: vertical; }.editor-preview { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 11px; border-radius: 9px; background: #f6f7fb; }.editor-preview > div { display: flex; width: 65px; height: 42px; align-items: center; justify-content: center; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #293777, #11183f); }.editor-preview svg { width: 18px; }.editor-preview strong, .editor-preview small { display: block; }.editor-preview strong { font-size: 8px; }.editor-preview small { margin-top: 3px; color: var(--muted); font-size: 7px; }.publication-card { padding: 19px; }.publication-card h2 { margin: 16px 0 5px; }.publication-card > p { margin: 0 0 15px; color: var(--muted); font-size: 8px; }.publication-card > div { padding: 10px 0; border-top: 1px solid var(--line); }.publication-card small, .publication-card strong { display: block; }.publication-card small { color: #9296a4; font-size: 7px; }.publication-card strong { margin-top: 3px; font-size: 8px; }.publication-card .button { margin-top: 12px; }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: flex; min-width: 290px; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid #dfe5e1; border-radius: 11px; opacity: 0; color: #31373f; background: #fff; box-shadow: 0 15px 40px rgba(15,25,45,.15); pointer-events: none; transform: translateY(15px); transition: .22s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast > span { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 12px; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 10px; }.toast small { margin-top: 3px; color: var(--muted); font-size: 8px; }

@media (max-width: 1260px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1.4fr) minmax(275px, .65fr); }
  .player { min-height: 400px; }
}

@media (max-width: 1024px) {
  :root { --sidebar-width: 226px; }
  .content { padding: 23px 21px 38px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout, .upload-layout, .help-layout, .profile-layout { grid-template-columns: 1fr; }
  .detail-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-dashboard-grid, .settings-layout, .support-admin-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { overflow: auto; }
  .app-shell { min-height: 100vh; height: auto; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 256px; flex-basis: 256px; transform: translateX(-102%); transition: transform .23s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(5,7,25,.48); }
  .sidebar-backdrop.open { display: block; }
  .app-main { min-height: 100vh; }
  .topbar { position: sticky; top: 0; min-height: 60px; padding: 0 14px; }
  .mobile-menu { display: inline-flex; flex: 0 0 36px; }
  .top-search { width: auto; flex: 1; }
  .top-search kbd, .top-profile > span:nth-child(2) { display: none; }
  .top-profile { padding-right: 2px; }
  .mode-switch span { display: none; }
  .mode-switch { width: 36px; padding: 0; justify-content: center; }
  .content { overflow: visible; padding: 20px 14px 32px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .page-heading .button { width: 100%; }
  .filter-row { align-items: stretch; flex-direction: column; }
  .filter-row select { align-self: flex-end; }
  .notification-panel { position: fixed; top: 57px; right: 10px; left: 10px; width: auto; }
  .detail-aside { display: flex; }
  .summary-title { flex-direction: column; }
  .summary-actions { width: 100%; flex-wrap: wrap; }
  .summary-actions .button { flex: 1; }
  .detail-facts { grid-template-columns: repeat(2, 1fr); }
  .media-strip { grid-template-columns: repeat(2, 1fr); }
  .player { min-height: 330px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-hero { padding: 25px; }
  .category-hero > svg { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .table-tools { flex-wrap: wrap; }
  .table-tools label { max-width: none; flex-basis: 100%; }
  .profile-fields { grid-template-columns: 1fr; }
  .profile-fields span:last-child { grid-column: auto; }
  .toast { right: 12px; bottom: 12px; left: 12px; min-width: 0; }
  .platform-banner { align-items: flex-start; flex-direction: column; }
  .mode-indicator { align-self: flex-start; }
  .platform-mini-stats { grid-template-columns: repeat(2, 1fr); }
  .serial-layout { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .top-actions { gap: 2px; }
  .top-profile { display: none; }
  .top-search { max-width: none; }
  .stat-grid, .video-grid, .link-stats { grid-template-columns: 1fr; }
  .platform-stat-grid, .platform-mini-stats { grid-template-columns: 1fr; }
  .video-cover { height: 205px; }
  .detail-facts, .media-strip { grid-template-columns: 1fr; }
  .media-thumb { display: grid; grid-template-columns: 100px 1fr; column-gap: 10px; align-items: center; }
  .thumb-visual { grid-row: 1 / 3; height: 65px; }
  .media-thumb strong, .media-thumb small { margin: 0; }
  .player { min-height: 270px; }
  .tutorial-video { min-height: 230px; }
  .category-hero h2 { font-size: 21px; }
  .profile-intro { padding: 0 16px; }
  .profile-fields { margin-right: 16px; margin-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
