﻿
        th,
        td {
            text-align: left;
            padding: 7px 4px;
            border-bottom: 1px solid var(--cizgi)
        }

        th {
            color: var(--soluk);
            font-weight: 700
        }

        .countg {
            display: grid;
            gap: 10px;
            grid-template-columns: 1fr
        }

        .cbox {
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            padding: 14px;
            transition: border-color .2s ease, transform .2s ease, background .2s ease
        }

        .ctop {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
            font-size: .95rem;
            font-weight: 700
        }

        .ctop-right {
            display: flex;
            gap: 6px;
            align-items: center
        }

        .cval {
            font-size: 1.05rem;
            line-height: 1.4;
            font-weight: 700
        }

        .pinbtn {
            width: 34px;
            height: 34px;
            padding: 0;
            border-radius: 10px;
            border: 1px solid var(--cizgi);
            background: var(--cam2);
            color: var(--soluk);
            display: grid;
            place-items: center;
            transition: transform .24s ease, border-color .24s ease, background .24s ease
        }

        .pinbtn svg {
            width: 15px;
            height: 15px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round
        }

        .pinbtn.pop {
            animation: pop 1.15s cubic-bezier(.16,.86,.26,1)
        }

        @keyframes pop {
            0% {
                transform: scale(1)
            }

            45% {
                transform: scale(1.12)
            }

            100% {
                transform: scale(1)
            }
        }

        .cbox.pinned {
            border-color: var(--vurguBorder);
            background: linear-gradient(145deg, var(--vurguSoft2), var(--pinnedBg2))
        }

        .cbox.pinned .pinbtn {
            color: var(--vurguMetin);
            border: none;
            background: linear-gradient(130deg, var(--vurgu), var(--vurgu2))
        }

        .event {
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            padding: 8px;
            margin-top: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px
        }

        .event b {
            font-size: .86rem
        }

        .event small {
            display: block;
            margin-top: 2px;
            font-size: .75rem;
            color: var(--soluk)
        }

        .del {
            width: auto;
            font-size: .74rem;
            font-weight: 700;
            padding: 7px 9px;
            color: var(--hata);
            background: rgba(239, 68, 68, .12);
            border-color: rgba(239, 68, 68, .45)
        }

        .status {
            min-height: 18px;
            margin-top: 7px;
            font-size: .82rem;
            color: var(--soluk)
        }

        .status.good {
            color: var(--ok)
        }

        .status.warn {
            color: var(--uyari)
        }

        .status.err {
            color: var(--hata)
        }
        .checkrow {
            display: flex;
            gap: 8px;
            align-items: center;
            margin-top: 8px
        }

        .checkline {
            display: flex;
            align-items: center;
            gap: 8px;
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            padding: 9px 10px;
            font-size: .82rem;
            cursor: pointer;
            user-select: none;
            flex: 1;
            position: relative
        }

        .checkline input {
            position: absolute;
            opacity: 0;
            pointer-events: none
        }

        .tickbox {
            width: 20px;
            height: 20px;
            border: 1px solid var(--cizgi);
            border-radius: 7px;
            display: grid;
            place-items: center;
            background: var(--checkBg);
            transition: background .24s ease, border-color .24s ease, transform .24s ease
        }

        .tickbox svg {
            width: 13px;
            height: 13px;
            fill: none;
            stroke: #fff7df;
            stroke-width: 2.4;
            stroke-linecap: round;
            stroke-linejoin: round
        }

        .tickbox path {
            opacity: 0;
            stroke-dasharray: 16;
            stroke-dashoffset: 16;
            transition: stroke-dashoffset .22s ease, opacity .18s ease
        }

        .checkline input:checked+.tickbox {
            border-color: var(--checkBorder);
            background: linear-gradient(130deg, var(--vurgu), var(--vurgu2));
            transform: scale(1.06)
        }

        .checkline input:checked+.tickbox path {
            opacity: 1;
            stroke-dashoffset: 0
        }

        .hintbtn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            padding: 0;
            display: grid;
            place-items: center
        }

        .hintbtn svg {
            width: 15px;
            height: 15px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round
        }

        #prevPlacedInfoBtn {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            align-self: stretch;
            flex: 0 0 40px
        }

        #prevPlacedInfoBtn svg {
            width: 18px;
            height: 18px
        }

        .hintpanel {
            margin-top: 8px;
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            padding: 0 10px;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transform: translateY(-4px);
            transition: max-height .28s ease, opacity .24s ease, transform .24s ease, padding .24s ease
        }

        .hintpanel.open {
            padding: 10px;
            max-height: 190px;
            opacity: 1;
            transform: translateY(0)
        }

        .timer-display {
            margin-top: 10px;
            border: 1px solid var(--cizgi);
            border-radius: 16px;
            background: var(--cam2);
            padding: 14px 12px;
            text-align: center;
            font-size: 2.1rem;
            font-weight: 800;
            letter-spacing: .05em;
            transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease
        }

        .timer-display.run {
            border-color: var(--vurguBorder);
            box-shadow: 0 0 0 4px var(--vurguSoft1);
            animation: pulseTimer 1.1s ease infinite
        }

        @keyframes pulseTimer {
            0% {
                transform: scale(1)
            }

            50% {
                transform: scale(1.012)
            }

            100% {
                transform: scale(1)
            }
        }

        .timer-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px
        }

        .timer-btns {
            margin-top: 10px;
            display: grid;
            gap: 8px;
            grid-template-columns: repeat(3, minmax(0, 1fr))
        }

        .trial-alarm-wrap {
            margin-top: 10px;
        }

        .trial-list {
            display: grid;
            gap: 8px;
            margin-top: 10px;
            overflow-anchor: none
        }

        .trial-item {
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            padding: 10px;
            animation: trialIn .24s ease
        }

        .trial-item.saving {
            opacity: 0;
            transform: translateY(10px) scale(.985);
            transition: opacity .22s ease, transform .22s ease
        }

        @keyframes trialIn {
            from {
                opacity: 0;
                transform: translateY(8px)
            }

            to {
                opacity: 1;
                transform: translateY(0)
            }
        }

        .trial-head {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: start;
            gap: 8px
        }

        .trial-head b {
            font-size: .86rem;
            min-width: 0;
            line-height: 1.24;
            overflow-wrap: anywhere;
            word-break: break-word
        }

        .trial-grid {
            margin-top: 8px;
            display: grid;
            gap: 8px;
            grid-template-columns: repeat(3, minmax(0, 1fr))
        }

        .trial-name {
            margin-top: 8px
        }

        .trial-snap-grid {
            margin-top: 8px;
            display: grid;
            gap: 8px;
            grid-template-columns: repeat(2, minmax(0, 1fr))
        }

        .trial-snap-compact-grid {
            margin-top: 6px;
            gap: 6px
        }

        .trial-snap-detail-grid {
            margin-top: 8px;
            grid-template-columns: repeat(3, minmax(0, 1fr))
        }

        .trial-snap {
            border: 1px solid var(--cizgi);
            border-radius: 10px;
            background: var(--cam);
            padding: 8px
        }

        .trial-snap .k {
            font-size: .72rem;
            color: var(--soluk)
        }

        .trial-snap .v {
            margin-top: 3px;
            font-size: .96rem;
            font-weight: 700
        }

        .trial-snap-compact {
            padding: 6px 7px;
            border-radius: 9px
        }

        .trial-snap-compact .k {
            font-size: .68rem
        }

        .trial-snap-compact .v {
            margin-top: 2px;
            font-size: .89rem
        }

        .trial-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            flex-wrap: wrap;
            min-width: 0
        }

        .mini-btn {
            width: auto;
            min-width: 0;
            padding: 7px 10px;
            border-radius: 10px;
            font-size: .74rem;
            font-weight: 700
        }

        .trial-actions .mini-btn,
        .trial-actions .del {
            flex: 0 0 auto
        }

        .save-mini {
            color: var(--vurguMetin);
            border: none;
            background: linear-gradient(130deg, var(--vurgu), var(--vurgu2))
        }

        /* Kaydet mini butonu tema ne olursa olsun kontrastlÄ± kalsÄ±n */
        .trial-actions .save-mini {
            border: 1px solid transparent;
            background: linear-gradient(130deg, var(--vurgu), var(--vurgu2)) !important;
            color: var(--vurguMetin) !important;
            box-shadow: 0 6px 14px var(--vurguSoft1);
        }

        .trial-actions .save-mini:hover {
            filter: brightness(1.05);
        }

        .trial-detail-wrap {
            margin-top: 8px;
            border: none;
            border-radius: 0;
            background: transparent;
            padding: 0;
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transform: translateY(-5px);
            transition: max-height .28s ease, opacity .24s ease, transform .24s ease, padding .24s ease
        }

        .trial-item.open .trial-detail-wrap {
            max-height: min(72vh, 920px);
            opacity: 1;
            padding: 8px 0 0;
            transform: translateY(0);
            overflow: auto
        }

        .detail-list {
            display: grid;
            gap: 8px;
            margin-top: 8px
        }

        .detail-row {
            display: grid;
            gap: 8px;
            grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .72fr)) auto auto;
            align-items: end;
            border: none;
            border-radius: 0;
            padding: 0 0 8px;
            background: transparent
        }

        .detail-row:not(:last-child) {
            border-bottom: 1px solid var(--cizgi)
        }

        .detail-net {
            font-size: .78rem;
            color: var(--soluk);
            min-width: 66px;
            text-align: center
        }

        .saved-list {
            display: grid;
            gap: 10px;
            margin-top: 10px;
            overflow-anchor: none
        }

        .saved-item {
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            padding: 10px;
            animation: savedDrop .34s cubic-bezier(.22, 1, .36, 1);
            transition: border-color .22s ease, box-shadow .28s ease, background .22s ease
        }

        .saved-item.toggling {
            animation: savedTogglePop .26s ease
        }

        @keyframes savedTogglePop {
            0% {
                transform: scale(1)
            }

            55% {
                transform: scale(1.01)
            }

            100% {
                transform: scale(1)
            }
        }

        .saved-item.deleting {
            opacity: 0;
            transform: translateY(12px) scale(.985);
            filter: saturate(.85);
            transition: opacity .24s ease, transform .24s ease, filter .24s ease
        }

        .saved-item.open {
            border-color: var(--odak);
            background: linear-gradient(145deg, var(--cam2), var(--cam));
            box-shadow: 0 12px 30px rgba(2, 6, 23, .16)
        }

        @keyframes savedDrop {
            from {
                opacity: 0;
                transform: translateY(-14px) scale(.985)
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1)
            }
        }

        .saved-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px
        }

        .saved-head b {
            font-size: .88rem
        }

        .saved-actions {
            display: flex;
            align-items: center;
            gap: 8px
        }

        .saved-preview {
            margin-top: 8px;
            padding: 8px;
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: linear-gradient(145deg, var(--cam), var(--cam2));
            display: grid;
            gap: 8px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            transition: transform .26s ease, border-color .22s ease, box-shadow .26s ease
        }

        .saved-item.open .saved-preview {
            transform: translateY(-1px) scale(1.005);
            border-color: var(--odak);
            box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .16)
        }

        .saved-body {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transform: translateY(-4px);
            padding-top: 0;
            transition: max-height .32s ease, opacity .26s ease, transform .26s ease, padding-top .26s ease
        }

        .saved-item.open .saved-body {
            max-height: 900px;
            opacity: 1;
            transform: translateY(0);
            padding-top: 8px
        }

        .saved-metrics {
            margin-top: 8px;
            display: grid;
            gap: 8px;
            grid-template-columns: repeat(3, minmax(0, 1fr))
        }

        .saved-metric {
            border: 1px solid var(--cizgi);
            border-radius: 10px;
            background: var(--cam);
            padding: 8px
        }

        .saved-metric .k {
            font-size: .72rem
        }

        .saved-metric .v {
            margin-top: 3px;
            font-size: 1rem
        }

        .saved-details {
            margin-top: 12px;
            display: grid;
            gap: 6px
        }

        .saved-body .trial-snap-detail-grid {
            margin-top: 2px;
            margin-bottom: 12px
        }

        .saved-detail {
            border: 1px solid var(--cizgi);
            border-radius: 10px;
            background: var(--cam);
            padding: 7px 8px;
            font-size: .78rem;
            color: var(--soluk);
            display: flex;
            justify-content: space-between;
            gap: 8px
        }

        .save-card {
            animation: in .32s ease;
            transform-origin: top center
        }

        .save-card.showing {
            animation: in .32s ease
        }

        .save-card.closing {
            animation: saveOut .24s ease forwards
        }

        @keyframes saveOut {
            from {
                opacity: 1;
                transform: translateY(0) scale(1)
            }

            to {
                opacity: 0;
                transform: translateY(-8px) scale(.985)
            }
        }

        .save-box {
            margin-top: 8px;
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            padding: 10px
        }

        .save-actions {
            margin-top: 8px;
            display: grid;
            gap: 8px;
            grid-template-columns: repeat(2, minmax(0, 1fr))
        }

        .save-name {
            margin-top: 8px
        }

        .tabs {
            position: fixed;
            left: 50%;
            transform: translateX(-50%);
            bottom: max(8px, calc(env(safe-area-inset-bottom) + 4px));
            width: min(490px, calc(100% - 20px));
            height: var(--sekme);
            border: 1px solid var(--cizgi);
            border-radius: 22px;
            padding: 9px;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 9px;
            background: var(--cam);
            backdrop-filter: blur(12px);
            z-index: 4000;
            overflow: hidden
        }

        .tab-swipe-indicator {
            position: absolute;
            top: 9px;
            bottom: 9px;
            left: 0;
            width: 0;
            border-radius: 14px;
            background: linear-gradient(130deg, var(--vurgu), var(--vurgu2));
            z-index: 0;
            pointer-events: none;
            box-shadow: 0 8px 18px var(--vurguSoft1)
        }

        .tab {
            border: none;
            border-radius: 14px;
            background: transparent;
            color: var(--soluk);
            font-weight: 700;
            font-size: .84rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            min-height: 100%;
            padding: 5px;
            position: relative;
            z-index: 1;
            transition: color .26s ease
        }

        .tab svg {
            width: 22px;
            height: 22px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round
        }

        .tab span {
            display: block;
            line-height: 1;
            font-size: .82rem;
            font-weight: 700;
            white-space: nowrap
        }

        .tab.active {
            color: var(--vurguMetin);
            background: transparent
        }

        @media (max-width:390px) {

            .cluster,
            .pillwrap,
            .countg,
            .trial-grid,
            .trial-snap-grid,
            .save-actions,
            .saved-metrics,
            .saved-preview {
                grid-template-columns: 1fr
            }

            .resultg {
                grid-template-columns: repeat(2, minmax(0, 1fr))
            }

            .result-detail-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr))
            }

            .trial-snap-compact-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr))
            }

            .trial-snap-detail-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr))
            }

            .obp-main {
                grid-template-columns: repeat(3, minmax(0, 1fr))
            }

            .sub {
                grid-template-columns: minmax(0, 1fr) 58px 58px
            }

            .detail-row {
                grid-template-columns: 1fr 1fr;
                align-items: center
            }

            .trial-head {
                grid-template-columns: 1fr
            }

            .trial-actions {
                justify-content: flex-start
            }

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

            .theme-btn {
                padding: 8px 6px;
                font-size: .62rem;
                line-height: 1;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis
            }
        }

        /* Glassmorphism visual layer */
        .cbox,
        .event,
        .trial-item,
        .saved-item,
        .save-box,
        .settings-toggle-row,
        .feedback-box,
        .feedback-history-panel,
        .metric,
        .result-detail-wrap,
        .result-debug-wrap,
        .select-menu,
        .tabs,
        .timer-display,
        details {
            border-color: var(--glassStroke);
            background: var(--glassBg);
            backdrop-filter: blur(14px) saturate(135%);
            -webkit-backdrop-filter: blur(14px) saturate(135%);
            box-shadow: var(--glassShadow), var(--glassGlow)
        }

        .saved-item.open,
        .feedback-box.open,
        .timer-display.run {
            box-shadow: 0 0 0 1px var(--vurguBorder), var(--glassShadow), var(--glassGlow)
        }

        .pinbtn,
        .hintbtn,
        .tickbox,
        .trial-snap,
        .saved-metric,
        .saved-detail,
        .fh-item,
        .select-option,
        .feedback-toggle {
            border-color: var(--glassStroke);
            background: var(--glassBgStrong);
            box-shadow: var(--glassInset)
        }

        .select-option:hover {
            background: var(--glassBgStrong)
        }

        .tab {
            border: 1px solid transparent;
            box-shadow: none;
            transition: color .26s ease, transform .22s ease, border-color .22s ease
        }

        .tab.active {
            background: var(--glassBgStrong);
            border-color: var(--glassStroke);
            box-shadow: var(--glassInset)
        }

        .btnp,
        .pill.active,
        .etype-btn.active,
        .save-mini,
        .cbox.pinned .pinbtn {
            box-shadow: 0 10px 22px var(--vurguSoft2), inset 0 1px 0 rgba(255, 255, 255, .24)
        }

        /* ===== 2025 Minimal Premium Mobile Redesign (Theme-Safe) ===== */

        html,
        body {
            font-family: Inter, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif
        }

        body {
            padding: calc(env(safe-area-inset-top) + 6px) 12px var(--altGuvenlik)
        }

        .app {
            width: min(560px, 100%);
            min-width: 0
        }

        .hero {
            padding: 14px 2px 10px;
            background: transparent;
            border: 0;
            box-shadow: none;
            border-radius: 0
        }

        .hero:after {
            display: none
        }

        .hero h1 {
            font-size: 1.52rem;
            font-weight: 800;
            letter-spacing: -.02em
        }

        .hero p {
            margin-top: 6px;
            color: var(--soluk);
            font-size: .95rem;
            max-width: 34ch
        }

        main {
            margin-top: 6px
        }

        .card {
            border: 1px solid var(--cizgi);
            background: transparent;
            border-radius: 14px;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            box-shadow: none;
            padding: 12px
        }

        .card + .card {
            margin-top: 2px
        }

        .ico {
            background: transparent;
            border: 1px solid var(--cizgi);
            color: var(--soluk)
        }

        label {
            color: var(--soluk);
            font-weight: 500
        }

        input,
        select,
        textarea {
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            color: var(--yazi);
            box-shadow: none
        }

        .select-toggle {
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            box-shadow: none;
            font-weight: 600
        }

        .select-menu {
            border: 1px solid var(--cizgi);
            border-radius: 12px;
            background: var(--cam2);
            box-shadow: 0 10px 24px rgba(2, 6, 23, .3);
            backdrop-filter: none;
            -webkit-backdrop-filter: none
        }

        .select-option {
            border-radius: 10px;
            background: transparent
        }

        .select-option:hover,
        .select-option.active {
            background: rgba(148, 163, 184, .14)
        }

        /* Segmented control */
        .examtype-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            background: var(--cam2);
            border: 1px solid var(--cizgi);
            border-radius: 999px;
            padding: 4px;
            gap: 4px;
            min-width: 0;
            max-width: 100%
        }

        .etype-btn {
            border: 0;
            border-radius: 999px;
            background: transparent;
            color: var(--soluk);
            font-weight: 700;
            min-width: 0
        }

        .etype-btn.active {
            border: 0;
            background: var(--vurguSoft3);
            color: var(--yazi)
        }

        .obp-memory-toggle {
            color: var(--soluk)
        }

        .obp-memory-track {
            background: var(--cam);
            border: 1px solid var(--cizgi)
        }

        .obp-memory-toggle input:checked + .obp-memory-track {
            background: var(--vurgu);
            border-color: var(--vurgu);
            box-shadow: none
        }

        .obp-memory-toggle input:checked + .obp-memory-track .obp-memory-knob {
            background: var(--arka1)
        }

        .btnp {
            border: 0;
            border-radius: 14px;
            background: linear-gradient(130deg, var(--vurgu), var(--vurgu2));
            color: var(--vurguMetin);
            font-weight: 700;
            letter-spacing: .01em;
            box-shadow: none;
            min-width: 0;
            max-width: 100%
        }

        .btnp:hover {
            filter: brightness(1.04)
        }

        #calcBtn {
            padding-top: 12px;
            padding-bottom: 12px
        }

        .btng,
        .mini-btn,
        .pinbtn,
        .hintbtn,
        .feedback-toggle,
        .tickbox,
        .trial-snap,
        .saved-metric,
        .saved-detail,
        .fh-item {
            border: 1px solid var(--cizgi);
            background: var(--cam2);
            box-shadow: none
        }

        .resultg,
        .result-detail-grid,
        .cluster,
        .sub,
        .trial-grid,
        .timer-grid,
        .timer-btns {
            gap: 10px
        }

        .metric,
        .cbox,
        .event,
        .save-box,
        .feedback-box,
        .feedback-history-panel,
        .result-detail-wrap {
            border: 1px solid var(--cizgi);
            background: var(--cam2);
            box-shadow: none
        }

        .tabs {
            border: 1px solid var(--cizgi);
            border-radius: 18px;
            background: var(--cam);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 8px 26px rgba(2, 6, 23, .42)
        }

        .tab-swipe-indicator {
            background: var(--vurgu);
            border-radius: 12px;
            box-shadow: none
        }

        .tab {
            border: 0;
            background: transparent;
            color: var(--soluk)
        }

        .tab.active {
            background: transparent;
            color: var(--yazi)
        }

        .muted {
            color: var(--soluk)
        }

        .panel,
        .card,
        .cluster,
        .row,
        .sub,
        .selectbox,
        .count-year-wrap,
        .rank-year-wrap {
            min-width: 0;
            max-width: 100%
        }

        .btnp,
        .btng,
        .select-toggle,
        .etype-btn,
        #addTrialBtn,
        #addEventBtn,
        #examYearToggle,
        #rankYearToggle {
            min-width: 0;
            max-width: 100%
        }

        img,
        svg,
        canvas {
            max-width: 100%;
            height: auto
        }

        @media (max-width: 430px) {
            .examtype-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 3px;
                padding: 3px
            }

            .etype-btn {
                font-size: .96rem;
                padding: 8px 4px
            }

            .count-year-wrap,
            .rank-year-wrap {
                width: 100%
            }
        }

        /* ===== UI/UX Polish Layer (Layout koruma, sadece gÃ¶rsel iyileÅŸtirme) ===== */
        :root {
            --space-section: 24px;
            --space-component: 16px;
            --space-element: 8px;
        }

        main > .panel {
            gap: var(--space-section);
        }

        .panel-track > .panel {
            gap: var(--space-section);
        }

        .card {
            border-radius: 16px;
            padding: var(--space-component);
            border: 1px solid var(--cizgi);
            box-shadow: 0 4px 14px rgba(2, 6, 23, .12);
        }

        .card h2 {
            margin-bottom: 10px;
            font-size: 1.12rem;
            font-weight: 800;
            letter-spacing: -.01em;
        }

        .card h3 {
            margin-bottom: 10px;
            font-size: 1.03rem;
            font-weight: 700;
            letter-spacing: -.005em;
        }

        .muted {
            line-height: 1.5;
            margin-top: 0;
            margin-bottom: 10px;
        }

        .stack,
        .cluster,
        .row,
        .timer-grid,
        .timer-btns,
        .resultg,
        .result-detail-grid,
        .result-detail-groups,
        .theme-grid,
        .pillwrap,
        .save-actions,
        .trial-grid,
        .trial-snap-grid,
        .saved-preview,
        .saved-metrics {
            gap: var(--space-component);
        }

        .result-save-row {
            display: none !important;
        }

        .details-inner,
        .sub,
        .checkrow,
        .label-help,
        .feedback-history-row {
            gap: var(--space-element);
        }

        .examtype-grid {
            margin-top: 10px;
            padding: 4px;
            border-radius: 14px;
        }

        .etype-btn {
            min-height: 44px;
            border-radius: 12px;
            font-size: .97rem;
            font-weight: 700;
        }

        input,
        select,
        textarea {
            min-height: 44px;
            padding: 10px 12px;
            border-radius: 12px;
            font-size: .98rem;
        }

        textarea {
            min-height: 110px;
        }

        .select-toggle {
            min-height: 44px;
            padding: 10px 12px;
            border-radius: 12px;
        }

        #calcBtn {
            min-height: 52px;
            border-radius: 14px;
            font-size: 1.02rem;
            font-weight: 800;
            letter-spacing: .01em;
        }

        .btnp {
            min-height: 46px;
            border-radius: 14px;
            font-weight: 800;
        }

        .timer-display {
            min-height: 88px;
            display: grid;
            place-items: center;
            font-size: clamp(2rem, 6.4vw, 2.6rem);
            letter-spacing: .045em;
            border-radius: 16px;
        }

        .tabs {
            border-radius: 20px;
            border: 1px solid var(--cizgi);
            box-shadow: 0 10px 26px rgba(2, 6, 23, .22);
        }

        .tab {
            border-radius: 14px;
        }

        .tab svg {
            width: 21px;
            height: 21px;
        }

        .tab span {
            font-size: .81rem;
        }

        .tab:not(.active) {
            color: var(--soluk);
            opacity: .94;
        }

        .tab.active {
            color: var(--yazi);
            font-weight: 800;
        }
        .theme-btn {
            padding: 10px 8px;
            text-align: center;
            min-height: 42px;
            font-size: .69rem;
            line-height: 1.1;
        }

