:root{
  --ink:#17211d;
  --muted:#64716a;
  --paper:#f2f5ef;
  --white:#ffffff;
  --green:#1f6b4f;
  --green-deep:#13261f;
  --lime:#d6f26a;
  --line:#dce4dc;
  --sand:#f7f5ed;
  --danger:#b84435;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:
    radial-gradient(circle at top right, rgba(214,242,106,.25), transparent 24%),
    linear-gradient(180deg, #f7faf5 0%, var(--paper) 50%, #eef2ec 100%);
  color:var(--ink);
  font-family:"Segoe UI",Arial,sans-serif;
  letter-spacing:0;
}
#boot-shell{
  position:fixed;
  inset:0;
  z-index:120;
  display:none;
  gap:10px;
  place-content:center;
  justify-items:center;
  background:linear-gradient(180deg, #f7faf5 0%, var(--paper) 60%, #eef2ec 100%);
  color:var(--green-deep);
}
#boot-shell strong{font-size:24px}
#boot-shell span{color:var(--muted);font-size:14px}
body.app-loading #boot-shell{display:grid}
body.app-loading #auth-shell,
body.app-loading .sidebar,
body.app-loading main{visibility:hidden}
button i,a i{font-size:13px}
button span,a span{display:inline-block}
#auth-shell{
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(9,17,13,.72);
  backdrop-filter:blur(12px);
}
body.authenticated #auth-shell{display:none}
.auth-card{
  width:min(460px,100%);
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.3);
  border-radius:8px;
  padding:28px;
  box-shadow:0 28px 80px rgba(10,20,16,.28);
}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.auth-copy{color:var(--muted);font-size:13px;line-height:1.6}
.auth-form{display:grid;gap:4px}
.auth-submit{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:8px}
.sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:244px;
  background:linear-gradient(180deg, #173026 0%, #13241d 100%);
  color:#fff;
  padding:28px 18px;
  display:flex;
  flex-direction:column;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 10px 28px;
}
.brand strong{display:block;font-size:18px}
.brand small{display:block;color:#9db0a7;font-size:12px;margin-top:2px}
.brand-logo{width:42px;height:42px;flex:0 0 auto}
.sidebar nav{display:grid;gap:6px}
.nav{
  border:0;
  background:transparent;
  color:#afbbb4;
  padding:12px 14px;
  border-radius:8px;
  text-align:left;
  font:inherit;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
}
.nav:hover,.nav.active{background:#264035;color:#fff}
.sidebar-foot{margin-top:auto;color:#95a49c;font-size:12px;padding:10px;display:grid;gap:14px}
.pulse{display:inline-block;width:8px;height:8px;background:var(--lime);border-radius:50%;margin-right:8px}
.credits{display:grid;gap:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}
.credits small{color:#d7e3dc;font-size:12px}
.credit-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.credit-links a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:34px;
  padding:8px 10px;
  border-radius:8px;
  color:#dce9e2;
  text-decoration:none;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.credit-links a:hover{background:rgba(255,255,255,.1)}
main{margin-left:244px;padding:36px 42px;max-width:1640px}
header,.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px}
header{margin-bottom:34px}
.header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
h1,h2,h3,p{margin-top:0}
h1{font-size:31px;margin-bottom:0}
h2{font-size:24px;margin-bottom:8px}
h3{font-size:15px;margin-bottom:8px}
.eyebrow{font-size:11px;font-weight:800;color:var(--green);letter-spacing:1.5px;margin-bottom:8px}
.icon-button{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--green);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}
.view{display:none}
.active-view{display:block}
.live-share-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.7fr);gap:24px;align-items:start}
.secure-context-note{margin:0 0 18px;padding:14px 16px;display:flex;align-items:center;gap:14px;border:1px solid #e6b55c;background:#fff5dc;border-radius:8px;color:#5e4516}
.secure-context-note[hidden]{display:none}
.secure-context-note>i{font-size:22px}
.secure-context-note>span{flex:1;line-height:1.45}
.local-display-band{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}
.local-display-band h3{margin:3px 0 0}
.local-display-list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;color:var(--muted)}
.local-display-chip{min-width:150px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);display:grid;gap:2px}
.local-display-chip strong{color:var(--text);font-size:13px}
.local-display-chip span{font-size:11px}
.share-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.share-source{min-height:126px;padding:18px;text-align:left;display:grid;align-content:start;gap:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);cursor:pointer}
.share-source:hover{border-color:var(--green);box-shadow:0 8px 25px rgba(30,92,66,.1)}
.share-source i{font-size:24px;color:var(--green)}
.share-source strong{font-size:16px}
.share-source span,.section-help{font-size:12px;line-height:1.45;color:var(--muted)}
.live-preview-shell{position:relative;min-height:460px;background:#07100d;border:1px solid var(--line);border-radius:8px;overflow:hidden;display:grid;place-items:center}
#live-share-preview{display:none;width:100%;height:100%;min-height:460px;max-height:70vh;object-fit:contain;background:#020403}
.live-preview-empty{max-width:560px;padding:48px;text-align:center;display:grid;justify-items:center;gap:12px;color:var(--muted)}
.live-preview-empty i{font-size:48px;color:var(--green)}
.live-preview-empty strong{font-size:22px;color:var(--text)}
.live-preview-empty span{line-height:1.6}
.live-status-row{position:absolute;left:14px;right:14px;bottom:14px;display:flex;align-items:center;justify-content:space-between;padding:9px 12px;background:rgba(5,12,9,.84);border:1px solid rgba(255,255,255,.12);border-radius:7px;color:#dce9e1;backdrop-filter:blur(10px)}
.live-screen-list{display:grid;gap:10px}
.live-target{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.live-target strong,.live-target small{display:block}
.live-target small{margin-top:4px;color:var(--muted)}
.live-target em{font-style:normal;font-size:12px;color:var(--muted)}
.live-target input{width:18px;height:18px;accent-color:var(--green)}
.section-title.compact{margin-top:0}
.session-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 14px;
  background:rgba(255,255,255,.9);
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--green-deep);
  font-size:13px;
  font-weight:700;
}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.stats article{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  padding:22px;
  border-radius:8px;
  min-height:142px;
  backdrop-filter:blur(8px);
}
.stats article:nth-child(1){background:linear-gradient(160deg, rgba(255,255,255,.98), rgba(237,250,242,.92))}
.stats article:nth-child(2){background:linear-gradient(160deg, rgba(255,255,255,.98), rgba(244,247,255,.92))}
.stats article:nth-child(3){background:linear-gradient(160deg, rgba(255,255,255,.98), rgba(255,247,239,.92))}
.stats article:nth-child(4){background:linear-gradient(160deg, rgba(255,255,255,.98), rgba(250,241,247,.92))}
.stats span,.stats small{display:block;color:var(--muted)}
.stats strong{display:block;font-size:42px;margin:12px 0 6px}
.band{
  margin:20px 0 38px;
  background:linear-gradient(135deg, var(--green) 0%, #29563e 100%);
  color:#fff;
  padding:30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-radius:8px;
}
.band p:last-child{color:#d7e5dc;margin:0;max-width:720px}
.band .eyebrow{color:var(--lime)}
button,.primary{font:inherit;cursor:pointer}
.primary{
  border:0;
  background:var(--lime);
  color:#172019;
  padding:11px 16px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.secondary{
  border:1px solid var(--line);
  background:var(--white);
  padding:9px 12px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.danger-solid{background:var(--danger);color:#fff}
.danger-solid:hover{background:#a9362e}
.text-button{border:0;background:transparent;color:var(--green);font-weight:700}
.toolbar{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.selection-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:0 0 18px;
  padding:12px 14px;
  background:rgba(255,255,255,.86);
  border:1px solid var(--line);
  border-radius:8px;
}
.select-all,.screen-select{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:var(--muted);
}
.screen-grid,.media-grid,.list-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(268px,1fr));
  gap:16px;
  margin-top:18px;
}
.report-stats{margin-top:18px}
.folder-bar{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px}
.folder-chip{
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  border-radius:999px;
  padding:10px 14px;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.folder-chip strong{
  min-width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#eef3ed;
  font-size:11px;
}
.folder-chip.active{background:var(--green);color:#fff;border-color:transparent}
.folder-chip.active strong{background:rgba(255,255,255,.18);color:#fff}
.folder-manager-list{display:grid;gap:9px;margin-top:16px}
.folder-manager-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:#f8faf9;color:var(--green)}
.folder-manager-row input{min-width:0;padding:9px;border:1px solid #cfd8d1;border-radius:6px;font:inherit}
.card{
  background:rgba(255,255,255,.93);
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  backdrop-filter:blur(8px);
}
.card-live{
  box-shadow:0 12px 42px rgba(31,107,79,.12);
  border-color:rgba(31,107,79,.22);
}
.card-body{padding:16px}
.card h3{margin:10px 0 8px}
.card p,.empty,.modal-copy,.stack-note{color:var(--muted);font-size:13px;line-height:1.55}
.media-preview{height:170px;background:var(--sand);display:grid;place-items:center;overflow:hidden}
.media-preview img,.media-preview video{width:100%;height:100%;object-fit:cover}
.media-type-tile{
  width:100%;
  height:100%;
  padding:18px;
  display:grid;
  align-content:end;
  gap:6px;
  background:
    radial-gradient(circle at top right, rgba(214,242,106,.35), transparent 20%),
    linear-gradient(135deg, #1a2c23 0%, #0e1714 100%);
  color:#fff;
}
.media-type-tile strong{font-size:18px}
.media-type-tile span{font-size:12px;color:#b8c5be}
.text-preview-tile{align-content:center}
.text-preview-tile span{line-height:1.5}
.badge{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:700;
  padding:5px 8px;
  background:#edf3ef;
  border-radius:999px;
}
.badge-row{display:flex;flex-wrap:wrap;gap:8px}
.badge.online{color:var(--green)}
.badge.online::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:#36c97b;
  display:inline-block;
  margin-right:6px;
  box-shadow:0 0 0 0 rgba(54,201,123,.55);
  animation:heartbeatPulse 1.4s infinite;
}
.badge.offline{color:#8a4e43;background:#fff0ed}
.badge.network-ok{color:#245f46;background:#e9f7ef}
.badge.network-warn{color:#8a6a12;background:#fff7d9}
.card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.danger{color:var(--danger)}
.section-title{margin:8px 0 18px}
dialog{
  border:0;
  border-radius:8px;
  padding:0;
  width:min(720px,calc(100% - 28px));
  box-shadow:0 24px 80px rgba(0,0,0,.25);
}
dialog::backdrop{background:rgba(16,32,25,.66)}
dialog form{padding:28px;position:relative}
.modal-close{
  position:absolute;
  right:14px;
  top:10px;
  border:0;
  background:none;
  font-size:20px;
  color:var(--muted);
}
.field{display:grid;gap:7px;margin:16px 0}
.field label{font-size:12px;font-weight:700}
.field input,.field select,.field textarea{
  padding:11px;
  border:1px solid #cfd8d1;
  border-radius:8px;
  font:inherit;
  background:#fff;
}
.field textarea{resize:vertical;min-height:110px}
.highlight-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:18px;
}
.highlight-card{
  padding:20px;
  border-radius:8px;
  border:1px solid var(--line);
  background:linear-gradient(160deg, rgba(255,255,255,.96), rgba(242,247,241,.92));
  min-height:152px;
}
.highlight-card strong,.text-preview-tile small{display:block}
.highlight-card strong{font-size:18px;margin-bottom:8px}
.highlight-card p,.highlight-card span{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.text-preview-tile{align-content:center;gap:8px}
.text-preview-tile small{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#d8f06b}
.text-preview-tile span{line-height:1.5}
.text-preset-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0 4px;
}
.preset-card{
  border:1px solid var(--line);
  border-radius:8px;
  padding:14px;
  background:#f8fbf6;
  text-align:left;
  display:grid;
  gap:6px;
}
.preset-card strong{font-size:14px}
.preset-card span{font-size:12px;color:var(--muted)}
.preset-card:hover{border-color:#9fc2ae;background:#fff}
.helper-text{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.profile-pick-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:10px;
}
.profile-pick{
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:#fff;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.profile-pick strong,.profile-pick span{display:block}
.profile-pick span{font-size:12px;color:var(--muted)}
.playlist-config-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.playlist-tools{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin:16px 0;
  padding:14px;
  background:#f7faf5;
  border:1px solid var(--line);
  border-radius:8px;
}
.playlist-apply-all{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:13px;
}
.playlist-apply-all input{
  width:88px;
  padding:10px;
  border:1px solid #cfd8d1;
  border-radius:8px;
  font:inherit;
}
.playlist-item-list{display:grid;gap:10px}
.playlist-item-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
}
.playlist-row-actions{
  display:flex;
  align-items:end;
  gap:10px;
}
.playlist-item-copy strong,.playlist-item-copy small{display:block}
.playlist-item-copy small{color:var(--muted);font-size:12px;margin-top:4px}
.playlist-duration-field{
  display:grid;
  gap:6px;
  min-width:110px;
}
.playlist-duration-field span{
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.playlist-duration-field input{
  padding:10px;
  border:1px solid #cfd8d1;
  border-radius:8px;
  font:inherit;
}
.picker{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:8px;
  max-height:320px;
  overflow:auto;
}
.picker-wide{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.pick{
  border:1px solid var(--line);
  padding:10px;
  border-radius:8px;
  display:flex;
  gap:8px;
  align-items:center;
  font-size:12px;
  background:#fff;
}
.transition-picker{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
  gap:8px;
}
.transition-pick{
  display:flex;
  gap:8px;
  align-items:center;
  padding:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  font-size:12px;
}
.discover-list{display:grid;gap:10px;max-height:360px;overflow:auto;margin-top:18px}
.discover-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.discover-row strong{display:block}
.discover-row small,.discover-row em{color:var(--muted);font-size:12px}
.log-list{display:grid;gap:10px;margin-top:18px}
.log-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  padding:14px 16px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:8px;
}
.log-row p{margin:6px 0 0}
.log-meta{display:grid;justify-items:end;gap:6px;color:var(--muted);font-size:12px;white-space:nowrap}
.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
#toast{
  position:fixed;
  right:24px;
  bottom:24px;
  background:#17231e;
  color:#fff;
  padding:12px 16px;
  border-radius:8px;
  opacity:0;
  transform:translateY(8px);
  transition:.2s;
  pointer-events:none;
}
#toast.show{opacity:1;transform:none}
#shutdown-overlay{position:fixed;inset:0;z-index:200;display:grid;place-content:center;justify-items:center;gap:12px;padding:28px;background:#111d22;color:#fff;text-align:center}
#shutdown-overlay[hidden]{display:none}
#shutdown-overlay .brand-logo{width:72px;height:72px}
#shutdown-overlay strong{font-size:24px}
#shutdown-overlay span{max-width:520px;color:#b9c6ca;line-height:1.6}
@keyframes heartbeatPulse{0%{box-shadow:0 0 0 0 rgba(54,201,123,.5)}70%{box-shadow:0 0 0 12px rgba(54,201,123,0)}100%{box-shadow:0 0 0 0 rgba(54,201,123,0)}}
@media (max-width:900px){
  .live-share-layout{grid-template-columns:1fr}
  .share-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats,.highlight-grid,.text-preset-grid{grid-template-columns:1fr}
  .section-title,.selection-bar{align-items:flex-start;flex-direction:column}
  .playlist-config-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .share-source-grid{grid-template-columns:1fr}
  .secure-context-note{align-items:flex-start;flex-wrap:wrap}
  .local-display-band{align-items:flex-start;flex-direction:column}
  .local-display-list{justify-content:flex-start}
  .sidebar{position:static;width:auto;height:auto;padding:14px}
  .brand{padding:0 6px 12px}
  .sidebar nav{grid-template-columns:repeat(4,1fr)}
  .nav{padding:9px 4px;text-align:center;font-size:11px;justify-content:center}
  .nav span{display:none}
  .sidebar-foot{display:none}
  main{margin:0;padding:22px 16px}
  .band{align-items:flex-start;flex-direction:column}
  .media-grid,.screen-grid,.list-grid{grid-template-columns:1fr}
  .toolbar{justify-content:flex-start}
  .discover-row{grid-template-columns:1fr}
  .playlist-item-row,.playlist-row-actions{grid-template-columns:1fr;display:grid}
  .header-actions{justify-content:flex-start}
}

/* Modern operations theme */
:root{
  --ink:#172126;
  --text:#172126;
  --muted:#68777e;
  --paper:#f3f6f7;
  --surface:#ffffff;
  --white:#ffffff;
  --green:#16745b;
  --green-deep:#123b34;
  --lime:#bce84b;
  --line:#dce4e7;
  --sand:#eef2f3;
  --danger:#c7483d;
  --cyan:#2a89a8;
  --amber:#d79424;
  --coral:#d96559;
  --shadow:0 8px 28px rgba(24,40,48,.07);
}
body{background:#f3f6f7;color:var(--ink)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.sidebar{width:220px;padding:22px 14px;background:#111d22;border-right:1px solid #26353b}
.brand{padding:0 8px 24px}.brand-logo{width:38px;height:38px}.brand strong{font-size:16px}
.sidebar nav{gap:4px}.nav{min-height:44px;padding:11px 12px;border-radius:6px;color:#aebbc0}.nav i{width:18px;text-align:center;color:#7f929a}.nav:hover{background:#1b2b31}.nav.active{background:#203c38;color:#fff;box-shadow:inset 3px 0 0 #7fd4a8}.nav.active i{color:#7fd4a8}
.sidebar-foot{padding:8px}.credit-links{gap:6px}.credit-links a{min-height:32px;border-radius:6px;padding:7px;background:#19272d}
main{margin-left:220px;max-width:none;padding:26px 32px 44px}
header{margin:-26px -32px 24px;padding:22px 32px 18px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);backdrop-filter:blur(14px);position:sticky;top:0;z-index:30}
h1{font-size:27px;line-height:1.2}h2{font-size:21px}h3{font-size:16px}.eyebrow{color:#2d7966;letter-spacing:1.2px}
.header-actions{gap:8px;align-items:center}
.icon-control,.icon-action{position:relative;width:40px;height:40px;flex:0 0 40px;border:1px solid #d4dde0;border-radius:7px;background:#fff;color:#33444b;display:inline-grid;place-items:center;padding:0;text-decoration:none;cursor:pointer;transition:background .16s,border-color .16s,color .16s,transform .16s}
.icon-control:hover,.icon-action:hover{background:#edf7f3;border-color:#86b8a8;color:#12664f;transform:translateY(-1px)}
.icon-control.primary-icon{background:#18745b;border-color:#18745b;color:#fff}.icon-control.primary-icon:hover{background:#125f4a;color:#fff}
.icon-control.danger:hover,.icon-action.danger:hover{background:#fff0ef;border-color:#e4aaa5;color:var(--danger)}
[data-tooltip]::after{content:attr(data-tooltip);position:absolute;z-index:100;left:50%;bottom:calc(100% + 8px);transform:translate(-50%,4px);padding:6px 9px;border-radius:5px;background:#111d22;color:#fff;font-size:11px;font-weight:600;line-height:1;white-space:nowrap;opacity:0;pointer-events:none;transition:.14s}
[data-tooltip]:hover::after,[data-tooltip]:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.session-pill{min-height:40px;border-radius:7px;background:#eef4f2;padding:0 12px}
.stats{gap:12px}.stats article{min-height:118px;padding:18px;border-radius:7px;background:#fff!important;border:1px solid var(--line);box-shadow:0 2px 8px rgba(26,41,48,.025)}
#overview>.stats:first-child article{display:grid;grid-template-columns:46px 1fr;align-items:center;gap:14px;border-top-width:3px}
#overview>.stats:first-child article:nth-child(1){border-top-color:#2d9a70}#overview>.stats:first-child article:nth-child(2){border-top-color:#3e8eb4}#overview>.stats:first-child article:nth-child(3){border-top-color:#e0a33b}#overview>.stats:first-child article:nth-child(4){border-top-color:#d76865}
.metric-icon{width:44px;height:44px!important;border-radius:8px;display:grid!important;place-items:center;background:#eaf5f0;color:#18745b;font-size:18px}
#overview>.stats:first-child article:nth-child(2) .metric-icon{background:#eaf3f8;color:#287fa3}#overview>.stats:first-child article:nth-child(3) .metric-icon{background:#fff4de;color:#bc7710}#overview>.stats:first-child article:nth-child(4) .metric-icon{background:#fff0ef;color:#c95550}
.stats strong{font-size:34px;margin:4px 0 2px;line-height:1}.stats span,.stats small{font-size:12px}.stats small{line-height:1.4}
.band{margin:16px 0 30px;padding:24px 26px;border-radius:7px;background:#193b36;box-shadow:var(--shadow)}.band h2{margin-bottom:6px}.band .primary{background:#bce84b}
.section-title{margin:6px 0 14px}.section-title h2{margin-bottom:0}.text-button{font-size:12px}
.screen-grid,.media-grid,.list-grid{grid-template-columns:repeat(auto-fill,minmax(292px,1fr));gap:14px;margin-top:14px}
.card{border-radius:7px;background:#fff;border:1px solid var(--line);box-shadow:0 3px 14px rgba(25,42,50,.045);overflow:visible;transition:box-shadow .18s,border-color .18s}.card:hover{border-color:#c8d5d9;box-shadow:var(--shadow)}
.card-live{border-color:#9acdbb;box-shadow:0 6px 24px rgba(28,116,86,.1)}.card-body{padding:15px}.card h3{margin:10px 0 10px;font-size:16px}
.badge{border-radius:5px;padding:5px 7px;font-size:10px}.badge-row{gap:6px}.badge.offline{background:#fff0ee}.badge.network-ok{background:#e9f6ef}.badge.network-warn{background:#fff5da}
.screen-meta{display:grid;gap:0;border:1px solid #e6ecee;border-radius:6px;overflow:hidden;background:#fbfcfc}
.meta-row{min-height:32px;display:grid;grid-template-columns:18px 64px minmax(0,1fr);gap:7px;align-items:center;padding:6px 9px;border-bottom:1px solid #e8edef;font-size:11px}.meta-row:last-child{border-bottom:0}.meta-row>i{color:#789097;text-align:center}.meta-row>span{color:#7a898f}.meta-row>strong{color:#28363c;font-weight:600;min-width:0;overflow-wrap:anywhere}
.pairing-code{position:relative;border:0;background:transparent;padding:0;color:#126b54;font:700 13px "Cascadia Mono",Consolas,monospace;letter-spacing:1px;cursor:pointer}.pairing-code:hover{text-decoration:underline}
.shared-tag{display:inline-flex;margin-left:5px;padding:2px 5px;border-radius:4px;background:#e7f4ef;color:#16745b;font-size:9px;text-transform:uppercase}
.card-actions{margin:12px -15px -15px;padding:10px 15px;border-top:1px solid #e7edef;gap:6px;background:#fafcfc;border-radius:0 0 7px 7px}.icon-action{width:34px;height:34px;flex-basis:34px;background:#fff}
.media-preview{height:160px;border-radius:7px 7px 0 0}.media-preview img,.media-preview video{border-radius:7px 7px 0 0}
.highlight-grid{gap:12px}.highlight-card{min-height:120px;padding:17px;border-radius:7px;background:#fff;border:1px solid var(--line)}.highlight-card strong{font-size:15px}
.report-stats{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}.report-stats article{border-left:3px solid #2d9a70}.report-stats article:nth-child(2){border-left-color:#3e8eb4}.report-stats article:nth-child(3){border-left-color:#e0a33b}.report-stats article:nth-child(4){border-left-color:#d76865}
.selection-bar,.folder-chip,.log-row,.share-source,.live-target,.local-display-chip{border-radius:7px;background:#fff;box-shadow:0 2px 8px rgba(25,42,50,.025)}
.primary,.secondary{border-radius:7px}.toolbar{gap:7px}.modal-close{width:34px;height:34px;border-radius:6px;background:#f2f5f6}.modal-close:hover{background:#e7edef}
#toast{border-radius:7px;box-shadow:0 12px 36px rgba(0,0,0,.2)}

@media (max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .sidebar{position:static;width:auto;padding:12px}.sidebar nav{grid-template-columns:repeat(4,1fr)}
  main{margin:0;padding:18px 14px 36px}header{margin:-18px -14px 18px;padding:14px;position:static;align-items:flex-start;flex-direction:column}
  .header-actions{width:100%}.session-pill{margin-left:auto}.stats{grid-template-columns:1fr}.screen-grid,.media-grid,.list-grid{grid-template-columns:1fr}
  [data-tooltip]::after{display:none}
}
