/* DAMM Tesis Denetim ve Onay Sistemi */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/montserrat-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --brand: #a51f22; --brand-600: #8a191c; --brand-50: #fbeeed; --brand-100: #f5d6d5;
  --ink: #1d1d1f; --ink-2: #414042; --muted: #6e6a67; --faint: #9a9591;
  --bg: #f5f3f1; --card: #ffffff; --card-2: #faf8f6; --line: #e8e3df; --line-2: #d9d2cc;
  --ok: #1d7a4c; --ok-bg: #e6f4ec; --warn: #a86406; --warn-bg: #fdf1dc; --bad: #c42b2b; --bad-bg: #fbe8e7; --info: #2d5b9a; --info-bg: #e7eef8;
  --dd: #6e6a67; --dd-bg: #eeebe8;
  --side: #1b1b1c; --side-ink: #c9c5c1; --side-hover: #2a2a2b;
  --shadow: 0 1px 2px rgba(30,20,15,.06), 0 4px 16px rgba(30,20,15,.05);
  --shadow-lg: 0 12px 40px rgba(20,10,5,.18);
  --r: 12px; --r-sm: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", var(--font);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --brand: #e0514c; --brand-600: #c9403b; --brand-50: #2c1716; --brand-100: #4a2220;
  --ink: #f0edea; --ink-2: #d8d3cf; --muted: #a39d98; --faint: #7a746f;
  --bg: #121212; --card: #1b1b1c; --card-2: #212122; --line: #2c2b2b; --line-2: #3a3838;
  --ok: #4cc28a; --ok-bg: #16281f; --warn: #e9a23b; --warn-bg: #2d2314; --bad: #f06a62; --bad-bg: #321918; --info: #7aa7e8; --info-bg: #17212f;
  --dd: #a39d98; --dd-bg: #262525; --side: #0c0c0c; --side-hover: #1f1f1f;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.6); color-scheme: dark; } }
