/* ===== composer ===== */
.composer {
    max-width: 760px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: var(--panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    transition: 0.2s;
}

.composer:focus-within {
    border-color: color-mix(in srgb, var(--brand) 65%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow);
}

.composer textarea {
    display: block;
    width: 100%;
    min-height: 62px;
    max-height: 220px;
    padding: 20px 22px 8px;
    border: 0;
    background: transparent;
    font-size: 1.16rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    resize: none;
    outline: none;
    overflow: hidden;
}

.composer textarea::placeholder { color: var(--ink-3); font-weight: 400; }

.composer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px 10px 22px;
    border-top: 1px solid var(--line);
}

.composer-count { font-size: 0.78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.composer-count b { color: var(--ink-2); font-weight: 600; }
.composer-tools { display: flex; align-items: center; gap: 6px; }

.ghostbtn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--ink-3);
    transition: 0.16s;
}

.ghostbtn:hover { color: var(--ink); background: var(--panel-2); }

/* ===== tooltabs ===== */
.tooltabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 18px;
}

.tooltabs::-webkit-scrollbar { display: none; }

.tooltab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.18s;
}

.tooltab i { font-style: normal; }
.tooltab:hover { color: var(--ink); background: var(--panel-2); }

.tooltab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--brand) 90%, transparent);
}

/* ===== panel ===== */
.panels { position: relative; }

.panel {
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel.is-active { display: block; animation: fade 0.24s ease; }

@keyframes fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--line);
}

.panel-id { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }

.panel-index {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--brand);
    padding-top: 6px;
    font-variant-numeric: tabular-nums;
}

.panel-title { font-size: 1.24rem; letter-spacing: -0.03em; }
.panel-sub { font-size: 0.86rem; color: var(--ink-3); margin-top: 3px; }
.panel-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-body { padding: 20px 24px 24px; }
.panel-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); }

.rail-title {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 22px 0 12px;
}

.rail-title:first-child { margin-top: 0; }
.rail-title span { color: var(--ink-3); opacity: 0.7; }

/* ===== segment ===== */
.segment {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-2);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.segment::-webkit-scrollbar { display: none; }

.seg {
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    transition: 0.16s;
}

.seg:hover { color: var(--ink); }
.seg.is-active { background: var(--ink); color: var(--bg); }

/* ===== rows ===== */
.rows {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg-2) 55%, transparent);
    overflow: hidden;
}

.rows + .rail-title { margin-top: 26px; }

.row {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 13px 16px;
    border-top: 1px solid var(--line);
    transition: background 0.16s;
}

.row:first-child { border-top: 0; }
.row:hover { background: var(--panel-2); }

.row-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 0.82rem;
    color: var(--ink-3);
    overflow: hidden;
}

.row-label a {
    color: var(--ink-2);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-label a:hover { color: var(--brand); }

.row-label b {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-label .tag {
    flex: none;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.row-text {
    font-size: 1.06rem;
    line-height: 1.55;
    word-break: break-word;
    white-space: pre-line;
}

.row-actions { display: flex; align-items: center; gap: 6px; }

.copybtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.16s;
}

.copybtn svg { width: 16px; height: 16px; }
.copybtn:hover { color: var(--ink); border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.copybtn.is-done { color: #06231a; background: var(--ok); border-color: var(--ok); }

.favbtn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--ink-3);
    opacity: 0;
    transition: 0.16s;
}

.favbtn svg { width: 17px; height: 17px; }
.row:hover .favbtn, .favbtn.is-on { opacity: 1; }
.favbtn:hover { color: var(--hot); background: var(--panel-2); }
.favbtn.is-on { color: var(--hot); }
.favbtn.is-on svg { fill: var(--hot); }

/* ===== hero result ===== */
.heroresult {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 40px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg-2) 60%, transparent);
    text-align: center;
}

.heroresult-text {
    font-size: clamp(1.5rem, 5.4vw, 2.6rem);
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-line;
}

