/* UI_THEME_DETAIL_V25_20260729
   Precise theme coverage for all settings tabs, empty-state artwork, VT/mail/file analysis,
   50:50 web monitoring layout, native Ctrl+C HEX copying, and stable AI robot navigation.
*/
html[data-dashboard-theme]{
  --theme-code-text:#172033;
  --theme-code-muted:#526078;
  --theme-code-selection:color-mix(in srgb,var(--theme-primary) 28%,var(--theme-code-bg));
  --theme-icon-surface:linear-gradient(145deg,var(--theme-primary-soft),var(--theme-accent-soft));
}
html:is(
 [data-dashboard-theme="midnight_aurora"],[data-dashboard-theme="ocean_depth"],
 [data-dashboard-theme="forest_night"],[data-dashboard-theme="plum_noir"],
 [data-dashboard-theme="graphite_coral"],[data-dashboard-theme="sunset_dusk"]
){
  --theme-code-text:#f7f9ff;
  --theme-code-muted:#b8c2d8;
  --theme-code-selection:color-mix(in srgb,var(--theme-primary) 42%,var(--theme-code-bg));
}

/* 1~3. Every monitor / notice / news settings tab and generated management row */
html[data-dashboard-theme] dialog.settings-dialog .settings-card :is(
  .settings-tabbar,.settings-tab-panel,.sub-panel,.form-grid,
  .telegram-send-switch,.telegram-secret-field,.secret-input,
  .source-url-panel,.source-url-grid,.source-url-card,.source-url-test-date,
  .source-url-test-result,.source-url-external-list,.source-url-external-head,
  .source-url-external-item,.external-site-panel,.external-site-form,
  .external-site-list,.external-site-card,.external-site-card__head,
  .external-site-card__meta,.external-site-actions,.external-site-test,
  .url-manage-list,.url-manage-item,.url-manage-main,.source-discovery-field,
  .institution-news-guide,.schedule-time-editor,.schedule-time-row,
  .news-source-list,.pretty-list,.pretty-list-item,.keyword-scroll-list,
  .keyword-row,.template-guide,.api-key-status,.api-key-input-label,
  .history-toolbar,.history-filter,.history-bulk-actions,.outage-history-list,
  .folder-toolbar,.folder-list,.folder-item,.folder-check-all,
  .checkbox-line,.setting-toggle-row,.theme-selection-notice
){
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
  box-shadow:none!important;
}
html[data-dashboard-theme] dialog.settings-dialog .settings-card :is(
  .settings-tabbar,.settings-tab-panel,.sub-panel,.form-grid,
  .source-url-panel,.external-site-panel,.history-toolbar,.folder-toolbar,
  .url-manage-list,.external-site-list,.news-source-list,.pretty-list,
  .keyword-scroll-list,.template-guide,.api-key-status,.theme-selection-notice
){background:var(--theme-surface-soft)!important}
html[data-dashboard-theme] dialog.settings-dialog .settings-card :is(
  .telegram-send-switch,.source-url-card,.source-url-external-item,
  .external-site-card,.url-manage-item,.schedule-time-row,.pretty-list-item,
  .keyword-row,.folder-item,.folder-check-all,.checkbox-line,.setting-toggle-row
){background:var(--theme-surface)!important}
html[data-dashboard-theme] dialog.settings-dialog .settings-card :is(
  [data-dashboard-settings-panel],[data-notice-settings-panel],[data-news-settings-panel]
){
  background:var(--theme-surface-soft)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line)!important;
}
html[data-dashboard-theme] dialog.settings-dialog .settings-card :is(
  input:not([type="checkbox"]):not([type="radio"]),select,textarea
){
  background:var(--theme-surface)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-line-strong)!important;
  caret-color:var(--theme-primary)!important;
  color-scheme:inherit!important;
}
html[data-dashboard-theme] dialog.settings-dialog .settings-card :is(input,select,textarea)::placeholder{color:var(--theme-muted)!important;opacity:.82!important}
html[data-dashboard-theme] dialog.settings-dialog .settings-card :is(label,strong,h2,h3,h4,b,dt){color:var(--theme-heading)!important}
html[data-dashboard-theme] dialog.settings-dialog .settings-card :is(p,small,span,dd,.muted,.field-help,.dialog-subtitle){color:var(--theme-muted)!important}
html[data-dashboard-theme] dialog.settings-dialog .settings-card .settings-tab{
  background:var(--theme-surface)!important;color:var(--theme-text)!important;border:1px solid var(--theme-line)!important;
}
html[data-dashboard-theme] dialog.settings-dialog .settings-card .settings-tab:is(.is-active,[aria-selected="true"]){
  background:linear-gradient(135deg,var(--theme-primary-soft),var(--theme-accent-soft))!important;
  color:var(--theme-primary-strong)!important;border-color:var(--theme-primary)!important;
}
html[data-dashboard-theme] dialog.settings-dialog .settings-card .sub-panel h3::before{
  background:var(--theme-primary-soft)!important;color:var(--theme-primary-strong)!important;border-color:var(--theme-line)!important;
}
html[data-dashboard-theme] dialog.settings-dialog .settings-card :is(.secret-toggle,.mini-view-btn,.schedule-time-select){
  background:var(--theme-surface-inset)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important;
}
html[data-dashboard-theme] dialog.settings-dialog .settings-card .telegram-send-switch__track{background:var(--theme-line-strong)!important}
html[data-dashboard-theme] dialog.settings-dialog .settings-card .telegram-send-switch__track>span{background:var(--theme-surface)!important;box-shadow:0 2px 7px var(--theme-shadow)!important}
html[data-dashboard-theme] dialog.settings-dialog .settings-card .telegram-send-switch__control input:checked~.telegram-send-switch__track{background:var(--theme-success)!important}
html[data-dashboard-theme] dialog.settings-dialog .settings-card .telegram-send-switch__state{color:var(--theme-muted)!important}
html[data-dashboard-theme] dialog.settings-dialog .settings-card .telegram-send-switch__control input:checked~.telegram-send-switch__state{color:var(--theme-success)!important}

