:root {
  --bg: #0b0e14;
  --panel: #121722;
  --panel2: #171e2b;
  --text: #edf2f7;
  --muted: #93a1b3;
  --border: #273245;
  --accent: #4c8dff;
  --accent2: #2f6fd9;
  --green: #2ecc71;
  --yellow: #f1c40f;
  --orange: #e67e22;
  --red: #ff5d6c;
  --purple: #a78bfa;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 18px max(18px, calc((100vw - 1500px)/2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar > div { flex: 1; }
.topbar h1 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.page { max-width: 1500px; margin: 0 auto; padding: 18px; display: grid; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 14px 40px rgb(0 0 0 / .14); }
.panel-heading, .results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.panel h2 { margin: 0; font-size: 15px; }

.primary, .ghost, .icon-button {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 13px; color: var(--text); background: var(--panel2);
}
.primary { background: var(--accent); border-color: var(--accent); color: white; font-weight: 650; }
.primary:hover { background: var(--accent2); }
.ghost:hover, .icon-button:hover { border-color: var(--accent); }

.dataset-list { display: flex; gap: 10px; padding: 12px; overflow-x: auto; }
.dataset {
  min-width: 230px; max-width: 330px; padding: 11px 12px;
  background: var(--panel2); border: 1px solid var(--border); border-radius: 11px;
}
.dataset.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dataset-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dataset-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.dataset-actions { display: flex; gap: 7px; margin-top: 9px; }
.dataset-actions button { padding: 5px 8px; font-size: 12px; }
.progress-track { height: 7px; border-radius: 99px; background: #222b39; overflow: hidden; }
.progress-track > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.upload-progress { padding: 12px 16px 0; }
.upload-progress .muted { margin-top: 5px; font-size: 12px; }

.workspace { display: grid; gap: 16px; }
.filters-panel { padding: 14px; }
.filters-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 10px; align-items: end; }
.filters-grid label { display: grid; gap: 5px; }
.filters-grid label > span { color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.filters-grid .wide { grid-column: span 2; }
input, select {
  width: 100%; min-height: 39px; padding: 8px 10px;
  color: var(--text); background: var(--panel2);
  border: 1px solid var(--border); border-radius: 9px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(76 141 255 / .14); }
.filter-actions { display: flex; align-items: end; }

.results-head .muted { display: block; margin-top: 2px; font-size: 12px; }
.result-controls { display: flex; gap: 8px; }
.result-controls select { width: auto; min-width: 120px; }

.table-wrap { overflow: auto; min-height: 220px; }
table { width: 100%; border-collapse: collapse; }
th { position: sticky; top: 0; z-index: 3; text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--border); }
td { padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); vertical-align: top; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--panel2); }
.request-path { max-width: 760px; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 12px; overflow-wrap: anywhere; }
.request-stem { color: var(--text); }
.request-query { color: #9dc0ff; }
.method-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; padding: 3px 7px; border-radius: 7px;
  background: rgb(76 141 255 / .14); color: #8db6ff;
  font-weight: 800; font-size: 11px;
}
.status { font-weight: 800; }
.s2 { color: var(--green); }
.s3 { color: var(--yellow); }
.s4 { color: var(--orange); }
.s5 { color: var(--red); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }

.pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px; }
.pager button:disabled { opacity: .4; cursor: default; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 49; background: rgb(0 0 0 / .55); }
.drawer {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0;
  width: min(680px, 94vw); background: var(--panel);
  border-left: 1px solid var(--border); box-shadow: -20px 0 60px rgb(0 0 0 / .35);
  transform: translateX(101%); transition: transform .18s ease;

  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.drawer-head h2 {
  margin: 8px 0 0;
  font-size: 15px;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  overflow-wrap: anywhere;
  word-break: break-word;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.icon-button { padding: 4px 10px; font-size: 24px; line-height: 1; }
.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 16px;
  display: block;
}

.drawer-body > * + * {
  margin-top: 14px;
}
.detail-card { background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.detail-card h3 { margin: 0; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--border); }
.detail-grid { display: grid; grid-template-columns: minmax(110px, .5fr) minmax(0, 1.5fr); }
.detail-grid > div { padding: 8px 11px; border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent); overflow-wrap: anywhere; }
.detail-grid .key { color: var(--muted); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 12px; }
.detail-grid .value { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 12px; }
.detail-grid .value button { margin-left: 7px; }
.raw { margin: 0; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; }
.copy-small { padding: 3px 7px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 14px; border-radius: 10px; background: #202838; border: 1px solid var(--border); box-shadow: 0 10px 30px rgb(0 0 0 / .3); }

@media (max-width: 1000px) {
  .filters-grid { grid-template-columns: repeat(3, minmax(120px,1fr)); }
}
@media (max-width: 680px) {
  .topbar { padding: 13px 14px; }
  .topbar p { display: none; }
  .page { padding: 10px; }
  .filters-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters-grid .wide { grid-column: span 2; }
  th:nth-child(5), td:nth-child(5), th:nth-child(6), td:nth-child(6) { display: none; }
  th, td { padding: 9px 8px; }
  .request-path { max-width: 52vw; }
  .results-head { align-items: flex-start; }
  .result-controls { flex-direction: column; }
  .drawer { width: 100vw; }
}


/* IIS Log Explorer UX patch: drawer scroll + drag/drop */
body.drawer-open {
  overflow: hidden;
}

.drawer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-head {
  flex: 0 0 auto;
}

.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.drop-zone {
  margin: 12px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel2) 72%, transparent);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: rgb(76 141 255 / .09);
  outline: none;
}

