:root {
    --ink: #12232e;
    --ink-soft: #3d5360;
    --paper: #f4efe4;
    --card: #fffaf1;
    --line: #d8cdb8;
    --teal: #1f6f6a;
    --teal-deep: #14524e;
    --amber: #d89011;
    --late: #b42318;
    --ok: #1b7a4a;
    --shadow: 0 18px 40px rgba(18, 35, 46, 0.08);
    --shell-max: 1280px;
    --shell-pad: 24px;
}

* { box-sizing: border-box; }
html {
    margin: 0;
    min-height: 100%;
    scrollbar-gutter: stable;
}
body {
    margin: 0;
    min-height: 100%;
    font-family: Manrope, sans-serif;
    background:
        radial-gradient(1200px 500px at 10% -10%, #ffe7b3 0%, transparent 50%),
        var(--paper);
    color: var(--ink);
}
a { color: var(--teal-deep); text-decoration: none; }
h1, h2, .brand span { font-family: Fraunces, Georgia, serif; }

.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px max(var(--shell-pad), calc((100% - var(--shell-max)) / 2 + var(--shell-pad)));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 241, 0.86);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.25rem; flex-shrink: 0; }
.nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); font-weight: 600; }
.nav a:hover { color: var(--teal); }
.session { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 0.92rem; }
.session form { margin: 0; }
.field-error { color: #b42318; font-size: 0.82rem; margin: 4px 0 0; }
input.is-invalid, .is-invalid { border-color: #b42318 !important; }
.bell-wrap { position: relative; }
.bell-btn {
  position: relative; border: 0; background: transparent; cursor: pointer;
  width: 40px; height: 40px; border-radius: 999px; color: var(--ink);
  display: grid; place-items: center;
}
.bell-btn:hover { background: rgba(18, 35, 46, 0.06); }
.bell-badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: #c45c26; color: #fff;
  font-size: 0.7rem; font-weight: 700; display: grid; place-items: center;
}
.bell-panel {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 92vw);
  max-height: 420px; overflow: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 16px 40px rgba(18, 35, 46, 0.14); z-index: 40; padding: 8px;
}
.bell-wrap.open .bell-panel { display: block; }
.bell-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px;
  border-radius: 12px; text-decoration: none; color: inherit;
}
.bell-item:hover { background: #f7f2e8; }
.bell-item.unread { background: #fff6e0; }
.bell-item strong { display: block; font-size: 0.92rem; }
.bell-item span { display: block; color: var(--ink-soft); font-size: 0.82rem; margin-top: 2px; }
.bell-del {
  border: 0; background: transparent; cursor: pointer; color: #8a7360; width: 28px; height: 28px;
  border-radius: 8px; font-size: 1rem; line-height: 1;
}
.bell-del:hover { background: rgba(180, 35, 24, 0.08); color: #b42318; }
.bell-empty { padding: 18px; text-align: center; color: var(--ink-soft); font-size: 0.9rem; }
.linkish, button.linkish {
    background: none; border: 0; color: var(--teal); cursor: pointer; font: inherit; font-weight: 700;
}

.shell {
    width: min(var(--shell-max), calc(100% - (var(--shell-pad) * 2)));
    max-width: 100%;
    margin: 28px auto 64px;
}
.is-kiosk, .is-bare { background: var(--ink); color: var(--paper); }
.is-kiosk .shell, .is-bare .shell { width: min(720px, calc(100% - 24px)); margin: 40px auto; }

.hero, .card, .stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.hero { padding: 48px; display: grid; gap: 18px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; line-height: 1.15; }
.hero-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 28px 36px;
}
.hero-copy { display: grid; gap: 16px; }
.hero-visual {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #efe6d6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.hero-visual img,
.shot-card img,
.app-card-media > img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}
.hero-visual .mock-stage {
    padding: 18px;
    min-height: 280px;
    display: grid;
    place-items: center;
}
.landing-mock {
    --mock-ink: #12232e;
    --mock-paper: #f4efe4;
    --mock-card: #fbf7f0;
    --mock-teal: #1f6f6a;
    --mock-line: #d9d0c0;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--mock-ink);
}
.mock-phone {
    width: min(100%, 220px);
    background: #1a1f24;
    border-radius: 28px;
    padding: 10px 8px 14px;
    box-shadow: 0 18px 40px rgba(18, 35, 46, 0.28);
}
.mock-phone-notch {
    width: 72px; height: 8px; border-radius: 999px;
    background: #0d1114; margin: 0 auto 8px;
}
.mock-phone-screen {
    background: var(--mock-paper);
    border-radius: 20px;
    padding: 12px;
    min-height: 320px;
}
.mock-phone-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.mock-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--mock-teal); color: #f6f1e8;
    display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.mock-hello { font-size: 13px; font-weight: 800; }
.mock-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.mock-tile {
    background: var(--mock-card);
    border: 1px solid var(--mock-line);
    border-radius: 14px;
    padding: 10px 8px;
    text-align: center;
    min-height: 72px;
}
.mock-tile-icon {
    width: 28px; height: 28px; margin: 0 auto 6px;
    border-radius: 50%; background: var(--mock-teal);
    color: #f6f1e8; display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
}
.mock-tile b { display: block; font-size: 11px; line-height: 1.25; }
.mock-tile span { display: block; font-size: 9px; color: #3d5360; margin-top: 2px; }
.mock-door {
    width: min(100%, 340px);
    background: linear-gradient(160deg, #1f6f6a, #12232e);
    border-radius: 16px;
    padding: 18px 20px 16px;
    color: #f6f1e8;
    box-shadow: 0 16px 36px rgba(18, 35, 46, 0.25);
}
.mock-door-brand { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.mock-door-title { font-size: 18px; font-weight: 800; margin: 6px 0 14px; }
.mock-qr {
    width: 140px; height: 140px; margin: 0 auto;
    background:
        linear-gradient(#f6f1e8 0 0) 0 0 / 20% 20%,
        linear-gradient(#f6f1e8 0 0) 100% 0 / 20% 20%,
        linear-gradient(#f6f1e8 0 0) 0 100% / 20% 20%,
        linear-gradient(#f6f1e8 0 0) 100% 100% / 20% 20%,
        repeating-conic-gradient(#12232e 0% 25%, #f6f1e8 0% 50%) 50% / 18% 18%;
    background-repeat: no-repeat;
    border-radius: 10px;
    border: 8px solid #f6f1e8;
}
.mock-door-meta {
    display: flex; justify-content: space-between;
    margin-top: 14px; font-size: 11px; opacity: 0.9;
}
.mock-panel {
    width: 100%;
    background: var(--mock-paper);
    border-radius: 14px;
    border: 1px solid var(--mock-line);
    padding: 12px;
    box-shadow: 0 12px 28px rgba(18, 35, 46, 0.12);
}
.mock-panel-bar {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
}
.mock-panel-bar strong { font-size: 14px; }
.mock-panel-bar span { font-size: 11px; color: #3d5360; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.mock-stat {
    background: var(--mock-card); border: 1px solid var(--mock-line);
    border-radius: 10px; padding: 8px; text-align: center;
}
.mock-stat b { display: block; font-size: 16px; }
.mock-stat span { font-size: 9px; color: #3d5360; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.mock-table th, .mock-table td {
    text-align: left; padding: 6px 4px;
    border-bottom: 1px solid var(--mock-line);
}
.mock-table th { color: #3d5360; font-weight: 700; }
.mock-badge {
    display: inline-block; padding: 2px 6px; border-radius: 999px;
    background: #d8eee8; color: var(--mock-teal); font-size: 9px; font-weight: 700;
}
.mock-badge.late { background: #f8d7d3; color: #b42318; }
.shot-card .landing-mock { padding: 16px; min-height: 280px; display: grid; place-items: center; }
.app-card-media .landing-mock { padding: 8px; }
.landing-block { margin-top: 36px; }
.landing-block h2, .landing-cta h2 { margin: 8px 0 18px; font-size: 1.7rem; }
.landing-block h3, .card h3 { font-family: Fraunces, Georgia, serif; margin: 0 0 8px; }
.landing-lead { max-width: 52rem; margin: -6px 0 20px; }
.step {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ink); color: var(--paper);
    font-weight: 800; margin-bottom: 12px;
}
.app-card { min-height: 160px; }
.app-card-media {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    overflow: hidden;
}
.app-card-media > img {
    border-radius: 14px;
    border: 1px solid var(--line);
    max-height: 180px;
    object-fit: cover;
    width: 100%;
}
.app-card-media > div { padding-right: 8px; }
.shot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.shot-card {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.shot-card figcaption {
    display: grid;
    gap: 2px;
    padding: 14px 16px 16px;
}
.shot-card figcaption strong {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.05rem;
}
.module-grid .module-card { padding: 22px; }
.module-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: #e8f2f1; color: var(--teal-deep);
    font-weight: 800; margin-bottom: 12px;
    border: 1px solid #cfe0dd;
}
.landing-cta {
    margin-top: 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.legal-doc h2 { margin-top: 28px; font-size: 1.15rem; }
.legal-doc ul { margin: 8px 0 0; padding-left: 1.2rem; }
.legal-doc li { margin: 6px 0; }
.legal-footer {
    margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.9rem;
}
.site-footer {
    margin-top: 48px;
    padding: 28px 0 8px;
    border-top: 1px solid var(--line);
}
.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
}
.site-footer h3 {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.05rem;
    margin: 0 0 12px;
}
.site-footer-brand .brand { margin-bottom: 10px; }
.site-footer-brand p { margin: 0; max-width: 28rem; }
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
}
.footer-links a:hover { color: var(--teal); }
.footer-cta {
    color: var(--teal-deep) !important;
    font-weight: 800 !important;
}
.site-footer-bar {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-nav {
    background: var(--teal);
    color: #f7faf9;
}
.btn-nav:hover { background: var(--teal-deep); color: #fff; }
.is-landing .shell { margin-bottom: 40px; }
.hero p, .muted { color: var(--ink-soft); line-height: 1.6; }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; color: var(--teal); font-weight: 700; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.actions > form { display: inline-flex; align-items: center; margin: 0; }
.actions.row-actions {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.note-input {
    width: 110px;
    min-width: 90px;
    padding: 8px 10px;
    border-radius: 10px;
}

.btn, button.btn, input[type=submit], a.btn {
    display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    border: 0; border-radius: 999px; padding: 10px 20px;
    background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer;
    line-height: 1.2; vertical-align: middle; text-decoration: none;
}
.btn.ghost, a.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.amber, a.btn.amber { background: var(--amber); color: var(--ink); }
.btn.danger, a.btn.danger { background: var(--late); }
.btn-sm, a.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 0.88rem; }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.form-dense { gap: 12px 16px; align-items: start; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field > label { margin: 0 0 4px; font-size: 0.88rem; }
.field > .muted { margin: 4px 0 0; font-size: 0.8rem; line-height: 1.35; }
.field.span-2 { grid-column: span 2; }
.field.span-3 { grid-column: span 3; }
.field.span-4 { grid-column: span 4; }
/* Checkbox’ı yanındaki etiketli input ile hizala (label yüksekliği + gap) */
.field-check {
    display: flex;
    align-items: center;
    padding-top: calc(0.88rem + 4px);
    min-height: 0;
}
.field-check .check { margin: 0; }
.field-sm { max-width: 12rem; }
.field-md { max-width: 22rem; }
.form-card label:not(.check),
.settings-module-body > label:not(.check),
.settings-sub > label:not(.check) { margin-top: 10px; }
.form-card .grid + .grid,
.settings-module-body .grid + .grid { margin-top: 12px; }
.form-card input,
.form-card select,
.settings-module-body input,
.settings-module-body select { max-width: 100%; }
.license-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 20px;
}
.license-grid .check { margin-top: 8px; }
.stat, .card { padding: 22px; }
.stat b { display: block; font-size: 2rem; font-family: Fraunces, serif; margin-top: 8px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { color: var(--ink-soft); font-weight: 600; }
.table-wrap { overflow-x: auto; }
table.dense th, table.dense td { padding: 8px 6px; font-size: 0.88rem; white-space: nowrap; }
.support-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px max(var(--shell-pad), calc((100% - var(--shell-max)) / 2 + var(--shell-pad)));
    background: #12232e; color: #f6f1e8; font-size: 0.92rem;
}
.support-banner .linkish { color: #f0c75e; }
.support-banner form { margin: 0; }

label { display: block; font-weight: 700; margin: 14px 0 6px; }
label.check {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; margin-top: 16px;
}
label.check input { width: auto; margin: 0; }
input, select {
    width: 100%; padding: 12px 14px; border-radius: 14px;
    border: 1px solid var(--line); background: #fff; font: inherit;
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; background: transparent;
    color: var(--ink-soft); cursor: pointer; border-radius: 10px;
    display: grid; place-items: center; padding: 0;
}
.password-toggle:hover { color: var(--ink); background: #fff3d6; }
.flash { padding: 12px 14px; border-radius: 14px; background: #e8f6ee; color: var(--ok); }
.flash.bad { background: #fdecea; color: var(--late); }
.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.module-tile {
    aspect-ratio: 1.15;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 16px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-weight: 700;
}
.module-tile span { display: block; margin-top: 6px; color: var(--ink-soft); font-weight: 500; font-size: 0.85rem; }

.settings-stack { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.settings-module {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: clip;
}
.settings-module-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px;
    background: #fbf8f1;
    list-style: none;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
}
.settings-module-head::-webkit-details-marker { display: none; }
.settings-module-head::marker { content: ""; }
.settings-module-head h2 { margin: 0; font-size: 1.1rem; }
.settings-module-head .module-toggle { margin: 0; white-space: nowrap; }
.settings-module[open] > .settings-module-head {
    border-bottom-color: var(--line);
}
.accordion-hint {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink-soft);
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    min-width: 4.5rem;
    text-align: center;
}
.settings-module[open] .accordion-hint {
    background: #fff3d6;
    color: #8a6a10;
    border-color: #e8d4a0;
}
.settings-module-body { padding: 8px 22px 20px; }
.settings-module-body h3 {
    font-family: Manrope, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 20px 0 6px;
    color: var(--ink);
}
.settings-module-body > .module-toggle { margin-top: 12px; }
.settings-sub {
    margin-top: 8px;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
}
.settings-sub:first-of-type { border-top: 0; padding-top: 0; }
.module-status {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.module-status.on { background: #e8f6ee; color: var(--ok); }
.module-status.off { background: #eef2f4; color: var(--ink-soft); }
.module-status.locked { background: #fdecea; color: var(--late); }
.module-status.always { background: #fff3d6; color: #8a6a10; }
.settings-module.is-locked .settings-module-head { opacity: 0.92; }

.logo-preview-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 96px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: rgba(255, 250, 241, 0.7);
}
.logo-preview-box img {
    max-height: 88px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-picker-row input[type="color"] {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.color-picker-row input[type="text"],
.color-picker-row input:not([type="color"]) {
    flex: 1;
    min-width: 0;
}
.period-tabs .btn { padding: 8px 12px; font-size: 0.85rem; }
.year-filter {
    display: flex; align-items: center; gap: 10px;
}
.year-filter label {
    margin: 0; font-size: 0.88rem; white-space: nowrap;
}
.year-filter select {
    width: auto; min-width: 10rem; margin: 0; padding: 8px 12px;
}

.badge.in { background: #e8f6ee; color: var(--ok); }
.badge.out { background: #eef2f4; color: var(--ink-soft); }
.badge.late { background: #fdecea; color: var(--late); }
.badge.amber { background: #fff3d6; color: #8a6a10; }

.pin-overlay {
    position: fixed; inset: 0; background: rgba(18, 35, 46, 0.72);
    display: none; place-items: center; z-index: 20;
}
.pin-overlay.is-open { display: grid; }
.kicker#logoHit { cursor: default; user-select: none; }
.kiosk-wrap { text-align: center; color: var(--paper); }
.kiosk-wrap h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 8px; }
.qr-frame {
    margin: 24px auto; width: min(420px, 88vw); aspect-ratio: 1;
    background: #f6f1e8; border-radius: 28px; padding: 18px;
    display: grid; place-items: center;
}
.qr-frame svg { width: 100%; height: 100%; }
.clock { font-size: 1.4rem; letter-spacing: 0.08em; }

.login-card { width: min(440px, 100%); margin: 8vh auto; padding: 36px; }
.form-wrap { width: 100%; margin: 0; }
.form-card { width: 100%; }
.form-wrap h1 { margin-bottom: 6px; }
.form-card .grid { margin-top: 4px; }
.tr-date {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 9.5rem;
}
.tr-date-text {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    pointer-events: none;
}
.tr-date input[type=date] {
    position: absolute;
    inset: 0;
    opacity: 0.01;
    cursor: pointer;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    z-index: 2;
    font-size: 16px;
}
.date-field {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 10.5rem;
}
.date-field-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}
.date-field input[type=date] {
    width: 100%;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    cursor: pointer;
    min-height: 42px;
}
.date-field input[type=date]:focus {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.page-toolbar > .actions,
.page-toolbar > .report-export {
    align-self: center;
}
.table-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 4px;
}
.table-pager[hidden] { display: none !important; }
.table-pager .pager-btn {
    min-width: 40px;
    min-height: 36px;
    padding: 6px 12px;
}
.table-pager .pager-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    min-width: 4.5rem;
    text-align: center;
}
@media print {
    .table-pager { display: none !important; }
    .js-pager tbody tr { display: table-row !important; }
}
.period-toolbar {
    align-items: center;
    gap: 10px;
}
.range-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 6px 8px 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 250, 241, 0.9);
}
.range-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink-soft);
    white-space: nowrap;
}
.range-sep { font-weight: 600; }
.report-range {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.report-range strong {
    color: var(--ink);
    font-size: 1rem;
}
.report-export {
    display: inline-flex;
    align-items: center;
    position: relative;
}
.report-export .btn { gap: 6px; }
.report-export-toggle {
    gap: 8px;
}
.report-export-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 140px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 35, 46, 0.12);
    z-index: 20;
    display: grid;
    gap: 2px;
}
.report-export-menu[hidden] { display: none; }
.report-export-menu a,
.report-export-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.report-export-menu a:hover,
.report-export-menu button:hover {
    background: #f7f2e8;
}
.print-head { display: none; }
/* display:none yazdırmada tarayıcının logo yüklemesini engeller → kırık ikon */
.print-brand-bar {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.personnel-form { padding: 14px 16px 12px; }
.personnel-form-head {
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: 10px;
    align-items: start;
    padding-bottom: 8px;
    border-bottom: 1.25px solid var(--ink);
    margin-bottom: 10px;
}
.personnel-form-brand h1 {
    margin: 0 0 2px;
    font-size: 1.1rem;
}
.personnel-form-brand .muted {
    margin: 0;
    font-size: 0.78rem;
}
.personnel-form-photo {
    width: 56px;
    height: 68px;
    border: 1.25px dashed var(--line);
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 600;
    background: #fff;
}
.personnel-form-section { margin-bottom: 8px; }
.personnel-form-section h2 {
    margin: 0 0 6px;
    font-size: 0.86rem;
}
.form-lines {
    display: grid;
    gap: 5px 14px;
}
.form-lines.cols-2 { grid-template-columns: 1fr 1fr; }
.form-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px;
    align-items: end;
}
.form-line.span-2 { grid-column: 1 / -1; }
.form-line label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 1px;
    white-space: nowrap;
}
.form-line label::after { content: " :"; }
.form-line .line,
.form-notes .line,
.form-sign .line {
    display: block;
    border-bottom: 1px solid #c9bda8;
    min-height: 16px;
}
.form-notes { display: grid; gap: 8px; }
.personnel-form-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 12px;
    padding-top: 4px;
}
.form-sign { display: grid; gap: 4px; }
.form-sign .line { min-height: 22px; }
.form-sign small { color: var(--ink-soft); font-size: 0.72rem; }
.notice-list { display: grid; gap: 10px; }
.notice { padding: 12px 14px; border-radius: 14px; background: #fff6e0; border: 1px solid var(--line); }

@media (max-width: 900px) {
    .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field.span-3, .field.span-4 { grid-column: span 2; }
    .hero-split { grid-template-columns: 1fr; }
    .shot-grid { grid-template-columns: 1fr; }
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .app-card-media { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    :root { --shell-pad: 16px; }
    .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
    .field.span-2, .field.span-3, .field.span-4 { grid-column: auto; }
    .license-grid { grid-template-columns: 1fr; }
    .topbar { flex-wrap: wrap; padding: 14px var(--shell-pad); }
    .hero { padding: 28px; }
    .landing-cta { flex-direction: column; align-items: flex-start; }
    .shell { margin: 20px auto 48px; }
    .site-footer-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
}

@media print {
    .topbar,
    .support-banner,
    .no-print,
    .actions,
    .notice-list,
    .landing-cta .btn,
    .page-toolbar,
    .period-toolbar,
    .report-export,
    .flash { display: none !important; }

    html, body {
        background: #fff !important;
        color: #000;
        -webkit-print-color-adjust: economy;
        print-color-adjust: economy;
    }
    .shell {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .print-head {
        display: block !important;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1.5px solid #ccc;
    }
    .print-brand-bar {
        position: static !important;
        width: auto !important;
        height: auto !important;
        margin: 0 0 14px !important;
        padding: 0 0 10px !important;
        overflow: visible !important;
        clip: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: flex !important;
        align-items: center;
        gap: 12px;
        border-bottom: 1.5px solid #ccc;
    }
    .print-brand-bar img {
        max-height: 52px;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    .print-brand-bar strong { font-size: 1.15rem; }
    .print-head h1 { margin: 4px 0 6px; font-size: 1.4rem; }
    .print-head .muted { margin: 0; font-size: 0.9rem; }
    .hero, .card, .stat {
        box-shadow: none !important;
        border-color: #ccc !important;
        border-radius: 0 !important;
        break-inside: avoid;
        background: #fff !important;
    }
    .card { padding: 0; border: 0 !important; }
    .report-range {
        border-bottom-color: #ccc;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
    th, td {
        border-bottom: 1px solid #ddd;
        padding: 6px 8px;
        text-align: left;
    }
    th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
    .badge { border: 1px solid #999; background: transparent !important; color: #000 !important; }
    a { color: inherit; text-decoration: none; }
    .personnel-form {
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        font-size: 10pt;
    }
    .personnel-form-head {
        grid-template-columns: 1fr 48px;
        gap: 8px;
        margin-bottom: 6px;
        padding-bottom: 5px;
        border-bottom-color: #000;
    }
    .personnel-form-brand h1 {
        margin: 0;
        font-size: 12pt;
        line-height: 1.2;
    }
    .personnel-form-photo {
        width: 48px;
        height: 58px;
        font-size: 7.5pt;
        border-radius: 4px;
    }
    .personnel-form-section { margin-bottom: 5px; }
    .personnel-form-section h2 {
        margin: 0 0 4px;
        font-size: 9.5pt;
        line-height: 1.2;
    }
    .form-lines { gap: 3px 10px; }
    .form-line { gap: 5px; }
    .form-line label {
        font-size: 8.5pt;
        padding-bottom: 0;
    }
    .form-line .line,
    .form-notes .line,
    .form-sign .line {
        border-bottom-color: #333;
        min-height: 13px;
    }
    .personnel-form-foot {
        gap: 14px;
        margin-top: 8px;
        padding-top: 2px;
    }
    .form-sign { gap: 2px; }
    .form-sign .line { min-height: 18px; }
    .form-sign small { font-size: 7.5pt; }
    .grid.cols-3 { display: none !important; }
}

@media (max-width: 720px) {
    .form-lines.cols-2 { grid-template-columns: 1fr; }
    .form-line { grid-template-columns: 1fr; gap: 4px; }
    .personnel-form-head { grid-template-columns: 1fr; }
    .personnel-form-photo { width: 96px; height: 110px; }
    .range-inline { width: 100%; }
}
