      @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
      *, *::before, *::after { box-sizing: border-box; }

      .wc {
        --gap: 10px;
        --card-pad-v: 8px;
        --card-pad-h: 6px;
        --w-mult: 1.34;
        max-width: 700px;
        width: 100%;
        margin: 0 auto 32px;
        overflow: hidden;
        font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
      }
      #title { margin: 0 0 6px 0; }
      .copy { font-size: 14px; color: #555; margin-bottom: 12px; text-align: left; line-height: 1.4; }

      .controls {
        display:grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items:center;
        margin-bottom: 10px;
      }
      .left { display:flex; gap:8px; align-items:center; position:relative; min-width:0; }
      #locationInput {
        width: 200px;
        padding: 5px;
        font-size: 13px;
        text-align: center;
        border: 2px solid #d7e2fa;
        border-radius: 6px;
        margin-left: 2px;
      }
      .autocomplete-list {
        position: absolute;
        top: 35px;
        left: 0;
        font-size: 13px;
        background: white;
        border: 1px solid #ccc;
        max-height: 200px;
        overflow-y: auto;
        width: 200px;
        z-index: 100;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      }
      .autocomplete-item { padding:6px 10px; cursor:pointer; }
      .autocomplete-item:hover { background:#f0f0f0; }

      button { padding: 6px 10px;
        font-size: 13px;
        cursor: pointer;
        background: #eeeeee;
        border: 2px solid #cccccc;
        border-radius: 6px;
        white-space: nowrap; }
      .clear { white-space:nowrap; }

      .grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--gap);
        justify-items: stretch;
      }

      .clock-card {
        position: relative;
        padding: var(--card-pad-v) var(--card-pad-h);
        border-radius: 10px;
        border: 1px solid #eee;
        background: transparent;
        min-width: 0;
      }

      .remove-btn {
        position:absolute; top:6px; right:6px;
        border:none; background:transparent;
        color:#f43f5e; font-size:18px; line-height:1;
        cursor:pointer; z-index:10;
        display:inline-flex; align-items:center; justify-content:center;
        width:28px; height:28px;
        -webkit-tap-highlight-color: transparent;
      }

      .badge {
        position:absolute; top:6px; left:6px; font-size:11px; color:#666;
        background:#f3f4f6; border:1px solid #e5e7eb; padding:2px 6px; border-radius:999px;
      }

      .caption {
        margin-top: 8px;
        text-align:center; font-size:14px; color:#222;
        font-weight:600;
        white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
      }

      .flip-wrap {
        --h: 140px;
        display:flex; align-items:center; justify-content:center; gap: 12px;
        padding-top: 10px;
        min-width: 0;
        margin-top: 25px;
      }
      .sep {
        font-weight:600;
        line-height:1;
        font-size: calc(var(--h) * 0.52);
        opacity: 0.85;
        margin: 0 2px;
      }

      .clock-card.day  .tile { background:#fff; color:#111; border-color:#e5e7eb; }
      .clock-card.night .tile { background:#111; color:#fff; border-color:#222; box-shadow: inset 0 0 0 1px #1d1d1d; }
      .clock-card.day  .sep  { color:#333; }
      .clock-card.night .sep { color:#ddd; }

      .tile {
        position:relative;
        height: var(--h);
        --w: calc(var(--h) * var(--w-mult));
        width: var(--w);
        border-radius: 8px;
        border: 1px solid;
        overflow:hidden;
        perspective: 600px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
      }

      .half {
        position:absolute; left:0; right:0; height:50%;
        overflow:hidden;
        backface-visibility: hidden;
      }
      .upper { top:0; border-bottom: 1px solid rgba(0,0,0,0.08); }
      .lower { bottom:0; }

      .glyph {
        display:block;
        height: var(--h);
        line-height: var(--h);
        font-weight:600;
        font-size: min(calc(var(--h) * 0.66), calc(var(--w) * 0.80));
        text-align:center;
        will-change: transform;
      }
      .upper .glyph { transform: translateY(0); }
      .lower .glyph { transform: translateY(-50%); }

      .flip-upper, .flip-lower {
        position:absolute; left:0; right:0; height:50%;
        overflow:hidden; backface-visibility:hidden;
      }
      .flip-upper { top:0; transform-origin: center bottom; }
      .flip-lower { bottom:0; transform-origin: center top; }
      .flip-upper .glyph,
      .flip-lower .glyph {
        display:block;
        height: var(--h);
        line-height: var(--h);
        font-weight:600;
        font-size: min(calc(var(--h) * 0.66), calc(var(--w) * 0.80));
        text-align:center;
      }
      .flip-upper .glyph { transform: translateY(0); }
      .flip-lower .glyph { transform: translateY(-50%); }

      @keyframes flipTop {
        0%   { transform: rotateX(0deg); }
        100% { transform: rotateX(-90deg); }
      }
      @keyframes flipBottom {
        0%   { transform: rotateX(90deg); }
        100% { transform: rotateX(0deg); }
      }
      .animate-top   { animation: flipTop 220ms ease-in forwards; }
      .animate-bottom{ animation: flipBottom 260ms ease-out forwards; }
      
@media (min-width: 650px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}