.heroresult-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ===== buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--panel-2);
    color: var(--ink);
    font-size: 0.87rem;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.18s;
}

.btn svg { width: 18px; height: 18px; }
.btn:hover { border-color: var(--brand); transform: translateY(-1px); }

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--brand) 95%, transparent);
}

.btn-primary:hover { filter: brightness(1.08); }

/* ===== chips ===== */
.chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--bg-2) 45%, transparent);
    font-size: 0.86rem;
    color: var(--ink-2);
    transition: 0.16s;
}

.chip:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-1px); }
.chip.is-active { border-color: var(--brand); color: var(--ink); }

.chip-icon { font-style: normal; flex: none; }
.chip-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-sample { flex: none; color: var(--ink-3); font-size: 0.92rem; }

/* ===== symbols ===== */
.symbolgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.sym {
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--bg-2) 45%, transparent);
    font-size: 1.28rem;
    line-height: 1;
    transition: 0.14s;
}

.sym:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 16%, transparent);
    transform: translateY(-2px) scale(1.04);
}

.sym.is-done { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 22%, transparent); }

/* ===== stats / steps / faq ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    overflow: hidden;
}

.stat { padding: 22px 16px; border-left: 1px solid var(--line); text-align: center; }
.stat:first-child { border-left: 0; }

.stat b {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat span {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.steps {
    display: grid;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    overflow: hidden;
}

.step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 20px 22px;
    border-top: 1px solid var(--line);
}

.step:first-child { border-top: 0; }

.step-num {
    grid-row: span 2;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--brand);
}

.step h3 { font-size: 1rem; font-weight: 650; }
.step p { font-size: 0.88rem; color: var(--ink-2); }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    flex: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--brand);
    transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: 0.9rem; color: var(--ink-2); }

.about-copy { max-width: 900px; }
.about-copy p { color: var(--ink-2); font-size: 0.94rem; margin-bottom: 12px; }

/* ===== skeleton ===== */
.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skeleton {
    height: 52px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%);
    background-size: 220% 100%;
    animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
    from { background-position: 120% 0; }
    to { background-position: -120% 0; }
}

/* ===== modal / toast ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.modal.is-open { opacity: 1; visibility: visible; }

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 12, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-box {
    position: relative;
    width: 92%;
    max-width: 470px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--solid) 92%, transparent);
    box-shadow: var(--shadow);
    transform: scale(0.97);
    transition: transform 0.2s;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
}

.modal.is-open .modal-box { transform: none; }

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.modal-head h3 { font-size: 0.98rem; }

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 14px;
    overflow-y: auto;
}

.langitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--ink-2);
    transition: 0.16s;
}

.langitem:hover { background: var(--panel-2); color: var(--ink); }
.langitem.is-active { background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--ink); }

.share-body { padding: 16px 18px 20px; }

.share-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    color: var(--ink-2);
    transition: 0.16s;
}

.share-item:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); }
.share-item b { font-size: 1.1rem; font-weight: 400; }

.share-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.share-link input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-2);
}

.share-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    margin-bottom: 10px;
}

.share-field label {
    flex: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.share-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(22px + var(--safe-b));
    z-index: 200;
    padding: 11px 20px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: color-mix(in srgb, var(--solid) 94%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    font-size: 0.86rem;
    font-weight: 600;
    opacity: 0;
    transform: translate(-50%, 70px);
    transition: 0.26s;
    pointer-events: none;
    max-width: 88vw;
    text-align: center;
}

.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ===== layout refresh: flatter chrome, clearer grouping ===== */
.tooltabs {
    gap: 4px;
    padding: 5px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--solid) 70%, transparent);
    margin-bottom: 16px;
}