.drop-zone.drag-over {
  transform: scale(1.005);
}

.drop-zone-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background: rgb(76 141 255 / .14);
  color: #8db6ff;
  font-size: 24px;
  line-height: 1;
}

.drop-zone strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.drop-zone span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.dataset.deleting {
  opacity: .55;
  pointer-events: none;
}

@media (max-width: 680px) {
  .drop-zone {
    min-height: 78px;
    justify-content: flex-start;
  }
}



/* POLISHED REQUEST INSPECTOR */

.drawer-body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.detail-card {
  --section-accent: #94a3b8;

  border: 1px solid var(--border);
  border-left: 3px solid var(--section-accent);
  border-radius: 12px;
  background: #171d29;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.10);
}

.detail-card h3 {
  padding: 11px 13px;

  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.2;

  color: var(--section-accent);
  background:
    color-mix(in srgb, var(--section-accent) 5%, #171d29);
}

.detail-grid {
  grid-template-columns: 155px minmax(0, 1fr);
}

.detail-grid > div {
  min-height: 44px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
}

.detail-grid > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.detail-grid .key {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #8f9bad;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.detail-grid .value {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #f4f7fb;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;

  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Technical values retain monospace where it helps readability */
.section-request .value,
.section-query-parameters .value,
.section-all-iis-fields .value {
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;

  font-size: 13px;
}

/* Section colors */
.section-request {
  --section-accent: #60a5fa;
}

.section-query-parameters {
  --section-accent: #c084fc;
}

.section-response {
  --section-accent: #4ade80;
}

.section-embedded-response {
  --section-accent: #fbbf24;
}

.section-network-client {
  --section-accent: #22d3ee;
}

.section-all-iis-fields {
  --section-accent: #94a3b8;
}

.section-raw-log-line {
  --section-accent: #64748b;
}

/* Query parameters get slightly stronger separation */
.section-query-parameters .detail-grid > div {
  background: rgb(192 132 252 / 0.018);
}

.section-query-parameters .key {
  color: #b7a3ce;
}

.section-query-parameters .value {
  color: #f0e5ff;
}

/* Response values */
.section-response .value {
  color: #dffbea;
}

/* Better copy buttons */
.copy-small {
  margin-left: 9px !important;
  padding: 3px 8px;

  flex: 0 0 auto;

  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 10px;
  font-weight: 700;

  color: #a9b6c8;
  background: #202938;

  border: 1px solid #344055;
  border-radius: 7px;

  transition:
    border-color .12s,
    color .12s,
    background .12s;
}

.copy-small:hover {
  color: white;
  border-color: #60a5fa;
  background: #263247;
}

/* Raw / embedded blocks */
.raw {
  padding: 14px;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;

  font-size: 12.5px;
  line-height: 1.65;

  color: #d8dee9;
  background: #10151f;
}

/* Drawer title remains technical but less heavy */
.drawer-head h2 {
  color: #f6f8fb;
  font-weight: 650;
  line-height: 1.45;
}

/* Method badge */
.drawer-head .method-chip {
  background: rgb(76 141 255 / .16);
  border: 1px solid rgb(96 165 250 / .28);
  color: #86b7ff;
}

/* Mobile */
@media (max-width: 680px) {
  .detail-grid {
    grid-template-columns: 115px minmax(0, 1fr);
  }

  .detail-grid > div {
    padding: 10px;
  }

  .detail-grid .value {
    font-size: 13px;
  }

  .section-request .value,
  .section-query-parameters .value,
  .section-all-iis-fields .value {
    font-size: 12px;
  }
}

/* === FIND-IN-CONTEXT STYLES === */

.search-everything-label { align-content: start; }

.search-mode-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.search-mode-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #10151f;
}

.search-mode-switch button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
}

.search-mode-switch button.active {
  background: var(--accent);
  color: white;
}

.context-navigation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.context-navigation button {
  padding: 5px 9px;
  font-size: 11px;
}

.context-position {
  min-width: 72px;
  color: #d8e4f8;
  text-align: center;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.context-search-mode .filters-grid input:disabled,
.context-search-mode .filters-grid select:disabled,
.context-search-mode #clearFilters:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.context-current-match {
  background: linear-gradient(
    90deg,
    rgb(76 141 255 / .20),
    rgb(76 141 255 / .075)
  ) !important;
  box-shadow:
    inset 4px 0 0 #60a5fa,
    inset 0 1px 0 rgb(96 165 250 / .22),
    inset 0 -1px 0 rgb(96 165 250 / .22);
}

.context-current-match:hover {
  background: linear-gradient(
    90deg,
    rgb(76 141 255 / .25),
    rgb(76 141 255 / .10)
  ) !important;
}

.context-text-hit {
  padding: 0 2px;
  border-radius: 3px;
  color: #151008;
  background: #ffd76a;
  font-weight: 800;
}

.context-match-badge {
  display: inline-flex;
  margin-left: 9px;
  padding: 2px 6px;
  border-radius: 99px;
  background: #60a5fa;
  color: #061326;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
  letter-spacing: .05em;
}

@media (max-width: 680px) {
  .search-mode-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .search-mode-switch,
  .context-navigation {
    width: 100%;
  }

  .search-mode-switch button,
  .context-navigation button {
    flex: 1;
  }

  .context-position { flex: 0 0 auto; }
}


/* === COMPACT STICKY SEARCH STYLES === */

:root {
  --iis-topbar-height: 72px;
  --iis-searchbar-height: 86px;
}

/*
 * The upload/header remains the top sticky bar.
 * This compact search bar sticks directly underneath it.
 */
.filters-panel.compact-sticky-filters {
  position: sticky;
  top: var(--iis-topbar-height);
  z-index: 18;

  padding: 10px 13px;

  background:
    color-mix(in srgb, var(--panel) 97%, transparent);

  border-color: #2b374b;

  box-shadow:
    0 9px 24px rgb(0 0 0 / .22),
    0 1px 0 rgb(255 255 255 / .025);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Collapsed state: only Search Everything + its controls remain. */
.compact-sticky-filters .filters-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.compact-sticky-filters .compact-search-primary {
  grid-column: 1 / -1 !important;
  display: grid;
  gap: 5px;
}

.compact-sticky-filters .advanced-filter-hidden {
  display: none !important;
}

/*
 * Expanded advanced filters preserve the useful filtering tools, but they are
 * hidden by default so they no longer consume the page.
 */
.compact-sticky-filters.advanced-open .filters-grid {
  grid-template-columns:
    repeat(6, minmax(120px, 1fr));
  gap: 10px;
}

.compact-sticky-filters.advanced-open .compact-search-primary {
  grid-column: 1 / -1 !important;
  margin-bottom: 2px;
}

/* Search input becomes the visually dominant control. */
.compact-sticky-filters #search {
  min-height: 40px;
  font-size: 14px;
}

/* Keep mode + navigation + More Filters on one compact toolbar. */
.compact-sticky-filters .search-mode-controls {
  min-height: 30px;
  margin-top: 3px;
  gap: 7px;
}

.compact-sticky-filters .search-mode-switch {
  flex: 0 0 auto;
}

.compact-sticky-filters .context-navigation {
  flex: 0 0 auto;
}

