/**
 * File: assets/css/index.css
 * Version: 1.4.0
 * Description: Mobile-first visual system, landing page and auth screens for Chatting.im.
 */

:root {
    --bg: #f7f3ea;
    --bg-deep: #eee6d5;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --surface-soft: #fbf8f1;
    --text: #171411;
    --muted: #756f65;
    --line: rgba(31, 24, 17, 0.12);
    --line-strong: rgba(31, 24, 17, 0.18);
    --primary: #174f3f;
    --primary-2: #226a55;
    --primary-soft: #dfeee8;
    --gold: #d9a441;
    --peach: #f3c7a4;
    --danger: #a33a2e;
    --shadow: 0 24px 80px rgba(52, 39, 21, 0.12);
    --shadow-soft: 0 16px 40px rgba(52, 39, 21, 0.08);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max: 1160px;
	
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(circle at 15% 8%, rgba(243, 199, 164, 0.55), transparent 28rem),
        radial-gradient(circle at 90% 15%, rgba(223, 238, 232, 0.95), transparent 26rem),
        linear-gradient(135deg, var(--bg), var(--bg-deep));
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(23, 20, 17, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 20, 17, 0.035) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 80%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

textarea {
    resize: vertical;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 7px 0;
    background: transparent;
    backdrop-filter: none;
}

.site-header.slim {
    width: min(var(--max), calc(100% - 32px));
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 10px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.brand-mark {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.28), transparent 26%),
        linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(23, 79, 63, 0.24);
}

.header-link,
.header-pill,
.header-icon-button,
.logout-button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 750;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.language-selector {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    margin: 0;
}

.language-selector::after {
    position: absolute;
    right: 11px;
    width: 7px;
    height: 7px;
    pointer-events: none;
    content: "";
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.78;
}

.language-selector select {
    width: auto;
    min-width: 94px;
    height: 34px;
    padding: 0 30px 0 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    appearance: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(251, 248, 241, 0.7));
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    box-shadow: 0 10px 26px rgba(52, 39, 21, 0.06);
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.language-selector select:hover {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(223, 238, 232, 0.52));
    border-color: rgba(23, 79, 63, 0.2);
    box-shadow: 0 12px 30px rgba(23, 79, 63, 0.08);
}

.language-selector select:focus {
    background: #fff;
    border-color: rgba(23, 79, 63, 0.36);
    box-shadow: 0 0 0 4px rgba(23, 79, 63, 0.1);
}

.language-selector select:active {
    transform: translateY(1px) scale(0.99);
}

.header-icon-button,
.logout-button {
    justify-content: center;
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    box-shadow: none;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.header-icon-button:hover,
.logout-button:hover {
    color: var(--danger);
    background: rgba(255, 255, 255, 0.44);
    border-color: transparent;
}

.header-icon-button:active,
.logout-button:active {
    transform: translateY(1px) scale(0.96);
}

.header-icon-button svg,
.logout-button svg {
    width: 14px;
    height: 14px;
}

.header-pill {
    max-width: 210px;
    min-height: 30px;
    padding: 0 10px;
    color: var(--muted);
    font-size: 12px;
    background: transparent;
    border-color: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-notice {
    position: fixed;
    top: 54px;
    right: max(16px, calc((100vw - var(--max)) / 2));
    z-index: 80;
    width: min(360px, calc(100% - 32px));
    animation: languageNoticeIn 0.28s ease both;
}

.language-notice-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(52, 39, 21, 0.14);
    backdrop-filter: blur(18px);
}

.language-notice strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.language-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.language-notice-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.language-notice-link,
.language-notice-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.language-notice-link {
    min-height: 32px;
    padding: 0 11px;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 24px rgba(23, 79, 63, 0.18);
}

.language-notice-close {
    width: 32px;
    height: 32px;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.62);
}

.language-notice-link:hover {
    box-shadow: 0 12px 30px rgba(23, 79, 63, 0.24);
}

.language-notice-close:hover {
    color: var(--danger);
    background: #fff;
}

.language-notice-link:active,
.language-notice-close:active {
    transform: translateY(1px) scale(0.98);
}

.language-notice.is-hiding {
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.page-shell {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 70px;
}

.hero {
    display: grid;
    gap: 34px;
    align-items: center;
    min-height: calc(100svh - 116px);
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(223, 238, 232, 0.72);
    border: 1px solid rgba(23, 79, 63, 0.12);
    border-radius: 999px;
}

.eyebrow::before {
    width: 8px;
    height: 8px;
    content: "";
    background: var(--gold);
    border-radius: 99px;
    box-shadow: 0 0 0 5px rgba(217, 164, 65, 0.16);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(46px, 13vw, 106px);
    line-height: 0.9;
    letter-spacing: -0.085em;
}

.hero p {
    max-width: 620px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: clamp(17px, 4vw, 22px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    font-weight: 850;
    letter-spacing: -0.02em;
    border: 0;
    border-radius: 999px;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn-primary {
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.24), transparent 26%),
        linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 36px rgba(23, 79, 63, 0.24);
}

.btn-primary:hover {
    box-shadow: 0 18px 46px rgba(23, 79, 63, 0.3);
}

.btn-ghost,
.btn-soft {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
}

.btn-soft {
    background: var(--primary-soft);
}

.btn-soft.active {
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: rgba(23, 79, 63, 0.2);
    box-shadow: 0 10px 24px rgba(23, 79, 63, 0.18);
}

.btn-wide {
    width: 100%;
}

.btn-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
}

