:root {
  --wis-bg: #060d17;
  --wis-panel: #0c1725;
  --wis-panel-2: #101e2e;
  --wis-line: rgba(166, 196, 218, 0.14);
  --wis-text: #f2f7f9;
  --wis-muted: #88a0b2;
  --wis-green: #37f0b1;
  --wis-green-dark: #092c26;
  --wis-blue: #63a9ff;
  --wis-orange: #ffb85c;
  --wis-danger: #ff7282;
  --wis-radius: 22px;
  --wis-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wis-text);
  background: var(--wis-bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--wis-bg); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 74% -5%, rgba(25, 128, 104, 0.2), transparent 30rem),
    radial-gradient(circle at -5% 65%, rgba(53, 99, 159, 0.12), transparent 28rem),
    var(--wis-bg);
}

button, input, select { font: inherit; }
button { color: inherit; }

.wis-shell { min-height: 100vh; }

.wis-header {
  height: 78px;
  padding: 0 clamp(20px, 3.5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--wis-line);
  background: rgba(6, 13, 23, 0.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.wis-brand { display: flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.wis-brand-mark {
  width: 43px; height: 43px; display: grid; place-items: center;
  border-radius: 14px; color: var(--wis-green);
  background: linear-gradient(145deg, rgba(55, 240, 177, .17), rgba(99, 169, 255, .08));
  border: 1px solid rgba(55, 240, 177, .22);
}
.wis-brand-mark svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; }
.wis-brand b { display: block; font-size: 16px; letter-spacing: .01em; }
.wis-brand small { display: block; margin-top: 4px; color: var(--wis-muted); font-size: 9px; letter-spacing: .24em; }
.wis-header-status { display: flex; align-items: center; gap: 22px; }
.wis-status { display: inline-flex; gap: 8px; align-items: center; color: var(--wis-muted); font-size: 12px; }
.wis-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(136,160,178,.08); }
.wis-status.is-online { color: var(--wis-green); }
.wis-status.is-online i { box-shadow: 0 0 15px rgba(55,240,177,.8); }
.wis-docs-link { color: #bdd0dc; text-decoration: none; font-size: 12px; padding-left: 22px; border-left: 1px solid var(--wis-line); }
.wis-docs-link:hover { color: var(--wis-green); }

.wis-main {
  display: grid;
  grid-template-columns: minmax(275px, 350px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  width: min(1660px, 100%);
  margin: 0 auto;
  padding: 38px clamp(20px, 3.5vw, 56px) 58px;
}

.wis-sidebar { min-width: 0; }
.wis-panel {
  padding: 24px;
  margin-bottom: 16px;
  background: linear-gradient(145deg, rgba(15,30,45,.94), rgba(10,20,32,.94));
  border: 1px solid var(--wis-line);
  border-radius: var(--wis-radius);
  box-shadow: 0 18px 45px rgba(0,0,0,.15);
}
.wis-access-panel { background: linear-gradient(145deg, rgba(14,35,43,.98), rgba(10,22,34,.96)); }
.wis-section-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 22px; }
.wis-step { color: var(--wis-green); font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding-top: 6px; }
.wis-section-heading h2 { margin: 0; font-size: 15px; font-weight: 650; }
.wis-section-heading p { margin: 6px 0 0; color: var(--wis-muted); font-size: 11px; line-height: 1.5; }

.wis-field { display: grid; gap: 8px; min-width: 0; }
.wis-field > span:first-child { color: #a4bac8; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.wis-field input, .wis-field select {
  width: 100%; height: 44px; padding: 0 13px;
  color: var(--wis-text); background: rgba(3,10,17,.58);
  border: 1px solid rgba(166,196,218,.18); border-radius: 11px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.wis-field input:focus, .wis-field select:focus { border-color: rgba(55,240,177,.55); box-shadow: 0 0 0 3px rgba(55,240,177,.08); }
.wis-secret-wrap { position: relative; }
.wis-secret-wrap input { padding-right: 58px; }
.wis-secret-wrap button { position: absolute; right: 6px; top: 6px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--wis-muted); font-size: 11px; cursor: pointer; }
.wis-secret-wrap button:hover { color: var(--wis-text); background: rgba(255,255,255,.05); }
.wis-access-form { display: grid; gap: 12px; }

.wis-button {
  min-height: 44px; padding: 0 15px; border-radius: 11px;
  border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 650;
  transition: transform .2s, opacity .2s, background .2s, border-color .2s;
}
.wis-button:hover:not(:disabled) { transform: translateY(-1px); }
.wis-button:disabled { opacity: .42; cursor: not-allowed; }
.wis-button-primary { display: flex; align-items: center; justify-content: space-between; color: #052019; background: var(--wis-green); box-shadow: 0 10px 24px rgba(55,240,177,.12); }
.wis-button-primary:hover:not(:disabled) { background: #5df5c1; }
.wis-button-secondary { color: #d7e6ed; border-color: var(--wis-line); background: rgba(255,255,255,.04); }
.wis-button-quiet { min-height: 32px; color: var(--wis-muted); background: transparent; padding: 0; text-align: left; }
.wis-security-note { margin: 15px 0 0; color: #668092; font-size: 10px; line-height: 1.55; }
.wis-location-search { margin-bottom: 16px; }
.wis-search-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.wis-search-control input { min-width: 0; }
.wis-search-control button { min-width: 58px; padding: 0 11px; color: #062019; background: var(--wis-green); border: 0; border-radius: 11px; font-size: 11px; font-weight: 700; cursor: pointer; }
.wis-search-control button:disabled { opacity: .42; cursor: not-allowed; }
.wis-location-results { display: grid; gap: 5px; max-height: 245px; margin-top: 8px; padding: 6px; overflow-y: auto; background: rgba(3,10,17,.76); border: 1px solid var(--wis-line); border-radius: 12px; }
.wis-location-results[hidden] { display: none; }
.wis-location-result { display: grid; gap: 4px; width: 100%; padding: 10px 11px; color: #dce9ee; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.wis-location-result:hover, .wis-location-result:focus-visible { background: rgba(55,240,177,.06); border-color: rgba(55,240,177,.2); outline: none; }
.wis-location-result b { overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 600; white-space: nowrap; }
.wis-location-result small { color: var(--wis-muted); font-size: 9px; }
.wis-location-result-empty { margin: 0; padding: 10px; color: var(--wis-muted); font-size: 10px; line-height: 1.5; }
.wis-coordinate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wis-presets { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 17px; }
.wis-presets button { padding: 6px 10px; color: #8da5b5; background: rgba(255,255,255,.025); border: 1px solid var(--wis-line); border-radius: 999px; font-size: 10px; cursor: pointer; }
.wis-presets button:hover { color: var(--wis-green); border-color: rgba(55,240,177,.3); }
.wis-location-actions { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px; margin-bottom: 12px; }
.wis-model-field select { height: 44px; }

.wis-testing-notice { display: flex; gap: 12px; padding: 15px 17px; border: 1px solid rgba(255,184,92,.2); border-radius: 15px; background: rgba(255,184,92,.045); }
.wis-testing-notice > span { height: fit-content; padding: 4px 6px; color: var(--wis-orange); background: rgba(255,184,92,.09); border-radius: 5px; font: 700 8px/1 ui-monospace, monospace; letter-spacing: .08em; }
.wis-testing-notice p { margin: 0; color: #9ca9af; font-size: 10px; line-height: 1.55; }

.wis-dashboard { min-width: 0; }
.wis-dashboard-head { min-height: 57px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.wis-eyebrow { margin: 0 0 7px; color: var(--wis-green); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.wis-dashboard-head h1 { margin: 0; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -.025em; }
.wis-updated-at { margin: 0 0 4px; color: var(--wis-muted); font-size: 10px; white-space: nowrap; }

.wis-metrics { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 10px; margin-bottom: 14px; }
.wis-metric {
  min-height: 105px; padding: 18px;
  border-radius: 17px; border: 1px solid var(--wis-line);
  background: linear-gradient(150deg, rgba(17,32,47,.95), rgba(9,18,29,.95));
  position: relative; overflow: hidden;
}
.wis-metric::after { content: ""; position: absolute; width: 70px; height: 70px; border-radius: 50%; right: -35px; bottom: -45px; background: rgba(99,169,255,.08); filter: blur(4px); }
.wis-metric-temperature::after { background: rgba(55,240,177,.13); }
.wis-metric-label { display: block; margin-bottom: 13px; color: var(--wis-muted); font-size: 10px; }
.wis-metric strong { font-size: clamp(23px, 2vw, 31px); font-weight: 560; letter-spacing: -.035em; }
.wis-metric small { margin-left: 5px; color: #768f9f; font-size: 10px; }

.wis-forecast-card { min-height: 235px; padding: 25px; border: 1px solid var(--wis-line); border-radius: var(--wis-radius); background: rgba(12,24,37,.88); box-shadow: var(--wis-shadow); }
.wis-forecast-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.wis-forecast-heading h2 { margin: 0; font-size: 15px; }
.wis-legend { display: flex; gap: 14px; color: var(--wis-muted); font-size: 9px; }
.wis-legend span { display: flex; align-items: center; gap: 5px; }
.wis-dot { width: 6px; height: 6px; border-radius: 50%; }
.wis-dot-temp { background: var(--wis-green); }
.wis-dot-wind { background: var(--wis-blue); }
.wis-dot-rain { background: #68d5ff; }
.wis-forecast-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(126px, 1fr); overflow-x: auto; scrollbar-color: #294052 transparent; }
.wis-forecast-step { min-height: 162px; padding: 8px 13px 13px; border-left: 1px solid var(--wis-line); }
.wis-forecast-step:first-child { border-left: 0; }
.wis-forecast-step time { display: block; color: var(--wis-muted); font-size: 9px; line-height: 1.45; }
.wis-condition { display: flex; align-items: center; gap: 6px; min-height: 25px; margin-top: 7px; color: #d8e7ec; font-size: 10px; white-space: nowrap; }
.wis-condition span { font-size: 16px; }
.wis-condition b { overflow: hidden; text-overflow: ellipsis; font-weight: 560; }
.wis-forecast-step strong { display: block; margin: 6px 0 3px; font-size: 18px; font-weight: 560; }
.wis-forecast-step strong span { color: var(--wis-muted); font-size: 9px; }
.wis-forecast-step small { display: block; color: var(--wis-blue); font-size: 9px; }
.wis-rain-probability { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; padding-top: 7px; color: var(--wis-muted); border-top: 1px solid rgba(166,196,218,.09); font-size: 9px; }
.wis-rain-probability b { color: #68d5ff; font-size: 10px; font-weight: 600; }
.wis-empty-state { grid-column: 1 / -1; min-height: 75px; display: grid; place-items: center; color: #597183; font-size: 11px; border: 1px dashed rgba(166,196,218,.12); border-radius: 12px; }

.wis-message { position: fixed; z-index: 1500; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 14px 17px; color: #d7e4e9; background: #142434; border: 1px solid var(--wis-line); border-radius: 12px; box-shadow: var(--wis-shadow); font-size: 11px; line-height: 1.5; }
.wis-message.is-error { color: #ffd9dd; border-color: rgba(255,114,130,.3); background: #351823; }
.wis-message.is-success { color: #d4fff0; border-color: rgba(55,240,177,.27); background: #102c28; }
.wis-footer { display: flex; justify-content: space-between; gap: 20px; padding: 21px clamp(20px, 3.5vw, 56px); color: #526a7a; border-top: 1px solid var(--wis-line); font: 500 9px/1.4 ui-monospace, monospace; letter-spacing: .08em; }
.wis-footer a { color: #6f8a9b; text-decoration: none; }
.wis-footer a:hover { color: var(--wis-green); }

@media (max-width: 1050px) {
  .wis-main { grid-template-columns: 290px minmax(0, 1fr); gap: 23px; }
  .wis-metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .wis-header { height: 68px; }
  .wis-docs-link { display: none; }
  .wis-main { display: block; padding-top: 24px; }
  .wis-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .wis-panel { margin-bottom: 0; }
  .wis-testing-notice { grid-column: 1 / -1; margin-bottom: 25px; }
  .wis-metrics { grid-template-columns: repeat(5, minmax(110px, 1fr)); overflow-x: auto; }
  .wis-dashboard-head { align-items: flex-start; }
  .wis-updated-at { padding-top: 10px; }
}

@media (max-width: 590px) {
  .wis-brand b { font-size: 14px; }
  .wis-header-status { gap: 8px; }
  .wis-status { font-size: 10px; }
  .wis-main { padding-inline: 14px; }
  .wis-sidebar { display: block; }
  .wis-panel { margin-bottom: 12px; padding: 20px; }
  .wis-dashboard-head { display: block; }
  .wis-dashboard-head h1 { font-size: 20px; }
  .wis-updated-at { padding-top: 8px; }
  .wis-footer { display: grid; }
}

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