#examTypeCard .examtype-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .rank-year-wrap {
            max-height: 180px;
            opacity: 1;
            transform: translateY(0);
            overflow: hidden;
            transition: max-height .36s ease, opacity .28s ease, transform .28s ease, margin .28s ease, gap .28s ease;
        }

        .rank-year-wrap.is-hidden {
            max-height: 0;
            opacity: 0;
            transform: translateY(-8px);
            margin-top: 0;
            margin-bottom: 0;
            gap: 0;
            pointer-events: none;
        }

        .net-card {
            max-height: 560px;
            opacity: 1;
            transform: translateY(0);
            overflow: hidden;
            transition: max-height .36s ease, opacity .28s ease, transform .28s ease, margin .28s ease, padding .28s ease, border-color .28s ease;
        }

        .net-card.is-hidden {
            max-height: 0;
            opacity: 0;
            transform: translateY(-8px);
            margin-top: 0;
            margin-bottom: 0;
            padding-top: 0;
            padding-bottom: 0;
            border-color: transparent;
            pointer-events: none;
        }

        .net-card.is-hidden + .card {
            margin-top: 0;
        }

        .result-detail-groups.net-detail-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .result-detail-groups.net-detail-grid > .metric:first-child {
            grid-column: 1 / -1;
            min-height: 82px;
            padding: 12px 14px;
            background: linear-gradient(135deg, var(--cam2), rgba(255, 255, 255, .04));
            display: grid;
            gap: 6px;
            justify-items: center;
            align-items: center;
            text-align: center;
        }

        .result-detail-groups.net-detail-grid > .metric:first-child .k {
            font-size: .84rem;
            font-weight: 700;
            text-align: center;
            width: 100%;
        }

        .result-detail-groups.net-detail-grid > .metric:first-child .v {
            margin-top: 6px;
            font-size: 1.35rem;
            text-align: center;
            width: 100%;
        }

        .resultg.net-mode {
            display: none;
        }

        @media (max-width: 430px) {
            #examTypeCard .examtype-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }


