.web-app-section {
    position: relative;
    overflow: hidden;
    padding: 64px 20px 96px;
    background:
        radial-gradient(circle at 18% 12%, rgba(100, 106, 255, 0.16), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(72, 201, 176, 0.08), transparent 28%),
        #101014;
}

.web-app-section::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.web-app-section .container {
    position: relative;
    z-index: 1;
}

.web-app-section h1 {
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-align: center;
}

.section-kicker {
    margin-bottom: 10px;
    color: #9b9fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.web-app-section .demo-subtitle-text {
    max-width: 690px;
    margin: 0 auto 44px;
    color: #9898a6;
    line-height: 1.7;
}

.web-app {
    position: relative;
    width: min(100%, 1050px);
    min-height: 620px;
    margin: 0 auto;
    overflow: hidden;
    color: #f4f4f7;
    background: rgba(18, 18, 24, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    text-align: left;
}

.web-app-loading {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #b4b4c2;
    background: rgba(18, 18, 24, 0.94);
    font-size: 0.9rem;
    transition: opacity 180ms ease;
}

.web-app[data-app-loading="false"] .web-app-loading {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.loading-dot {
    width: 9px;
    height: 9px;
    background: #8f93ff;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(143, 147, 255, 0.12);
    animation: loading-pulse 1.2s ease-in-out infinite;
}

@keyframes loading-pulse {
    50% {
        transform: scale(0.72);
        opacity: 0.55;
    }
}

.web-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.web-app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.web-app-brand img {
    border-radius: 9px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}

.web-app-brand div {
    display: flex;
    flex-direction: column;
}

.web-app-brand strong {
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.25;
}

.web-app-brand span {
    color: #777786;
    font-size: 0.73rem;
}

.header-clock {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 11px;
    color: #838391;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-clock strong {
    color: #dedee6;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.app-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-tab {
    position: relative;
    padding: 10px 14px 12px;
    color: #81818f;
    background: transparent;
    border: 0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease;
}

.app-tab:hover {
    color: #c9c9d3;
    background: rgba(255, 255, 255, 0.03);
}

.app-tab.active {
    color: #fff;
}

.app-tab.active::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 2px;
    content: "";
    background: #9599ff;
    border-radius: 2px 2px 0 0;
}

.app-panels {
    min-height: 500px;
}

.app-panel {
    padding: 28px;
}

.converter-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.8fr);
    gap: 22px;
}

.converter-main {
    min-width: 0;
}

.result-card {
    padding: 22px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(124, 128, 255, 0.16), rgba(124, 128, 255, 0.045) 58%),
        #171721;
    border: 1px solid rgba(148, 152, 255, 0.23);
    border-radius: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.result-card.is-error {
    border-color: rgba(255, 108, 123, 0.42);
    box-shadow: 0 0 0 3px rgba(255, 108, 123, 0.06);
}

.result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.result-heading > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.result-label {
    color: #a9a9b7;
    font-size: 0.73rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.result-zone {
    overflow: hidden;
    color: #747482;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    color: #bcbcc8;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 600;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.icon-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
}

.icon-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.result-time {
    display: block;
    margin: 24px 0 10px;
    color: #fff;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: clamp(1.48rem, 3.5vw, 2.15rem);
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.result-card.is-error .result-time {
    color: #ff8997;
    font-family: inherit;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
}

.result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #858593;
    font-size: 0.77rem;
}

.result-meta span:last-child {
    color: #b0b1ef;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.71rem;
}

.web-app .conversion-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0 20px;
}

.web-app .mode-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 11px 13px;
    color: #868694;
    background: #17171d;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.web-app .mode-button span {
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.web-app .mode-button strong {
    color: inherit;
    font-size: 0.78rem;
    white-space: nowrap;
}

.web-app .mode-button:hover {
    color: #bebec8;
    background: #1b1b23;
    border-color: rgba(255, 255, 255, 0.12);
}

.web-app .mode-button.active {
    color: #fff;
    background: rgba(139, 143, 255, 0.14);
    border-color: rgba(148, 152, 255, 0.38);
}

.input-block label,
.zone-control label {
    display: block;
    margin-bottom: 7px;
    color: #a7a7b3;
    font-size: 0.76rem;
    font-weight: 600;
}

.timestamp-field {
    position: relative;
}

.timestamp-field input,
.zone-control select,
.inline-form input {
    width: 100%;
    color: #ececf1;
    background: #131318;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    font: inherit;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.timestamp-field input {
    height: 46px;
    padding: 0 42px 0 13px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.84rem;
}

.timestamp-field input::placeholder,
.inline-form input::placeholder,
.search-field input::placeholder {
    color: #555562;
}

.timestamp-field input:focus,
.zone-control select:focus,
.inline-form input:focus,
.search-field:focus-within {
    outline: none;
    border-color: rgba(148, 152, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(148, 152, 255, 0.09);
}

.clear-button {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 26px;
    height: 26px;
    padding: 0;
    color: #7d7d89;
    background: rgba(255, 255, 255, 0.055);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-50%);
}