/* Notice folder selection and empty-state artwork */
html[data-dashboard-theme] :is(.folder-check-all,.folder-select,.external-site-toggle){background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important}
html[data-dashboard-theme] :is(.folder-check-all input,.folder-select input,.external-site-toggle input){accent-color:var(--theme-primary)!important}
html[data-dashboard-theme] :is(.notice-empty-state,.outage-empty-state,.empty-pretty){
  background:linear-gradient(160deg,var(--theme-surface),var(--theme-surface-soft))!important;
  color:var(--theme-muted)!important;border-color:var(--theme-line-strong)!important;
}
html[data-dashboard-theme] .notice-empty-state>span{
  background:var(--theme-icon-surface)!important;color:var(--theme-primary-strong)!important;
  border:1px solid var(--theme-line)!important;box-shadow:0 8px 20px var(--theme-shadow-soft)!important;
  font-family:"Segoe UI Symbol","Noto Sans Symbols 2",sans-serif!important;
}
html[data-dashboard-theme] .notice-empty-state strong{color:var(--theme-heading)!important}

/* 4. VirusTotal report and initial result area */
html[data-dashboard-theme] :is(
  .intel-new-result--vt,.intel-new-result--vt .intel-new-result-head,
  .intel-new-result--vt .intel-new-guide,.intel-new-result--vt .intel-new-detail,
  #vtResult,.vt-result,.vt-report-card,.vt-loading,.vt-error,.ip-detail-empty
){
  background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important;
}
html[data-dashboard-theme] .intel-new-result--vt .intel-new-result-head,
html[data-dashboard-theme] .intel-new-result--vt .intel-new-guide{background:var(--theme-surface-soft)!important}
html[data-dashboard-theme] #vtResult>.ip-detail-empty{
  min-height:240px!important;background:linear-gradient(155deg,var(--theme-surface-soft),var(--theme-primary-soft))!important;
  color:var(--theme-muted)!important;border:1px dashed var(--theme-line-strong)!important;
}
html[data-dashboard-theme] #vtResult>.ip-detail-empty::before{
  content:"◉";display:grid;place-items:center;width:52px;height:52px;margin:0 auto 12px;border-radius:17px;
  background:var(--theme-icon-surface);color:var(--theme-primary-strong);font-size:22px;border:1px solid var(--theme-line);
}

/* 5. Mail upload artwork, authentication/route/URL/attachment analysis */
html[data-dashboard-theme] :is(
  .mail-drop-zone,.mail-analysis-empty,.mail-security-summary,.mail-security-metrics,
  .mail-security-metrics article,.mail-security-grid article,.mail-security-note,
  .mail-indicator-list,.mail-indicator-list>*,.mail-attachment-list,.mail-attachment,
  .mail-file-meta>div,.mail-summary,.mail-content-box,.mail-ai-analysis,.mail-ai-meta
){border-color:var(--theme-line)!important;color:var(--theme-text)!important}
html[data-dashboard-theme] :is(.mail-drop-zone,.mail-analysis-empty){
  background:linear-gradient(155deg,var(--theme-surface),var(--theme-surface-soft))!important;
}
html[data-dashboard-theme] .mail-drop-zone__icon,
html[data-dashboard-theme] .mail-analysis-empty>span{
  background:var(--theme-icon-surface)!important;color:var(--theme-primary-strong)!important;
  border:1px solid var(--theme-line)!important;box-shadow:0 9px 22px var(--theme-shadow-soft)!important;
  font-family:"Segoe UI Symbol","Noto Sans Symbols 2",sans-serif!important;
}
html[data-dashboard-theme] :is(.mail-security-metrics article,.mail-security-grid article,.mail-indicator-list>*,.mail-attachment,.mail-file-meta>div){background:var(--theme-surface-inset)!important}
html[data-dashboard-theme] :is(.mail-security-summary,.mail-content-box,.mail-ai-analysis){background:var(--theme-surface)!important}
html[data-dashboard-theme] :is(.mail-security-summary h3,.mail-security-grid h4,.mail-security-metrics strong,.mail-attachment strong,.mail-file-meta dd){color:var(--theme-heading)!important}
html[data-dashboard-theme] :is(.mail-security-summary p,.mail-security-note,.mail-security-metrics span,.mail-attachment span,.mail-file-meta dt){color:var(--theme-muted)!important}