.more-filters-button {
  min-height: 28px;
  margin-left: auto;
  padding: 5px 9px !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.filter-chevron {
  display: inline-block;
  margin-left: 3px;
  opacity: .72;
}

/* Advanced filters are intentionally a little more compact. */
.compact-sticky-filters.advanced-open label > span {
  font-size: 10px;
}

.compact-sticky-filters.advanced-open input,
.compact-sticky-filters.advanced-open select {
  min-height: 35px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.compact-sticky-filters.advanced-open .filter-actions {
  align-items: end;
}

/*
 * When Find in Context is active, secondary filters are not applicable.
 * The sticky bar becomes only search + Filter/Context + Prev/Next.
 */
.context-search-mode .compact-sticky-filters {
  padding-top: 9px;
  padding-bottom: 9px;
}

.context-search-mode .compact-sticky-filters .more-filters-button {
  display: none !important;
}

/*
 * A context jump can scroll to a request hundreds of rows away.
 * Give the selected row enough scroll margin to stay below both sticky bars.
 */
.results-panel tbody tr {
  scroll-margin-top:
    calc(
      var(--iis-topbar-height) +
      var(--iis-searchbar-height) +
      18px
    );
}

/* Slightly reinforce the sticky bar once the page is deep in the log. */
.context-search-mode .compact-sticky-filters {
  border-color: rgb(96 165 250 / .34);
}

/* Desktop: advanced fields fit in a compact two-row panel. */
@media (max-width: 1180px) {
  .compact-sticky-filters.advanced-open .filters-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

/* Mobile: keep the sticky bar small enough to leave room for the log. */
@media (max-width: 680px) {
  :root {
    --iis-topbar-height: 64px;
  }

  .filters-panel.compact-sticky-filters {
    padding: 8px;
  }

  .compact-sticky-filters .search-mode-controls {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .compact-sticky-filters .search-mode-switch {
    width: auto;
    flex: 1 1 190px;
  }

  .compact-sticky-filters .context-navigation {
    width: 100%;
    order: 3;
  }

  .compact-sticky-filters .more-filters-button {
    margin-left: 0;
  }

  .compact-sticky-filters.advanced-open .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-sticky-filters.advanced-open .compact-search-primary {
    grid-column: 1 / -1 !important;
  }
}
/* === PUBLIC SHARING SECURITY UI === */

.iis-sec-overlay,
.iis-sec-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(4 8 15 / .80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.iis-sec-overlay.hidden {
  display: none;
}

.iis-sec-card,
.iis-sec-gate-card {
  position: relative;
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid #33445f;
  border-radius: 16px;
  background: #151c28;
  box-shadow: 0 24px 80px rgb(0 0 0 / .48);
}

.iis-sec-gate-card {
  width: min(420px, 100%);
}

.iis-sec-close {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aebbd0;
  font-size: 25px;
}

.iis-sec-lock {
  margin-bottom: 8px;
  font-size: 28px;
}

.iis-sec-card h2,
.iis-sec-gate-card h2 {
  margin: 0 0 8px;
  color: #f7f9fd;
}

.iis-sec-text,
.iis-sec-gate-card p {
  margin: 0 0 18px;
  color: #aebbd0;
  line-height: 1.5;
}

.iis-sec-card label {
  display: block;
  margin: 14px 0 6px;
  color: #93a3bb;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.iis-sec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.iis-sec-row input,
.iis-sec-gate-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #33445f;
  border-radius: 9px;
  background: #0f151f;
  color: #edf3ff;
}

.iis-sec-row input {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.iis-sec-gate-card input {
  margin-bottom: 10px;
  padding: 0 12px;
}

.iis-sec-gate-card button {
  width: 100%;
  min-height: 42px;
}

.iis-sec-expiry {
  margin-top: 15px;
  padding: 10px 12px;
  border: 1px solid rgb(96 165 250 / .24);
  border-radius: 9px;
  background: rgb(96 165 250 / .07);
  color: #b8d5ff;
  font-size: 12px;
  font-weight: 650;
}

.iis-sec-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.iis-sec-actions button {
  flex: 1;
}

.iis-sec-reset {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: #9fb0c8;
  border: 1px solid #33445f;
}

.iis-sec-note {
  margin: 14px 0 0;
  color: #78879e;
  font-size: 11px;
  line-height: 1.45;
}

.iis-sec-floating {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgb(96 165 250 / .38);
  border-radius: 999px;
  background: #1b2c48;
  color: #d9e9ff;
  box-shadow: 0 8px 28px rgb(0 0 0 / .32);
  font-size: 12px;
  font-weight: 750;
}

.iis-sec-floating.hidden {
  display: none;
}

.iis-sec-error {
  min-height: 20px;
  margin-top: 10px;
  color: #ff9a9a;
  font-size: 12px;
}

@media (max-width: 680px) {
  .iis-sec-card,
  .iis-sec-gate-card {
    padding: 19px;
  }

  .iis-sec-actions {
    flex-direction: column;
  }

  .iis-sec-row {
    grid-template-columns: 1fr;
  }

  .iis-sec-floating {
    right: 10px;
    bottom: 10px;
  }
}


.public-security-header-button {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  margin-right: 8px;
  padding: 8px 12px;
  border: 1px solid rgb(96 165 250 / .38);
  border-radius: 9px;
  background: #1b2c48;
  color: #d9e9ff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}