.clear-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.input-helper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    min-height: 24px;
    padding-top: 7px;
    color: #696976;
    font-size: 0.71rem;
}

#parseHint.is-error {
    color: #ff7d8c;
}

#parseHint.is-success {
    color: #7dcab3;
}

.text-button {
    flex: 0 0 auto;
    padding: 0;
    color: #9b9fff;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: inherit;
}

.text-button:hover {
    color: #c0c2ff;
    text-decoration: underline;
}

.timezone-card {
    position: relative;
    padding: 19px;
    background: #15151b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
}

.eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #737381;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.095em;
    text-transform: uppercase;
}

.card-heading h3,
.panel-intro h3 {
    margin: 0;
    color: #f7f7fa;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.3;
}

.zone-offset-badge {
    flex: 0 0 auto;
    padding: 5px 7px;
    color: #b8baff;
    background: rgba(145, 149, 255, 0.1);
    border: 1px solid rgba(145, 149, 255, 0.16);
    border-radius: 6px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.62rem;
}

.zone-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin: 16px 0;
    padding: 3px;
    background: #101015;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
}

.zone-type-button {
    min-height: 31px;
    padding: 5px 8px;
    color: #6f6f7c;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 600;
}

.zone-type-button.active {
    color: #e9e9ef;
    background: #25252d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.zone-control {
    position: relative;
}

.search-field {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 10px;
    color: #6b6b78;
    background: #101015;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-field > span {
    margin-right: 8px;
    font-size: 1rem;
    transform: rotate(-20deg);
}

.search-field input {
    width: 100%;
    min-width: 0;
    color: #eeeef3;
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 0.78rem;
}

.zone-control select {
    height: 40px;
    padding: 0 10px;
    font-size: 0.78rem;
}

.control-note {
    margin: 8px 0 0;
    color: #62626e;
    font-size: 0.67rem;
    line-height: 1.45;
}

.search-results {
    position: absolute;
    z-index: 12;
    top: calc(100% - 23px);
    right: 0;
    left: 0;
    max-height: 248px;
    padding: 5px;
    overflow-y: auto;
    background: #202028;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.46);
}