/* 6. File-analysis hash/meta/tool artwork and light/dark HEX text */
html[data-dashboard-theme] :is(.hex-hash-list>div,.hex-hash-list dd,.hex-ai-meta,.hex-offset-radix-row,.hex-offset-form,.hex-search-form,.hex-search-results,.hex-view-toolbar){
  background:var(--theme-surface-soft)!important;color:var(--theme-text)!important;border-color:var(--theme-line)!important;
}
html[data-dashboard-theme] .hex-hash-list dd{background:var(--theme-surface)!important}
html[data-dashboard-theme] .hex-hash-list :is(dt,code){color:var(--theme-text)!important}
html[data-dashboard-theme] .hex-hash-list button{color:var(--theme-primary-strong)!important;background:var(--theme-primary-soft)!important;border:1px solid var(--theme-line)!important;border-radius:7px!important;padding:5px 7px!important}
html[data-dashboard-theme] .hex-hash-list button:disabled{color:var(--theme-muted)!important;background:var(--theme-surface-inset)!important}
html[data-dashboard-theme] .hex-ai-meta>span{background:var(--theme-surface-inset)!important;color:var(--theme-muted)!important;border:1px solid var(--theme-line)!important;border-radius:10px!important;padding:8px 10px!important}
html[data-dashboard-theme] .hex-ai-meta strong{color:var(--theme-heading)!important}
html[data-dashboard-theme] .hex-section-title>span,
html[data-dashboard-theme] :is(.hex-file-type-icon,.hex-analysis-empty>span,.hex-auto-summary__title>span){
  background:var(--theme-icon-surface)!important;color:var(--theme-primary-strong)!important;
  border:1px solid var(--theme-line)!important;box-shadow:0 8px 20px var(--theme-shadow-soft)!important;
  font-family:"Segoe UI Symbol","Noto Sans Symbols 2",ui-monospace,monospace!important;
}
html[data-dashboard-theme] :is(.hex-offset-form input,.hex-search-form input,.hex-search-options select,.hex-offset-radix-row select,.hex-view-toolbar select,.hex-string-toolbar input){
  background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-line-strong)!important;
}
html[data-dashboard-theme] :is(.hex-viewer,.hex-viewer-head,.hex-row,.hex-view-loading,.hex-empty-inline){
  background:var(--theme-code-bg)!important;color:var(--theme-code-text)!important;border-color:var(--theme-line-strong)!important;
}
html[data-dashboard-theme] .hex-viewer-head{background:color-mix(in srgb,var(--theme-code-bg) 78%,var(--theme-primary-soft))!important;color:var(--theme-code-muted)!important}
html[data-dashboard-theme] .hex-row:nth-child(even){background:color-mix(in srgb,var(--theme-code-bg) 90%,var(--theme-primary-soft))!important}
html[data-dashboard-theme] .hex-row:hover{background:color-mix(in srgb,var(--theme-code-bg) 72%,var(--theme-primary-soft))!important}
html[data-dashboard-theme] .hex-row.is-selected{background:var(--theme-code-selection)!important}
html[data-dashboard-theme] :is(.hex-row__offset,.hex-row__bytes,.hex-row__bytes i,.hex-byte,.hex-row__ascii,.hex-ascii-char){color:var(--theme-code-text)!important}
html[data-dashboard-theme] .hex-row__offset{color:var(--theme-code-muted)!important}
html[data-dashboard-theme] :is(.hex-byte.is-byte-selected,.hex-ascii-char.is-byte-selected){background:var(--theme-primary)!important;color:#fff!important;border-radius:4px!important}
html[data-dashboard-theme] .hex-selection-copy-btn{display:none!important}

/* 50:50 web monitoring desktop layout; URL cards remain 3x3 */
@media(min-width:1121px){
  html[data-dashboard-theme] .dashboard-layout--classic{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  html[data-dashboard-theme] .dashboard-layout--classic .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Stable robot across full-page menu navigation */
html[data-dashboard-theme] .ai-float-launcher:not(.robot-position-ready){visibility:hidden!important;opacity:0!important}
html[data-dashboard-theme] .ai-float-launcher.robot-position-ready{visibility:visible!important}
html[data-dashboard-theme] .ai-robot-emotion-bubble,
html[data-dashboard-theme] .ai-float-launcher__speech{
  background:var(--theme-surface)!important;color:var(--theme-heading)!important;border-color:var(--theme-line-strong)!important;
}
html[data-dashboard-theme] .ai-float-launcher__speech::after{
  background:var(--theme-surface)!important;border-color:var(--theme-line-strong)!important;
}