.hero-card {
    position: relative;
    min-height: 360px;
}

.hero-card::before {
    position: absolute;
    inset: 10px;
    content: "";
    background:
        radial-gradient(circle at 30% 20%, rgba(217, 164, 65, 0.42), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(23, 79, 63, 0.22), transparent 32%),
        rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 42px;
    filter: blur(0.2px);
    transform: rotate(-3deg);
}

.chat-window {
    position: relative;
    max-width: 460px;
    margin: 0 auto;
    padding: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.chat-window-top {
    display: flex;
    gap: 7px;
    margin-bottom: 26px;
}

.chat-window-top span {
    width: 11px;
    height: 11px;
    background: var(--line-strong);
    border-radius: 99px;
}

.bubble {
    width: fit-content;
    max-width: 88%;
    margin-bottom: 12px;
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 18px;
}

.bubble.visitor {
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.bubble.owner {
    margin-left: auto;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.feature-strip {
    display: grid;
    gap: 14px;
    margin: 28px 0 70px;
}

.feature-strip article {
    padding: 22px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.feature-strip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    letter-spacing: -0.03em;
}

.feature-strip span {
    color: var(--muted);
    line-height: 1.5;
}

.create-panel {
    display: grid;
    gap: 24px;
    align-items: start;
    padding: 22px;
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.section-title span {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title h2 {
    margin-bottom: 12px;
    font-size: clamp(32px, 9vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.section-title p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.card-form {
    display: grid;
    gap: 14px;
}

.card-form {
    padding: 16px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 28px;
}

label {
    display: grid;
    gap: 7px;
}

label span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

input {
    height: 48px;
    padding: 0 14px;
}

textarea {
    padding: 13px 14px;
    line-height: 1.45;
}

input:focus,
textarea:focus {
    background: #fff;
    border-color: rgba(23, 79, 63, 0.35);
    box-shadow: 0 0 0 4px rgba(23, 79, 63, 0.1);
}

.slug-row {
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.slug-row span {
    flex: none;
    padding-left: 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.slug-row input {
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.create-verification-wrap,
.inline-auth {
    display: grid;
    gap: 10px;
}

.auth-inline-button,
.inline-auth-request {
    min-height: 44px;
    font-size: 13px;
}

.auth-code-block,
.inline-auth-code {
    display: grid;
    gap: 9px;
    padding: 12px;
    background: rgba(223, 238, 232, 0.42);
    border: 1px solid rgba(23, 79, 63, 0.12);
    border-radius: 18px;
}

.auth-code-block[hidden],
.inline-auth-code[hidden] {
    display: none;
}

.auth-code-row {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-code-row input {
    padding-right: 46px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-align: center;
}

.auth-code-status {
    position: absolute;
    right: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--primary);
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 999px;
}

.auth-code-status[data-state="valid"],
.auth-code-status.valid {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 8px 18px rgba(23, 79, 63, 0.2);
}

.auth-code-status[data-state="invalid"],
.auth-code-status.invalid {
    color: #fff;
    background: var(--danger);
}

.auth-code-status[data-state="checking"],
.auth-code-status.loading {
    color: var(--primary);
    background: #fff;
}

.auth-helper {
    min-height: 17px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.auth-helper[data-state="success"],
.auth-helper.success {
    color: var(--primary);
}

.auth-helper[data-state="error"],
.auth-helper.error {
    color: var(--danger);
}

input.is-readonly {
    color: var(--muted);
    background: rgba(251, 248, 241, 0.72);
}

.card-form button[type="submit"]:disabled,
.auth-form button[type="submit"]:disabled {
    opacity: 0.52;
}

.form-result {
    display: grid;
    gap: 4px;
    max-height: 132px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    background: var(--primary-soft);
    border: 1px solid rgba(23, 79, 63, 0.12);
    border-radius: 16px;
    overflow-wrap: anywhere;
    word-break: break-word;
    scrollbar-width: thin;
}

.form-result[hidden] {
    display: none;
}

.form-result strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.form-result a {
    display: block;
    color: var(--primary);
    font-weight: 900;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.form-result-text {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.form-result.error {
    color: var(--danger);
    background: #fff0ec;
    border-color: rgba(163, 58, 46, 0.16);
}

.result-code {
    min-height: 96px;
    margin-top: 10px;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 12px;
}

.center-shell {
    display: grid;
    width: min(980px, calc(100% - 32px));
    min-height: calc(100svh - 48px);
    margin: 0 auto;
    padding: 8px 0 14px;
    place-items: center;
}

.language-footer {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 34px;
}

.language-footer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.language-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

.language-footer-link:hover {
    background: #fff;
    border-color: rgba(23, 79, 63, 0.22);
    box-shadow: 0 10px 24px rgba(23, 79, 63, 0.08);
}

.language-footer-link.active {
    color: #fff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: rgba(23, 79, 63, 0.24);
    box-shadow: 0 10px 24px rgba(23, 79, 63, 0.18);
}

.language-footer-link:active {
    transform: translateY(1px) scale(0.98);
}



.notice-card {
    width: min(520px, 100%);
    padding: 28px;
    text-align: center;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.notice-card h1 {
    margin-bottom: 10px;
    font-size: 34px;
    letter-spacing: -0.05em;
}

.notice-card p {
    color: var(--muted);
    line-height: 1.55;
}

.auth-shell {
    display: grid;
    width: min(560px, calc(100% - 32px));
    min-height: calc(100svh - 48px);
    margin: 0 auto;
    padding: 24px 0;
    place-items: center;
}

.auth-card {
    position: relative;
    display: grid;
    gap: 18px;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 34px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.auth-card::before {
    position: absolute;
    top: -120px;
    right: -100px;
    width: 240px;
    height: 240px;
    pointer-events: none;
    content: "";
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.65), transparent 24%),
        linear-gradient(135deg, rgba(217, 164, 65, 0.32), rgba(23, 79, 63, 0.18));
    border-radius: 999px;
    filter: blur(2px);
}

.auth-orb {
    position: absolute;
    top: -90px;
    right: -80px;
    width: 220px;
    height: 220px;
    pointer-events: none;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.7), transparent 24%),
        linear-gradient(135deg, rgba(217, 164, 65, 0.34), rgba(23, 79, 63, 0.2));
    border-radius: 999px;
    filter: blur(1px);
}

.auth-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    text-align: center;
}

.auth-copy h1 {
    margin: 0;
    font-size: clamp(32px, 9vw, 52px);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.auth-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.auth-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    padding: 16px;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 26px;
}

.auth-code-panel {
    display: grid;
    gap: 8px;
}

.auth-actions {
    display: grid;
    gap: 10px;
}

.auth-secondary-link {
    justify-self: center;
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
}

.auth-secondary-link:hover {
    text-decoration: underline;
}

.auth-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}


@media (min-width: 720px) {
    .hero-actions {
        flex-direction: row;
    }

    .btn-wide {
        width: auto;
    }

    .feature-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .create-panel {
        grid-template-columns: 0.9fr 1.1fr;
        padding: 34px;
    }

    .card-form {
        padding: 22px;
    }



    .create-verification-wrap,
    .inline-auth {
        gap: 12px;
    }

    .auth-inline-button,
    .inline-auth-request {
        min-height: 46px;
    }

    .auth-card {
        padding: 28px;
    }

    .auth-form {
        padding: 22px;
    }

}

@media (min-width: 960px) {
    .hero {
        grid-template-columns: 1fr 0.72fr;
    }

    
}

@media (max-width: 520px) {
    .site-header {
        width: min(var(--max), calc(100% - 24px));
    }

    .page-shell,
    .center-shell {
        width: calc(100% - 24px);
    }

    

    .form-result {
        max-height: 118px;
        padding: 9px 10px;
        font-size: 11px;
        border-radius: 14px;
    }

    .form-result strong {
        font-size: 12px;
    }

    .form-result-text {
        font-size: 11px;
    }

    .header-pill {
        max-width: 100%;
        font-size: 12px;
    }
	
	.header-actions {
        gap: 6px;
    }

    .language-notice {
        top: 48px;
        right: 12px;
        width: calc(100% - 24px);
    }

    .language-notice-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 13px;
        border-radius: 20px;
    }

    .language-notice-actions {
        justify-content: space-between;
    }

    .language-notice-link {
        flex: 1;
    }

    .language-footer {
        width: calc(100% - 24px);
        padding-bottom: 24px;
    }

    .language-footer-list {
        justify-content: flex-start;
        padding: 12px;
        border-radius: 20px;
    }

    .language-footer-link {
        min-height: 32px;
        padding: 0 11px;
        font-size: 12px;
    }

}

@media (max-width: 380px) {
    .brand {
        gap: 8px;
        font-size: 14px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
        font-size: 20px;
        border-radius: 13px;
    }

    .header-link {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .language-notice {
        top: 46px;
    }

    .language-notice strong {
        font-size: 13px;
    }

    .language-notice p {
        font-size: 11px;
    }

    .language-notice-link {
        font-size: 11px;
    }
}

@media (max-height: 680px) {
    

    input {
        height: 44px;
    }

    textarea {
        padding: 11px 12px;
    }

    .btn {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: no-preference) {
	
	.language-notice {
        animation: languageNoticeIn 0.28s ease both;
    }

    @keyframes languageNoticeIn {
        from {
            opacity: 0;
            transform: translateY(-8px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
	
    .hero-card::before {
        animation: ciFloat 8s ease-in-out infinite;
    }

    

    @keyframes ciFloat {
        0%,
        100% {
            transform: rotate(-3deg) translateY(0);
        }

        50% {
            transform: rotate(-1deg) translateY(-10px);
        }
    }
}