.spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .spinner-circle {
    transform-origin: center;
    animation: spinner-circle-animate 1s step-start infinite;
  }
  rect {
    fill: var(--ds-gray-900);
  }
  @keyframes spinner-circle-animate {
    0%   { transform: rotate(0); }
    10%  { transform: rotate(36deg); }
    20%  { transform: rotate(72deg); }
    30%  { transform: rotate(108deg); }
    40%  { transform: rotate(144deg); }
    50%  { transform: rotate(180deg); }
    60%  { transform: rotate(216deg); }
    70%  { transform: rotate(252deg); }
    80%  { transform: rotate(288deg); }
    90%  { transform: rotate(324deg); }
    to   { transform: rotate(360deg); }
  }
  :root {
    --ds-gray-900: hsla(0, 0%, 40%, 1);
    --ds-gray-alpha-1000: hsla(0, 0%, 0%, 0.91);
    --background-color: hsla(0, 0%, 100%, 1);
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --ds-gray-900: hsla(0, 0%, 63%, 1);
      --ds-gray-alpha-1000: hsla(0, 0%, 100%, 0.92);
      --background-color: hsla(0, 0%, 4%, 1);
    }
  }
  html { box-sizing: border-box; }
  *, *:after, *:before { box-sizing: inherit; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Noto Sans, Helvetica, Arial, sans-serif,
      "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 1.2rem;
    line-height: 1.65;
    word-break: break-word;
    margin: 0;
    background-color: var(--background-color);
    color: var(--ds-gray-900);
    height: 100vh;
    max-height: 100vh;
  }
  .container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 100%;
  }
  #root { display: flex; }
  main {
    max-width: 80rem;
    padding: 4rem 6rem;
    margin: auto;
  }
  #header-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 32px;
    text-align: center;
  }
  footer {
    font-size: 0.75rem;
    padding-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 200;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
  }
  footer div {
    display: flex;
    flex-direction: row;
    gap: 3px;
  }
  @media (max-width: 600px) {
    body { height: 100dvh; max-height: 100dvh; }
    main { padding: 1rem 2rem; }
    body { font-size: 1.4rem; text-align: center; }
    footer {
      flex-direction: column;
      text-align: center;
      padding: 24px 12px;
    }
    footer p { margin: 6px auto; }
    footer div { flex-direction: column; gap: 0; }
  }
  #kiwiframe {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1;
  }
  #noaa-image {
    position: fixed;
    top: 0;
    left: 1313px;
    width: 168px;
    height: 168px;
    z-index: 2;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: none;
  }
  #solar-data {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    display: none;
    margin: 0;
    padding: 0;
  }
  #solar-data img {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 700px;
    height: auto;
    display: block;
  }
  #solar-map {
    position: fixed;
    top: 0;
    left: 700px;
    z-index: 2;
    display: none;
    margin: 0;
    padding: 0;
  }
  #solar-map img {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 336px;
    height: auto;
    display: block;
  }
  #solar-system {
    position: fixed;
    top: 0;
    left: 1036px;
    z-index: 2;
    display: none;
    margin: 0;
    padding: 0;
  }
  #solar-system img {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 277px;
    height: auto;
    display: block;
  }
  #solar-graph {
    position: fixed;
    top: 0;
    left: 1481px;
    width: 168px;
    height: 110px;
    z-index: 2;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: none;
  }
  #solar-graph img {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 297px;
    height: 168px;
    display: block;
  }
  #clock-display {
    position: fixed;
    top: 0;
    left: 1778px;
    right: 0;
    z-index: 3;
    display: none;
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: monospace;
    font-size: 10.5px;
    line-height: 1.2;
    text-align: left;
    padding: 46px 10px;
  }
  #utc-time, #msk-time {
    display: flex;
  }
  #utc-label, #msk-label {
    font-weight: bold;
    margin-right: 10px;
    min-width: 50px;
  }
  #console-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-family: monospace;
    font-size: 14px;
    padding: 8px 12px;
    text-align: left;
    z-index: 999;
    display: none;
    border-top: 1px solid #333;
    max-height: 150px;
    overflow-y: auto;
  }
  .log-message {
    margin: 2px 0;
  }
  
  #chat-container {
    position: fixed;
    left: 20px;
    top: 200px;
    width: 280px;
    height: 400px;
    background-color: rgba(16, 16, 16, 0.9);
    border: 1px solid #444;
    border-radius: 8px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  #chat-header {
    background: linear-gradient(to right, #1a1a1a, #2c2c2c);
    padding: 10px 12px;
    font-weight: bold;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 7px 7px 0 0;
  }
  
  #chat-header span:first-child {
    font-size: 14px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  }
  
  #chat-toggle {
    cursor: pointer;
    background-color: #333;
    padding: 0px 5px;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s ease;
  }
  
  #chat-toggle:hover {
    background-color: #444;
  }
  
  #chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    font-size: 13px;
    background-color: rgba(10, 10, 10, 0.8);
    scrollbar-width: thin;
    scrollbar-color: #444 #222;
  }
  
  #chat-messages::-webkit-scrollbar {
    width: 6px;
  }
  
  #chat-messages::-webkit-scrollbar-track {
    background: #222;
  }
  
  #chat-messages::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 6px;
  }
  
  .chat-message {
    margin-bottom: 10px;
    word-wrap: break-word;
    position: relative;
    padding: 7px 10px;
    border-radius: 6px;
    background-color: #222;
    border-left: 3px solid #555;
    max-width: 95%;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  #chat-form {
    padding: 10px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, #1a1a1a, #222);
    border-radius: 0 0 7px 7px;
  }
  
  #chat-input {
    padding: 8px 10px;
    margin-bottom: 8px;
    background-color: #111;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: 13px;
    transition: all 0.3s ease;
  }
  
  #chat-input:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 3px rgba(255,255,255,0.2);
  }
  
  #chat-submit {
    padding: 7px;
    background: linear-gradient(to bottom, #333, #222);
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
  }
  
  #chat-submit:hover {
    background: linear-gradient(to bottom, #444, #333);
  }