:root[data-theme="dark"] {
  --brand: #e0514c; --brand-600: #c9403b; --brand-50: #2c1716; --brand-100: #4a2220;
  --ink: #f0edea; --ink-2: #d8d3cf; --muted: #a39d98; --faint: #7a746f;
  --bg: #121212; --card: #1b1b1c; --card-2: #212122; --line: #2c2b2b; --line-2: #3a3838;
  --ok: #4cc28a; --ok-bg: #16281f; --warn: #e9a23b; --warn-bg: #2d2314; --bad: #f06a62; --bad-bg: #321918; --info: #7aa7e8; --info-bg: #17212f;
  --dd: #a39d98; --dd-bg: #262525; --side: #0c0c0c; --side-hover: #1f1f1f;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 12px 40px rgba(0,0,0,.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 700; } h2 { font-size: 17px; font-weight: 700; } h3 { font-size: 15px; font-weight: 650; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 26px; height: 26px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; } .gap-s { gap: 6px; } .gap-l { gap: 16px; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; }
.hidden { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; }

/* ---------- Kabuk ---------- */
.shell { min-height: 100dvh; }
.sidebar { display: none; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 8px 0 12px;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .mark { height: 26px; width: 26px; }
.topbar .title { flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.iconbtn:hover { background: var(--card-2); }
.iconbtn .dot { position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--card); }
.main { padding: 16px 14px calc(96px + var(--safe-b)); max-width: 1320px; margin: 0 auto; }
.bottomnav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px 6px calc(6px + var(--safe-b)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.04); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; }
.bottomnav a.on { color: var(--brand); }
.bottomnav .fab { margin-top: -26px; }
.bottomnav .fab span.b { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--brand); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 40%, transparent); }
.bottomnav .fab .ic { width: 26px; height: 26px; }
.offline-bar { position: sticky; top: 56px; z-index: 29; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 6px 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; }

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 256px 1fr; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; background: var(--side); color: var(--side-ink); padding: 22px 14px 16px; overflow-y: auto; }
  .sidebar .logo { padding: 2px 10px 22px; border-bottom: 1px solid #2c2c2d; margin-bottom: 14px; }
  .sidebar .logo img { height: 30px; display: block; }
  .sidebar .logo small { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8d8884; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar .grp { margin: 16px 10px 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #77726e; font-weight: 700; }
  .sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--side-ink); font-weight: 550; font-size: 14px; text-decoration: none; }
  .sidebar nav a:hover { background: var(--side-hover); color: #fff; }
  .sidebar nav a.on { background: var(--brand); color: #fff; }
  .sidebar nav a .cnt { margin-left: auto; font-size: 11px; background: #ffffff1f; padding: 1px 7px; border-radius: 9px; }
  .sidebar .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #2c2c2d; display: flex; gap: 10px; align-items: center; font-size: 13px; }
  .sidebar .me b { color: #fff; display: block; font-weight: 600; }
  .topbar { height: 64px; padding: 0 24px; }
  .topbar .mark { display: none; }
  .topbar .title { font-size: 19px; }
  .main { padding: 24px 28px 48px; }
  .bottomnav { display: none; }
  .offline-bar { top: 64px; }
  .mobile-only { display: none !important; }
}
@media (max-width: 1023px) { .desk-only { display: none !important; } }

.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; font-family: var(--display); }

/* ---------- Bileşenler ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card > .hd { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card > .hd h2 { flex: 1; font-size: 15px; }
.card > .bd { padding: 16px; }
.card > .bd.flush { padding: 0; }
.card + .card, .card + .grid, .grid + .card, .grid + .grid { margin-top: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 720px) { .grid.g2 { grid-template-columns: 1fr 1fr; } .grid.g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }

.pagehead { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead .grow h1 + p { margin: 4px 0 0; color: var(--muted); }
.pagehead .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--card-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--dd-bg); color: var(--dd); }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.info { background: var(--info-bg); color: var(--info); }
.badge.brand { background: var(--brand-50); color: var(--brand); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.score { display: inline-grid; place-items: center; min-width: 54px; height: 28px; padding: 0 8px; border-radius: 8px; font-weight: 750; font-size: 13.5px; font-variant-numeric: tabular-nums; background: var(--dd-bg); color: var(--dd); }
.score.ok { background: var(--ok-bg); color: var(--ok); } .score.warn { background: var(--warn-bg); color: var(--warn); } .score.bad { background: var(--bad-bg); color: var(--bad); }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input[readonly] { background: var(--card-2); }
select.input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .form-grid.c2 { grid-template-columns: 1fr 1fr; } .form-grid.c3 { grid-template-columns: repeat(3, 1fr); } .form-grid .span2 { grid-column: span 2; } .form-grid .spanall { grid-column: 1 / -1; } }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { appearance: none; width: 42px; height: 24px; margin: 0; border-radius: 12px; background: var(--line-2); cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--ok); } .switch input:checked::after { transform: translateX(18px); }

.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 38px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters > * { flex: 1 1 150px; min-width: 0; }
.filters > .search { flex: 2 1 220px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 17px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--card); }
.chip .n { font-size: 11.5px; opacity: .7; }

/* Tablo */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--card-2); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.link { cursor: pointer; } .tbl tr.link:hover td { background: var(--card-2); }

@media (max-width: 719px) {
  table.tbl.stack thead { display: none; }
  table.tbl.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.tbl.stack td { display: block; border: 0; padding: 6px 16px; }
  table.tbl.stack td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
}
/* Liste kartları (mobil) */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.li:last-child { border-bottom: 0; }
a.li:hover, .li.link:hover { background: var(--card-2); text-decoration: none; cursor: pointer; }
.li .t { font-weight: 600; } .li .s { font-size: 13px; color: var(--muted); }
.li .tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-50); color: var(--brand); flex: none; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty .ic { width: 38px; height: 38px; color: var(--faint); margin-bottom: 8px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .kpis { grid-template-columns: repeat(6, 1fr); } }
.kpi { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: inherit; text-decoration: none; display: block; }
a.kpi:hover { text-decoration: none; border-color: var(--line-2); }
.kpi .l { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi .v { margin-top: 6px; font: 700 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi.alert .v { color: var(--bad); }

.hero { position: relative; overflow: hidden; padding: 20px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #1b1b1c 0%, #2a1a1a 55%, var(--brand) 140%); margin-bottom: 16px; }
.hero h1 { font-size: 21px; } .hero p { margin: 6px 0 0; color: #d8d2cd; font-size: 14px; }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: url(img/mark-white.png) no-repeat center / contain; opacity: .07; }

/* Bar / progress */
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.bar.ok > i { background: var(--ok); } .bar.warn > i { background: var(--warn); } .bar.bad > i { background: var(--bad); }
.hbar { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 52px; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.hbar .bar { height: 10px; position: relative; overflow: visible; }
.hbar .bar .tgt { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-2); opacity: .5; }

/* Modal / sheet */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,10,8,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { width: 100%; max-height: 92dvh; display: flex; flex-direction: column; background: var(--card); border-radius: 18px 18px 0 0; box-shadow: var(--shadow-lg); animation: up .2s ease-out; padding-bottom: var(--safe-b); }
.modal .mh { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.modal .mh h2 { flex: 1; }
.modal .mb { padding: 16px 18px; overflow-y: auto; }
.modal .mf { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .overlay { align-items: center; padding: 24px; } .modal { max-width: 560px; border-radius: 16px; } .modal.wide { max-width: 860px; } }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(24px); opacity: .6; } }

.toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(90px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 1024px) { .toasts { bottom: 24px; left: auto; right: 24px; transform: none; } }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #1d1d1f; color: #fff; font-size: 14px; box-shadow: var(--shadow-lg); animation: up .2s; pointer-events: auto; }
.toast.err { background: #8d1f1f; } .toast.ok .ic { color: #6fe0a5; }

.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
.loading { display: grid; place-items: center; padding: 60px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { flex: none; padding: 10px 14px; border: 0; background: none; border-bottom: 2px solid transparent; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: none; }
.tabs .on { color: var(--brand); border-bottom-color: var(--brand); }

.dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 14px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 550; word-break: break-word; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.timeline li::after { content: ""; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { font-weight: 600; }

.stepper { display: flex; gap: 4px; }
.stepper > div { flex: 1; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.stepper > div::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.stepper > div.done { color: var(--ink-2); } .stepper > div.done::before { background: var(--brand); }
.stepper > div.cur { color: var(--brand); } .stepper > div.cur::before { background: var(--brand); }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card-2); display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.thumb .x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.thumb .x .ic { width: 14px; height: 14px; }
.addphoto { width: 72px; height: 72px; border-radius: 10px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); cursor: pointer; background: transparent; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-height: 92dvh; border-radius: 6px; }

/* ---------- Denetim doldurma ---------- */
.fillhead { position: sticky; top: 56px; z-index: 20; margin: -16px -14px 14px; padding: 12px 14px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .fillhead { top: 64px; margin: -24px -28px 18px; padding: 14px 28px 12px; } }
.fillhead .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fillhead .meta .t { font-weight: 700; font-family: var(--display); font-size: 15px; }
.fillhead .save { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.fillhead .save.off { color: var(--warn); }
.fillhead .bar { height: 6px; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; transition: border-color .15s; scroll-margin-top: 150px; }
.q.v1 { border-left: 4px solid var(--ok); } .q.v0 { border-left: 4px solid var(--bad); } .q.vDD { border-left: 4px solid var(--dd); }
.q .qt { display: flex; gap: 10px; align-items: flex-start; }
.q .qn { flex: none; min-width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); font-weight: 700; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q .qx { flex: 1; font-size: 15px; line-height: 1.45; font-weight: 500; }
.q .flags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.q .guid { font-size: 13px; color: var(--muted); margin-top: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr 64px; gap: 8px; margin-top: 12px; }
.seg button { height: 48px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--card); font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink-2); -webkit-tap-highlight-color: transparent; }
.seg button[data-v="1"].on { background: var(--ok); border-color: var(--ok); color: #fff; }
.seg button[data-v="0"].on { background: var(--bad); border-color: var(--bad); color: #fff; }
.seg button[data-v="DD"].on { background: var(--dd); border-color: var(--dd); color: #fff; }
.q .more { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.q .tog { margin-top: 10px; display: flex; gap: 14px; }
.q .tog button { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.q .tog button .c { color: var(--brand); }
.resp { display: flex; gap: 6px; }
.resp button { flex: 1; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.resp button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.sec-h { margin: 18px 2px 10px; font: 700 12.5px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.scorebox { display: flex; align-items: center; gap: 14px; }
.ring { --p: 0; --c: var(--ok); width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line) 0); }
.ring > span { width: 60px; height: 60px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 750 17px var(--display); font-variant-numeric: tabular-nums; }
.ring.big { width: 104px; height: 104px; } .ring.big > span { width: 84px; height: 84px; font-size: 22px; }
.counts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.counts b { font-size: 17px; display: block; font-family: var(--display); }

.sig { border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--card-2); position: relative; touch-action: none; }
.sig canvas { width: 100%; height: 170px; display: block; cursor: crosshair; }
.sig .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 13px; pointer-events: none; }
.sigimg { height: 70px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); padding: 4px; }

.pick { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pick { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pick { grid-template-columns: repeat(3, 1fr); } }
.pick > button, .pick > a { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card); cursor: pointer; color: inherit; text-decoration: none; }
.pick > button:hover, .pick > a:hover { border-color: var(--brand); text-decoration: none; }
.pick > .on { border-color: var(--brand); background: var(--brand-50); }

/* Plan düzenleyici */
.psec { margin-bottom: 12px; }
.psec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; font-family: var(--display); font-size: 15px; }
.psec > summary::-webkit-details-marker { display: none; }
.psec > summary .n { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 12.5px; }
.psec > summary .chev { margin-left: auto; transition: transform .15s; color: var(--muted); }
.psec[open] > summary .chev { transform: rotate(180deg); }
.psec > .body { padding: 0 16px 16px; }
.trow { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--card-2); }
.trow .form-grid { gap: 10px; }
.trow .rm { margin-left: auto; }
.hintbox { display: flex; gap: 10px; padding: 11px 13px; border-radius: 10px; background: var(--info-bg); color: var(--info); font-size: 13px; margin-bottom: 12px; }
.warnbox { display: flex; gap: 10px; padding: 11px 13px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; margin-bottom: 12px; }
.errbox { display: flex; gap: 10px; padding: 11px 13px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-size: 13.5px; margin-bottom: 12px; }

/* Heatmap matrisi */
.heat td.c { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Grafik */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .ln { stroke: var(--brand); stroke-width: 2.5; fill: none; }
.chart .ar { fill: color-mix(in srgb, var(--brand) 12%, transparent); }
.chart .pt { fill: var(--card); stroke: var(--brand); stroke-width: 2; }
.chart .lbl { fill: var(--ink-2); font-size: 11px; font-weight: 650; font-family: var(--font); }

/* ---------- Giriş ---------- */
.auth { min-height: 100dvh; display: grid; }
@media (min-width: 960px) { .auth { grid-template-columns: 1.1fr 1fr; } }
.auth .brandside { display: none; position: relative; overflow: hidden; color: #fff; padding: 48px; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 600px at -10% 110%, #6e1416 0%, transparent 60%), linear-gradient(160deg, #19191a 0%, #232122 60%, #3a1718 100%); }
@media (min-width: 960px) { .auth .brandside { display: flex; } }
.auth .brandside img.logo { height: 40px; align-self: flex-start; }
.auth .brandside h1 { font-size: 40px; font-weight: 800; line-height: 1.12; max-width: 520px; }
.auth .brandside h1 em { font-style: normal; color: #ff6b66; }
.auth .brandside p { max-width: 470px; color: #cfc8c3; font-size: 15.5px; }
.auth .brandside .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; margin-top: 26px; }
.auth .brandside .feats div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #e9e3de; }
.auth .brandside .feats .ic { color: #ff6b66; }
.auth .brandside .foot { font-size: 12.5px; color: #8f8883; }
.auth .brandside .bigmark { position: absolute; right: -120px; bottom: -80px; width: 520px; opacity: .06; }
.auth .formside { display: grid; place-items: center; padding: 28px 20px; }
.auth .box { width: 100%; max-width: 380px; }
.auth .box .logo-m { height: 34px; margin-bottom: 30px; }
.auth .box h2 { font-size: 24px; margin-bottom: 6px; }
.auth .box p.lead { color: var(--muted); margin: 0 0 24px; }
.auth .box form { display: flex; flex-direction: column; gap: 14px; }
.pwwrap { position: relative; } .pwwrap .input { padding-right: 46px; } .pwwrap button { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); }

/* ---------- Yazdırma ---------- */
.print-doc { display: none; }
.printbar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.paper { background: #fff; color: #1d1d1f; max-width: 210mm; margin: 0 auto; padding: 14mm 13mm; box-shadow: var(--shadow-lg); font-size: 11.5px; line-height: 1.45; }
.paper h1 { font-size: 17px; } .paper h2 { font-size: 13px; margin: 14px 0 6px; padding-bottom: 4px; border-bottom: 2px solid #a51f22; color: #1d1d1f; }
.paper .ph { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 3px solid #a51f22; margin-bottom: 12px; }
.paper .ph img { height: 30px; } .paper .ph .t { flex: 1; text-align: right; }
.paper .ph .t small { display: block; color: #777; font-size: 10px; }
.paper table { width: 100%; border-collapse: collapse; }
.paper th, .paper td { border: 1px solid #cfc9c4; padding: 4px 6px; vertical-align: top; text-align: left; }
.paper th { background: #f3efec; font-size: 10.5px; }
.paper .info td:nth-child(odd) { background: #f8f6f4; font-weight: 600; width: 22%; }
.paper .res { text-align: center; font-weight: 700; width: 44px; }
.paper .r1 { color: #1d7a4c; } .paper .r0 { color: #c42b2b; } .paper .rDD { color: #6e6a67; }
.paper .sigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.paper .sigs > div { border: 1px solid #cfc9c4; padding: 6px 8px; min-height: 92px; }
.paper .sigs img { height: 50px; display: block; margin-top: 4px; }
.paper .foot { margin-top: 14px; padding-top: 6px; border-top: 1px solid #ddd; font-size: 9.5px; color: #888; display: flex; justify-content: space-between; }
.paper .photos { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .paper .photos img { width: 70px; height: 52px; object-fit: cover; border: 1px solid #ddd; }
.paper .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.paper .note { font-size: 10px; color: #666; margin-top: 6px; }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  .sidebar, .topbar, .bottomnav, .printbar, .offline-bar, .toasts, .noprint { display: none !important; }
  .shell { display: block; } .main { padding: 0; max-width: none; }
  .paper { box-shadow: none; padding: 0; max-width: none; }
  .paper tr, .paper .sigs { page-break-inside: avoid; }
}
.pwgen { display: flex; gap: 6px; align-items: center; }
.pwgen .input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.pwgen .btn { height: 42px; flex: none; }
@media (max-width: 480px) { .pwgen { flex-wrap: wrap; } .pwgen .input { flex-basis: 100%; } .pwgen .btn { flex: 1; } }
