.college-transliterator {
    --ct-accent: #00235e;
    --ct-accent-hover: #001a46;
    --ct-accent-soft: rgba(0, 35, 94, 0.065);
    --ct-text: #172033;
    --ct-muted: #596476;
    --ct-border: rgba(15, 23, 42, 0.16);
    --ct-border-strong: #8792a2;
    --ct-surface: #ffffff;
    --ct-surface-soft: #f7f8fa;
    --ct-success: #166534;
    --ct-warning-text: #6b3d00;
    --ct-warning-border: #d5a64b;
    --ct-warning-surface: #fff8e8;
    width: min(100%, 1040px);
    margin-inline: auto;
    color: var(--ct-text);
    color-scheme: light;
    font-size: 1rem;
    isolation: isolate;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.college-transliterator *,
.college-transliterator *::before,
.college-transliterator *::after {
    box-sizing: border-box;
}

.college-transliterator button,
.college-transliterator textarea,
.college-transliterator select,
.college-transliterator input {
    font: inherit;
    letter-spacing: inherit;
    margin: 0;
    text-transform: none;
}

.college-transliterator fieldset {
    min-inline-size: 0;
}

.college-transliterator button,
.college-transliterator label,
.college-transliterator summary,
.college-transliterator select {
    touch-action: manipulation;
}

.college-transliterator .college-transliterator__card {
    position: relative;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--ct-border);
    border-radius: clamp(20px, 3vw, 28px);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 20px 52px rgba(15, 23, 42, 0.075);
}


.college-transliterator .college-transliterator__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ct-muted);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
}

.college-transliterator .college-transliterator__status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #16803c;
    box-shadow: 0 0 0 4px rgba(22, 128, 60, 0.1);
}



.college-transliterator .college-transliterator__mode-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 14px 0 0;
    padding: 6px;
    border: 1px solid var(--ct-border);
    border-radius: 18px;
    background: var(--ct-surface-soft);
}

.college-transliterator .college-transliterator__mode-input,
.college-transliterator .college-transliterator__choice-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.college-transliterator .college-transliterator__mode-option {
    display: grid;
    min-width: 0;
    min-height: 50px;
    place-items: center;
    align-content: center;
    padding: 8px 10px;
    border: 1px solid var(--ct-border-strong);
    border-radius: 13px;
    background: transparent;
    color: #334155;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.college-transliterator .college-transliterator__mode-title {
    font-size: 0.96rem;
    font-weight: 730;
    line-height: 1.2;
}


.college-transliterator .college-transliterator__mode-input:checked + .college-transliterator__mode-option {
    border-color: var(--ct-accent);
    background: var(--ct-accent);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(0, 35, 94, 0.16);
}


.college-transliterator .college-transliterator__mode-input:focus-visible + .college-transliterator__mode-option,
.college-transliterator .college-transliterator__choice-input:focus-visible + .college-transliterator__choice,
.college-transliterator .college-transliterator__text-button:focus-visible,
.college-transliterator .college-transliterator__copy-button:focus-visible,
.college-transliterator .college-transliterator__settings summary:focus-visible,
.college-transliterator .college-transliterator__setting-field select:focus-visible,
.college-transliterator .college-transliterator__check input:focus-visible + span,
.college-transliterator .college-transliterator__textarea:focus-visible,
.college-transliterator .college-transliterator__footer a:focus-visible {
    outline: 3px solid #4f86d9;
    outline-offset: 3px;
}

.college-transliterator .college-transliterator__mode-hint {
    margin: 10px 3px 14px;
    color: var(--ct-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.college-transliterator .college-transliterator__workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
}

.college-transliterator .college-transliterator__panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--ct-border);
    border-radius: 18px;
    background: var(--ct-surface-soft);
}

.college-transliterator .college-transliterator__panel--output {
    background: var(--ct-accent-soft);
}

