:root {
    color-scheme: light;
    --navy: #0e2744;
    --navy-soft: #1a3d66;
    --ink: #172033;
    --muted: #5c6b7a;
    --paper: #f4f1ea;
    --card: #fffcf7;
    --line: #ddd6c8;
    --focus: #8d6a2f;
    --danger: #8d2f2f;
    --danger-bg: #f8ecec;
    --ok: #1d6b45;
    --ok-bg: #e8f3ec;
    --shadow: 0 1px 2px rgba(14, 39, 68, 0.06);
}

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

[hidden] {
    display: none !important;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

body,
button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3 {
    line-height: 1.25;
    font-weight: 650;
    color: var(--navy);
}

h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

p {
    margin: 0 0 0.75rem;
}

a {
    color: var(--navy-soft);
}

a:hover {
    color: var(--navy);
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.skip {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    transform: translateY(-150%);
    background: var(--card);
    color: var(--navy);
    padding: 0.5rem 0.75rem;
    z-index: 5;
}

.skip:focus {
    transform: none;
}

.wrap {
    width: min(100% - 2rem, 68rem);
    margin-inline: auto;
}

.site-header {
    background: var(--navy);
    color: #f7f4ee;
}

.site-header a {
    color: #f7f4ee;
}

.bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    font-size: 1.15rem;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #f7f4ee;
    border-radius: 0.4rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.8rem;
}

.js .nav-toggle {
    display: inline-flex;
    align-items: center;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    align-items: center;
    flex-basis: 100%;
}

.js .site-nav {
    display: none;
}

.js .site-nav.is-open {
    display: flex;
}

.site-nav a {
    text-decoration: none;
    padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    text-decoration: underline;
}

#oturum-durum {
    font-size: 0.95rem;
}

.site-footer {
    margin-top: 3rem;
    padding: 1.25rem 0 2rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
    font-size: 0.92rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.75rem;
}

.legal-body h2 {
    margin-top: 1.4rem;
    font-size: 1.15rem;
}

.legal-body h2:first-child {
    margin-top: 0.25rem;
}

main {
    padding-top: 1.5rem;
}

.hero,
.card,
.filters {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.hero {
    margin-bottom: 1.5rem;
}

.narrow {
    width: min(100%, 32rem);
}

.lead {
    color: var(--muted);
}

.hint,
.status {
    color: var(--muted);
    font-size: 0.92rem;
}

.notice {
    background: #f3ead2;
    border: 1px solid #e2d2a8;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.avatar-frame {
    display: block;
    width: 96px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.6rem;
    background: #e7edf4;
    margin-bottom: 0.6rem;
}

.field label,
.field legend {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 650;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c9c1b3;
    border-radius: 0.45rem;
    background: #fff;
    color: var(--ink);
}

.field textarea {
    min-height: 6rem;
    resize: vertical;
}

.field.check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.field.check input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    min-height: 0;
}

.field.check label {
    margin: 0;
    font-weight: 500;
}

fieldset.field {
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.8rem;
}

.checks {
    display: grid;
    gap: 0.45rem;
    max-height: 16rem;
    overflow: auto;
}

.checks label {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-weight: 500;
}

.checks input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0.45rem;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #f7f4ee;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--navy-soft);
    color: #fff;
}

.button-secondary {
    background: transparent;
    color: var(--navy);
}

.button-secondary:hover {
    background: #e7eef6;
    color: var(--navy);
}

.button-ghost {
    background: transparent;
    color: #f7f4ee;
    border-color: rgba(255, 255, 255, 0.45);
    min-height: 2.25rem;
}

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

button:disabled,
.button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.alert {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #e7c4c4;
    border-radius: 0.45rem;
    padding: 0.7rem 0.8rem;
}

.links {
    margin-top: 1rem;
}

.chips,
.cards {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chips a,
.chips li {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #e7eef6;
    color: var(--navy);
    text-decoration: none;
}

.cards {
    display: grid;
    gap: 0.8rem;
}

.cards > li,
.profile-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1rem;
}

.cards h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.cards h2 a {
    color: var(--navy);
}

.meta {
    margin: 0.15rem 0;
    color: var(--muted);
}

.filters {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    gap: 0.2rem;
}

.facts {
    display: grid;
    grid-template-columns: minmax(7rem, 11rem) 1fr;
    gap: 0.35rem 0.75rem;
    margin: 0 0 1rem;
}

.facts dt {
    color: var(--muted);
}

.facts dd {
    margin: 0;
    white-space: pre-line;
}

.pre,
.note,
.token {
    white-space: pre-line;
}

.token {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    word-break: break-all;
    background: #f3f0e8;
    border-radius: 0.45rem;
    padding: 0.75rem;
}

.note {
    background: #f3ead2;
    border-radius: 0.45rem;
    padding: 0.75rem;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.pager span[aria-current="page"] {
    font-weight: 700;
}

#icerik:focus {
    outline: none;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .js .nav-toggle {
        display: none;
    }

    .js .site-nav,
    .site-nav {
        display: flex;
        flex-basis: auto;
        margin-left: auto;
    }

    .search-form,
    .grid {
        display: grid;
    }

    .search-form,
    .filters,
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
    }

    .search-form .actions,
    .filters .actions,
    .hero .lead,
    .filters + .status {
        grid-column: 1 / -1;
    }

    .hero .lead {
        margin-top: 0;
    }
}

@media (min-width: 960px) {
    .filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.notify-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    min-height: 2.75rem;
    text-decoration: none;
}

.count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #f3ead2;
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
}

