:root {
        --bg0: #070916;
        --bg1: #0b1030;
        --card: rgba(255, 255, 255, 0.06);
        --card-strong: rgba(255, 255, 255, 0.08);
        --stroke: rgba(255, 255, 255, 0.12);
        --stroke-strong: rgba(255, 255, 255, 0.18);
        --text: rgba(255, 255, 255, 0.92);
        --muted: rgba(255, 255, 255, 0.66);
        --muted2: rgba(255, 255, 255, 0.45);
        --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
        --shadow2: 0 12px 28px rgba(0, 0, 0, 0.35);
        --r: 18px;
        --r2: 14px;
        --gap: 14px;
        --accent0: #8a5cff;
        --accent1: #34d3ff;
        --accent2: #34ffae;
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        height: 100%;
      }

      body {
        margin: 0;
        color: var(--text);
        font: 500 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
          "Segoe UI Emoji";
        background: radial-gradient(1200px 800px at 20% 10%, rgba(138, 92, 255, 0.22), transparent 58%),
          radial-gradient(1000px 700px at 85% 10%, rgba(52, 211, 255, 0.18), transparent 58%),
          radial-gradient(900px 650px at 60% 88%, rgba(52, 255, 174, 0.14), transparent 58%),
          linear-gradient(180deg, var(--bg0), var(--bg1));
        overflow-x: hidden;
      }

      a {
        color: inherit;
        text-decoration: none;
      }

      .wrap {
        width: min(1120px, calc(100% - 40px));
        margin: 0 auto;
      }

      .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        backdrop-filter: blur(12px);
        background: linear-gradient(180deg, rgba(7, 9, 22, 0.84), rgba(7, 9, 22, 0.48));
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      }

      .topbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 0;
        gap: 18px;
      }

      .brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 240px;
      }

      .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2044%2044%27%3E%3Cdefs%3E%3CradialGradient%20id%3D%27g%27%20cx%3D%2735%25%27%20cy%3D%2730%25%27%20r%3D%2790%25%27%3E%3Cstop%20offset%3D%270%25%27%20stop-color%3D%27%23ffffff%27%20stop-opacity%3D%270.32%27/%3E%3Cstop%20offset%3D%2738%25%27%20stop-color%3D%27%238a5cff%27%20stop-opacity%3D%270.95%27/%3E%3Cstop%20offset%3D%2770%25%27%20stop-color%3D%27%2334d3ff%27%20stop-opacity%3D%270.90%27/%3E%3Cstop%20offset%3D%27100%25%27%20stop-color%3D%27%2334ffae%27%20stop-opacity%3D%270.70%27/%3E%3C/radialGradient%3E%3ClinearGradient%20id%3D%27s%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%271%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270%25%27%20stop-color%3D%27%23ffffff%27%20stop-opacity%3D%270.35%27/%3E%3Cstop%20offset%3D%2750%25%27%20stop-color%3D%27%23ffffff%27%20stop-opacity%3D%270.10%27/%3E%3Cstop%20offset%3D%27100%25%27%20stop-color%3D%27%23ffffff%27%20stop-opacity%3D%270%27/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%2742%27%20height%3D%2742%27%20rx%3D%2714%27%20fill%3D%27%23060914%27/%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%2742%27%20height%3D%2742%27%20rx%3D%2714%27%20fill%3D%27url(%23g)%27/%3E%3Cpath%20d%3D%27M11%2012.5c0-1.8%201.5-3.3%203.3-3.3h7.2c3.2%200%205.5%201.7%205.5%204.6%200%201.7-.8%203-2%203.7%201.9.7%203%202.2%203%204.3%200%203.4-2.5%205.4-6.1%205.4h-7.6c-1.8%200-3.3-1.5-3.3-3.3V12.5zm5.1%201.3v4h4.8c1.6%200%202.6-.8%202.6-2%200-1.3-1-2-2.6-2h-4.8zm0%206.3v4.4h5.2c2%200%203.1-.9%203.1-2.2%200-1.4-1.1-2.2-3.1-2.2h-5.2z%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.92%27/%3E%3Cpath%20d%3D%27M6%2031c7.5%204.5%2015.5%204.5%2032%200%27%20stroke%3D%27url(%23s)%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20opacity%3D%270.9%27/%3E%3C/svg%3E");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.18);
        position: relative;
        flex: 0 0 auto;
      }

      .brand-mark::after {
        content: none;
      }

      .brand-title {
        display: grid;
        gap: 2px;
      }

      .brand-3d {
        font-size: 22px;
        margin: 0;
        letter-spacing: 0.04em;
        font-weight: 900;
        line-height: 1.05;
        text-transform: uppercase;
        background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.76));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 rgba(0, 0, 0, 0.3), 0 3px 0 rgba(0, 0, 0, 0.28),
          0 4px 0 rgba(0, 0, 0, 0.25), 0 5px 0 rgba(0, 0, 0, 0.22), 0 10px 24px rgba(0, 0, 0, 0.5);
        transform: perspective(520px) rotateX(10deg) translateZ(0);
      }

      .brand-subtitle {
        color: var(--muted2);
        font-size: 12.5px;
        letter-spacing: 0.02em;
        white-space: nowrap;
      }

      .topbar-right {
        display: flex;
        align-items: center;
        gap: 14px;
      }

      .lang-box {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .lang-pill {
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.9);
        padding: 10px 12px;
        font-weight: 900;
        font-size: 13px;
        max-width: 260px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .lang-box button {
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.9);
        padding: 10px 12px;
        font-weight: 900;
        font-size: 13px;
        cursor: pointer;
      }

      .lang-box button:hover {
        background: rgba(255, 255, 255, 0.10);
      }

      .lang-box button[aria-pressed="true"] {
        background: rgba(138, 92, 255, 0.18);
        border-color: rgba(138, 92, 255, 0.45);
      }

      .clock {
        padding: 0;
        border-radius: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        min-width: 0;
        text-align: right;
      }

      .clock .dateLine {
        font-size: 13px;
        color: var(--muted2);
        letter-spacing: 0.02em;
      }

      .clock .time {
        margin-top: 2px;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0.04em;
      }

      .hero {
        padding: 34px 0 20px;
      }

      .hero-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
      }

      .home-ads {
        display: none;
      }

      body.has-tool-open .home-ad,
      body.has-tool-open .home-only {
        display: none !important;
      }

      .aff-box {
        width: 100%;
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: flex-start;
        border-radius: var(--r2);
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        padding: 12px;
        cursor: pointer;
      }

      .aff-box:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.18);
      }

      .aff-title {
        font-weight: 900;
        letter-spacing: 0.01em;
      }

      .aff-sub {
        margin-top: 2px;
        font-size: 12.5px;
        color: rgba(255, 255, 255, 0.68);
      }

      @media (max-width: 520px) {
        .aff-box {
          align-items: flex-start;
        }
      }

      .panel-ad {
        width: 100%;
      }

      .ad-slot-side {
        min-height: 160px;
      }

      .home-ads .ad-slot + .ad-slot {
        margin-top: 12px;
      }

      .home-inline-ad {
        margin: 0 0 18px;
      }

      .gutter-ads {
        display: none;
      }

      .ad-slot {
        border-radius: var(--r);
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        box-shadow: var(--shadow);
        overflow: hidden;
        padding: 12px;
        min-height: 0;
      }

      .ad-slot-inline {
        min-height: 72px;
      }

      .ad-slot-small {
        min-height: 260px;
      }

      .tool-ad {
        cursor: default;
        min-height: 156px;
        padding: 12px;
      }

      .tool-ad:hover {
        transform: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: var(--shadow2);
      }

      .tool-ad::before,
      .tool-ad::after {
        content: none;
      }

      .tool-ad-slot {
        width: 100%;
        min-height: 92px;
      }

      .footer-ad {
        display: none;
        flex: 0 0 220px;
      }

      .footer-ad-slot {
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        background: rgba(255, 255, 255, 0.03);
        padding: 8px;
        min-height: 72px;
      }

      .footer-copy {
        flex: 0 1 auto;
      }

      .ad-label {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.6);
        font-weight: 900;
        margin-bottom: 6px;
        letter-spacing: 0.02em;
      }

      @media (min-width: 1100px) {
        .hero-grid {
          grid-template-columns: 1fr 340px;
        }
        .home-ads {
          display: flex;
          flex-direction: column;
          position: sticky;
          top: 96px;
        }
      }

      @media (min-width: 980px) {
        .footer-ad {
          display: block;
        }
      }


      @media (min-width: 1600px) {
        .gutter-ads {
          display: block;
          position: fixed;
          top: 110px;
          z-index: 5;
          width: 180px;
          max-width: 180px;
        }

        .gutter-ads-left {
          left: max(12px, calc((100vw - 1120px) / 2 - 196px));
        }

        .gutter-ads-right {
          right: max(12px, calc((100vw - 1120px) / 2 - 196px));
        }

        .gutter-ads .ad-slot {
          min-height: 420px;
        }
      }

      .hero-card {
        border-radius: var(--r);
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
        box-shadow: var(--shadow);
        padding: 18px;
        min-height: 200px;
        position: relative;
        overflow: hidden;
      }

      .hero-card::before {
        content: "";
        position: absolute;
        inset: -180px -240px auto auto;
        width: 520px;
        height: 520px;
        background: radial-gradient(circle at 30% 30%, rgba(138, 92, 255, 0.22), transparent 58%),
          radial-gradient(circle at 70% 70%, rgba(52, 211, 255, 0.16), transparent 58%);
        filter: blur(0px);
        pointer-events: none;
      }

      .hero h1 {
        margin: 0;
        font-size: clamp(26px, 3.2vw, 40px);
        line-height: 1.05;
        letter-spacing: -0.02em;
      }

      .hero h1 span {
        background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.78));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }

      .hero p {
        margin: 10px 0 0;
        color: var(--muted);
        max-width: 62ch;
      }

      .hero-actions {
        margin-top: 14px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }

      .chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.86);
        font-weight: 700;
        font-size: 13px;
      }

      .chip strong {
        color: #fff;
      }

      .panel {
        border-radius: var(--r);
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: var(--shadow2);
        padding: 16px;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
      }

      .panel h3 {
        margin: 0;
        font-size: 13px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.72);
      }

      .controls {
        margin-top: 0;
        display: flex;
        flex: 1 1 560px;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-end;
      }

      .field {
        display: grid;
        gap: 8px;
      }

      .field-search {
        flex: 1 1 520px;
        min-width: 240px;
      }

      .search-row {
        display: flex;
        gap: 10px;
        align-items: flex-end;
      }

      .search-main {
        flex: 1 1 auto;
        min-width: 220px;
      }

      .search-side {
        display: flex;
        gap: 10px;
        align-items: flex-end;
        flex: 0 0 auto;
      }

      @media (max-width: 760px) {
        .search-row {
          flex-wrap: wrap;
        }
        .search-side {
          width: 100%;
        }
        .search-side .field-select {
          flex: 1 1 180px;
          min-width: 160px;
        }
      }

      .field-select {
        flex: 0 0 180px;
        min-width: 160px;
      }

      .field-actions {
        width: 100%;
        display: flex;
        justify-content: center;
      }

      .menu-bar {
        width: 100%;
        flex: 1 1 100%;
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: wrap;
        overflow: visible;
        padding: 2px 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
      }

      .menu-bar::-webkit-scrollbar {
        height: 8px;
      }

      .menu-bar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.16);
        border-radius: 999px;
      }

      .menu-btn {
        appearance: none;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.85);
        padding: 9px 12px;
        border-radius: 999px;
        font-weight: 800;
        font-size: 12.5px;
        cursor: pointer;
        user-select: none;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
      }

      .menu-ico {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
      }

      .menu-btn-text {
        display: inline-block;
      }

      @media (max-width: 920px) {
        .menu-bar {
          gap: 6px;
        }

        .menu-btn {
          padding: 8px 11px;
          font-size: 12px;
        }
      }

      @media (max-width: 600px) {
        .menu-bar {
          flex-wrap: nowrap;
          overflow-x: auto;
          overflow-y: hidden;
          -webkit-overflow-scrolling: touch;
          scroll-snap-type: x proximity;
          padding: 2px 0 8px;
        }

        .menu-btn {
          scroll-snap-align: start;
        }
      }

      .menu-btn:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.2);
      }

      .menu-btn:active {
        transform: translateY(0px);
      }

      .menu-btn[aria-selected="true"] {
        background: linear-gradient(135deg, rgba(138, 92, 255, 0.78), rgba(52, 211, 255, 0.65), rgba(52, 255, 174, 0.55));
        border-color: rgba(255, 255, 255, 0.16);
        color: rgba(7, 9, 22, 0.9);
      }

      .menu-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(52, 211, 255, 0.18);
      }

      .label {
        font-size: 12px;
        color: var(--muted2);
      }

      .suggest {
        margin-top: 8px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(10, 14, 36, 0.92);
        box-shadow: var(--shadow2);
        overflow: auto;
        max-height: 320px;
      }

      .suggest-item {
        width: 100%;
        text-align: left;
        display: grid;
        gap: 2px;
        padding: 10px 12px;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: transparent;
        color: rgba(255, 255, 255, 0.92);
        cursor: pointer;
      }

      .suggest-item:last-child {
        border-bottom: 0;
      }

      .suggest-item:hover,
      .suggest-item[aria-selected="true"] {
        background: rgba(255, 255, 255, 0.06);
      }

      .suggest-title {
        font-weight: 900;
        letter-spacing: -0.01em;
        font-size: 13px;
      }

      .suggest-sub {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.62);
      }

      .hl {
        background: rgba(52, 211, 255, 0.18);
        border: 1px solid rgba(52, 211, 255, 0.22);
        border-radius: 8px;
        padding: 1px 6px;
        margin: 0 2px;
      }

      input[type="search"],
      select {
        width: 100%;
        padding: 12px 12px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(7, 9, 22, 0.38);
        color: var(--text);
        outline: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
      }

      input[type="search"]::placeholder {
        color: rgba(255, 255, 255, 0.38);
      }

      input[type="search"]:focus,
      select:focus {
        border-color: rgba(52, 211, 255, 0.42);
        box-shadow: 0 0 0 3px rgba(52, 211, 255, 0.18);
      }

      .meta {
        margin-top: 0;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        color: var(--muted2);
        font-size: 12.5px;
        flex: 0 0 auto;
        align-self: center;
      }

      .meta > div {
        white-space: nowrap;
      }

      .main {
        padding: 10px 0 40px;
      }

      .grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: var(--gap);
      }

      .tools {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: var(--gap);
        margin-top: 14px;
      }

      .tool {
        border-radius: var(--r2);
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
        box-shadow: var(--shadow2);
        padding: 14px;
        display: grid;
        gap: 10px;
        position: relative;
        overflow: hidden;
        min-height: 156px;
        cursor: pointer;
        backdrop-filter: blur(10px);
        transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
      }

      .tool:hover {
        transform: translateY(-3px);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.22);
        box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
      }

      .tool:active {
        transform: translateY(0px);
      }

      .tool:focus-visible {
        outline: none;
        border-color: rgba(52, 211, 255, 0.42);
        box-shadow: 0 0 0 3px rgba(52, 211, 255, 0.18), var(--shadow2);
      }

      .tool::before {
        content: "";
        position: absolute;
        inset: -120px -140px auto auto;
        width: 340px;
        height: 340px;
        background: radial-gradient(circle at 30% 30%, rgba(138, 92, 255, 0.18), transparent 58%),
          radial-gradient(circle at 65% 65%, rgba(52, 211, 255, 0.12), transparent 58%);
        pointer-events: none;
      }

      .tool::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.06) 35%, transparent 70%);
        transform: translateX(-40%) skewX(-12deg);
        opacity: 0;
        transition: opacity 180ms ease;
        pointer-events: none;
      }

      .tool:hover::after {
        opacity: 1;
      }

      .tool-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
      }

      .tool-top-right {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-left: auto;
      }

      .fav-btn {
        appearance: none;
        width: 34px;
        height: 34px;
        border-radius: 12px;
        border: 1px solid rgba(255, 205, 60, 0.42);
        background: rgba(255, 205, 60, 0.12);
        color: rgba(255, 205, 60, 0.95);
        font-weight: 1000;
        cursor: pointer;
        line-height: 1;
        display: grid;
        place-items: center;
        transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
      }

      .fav-btn:hover {
        transform: translateY(-1px);
      }

      .fav-btn.on {
        border-color: rgba(255, 45, 45, 0.42);
        background: rgba(255, 45, 45, 0.14);
        color: rgba(255, 45, 45, 0.96);
      }

      .tool-ico {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: transparent;
        color: rgba(255, 255, 255, 0.92);
        display: grid;
        place-items: center;
        font-weight: 900;
        letter-spacing: 0.04em;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
        flex: 0 0 auto;
        overflow: hidden;
      }

      .tool-ico svg {
        width: 44px;
        height: 44px;
        display: block;
        filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35));
      }

      .tool-ico span {
        background: linear-gradient(135deg, rgba(138, 92, 255, 0.95), rgba(52, 211, 255, 0.9), rgba(52, 255, 174, 0.75));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
        transform: translateY(-0.5px);
      }

      .badge {
        font-size: 11px;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.78);
        white-space: nowrap;
      }

      .tool h4 {
        margin: 0;
        font-size: 15.5px;
        letter-spacing: -0.01em;
        line-height: 1.2;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .tool p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
      }

      .tool-bottom {
        margin-top: 4px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
      }

      .tool-stats {
        margin-left: auto;
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }

      .tags {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
      }

      .tag {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(0, 0, 0, 0.12);
        color: rgba(255, 255, 255, 0.68);
      }

      .modal {
        position: fixed;
        inset: 0;
        z-index: 60;
        display: grid;
        place-items: center;
      }

      .modal[hidden] {
        display: none;
      }

      .modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(10px);
      }

      .modal-card {
        position: relative;
        width: min(980px, calc(100% - 24px));
        max-height: calc(100% - 24px);
        overflow: auto;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(10, 14, 36, 0.92);
        box-shadow: var(--shadow);
      }

      .modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 14px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        position: sticky;
        top: 0;
        background: linear-gradient(180deg, rgba(10, 14, 36, 0.98), rgba(10, 14, 36, 0.86));
        backdrop-filter: blur(10px);
        z-index: 2;
      }

      .modal-title {
        font-weight: 900;
        letter-spacing: -0.01em;
        font-size: 15px;
      }

      .icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.9);
        font-weight: 900;
        cursor: pointer;
        transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
      }

      .icon-btn:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
      }

      .modal-body {
        padding: 14px;
      }

      .footer-social-wrapper {
        position: relative;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
      }

      .social-icons {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(10, 14, 36, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        padding: 8px;
        display: flex;
        gap: 12px;
        margin-bottom: 8px;
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow2);
        z-index: 10;
      }

      .social-icons[hidden] {
        display: none;
      }

      .social-icons a {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.9);
        transition: transform 120ms ease, background 120ms ease;
      }

      .social-icons a:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
      }


      .tool-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        padding: 10px 12px;
      }

      .tool-meta-used {
        color: rgba(255, 255, 255, 0.75);
        font-size: 12.5px;
        font-weight: 800;
      }

      .tool-meta-right {
        display: inline-flex;
        align-items: center;
        gap: 10px;
      }

      .tool-meta-label {
        color: rgba(255, 255, 255, 0.65);
        font-size: 12.5px;
        font-weight: 800;
        white-space: nowrap;
      }

      .tool-stars {
        display: inline-flex;
        gap: 6px;
      }

      .star-btn {
        width: 28px;
        height: 28px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.28);
        font-weight: 1000;
        cursor: pointer;
        line-height: 1;
      }

      .star-btn.on {
        color: rgba(255, 255, 255, 0.92);
        background: rgba(52, 211, 255, 0.14);
        border-color: rgba(52, 211, 255, 0.32);
      }

      .star-btn:hover {
        transform: translateY(-1px);
      }

      .heart-btn {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        border: 1px solid rgba(255, 99, 182, 0.38);
        background: rgba(255, 99, 182, 0.12);
        color: rgba(255, 99, 182, 0.95);
        font-weight: 1000;
        cursor: pointer;
        line-height: 1;
      }

      .heart-btn:hover {
        transform: translateY(-1px);
      }

      .heart-btn.liked {
        border-color: rgba(255, 45, 45, 0.42);
        background: rgba(255, 45, 45, 0.14);
        color: rgba(255, 45, 45, 0.96);
      }

      .tts-btn {
        height: 34px;
        min-width: 34px;
        padding: 0 10px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.92);
        font-weight: 900;
        cursor: pointer;
        line-height: 1;
      }

      .tts-btn:hover {
        transform: translateY(-1px);
      }

      .alpha-bar {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }

      .alpha-btn {
        height: 34px;
        min-width: 42px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.9);
        font-weight: 900;
        cursor: pointer;
        line-height: 1;
      }

      .alpha-btn:hover {
        transform: translateY(-1px);
      }

      .alpha-btn[aria-pressed="true"] {
        border-color: rgba(138, 92, 255, 0.55);
        background: rgba(138, 92, 255, 0.18);
      }

      .dict-group-row th {
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.86);
        font-weight: 1000;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .dict-subgroup-row th {
        background: rgba(255, 255, 255, 0.035);
        color: rgba(255, 255, 255, 0.78);
        font-weight: 950;
        letter-spacing: 0.06em;
        text-transform: uppercase;
      }

      .tool-panel {
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: var(--shadow2);
        padding: 12px;
      }

      .tool-row {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: flex-end;
      }

      .tool-row > * {
        flex: 1 1 220px;
      }

      .tool-label {
        font-size: 12px;
        color: var(--muted2);
        margin-bottom: 6px;
      }

      .tool-input {
        width: 100%;
        padding: 12px 12px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(7, 9, 22, 0.38);
        color: var(--text);
        outline: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
      }

      .tool-input:focus {
        border-color: rgba(52, 211, 255, 0.42);
        box-shadow: 0 0 0 3px rgba(52, 211, 255, 0.18);
      }

      .calc-display {
        display: grid;
        gap: 8px;
      }

      .calc-display .expr {
        font-weight: 900;
        letter-spacing: 0.02em;
        font-size: 14px;
      }

      .calc-display .result {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 0.03em;
        color: rgba(255, 255, 255, 0.92);
      }

      .keypad {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(4, 1fr);
      }

      .keypad.sci {
        grid-template-columns: repeat(6, 1fr);
      }

      .key {
        padding: 12px 10px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.92);
        font-weight: 900;
        letter-spacing: 0.02em;
        cursor: pointer;
        transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
        user-select: none;
      }

      .key:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
      }

      .key.primary {
        background: linear-gradient(135deg, rgba(138, 92, 255, 0.78), rgba(52, 211, 255, 0.65), rgba(52, 255, 174, 0.55));
        border-color: rgba(255, 255, 255, 0.16);
        color: rgba(7, 9, 22, 0.9);
      }

      .key.danger {
        background: rgba(255, 85, 122, 0.14);
        border-color: rgba(255, 85, 122, 0.22);
      }

      .hint {
        color: rgba(255, 255, 255, 0.62);
        font-size: 12.5px;
      }

      .result-box {
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(0, 0, 0, 0.12);
        padding: 12px;
        color: rgba(255, 255, 255, 0.86);
        font-size: 13px;
      }

      .result-box.state-loading {
        border-color: rgba(52, 211, 255, 0.28);
        background: rgba(52, 211, 255, 0.08);
      }

      .result-box.state-success {
        border-color: rgba(52, 255, 174, 0.26);
        background: rgba(52, 255, 174, 0.08);
      }

      .result-box.state-error {
        border-color: rgba(255, 85, 122, 0.28);
        background: rgba(255, 85, 122, 0.08);
      }

      .spinner {
        width: 18px;
        height: 18px;
        border-radius: 999px;
        border: 2px solid rgba(255, 255, 255, 0.18);
        border-top-color: rgba(52, 211, 255, 0.95);
        animation: spin 0.8s linear infinite;
        flex: 0 0 auto;
      }

      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      .schedule-wrap {
        margin-top: 12px;
        max-height: 360px;
        overflow: auto;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.08);
      }

      .tool-table {
        width: 100%;
        border-collapse: collapse;
      }

      .tool-table th,
      .tool-table td {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
        white-space: nowrap;
      }

      .tool-table thead th {
        position: sticky;
        top: 0;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(6px);
      }

      .excel-table-wrap {
        margin-top: 12px;
        max-height: 520px;
        overflow: auto;
        border: 2px solid #000;
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.18);
      }

      .excel-adv-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
      }

      .excel-adv-table th,
      .excel-adv-table td {
        border: 1px solid #000;
        padding: 8px 10px;
        text-align: left;
        white-space: nowrap;
        background: rgba(0, 0, 0, 0.28);
      }

      .excel-adv-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #000;
      }

      .excel-adv-table tbody tr:nth-child(even) td {
        background: rgba(0, 0, 0, 0.38);
      }

      .excel-adv-table tbody tr:hover td {
        background: rgba(255, 255, 255, 0.06);
      }

      .small-btn {
        padding: 8px 10px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.92);
        font-weight: 900;
        font-size: 12px;
        cursor: pointer;
        transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
        user-select: none;
        white-space: nowrap;
      }

      .small-btn:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
      }

      .small-btn:active {
        transform: translateY(0px);
      }

      .page-list {
        display: grid;
        gap: 10px;
      }

      .page-item {
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: var(--shadow2);
        padding: 12px;
        display: grid;
        gap: 10px;
      }

      .page-item-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
      }

      .page-title {
        font-weight: 900;
        letter-spacing: -0.01em;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.88);
      }

      .page-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
      }

      .crop-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(120px, 1fr));
        gap: 10px;
      }

      @media (max-width: 720px) {
        .crop-grid {
          grid-template-columns: repeat(2, minmax(120px, 1fr));
        }
      }

      .pdf-preview {
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        background: rgba(0, 0, 0, 0.12);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px;
        max-height: min(60vh, 520px);
      }

      .pdf-canvas {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 14px;
        background: #fff;
      }

      .img-stage {
        width: 100%;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(0, 0, 0, 0.12);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 10px;
        max-height: min(60vh, 520px);
      }

      .img-canvas {
        display: block;
        max-width: 100%;
        height: auto;
        border-radius: 14px;
        background: #101431;
      }

      .thumbs {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
      }

      .thumb {
        position: relative;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        padding: 10px;
        display: grid;
        gap: 8px;
      }

      .thumb-img {
        width: 100%;
        height: 140px;
        object-fit: contain;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.10);
      }

      .thumb-canvas {
        width: 100%;
        height: auto;
        border-radius: 12px;
        background: #fff;
        border: 1px solid rgba(255, 255, 255, 0.10);
        display: block;
      }

      .thumb-meta {
        display: grid;
        gap: 2px;
        min-width: 0;
      }

      .thumb-name {
        font-weight: 900;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.90);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .thumb-size {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.62);
      }

      .thumb-remove {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(0, 0, 0, 0.35);
        color: rgba(255, 255, 255, 0.92);
        font-weight: 900;
        cursor: pointer;
        line-height: 1;
      }

      .thumb-remove:hover {
        background: rgba(0, 0, 0, 0.55);
      }

      .img-editor-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 12px;
      }

      .img-editor-card {
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        box-shadow: var(--shadow2);
        padding: 12px;
        display: grid;
        gap: 10px;
      }

      .img-editor-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
      }

      .img-editor-name {
        font-weight: 900;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.92);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
      }

      .img-editor-canvas {
        width: 100%;
        height: auto;
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.12);
        display: block;
        cursor: crosshair;
      }

      .img-editor-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        align-items: center;
      }

      .img-editor-info {
        font-size: 12px;
      }

      .pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.85);
        font-weight: 800;
        font-size: 12px;
        white-space: nowrap;
      }

      .row-tight > * {
        flex: 1 1 160px;
      }

      .mono {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      }

      .abacus {
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.12));
        box-shadow: var(--shadow2);
        padding: 14px;
        overflow: hidden;
      }

      .abacus-frame {
        border-radius: 16px;
        padding: 14px;
        background: linear-gradient(135deg, #5a3a1f, #8a5a2b 38%, #3e2515);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -10px 18px rgba(0, 0, 0, 0.25);
      }

      .abacus-inner {
        border-radius: 14px;
        padding: 12px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.04));
        border: 1px solid rgba(255, 255, 255, 0.12);
        position: relative;
        overflow: hidden;
      }

      .abacus-inner::before {
        content: "";
        position: absolute;
        inset: -120px -160px auto auto;
        width: 360px;
        height: 360px;
        background: radial-gradient(circle at 30% 30%, rgba(255, 214, 140, 0.24), transparent 60%);
        pointer-events: none;
      }

      .abacus-rods {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 10px;
        align-items: end;
      }

      .rod {
        position: relative;
        height: 210px;
        border-radius: 14px;
        display: grid;
        place-items: center;
      }

      .rod::before {
        content: "";
        position: absolute;
        top: 10px;
        bottom: 10px;
        width: 8px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.45));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
        z-index: 0;
      }

      .bead {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        width: 24px;
        height: 16px;
        border-radius: 999px;
        background: radial-gradient(14px 10px at 35% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08)),
          linear-gradient(135deg, rgba(255, 189, 110, 0.95), rgba(198, 120, 55, 0.96));
        border: 1px solid rgba(0, 0, 0, 0.25);
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
        cursor: pointer;
        transition: top 120ms ease, transform 120ms ease, filter 120ms ease;
        touch-action: manipulation;
      }

      .bead:active {
        transform: translateX(-50%) scale(0.98);
      }

      .bead.dark {
        background: radial-gradient(14px 10px at 35% 30%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
          linear-gradient(135deg, rgba(193, 131, 82, 0.95), rgba(122, 70, 38, 0.98));
      }

      .bead.red {
        background: radial-gradient(14px 10px at 35% 30%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06)),
          linear-gradient(135deg, rgba(255, 108, 125, 0.92), rgba(160, 42, 64, 0.95));
      }

      .abacus-beam {
        position: absolute;
        left: 10px;
        right: 10px;
        top: 98px;
        height: 10px;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.08));
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        pointer-events: none;
      }

      .rod.selected::after {
        content: "";
        position: absolute;
        inset: 6px;
        border-radius: 14px;
        border: 1px solid rgba(52, 211, 255, 0.38);
        box-shadow: 0 0 0 3px rgba(52, 211, 255, 0.14);
        pointer-events: none;
      }

      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.92);
        font-weight: 800;
        font-size: 13px;
        cursor: pointer;
        transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
        user-select: none;
        white-space: nowrap;
      }

      .btn:hover {
        transform: translateY(-1px);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
      }

      .btn:active {
        transform: translateY(0px);
      }

      .btn.primary {
        background: linear-gradient(135deg, rgba(138, 92, 255, 0.78), rgba(52, 211, 255, 0.65), rgba(52, 255, 174, 0.55));
        border-color: rgba(255, 255, 255, 0.16);
        color: rgba(7, 9, 22, 0.9);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
      }

      .empty {
        border-radius: var(--r2);
        border: 1px dashed rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.04);
        padding: 18px;
        color: rgba(255, 255, 255, 0.7);
        text-align: center;
      }

      .footer {
        padding: 28px 0 34px;
        color: var(--muted2);
        font-size: 12.5px;
        text-align: center;
      }

      .footer-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
      }

      .footer-left {
        display: inline-flex;
        align-items: center;
        gap: 10px;
      }

      .footer-link {
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.9);
        padding: 8px 12px;
        border-radius: 12px;
        font-weight: 900;
        cursor: pointer;
      }

      .footer-link:hover {
        background: rgba(255, 255, 255, 0.10);
      }

      .footer .line {
        height: 1px;
        background: rgba(255, 255, 255, 0.08);
        margin-bottom: 14px;
      }

      .footer strong {
        color: rgba(255, 255, 255, 0.85);
      }

      @media (max-width: 920px) {
        .hero-grid {
          grid-template-columns: 1fr;
        }

        .brand {
          min-width: 0;
        }

        .clock {
          min-width: 0;
        }

        .meta {
          width: 100%;
          justify-content: space-between;
        }
      }

      @media (max-width: 520px) {
        .topbar-inner {
          padding: 14px 0;
        }

        .brand-mark {
          width: 40px;
          height: 40px;
          border-radius: 14px;
        }

        .brand-3d {
          font-size: 20px;
        }

        .clock {
          padding: 8px 10px;
          border-radius: 14px;
        }

        .clock .time {
          font-size: 15px;
        }

        .field-select {
          flex: 1 1 160px;
        }

        #clearBtn {
          width: 100%;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        .btn {
          transition: none;
        }

        .btn:hover {
          transform: none;
        }
      }