.tooltab {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tooltab.is-active {
    background: var(--ink);
    color: var(--bg);
    box-shadow: none;
}

.panel {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.panel-head {
    align-items: center;
    padding: 16px 20px;
}

.panel-head.is-plain { justify-content: flex-end; border-bottom: 0; }

.panel-title { font-size: 1.08rem; }
.panel-sub { font-size: 0.82rem; }
.panel-body { padding: 16px 20px 20px; }
.panel-foot { padding: 14px 20px 18px; }
.panel-foot .morelink { margin-top: 0; }

.switcher { margin-bottom: 18px; }

.switcher-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.switcher-head h2 { font-size: 1.02rem; letter-spacing: -0.02em; }
.switcher-head p { font-size: 0.82rem; color: var(--ink-3); }

.browse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.browse-card {
    padding: 20px 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.browse-card h3 {
    margin-bottom: 14px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.browse-card .chips { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.morelink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
    transition: 0.16s;
}

.morelink:hover { color: var(--brand); gap: 9px; }
.morelink svg { width: 15px; height: 15px; }

/* long link lists stay folded until asked for */
.foot-fold > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ink-3);
    transition: 0.16s;
}

.foot-fold > summary::-webkit-details-marker { display: none; }
.foot-fold > summary::after { content: '+'; margin-left: auto; font-size: 1rem; letter-spacing: 0; }
.foot-fold[open] > summary::after { content: '−'; }
.foot-fold > summary:hover { color: var(--ink-2); }
.foot-fold[open] > summary { margin-bottom: 14px; }
.foot-fold span { opacity: 0.65; }

/* stats fold into the hero instead of owning a section */
.hero .stats {
    margin-top: 22px;
    max-width: 660px;
    border-radius: var(--radius);
}

.hero .stat { padding: 13px 10px; }

.hero .stat b {
    font-size: 1.1rem;
    background: none;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
}

.hero .stat span { font-size: 0.64rem; letter-spacing: 0.08em; }

@media (max-width: 760px) {
    .browse-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .tooltabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tooltab { padding: 9px 6px; font-size: 0.78rem; }
    .switcher-head p { display: none; }
}

/* ===== ad slots ===== */
.adslot {
    width: min(970px, calc(100% - 32px));
    margin: 26px auto;
    padding: 10px 12px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    text-align: center;
}

.adslot-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.adslot .adsbygoogle { min-height: 90px; }

/* ===== cookie consent ===== */
.cookiebar {
    position: fixed;
    left: 50%;
    bottom: calc(16px + var(--safe-b));
    z-index: 210;
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(880px, calc(100vw - 32px));
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 14px 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--solid) 96%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    transform: translate(-50%, 140%);
    transition: transform 0.32s ease;
}

.cookiebar[hidden] { display: none; }
.cookiebar.is-on { transform: translate(-50%, 0); }

.cookiebar-body b { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.cookiebar-body p { font-size: 0.8rem; color: var(--ink-2); }
.cookiebar-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.cookiebar-actions { display: flex; gap: 8px; flex: none; }

.btn-sm { padding: 8px 14px; font-size: 0.8rem; }

.linkbtn {
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.linkbtn:hover { color: var(--brand); }

@media (max-width: 700px) {
    .cookiebar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: calc(100vw - 24px);
        padding: 12px 14px;
    }
    .cookiebar-actions { justify-content: flex-end; }
    .cookiebar-actions .btn { flex: 1; }
    .adslot { margin: 20px auto; }
}

/* ===== responsive ===== */
@media (max-width: 900px) {
    .row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
    .row-label { grid-column: 1 / -1; }
    .row-text { font-size: 1rem; }
    .copybtn span { display: none; }
    .copybtn { padding: 8px; }
    .favbtn { opacity: 1; }
}

@media (max-width: 700px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .chips { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .heroresult { padding: 26px 16px; }
}

@media (max-width: 520px) {
    .panel-head { padding: 18px 16px 14px; }
    .panel-body { padding: 16px 16px 18px; }
    .panel-foot { padding: 16px 16px 18px; }
    .row { padding: 12px 13px; }
    .symbolgrid { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
    .lang-grid { grid-template-columns: 1fr; }
    .composer textarea { padding: 16px 16px 6px; font-size: 1.08rem; }
    .composer-bar { padding-left: 16px; }
    .tooltabs { border-radius: var(--radius); }
}