.panel-nav {
    display: flex;
    position: fixed;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-around;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--line);
}

.panel-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.25rem;
    border-radius: 0.45rem;
    color: var(--navy);
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
}

.panel-nav a[aria-current="page"] {
    background: var(--navy);
    color: #f7f4ee;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.card-head h2 {
    margin: 0;
}

.fav {
    flex: 0 0 auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--danger);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.fav[aria-pressed="true"] {
    background: var(--danger-bg);
    border-color: #e7c4c4;
}

.fav:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: #e7eef6;
    color: var(--navy);
    font-size: 0.82rem;
    white-space: nowrap;
}

.badge-confirmed,
.badge-approved {
    background: var(--ok-bg);
    color: var(--ok);
}

.badge-pending,
.badge-info,
.badge-waiting {
    background: #f3ead2;
    color: #6d5420;
}

.badge-review {
    background: #e7eef6;
    color: var(--navy);
}

.badge-requested {
    background: #f3ead2;
    color: #6d5420;
}

.badge-rejected,
.badge-cancelled,
.badge-noshow {
    background: var(--danger-bg);
    color: var(--danger);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--navy);
    text-decoration: none;
}

.tabs a[aria-current="page"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #f7f4ee;
}

.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.slots label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: #fff;
}

.summary,
.stack > section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1rem;
}

.stack {
    display: grid;
    gap: 1.25rem;
}

.danger-box {
    background: var(--danger-bg);
    border-color: #e7c4c4;
}

.button-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

.button-danger:hover {
    background: #6f2424;
    color: #fff;
}

.cards > li.is-unread {
    border-color: #e2d2a8;
    box-shadow: inset 3px 0 0 #8d6a2f;
}

.clip {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    body:has(.panel-nav:not([hidden])) {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
    }
}

@media (min-width: 768px) {
    .js .site-nav,
    .site-nav {
        margin-left: 0.75rem;
    }

    .panel-shell {
        display: grid;
        grid-template-columns: 13rem minmax(0, 1fr);
        gap: 1.25rem;
        align-items: start;
    }

    .panel-shell .panel-nav,
    .panel-nav-bar {
        position: static;
        flex-direction: column;
        justify-content: flex-start;
        border: 1px solid var(--line);
        border-radius: 0.75rem;
        padding: 0.5rem;
    }

    .panel-shell .panel-nav {
        position: sticky;
        top: 1rem;
    }

    .panel-nav-bar {
        flex-direction: row;
        margin-bottom: 1rem;
    }

    .panel-shell .panel-nav a,
    .panel-nav-bar a {
        flex: 0 0 auto;
        justify-content: flex-start;
        padding: 0.45rem 0.7rem;
        font-size: 1rem;
    }
}

.tabs button {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--navy);
    font: inherit;
    cursor: pointer;
}

.tabs button[aria-selected="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #f7f4ee;
}

.tabs a.tab-hot:not([aria-current="page"]) {
    border-color: #8d6a2f;
    font-weight: 700;
}

.stack > section.stat-hot {
    background: #f3ead2;
    border-color: #e2d2a8;
}

.stat-num {
    margin: 0.2rem 0;
    color: var(--navy);
    font-size: 2rem;
    font-weight: 700;
}

.field-error {
    margin: 0.35rem 0 0;
    color: var(--danger);
    font-size: 0.92rem;
}

.day-block {
    margin-bottom: 1rem;
}

.day-block h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.actions .hint,
.actions .field-error {
    flex-basis: 100%;
}

.hour-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hour-row input[type="time"] {
    width: auto;
    min-width: 7.5rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #c9c1b3;
    border-radius: 0.45rem;
    background: #fff;
}

.modal {
    width: min(32rem, calc(100% - 2rem));
    max-width: 32rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--card);
    color: var(--ink);
}

.modal h2 {
    margin-top: 0;
}

.modal::backdrop {
    background: rgba(14, 39, 68, 0.45);
}

.panel-nav button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.25rem;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
}

.panel-nav button[aria-expanded="true"] {
    background: var(--navy);
    color: #f7f4ee;
}

.stat-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.stat-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.stat-card h2 {
    margin: 0;
    font-size: 1rem;
}

.stat-card.stat-hot {
    background: #f3ead2;
    border-color: #e2d2a8;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.45rem 0.35rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.meter {
    width: 100%;
    max-width: 12rem;
    height: 0.75rem;
}

.meter::-webkit-meter-bar {
    background: #e7eef6;
    border-radius: 999px;
}

.meter::-webkit-meter-optimum-value {
    background: var(--navy);
}

.meter::-moz-meter-bar {
    background: var(--navy);
}

@media (max-width: 767px) {
    .nav-side-wrap {
        display: none;
    }

    .panel-nav.is-more .nav-side-wrap {
        display: flex;
        position: fixed;
        z-index: 5;
        left: 0.5rem;
        right: 0.5rem;
        bottom: calc(4.4rem + env(safe-area-inset-bottom));
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.5rem;
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: 0.75rem;
    }

    .panel-nav.is-more .nav-side-wrap a {
        flex: 0 0 auto;
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    body[data-page^="admin"] .panel-shell {
        grid-template-columns: 16.5rem minmax(0, 1fr);
    }

    .panel-nav .nav-extra {
        display: none;
    }

    .nav-side-wrap {
        display: contents;
    }

    .panel-shell .panel-nav button {
        flex: 0 0 auto;
        justify-content: flex-start;
        padding: 0.45rem 0.7rem;
        font-size: 1rem;
    }
}

.break-all {
    word-break: break-all;
}

.code-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-list li + li {
    margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