.college-transliterator .college-transliterator__panel-head {
    display: flex;
    min-width: 0;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.college-transliterator .college-transliterator__label {
    min-width: 0;
    color: var(--ct-text);
    font-size: 0.94rem;
    font-weight: 720;
}

.college-transliterator .college-transliterator__panel-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: var(--ct-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.college-transliterator .college-transliterator__text-button {
    min-height: 44px;
    padding: 6px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
    color: var(--ct-accent);
    font-weight: 680;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.college-transliterator .college-transliterator__text-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.college-transliterator .college-transliterator__textarea {
    width: 100%;
    height: 170px;
    min-height: 136px;
    max-height: 60vh;
    flex: 1 1 auto;
    resize: vertical;
    padding: 14px 15px;
    border: 1px solid var(--ct-border-strong);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: none;
    color: #111827;
    font-size: max(16px, 1rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
    scrollbar-gutter: stable;
    caret-color: var(--ct-accent);
    text-align: start;
}

.college-transliterator .college-transliterator__textarea::placeholder {
    color: #667085;
    opacity: 1;
}

.college-transliterator .college-transliterator__textarea--output {
    background: #ffffff;
}

.college-transliterator .college-transliterator__warning {
    margin: 0;
    padding: 9px 10px;
    border: 1px solid var(--ct-warning-border);
    border-radius: 10px;
    background: var(--ct-warning-surface);
    color: var(--ct-warning-text);
    font-size: 0.8rem;
    line-height: 1.45;
}

.college-transliterator .college-transliterator__warning[hidden] {
    display: none;
}

.college-transliterator .college-transliterator__flow {
    display: grid;
    width: 36px;
    height: 36px;
    align-self: center;
    place-items: center;
    border: 1px solid var(--ct-border);
    border-radius: 999px;
    background: var(--ct-surface);
    color: var(--ct-muted);
    font-size: 1.05rem;
    font-weight: 700;
}

.college-transliterator .college-transliterator__copy-button {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--ct-accent);
    border-radius: 13px;
    background: var(--ct-accent);
    box-shadow: none;
    color: #ffffff;
    font-weight: 730;
    line-height: 1.2;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.college-transliterator .college-transliterator__copy-button:active:not(:disabled) {
    background: var(--ct-accent-hover);
}

.college-transliterator .college-transliterator__copy-button[data-copied="true"] {
    border-color: var(--ct-success);
    background: var(--ct-success);
}

.college-transliterator .college-transliterator__copy-button[aria-busy="true"] {
    cursor: progress;
}

.college-transliterator .college-transliterator__copy-button:disabled {
    border-color: var(--ct-border);
    background: #e9edf3;
    color: #667085;
    opacity: 1;
    cursor: default;
}

.college-transliterator .college-transliterator__settings {
    margin-top: 16px;
    border: 1px solid var(--ct-border);
    border-radius: 15px;
    background: var(--ct-surface);
}

.college-transliterator .college-transliterator__settings[hidden] {
    display: none;
}

.college-transliterator .college-transliterator__settings summary {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--ct-text);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}

.college-transliterator .college-transliterator__settings summary::-webkit-details-marker {
    display: none;
}

.college-transliterator .college-transliterator__settings summary::marker {
    content: '';
}

.college-transliterator .college-transliterator__settings summary::after {
    content: '+';
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    margin-left: auto;
    border: 1px solid var(--ct-border);
    border-radius: 999px;
    color: var(--ct-muted);
    font-size: 1.05rem;
    line-height: 1;
}

.college-transliterator .college-transliterator__settings[open] summary::after {
    content: '−';
}

.college-transliterator .college-transliterator__settings-summary {
    margin-left: auto;
    color: var(--ct-muted);
    font-size: 0.78rem;
    font-weight: 550;
}

.college-transliterator .college-transliterator__settings-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
    gap: 16px;
    padding: 0 14px 14px;
}

.college-transliterator .college-transliterator__setting-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.college-transliterator .college-transliterator__setting-group legend,
.college-transliterator .college-transliterator__setting-field > span {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.college-transliterator .college-transliterator__choice-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.college-transliterator .college-transliterator__choice {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid var(--ct-border-strong);
    border-radius: 11px;
    background: var(--ct-surface-soft);
    color: var(--ct-text);
    font-size: 0.86rem;
    font-weight: 650;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.college-transliterator .college-transliterator__choice code,
.college-transliterator .college-transliterator__check code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.college-transliterator .college-transliterator__choice-input:checked + .college-transliterator__choice {
    border-color: var(--ct-accent);
    background: var(--ct-accent-soft);
    color: var(--ct-accent);
}

.college-transliterator .college-transliterator__setting-field {
    min-width: 0;
}

.college-transliterator .college-transliterator__setting-field select {
    width: 100%;
    min-height: 44px;
    padding: 8px 34px 8px 11px;
    border: 1px solid var(--ct-border-strong);
    border-radius: 11px;
    background-color: #ffffff;
    box-shadow: none;
    color: #111827;
    font-size: max(16px, 1rem);
}

.college-transliterator .college-transliterator__check {
    display: flex;
    grid-column: 1 / -1;
    min-height: 44px;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid var(--ct-border);
    border-radius: 11px;
    background: var(--ct-surface-soft);
    cursor: pointer;
}

.college-transliterator .college-transliterator__check input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 2px 0 0;
    accent-color: var(--ct-accent);
}

.college-transliterator .college-transliterator__check span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.college-transliterator .college-transliterator__check strong {
    font-size: 0.86rem;
    line-height: 1.3;
}

.college-transliterator .college-transliterator__check small {
    color: var(--ct-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.college-transliterator .college-transliterator__privacy {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--ct-border);
    color: var(--ct-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.college-transliterator .college-transliterator__privacy strong {
    color: #374151;
}

.college-transliterator .college-transliterator__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin-top: 10px;
    color: var(--ct-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.college-transliterator .college-transliterator__footer a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    color: var(--ct-accent);
    text-decoration: underline;
    text-decoration-color: rgba(0, 35, 94, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.college-transliterator .college-transliterator__noscript {
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid #b91c1c;
    border-radius: 10px;
    color: #7f1d1d;
}

.college-transliterator .college-transliterator__sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (hover: hover) and (pointer: fine) {
    .college-transliterator .college-transliterator__mode-option:hover,
    .college-transliterator .college-transliterator__choice:hover {
        border-color: #66758b;
    }

    .college-transliterator .college-transliterator__mode-input:checked + .college-transliterator__mode-option:hover {
        border-color: var(--ct-accent-hover);
        background: var(--ct-accent-hover);
    }

    .college-transliterator .college-transliterator__copy-button:hover:not(:disabled) {
        border-color: var(--ct-accent-hover);
        background: var(--ct-accent-hover);
    }

    .college-transliterator .college-transliterator__text-button:hover:not(:disabled),
    .college-transliterator .college-transliterator__footer a:hover {
        text-decoration: underline;
        text-decoration-color: currentColor;
    }
}

@media (max-width: 760px) {
    .college-transliterator .college-transliterator__card {
        padding: 18px;
        border-radius: 21px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025), 0 10px 30px rgba(15, 23, 42, 0.06);
    }

    .college-transliterator .college-transliterator__mode-picker {
        margin-top: 12px;
    }

    .college-transliterator .college-transliterator__mode-hint {
        margin: 9px 2px 12px;
        font-size: 0.88rem;
    }

    .college-transliterator .college-transliterator__workspace {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .college-transliterator .college-transliterator__flow {
        display: none;
    }

    .college-transliterator .college-transliterator__textarea {
        height: 142px;
        min-height: 124px;
        max-height: 46vh;
    }

    .college-transliterator .college-transliterator__settings-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .college-transliterator .college-transliterator__check {
        grid-column: auto;
    }
}

@media (max-width: 430px) {
    .college-transliterator .college-transliterator__card {
        padding: 14px;
        border-radius: 18px;
    }

    .college-transliterator .college-transliterator__mode-picker {
        gap: 5px;
        padding: 5px;
        border-radius: 15px;
    }

    .college-transliterator .college-transliterator__mode-option {
        min-height: 48px;
        padding-inline: 6px;
        border-radius: 11px;
    }

    .college-transliterator .college-transliterator__panel {
        padding: 11px;
        border-radius: 15px;
    }

    .college-transliterator .college-transliterator__textarea {
        height: 132px;
        min-height: 116px;
        max-height: 44vh;
        padding: 12px;
        border-radius: 11px;
    }

    .college-transliterator .college-transliterator__settings-summary {
        display: none;
    }
}

@media (max-width: 360px) {
    .college-transliterator .college-transliterator__panel-head {
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .college-transliterator .college-transliterator__panel-meta {
        width: 100%;
        justify-content: space-between;
    }

    .college-transliterator .college-transliterator__choice-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .college-transliterator .college-transliterator__footer {
        gap: 2px 12px;
    }
}

@media (prefers-contrast: more) {
    .college-transliterator {
        --ct-border: rgba(15, 23, 42, 0.34);
        --ct-border-strong: rgba(15, 23, 42, 0.64);
    }

    .college-transliterator .college-transliterator__mode-input:checked + .college-transliterator__mode-option,
    .college-transliterator .college-transliterator__copy-button {
        border-width: 2px;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .college-transliterator {
        --ct-accent-soft: #f1f4f8;
        --ct-border: #c8ced8;
    }

    .college-transliterator .college-transliterator__card {
        background: #ffffff;
        box-shadow: none;
    }
}

@media (forced-colors: active) {
    .college-transliterator .college-transliterator__card,
    .college-transliterator .college-transliterator__mode-picker,
    .college-transliterator .college-transliterator__mode-option,
    .college-transliterator .college-transliterator__panel,
    .college-transliterator .college-transliterator__settings,
    .college-transliterator .college-transliterator__choice,
    .college-transliterator .college-transliterator__check,
    .college-transliterator .college-transliterator__textarea,
    .college-transliterator .college-transliterator__setting-field select,
    .college-transliterator .college-transliterator__copy-button,
    .college-transliterator .college-transliterator__warning {
        border: 1px solid CanvasText;
        box-shadow: none;
        forced-color-adjust: auto;
    }

    .college-transliterator .college-transliterator__mode-input:checked + .college-transliterator__mode-option,
    .college-transliterator .college-transliterator__choice-input:checked + .college-transliterator__choice {
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }

    .college-transliterator .college-transliterator__status-dot {
        background: CanvasText;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .college-transliterator *,
    .college-transliterator *::before,
    .college-transliterator *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
