:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #0e1b2e;
  background: #fff;
  font-size: 15px;
  --accent: #087f8c;
  --muted: #65758b;
  --line: #dce3eb;
  --nav: #0e1c30;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: 6px;
  padding: 11px 16px;
  font-weight: 600;
  line-height: 1.3;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button.secondary {
  color: var(--accent);
  background: #fff;
}
button.quiet {
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
  padding: 6px 10px;
}
button.danger {
  color: #a62136;
  border-color: #e4c8ce;
  background: white;
}
a {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 0 0 8px;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0 0 20px;
}
h3 {
  font-size: 17px;
  margin: 12px 0;
}
p {
  line-height: 1.6;
  margin: 8px 0 20px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 13px;
  line-height: 1.6;
}
.shell {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: var(--nav);
  color: #dce6f4;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1px;
  padding: 0 24px;
}
.brand-sub {
  padding: 5px 24px 30px;
  color: #becbdd;
}
nav {
  display: grid;
  gap: 4px;
}
nav button {
  border: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
  background: none;
  color: #dce6f4;
  font-size: 14px;
  font-weight: 400;
  padding: 16px 24px;
  border-left: 4px solid transparent;
}
nav button.active {
  background: #ffffff12;
  border-left-color: #04a8ba;
  color: #fff;
}
nav svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.side-bottom {
  margin-top: auto;
  padding: 28px 24px 0;
  font-size: 13px;
}
.side-bottom button {
  margin-top: 15px;
}
main {
  padding: 38px;
  min-width: 0;
  max-width: 1600px;
  width: 100%;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}
header p {
  margin: 6px 0 0;
  font-size: 17px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 16px;
}
.overview-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
}
.now-playing {
  display: flex;
  gap: 32px;
  align-items: center;
}
.display-preview {
  width: 220px;
  aspect-ratio: 1;
  flex-shrink: 0;
  background: #202426;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 5px;
  padding: 18px;
  gap: 10px;
  box-shadow: 0 1px 4px #0002;
}
.display-preview strong {
  font-size: 26px;
}
.display-preview small {
  color: #c1cad2;
}
.display-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.source-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.source-note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 40px;
}
.section-head,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-weight: 600;
  background: #f5f7f9;
  color: #1b293c;
}
td,
th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
td.wrap {
  white-space: normal;
  min-width: 180px;
  max-width: 350px;
}
input:not([type="checkbox"]):not([type="file"]),
select {
  border: 1px solid #bbc7d4;
  border-radius: 5px;
  padding: 10px 12px;
  background: #fff;
  color: #18263a;
  min-width: 0;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
label {
  display: grid;
  gap: 8px;
  color: #253348;
  font-size: 14px;
}
form {
  display: grid;
  gap: 20px;
}
.form-row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.form-row label {
  min-width: 140px;
  flex: 1;
}
.form-panel {
  max-width: 680px;
}
.empty {
  color: var(--muted);
  padding: 40px 16px;
  text-align: center;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f5f7fa;
}
.login-box {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  background: #fff;
  padding: 36px;
  border-radius: 10px;
}
.login-box h1 {
  font-size: 29px;
}
.notice {
  border-left: 4px solid var(--accent);
  background: #f0f8f9;
  padding: 14px 18px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.notice.error {
  border-color: #b73149;
  background: #fff3f5;
}
.demo {
  background: #fff6df;
  border-color: #ba7e00;
}
.status {
  min-height: 22px;
  color: var(--muted);
  margin-bottom: 16px;
}
.code {
  font:
    600 23px ui-monospace,
    monospace;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}
.media-preview {
  width: 240px;
  height: 240px;
  background: #202426;
  object-fit: cover;
  border-radius: 5px;
}
.media-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
}
.stat-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.stat-row strong {
  font-size: 28px;
  display: block;
}
.forecast-detail {
  font-size: 13px;
  color: var(--muted);
}
details {
  margin: 14px 0;
}
summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
  background: #f6f8fa;
  padding: 14px;
  border-radius: 5px;
  max-height: 400px;
  overflow: auto;
}
.mobile-title {
  display: none;
}
@media (max-width: 1080px) {
  main {
    padding: 28px;
  }
  .overview-top {
    grid-template-columns: 1fr;
  }
  .now-playing {
    gap: 24px;
  }
  .source-note {
    margin-top: 20px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  aside {
    height: auto;
    position: static;
    padding: 18px 0 0;
  }
  .brand {
    font-size: 24px;
  }
  .brand-sub {
    padding-bottom: 16px;
    font-size: 13px;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 0;
  }
  nav button {
    font-size: 13px;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 13px 16px;
    gap: 8px;
  }
  nav button.active {
    border-bottom-color: #04a8ba;
  }
  nav svg {
    display: none;
  }
  .side-bottom {
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .side-bottom button {
    margin: 0;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 27px;
    letter-spacing: -0.7px;
  }
  header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  header p {
    font-size: 15px;
  }
  .panel {
    padding: 18px;
  }
  .now-playing {
    flex-direction: column;
    align-items: start;
  }
  .display-preview {
    width: 100%;
    max-width: 240px;
    align-self: center;
  }
  .media-layout {
    grid-template-columns: 1fr;
  }
  .media-preview {
    width: 100%;
    max-width: 240px;
  }
  .form-row {
    align-items: stretch;
  }
  .form-row label {
    min-width: 100%;
  }
  td,
  th {
    padding: 12px;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar select {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.12s,
      color 0.12s;
  }
  main {
    animation: appear 0.15s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.6;
    }
    to {
      opacity: 1;
    }
  }
}