.search-result {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    color: #dedee5;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.search-result:hover,
.search-result.is-active {
    background: rgba(148, 152, 255, 0.13);
}

.search-result > span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.search-result strong {
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result small {
    overflow: hidden;
    color: #7e7e8b;
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result > small {
    flex: 0 0 auto;
    color: #aaaef4;
    font-family: "SF Mono", Monaco, Consolas, monospace;
}

.search-empty {
    padding: 12px;
    color: #787885;
    font-size: 0.73rem;
    text-align: center;
}

.selected-zone-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    padding-top: 13px;
    color: #70707d;
    border-top: 1px solid rgba(255, 255, 255, 0.065);
    font-size: 0.68rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: #65c7a6;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(101, 199, 166, 0.08);
}

.panel-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.panel-intro h3 {
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.panel-intro p:not(.eyebrow) {
    margin: 0;
    color: #777784;
    font-size: 0.78rem;
}

.world-search-wrap {
    position: relative;
    width: min(310px, 42%);
    flex: 0 0 auto;
}

.world-search-results {
    top: calc(100% + 6px);
}

.clock-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 10px;
}

.clock-section-heading h4,
.settings-card h4 {
    margin: 0;
    color: #dcdce4;
    font-size: 0.8rem;
}

.clock-section-heading span {
    color: #666673;
    font-size: 0.68rem;
}

.popular-heading {
    margin-top: 26px;
}

.world-clock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.world-clock-card {
    position: relative;
    min-width: 0;
    padding: 14px;
    background: #16161c;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.world-clock-card:hover {
    background: #191920;
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.clock-city {
    display: block;
    max-width: calc(100% - 28px);
    overflow: hidden;
    color: #dcdce4;
    font-size: 0.76rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clock-detail {
    display: block;
    max-width: calc(100% - 28px);
    margin-top: 2px;
    overflow: hidden;
    color: #676774;
    font-size: 0.63rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clock-value {
    display: block;
    margin-top: 14px;
    color: #f5f5f8;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.clock-date {
    display: block;
    margin-top: 3px;
    color: #7c7c89;
    font-size: 0.66rem;
}

.pin-button {
    position: absolute;
    top: 9px;
    right: 9px;
    display: inline-flex;
    width: 27px;
    height: 27px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #5d5d6a;
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1rem;
}

.pin-button:hover {
    color: #c4c6ff;
    background: rgba(255, 255, 255, 0.05);
}

.pin-button.is-pinned {
    color: #c3c5ff;
}

.empty-state {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #676774;
    background: rgba(255, 255, 255, 0.018);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    text-align: center;
}

.empty-state > span {
    color: #888bdb;
    font-size: 1.35rem;
}

.empty-state strong {
    margin-top: 5px;
    color: #9999a6;
    font-size: 0.75rem;
}

.empty-state p {
    margin: 3px 0 0;
    color: #5f5f6b;
    font-size: 0.66rem;
}

.settings-intro {
    align-items: center;
}

.secondary-button,
.primary-small-button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    font-weight: 650;
}

.secondary-button {
    color: #aaaab6;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.secondary-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.settings-card {
    min-width: 0;
    padding: 18px;
    background: #15151b;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 13px;
}

.settings-card-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.settings-card-heading > div {
    min-width: 0;
}

.settings-card-heading p {
    margin: 3px 0 0;
    color: #686875;
    font-size: 0.66rem;
    line-height: 1.4;
}

.settings-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #b8baff;
    background: rgba(145, 149, 255, 0.1);
    border: 1px solid rgba(145, 149, 255, 0.15);
    border-radius: 9px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 700;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.inline-form input {
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.73rem;
}

.primary-small-button {
    color: #111118;
    background: #aeb1ff;
    border: 1px solid #aeb1ff;
}

.primary-small-button:hover {
    background: #c4c6ff;
}

.format-symbols {
    margin: 7px 0 0;
    color: #5d5d69;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.6rem;
}

.form-message {
    min-height: 20px;
    margin: 5px 0 0;
    color: #ff7c8b;
    font-size: 0.65rem;
}

.form-message.is-success {
    color: #75c4aa;
}

.preference-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 190px;
    overflow-y: auto;
}

.preference-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    color: #c3c3cd;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 8px;
    font-family: "SF Mono", Monaco, Consolas, monospace;
    font-size: 0.68rem;
}

.preference-item > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preference-item small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #666673;
    font-family: inherit;
    font-size: 0.6rem;
    text-overflow: ellipsis;
}

.remove-button {
    flex: 0 0 auto;
    padding: 4px 6px;
    color: #9a6d75;
    background: rgba(255, 105, 125, 0.07);
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    font-size: 0.62rem;
}

.remove-button:hover {
    color: #ff8e9b;
    background: rgba(255, 105, 125, 0.12);
}

.preference-empty {
    padding: 12px 4px;
    color: #5e5e6a;
    font-size: 0.67rem;
    text-align: center;
}

.app-toast {
    position: absolute;
    z-index: 30;
    right: 20px;
    bottom: 18px;
    padding: 9px 12px;
    color: #e7e7ed;
    background: #292933;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.noscript-message {
    margin: 0;
    padding: 14px;
    color: #ffc7ce;
    background: rgba(255, 100, 120, 0.08);
    font-size: 0.78rem;
    text-align: center;
}

.web-app-footnote {
    max-width: 720px;
    margin: 24px auto 0;
    color: #6f6f7c;
    font-size: 0.78rem;
    text-align: center;
}

.web-app-footnote a {
    color: #a9abff;
    font-weight: 600;
    text-decoration: none;
}

.web-app-footnote a:hover {
    color: #d4d5ff;
    text-decoration: underline;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.web-app [hidden] {
    display: none !important;
}

.web-app button:focus-visible,
.web-app input:focus-visible,
.web-app select:focus-visible {
    outline: 2px solid #afb2ff;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .converter-layout {
        grid-template-columns: 1fr;
    }

    .timezone-card {
        min-height: 250px;
    }

    .world-clock-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .web-app-section {
        padding: 48px 12px 72px;
    }

    .web-app-section .container {
        padding: 0;
    }

    .web-app {
        min-height: 680px;
        border-radius: 18px;
    }

    .web-app-header {
        min-height: 64px;
        padding: 12px 14px;
    }

    .header-clock {
        gap: 6px;
        padding: 6px 8px;
    }

    .header-clock span {
        display: none;
    }

    .app-tabs {
        padding: 8px 10px 0;
        overflow-x: auto;
    }

    .app-tab {
        flex: 1 0 auto;
        padding: 9px 10px 11px;
        font-size: 0.75rem;
    }

    .app-panel {
        padding: 18px 14px 22px;
    }

    .result-card {
        padding: 17px;
    }

    .result-time {
        margin-top: 20px;
        font-size: 1.42rem;
    }

    .copy-text {
        display: none;
    }

    .web-app .conversion-mode {
        gap: 6px;
    }

    .web-app .mode-button {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .panel-intro {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .world-search-wrap {
        width: 100%;
    }

    .world-clock-grid {
        grid-template-columns: 1fr;
    }

    .settings-intro .secondary-button {
        align-self: flex-start;
    }

    .input-helper {
        min-height: 38px;
    }

    .app-toast {
        right: 14px;
        bottom: 14px;
        left: 14px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .web-app *,
    .web-app *::before,
    .web-app *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
