/* Layout: operational tool — top bar with project + "acting as" user, tabbed views, register table left / document detail right; admin area with sub-tabs for document types (flow type, parties, durations), discipline flows, firms, members; codes set in mono like a transmittal stamp */
:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --ink: #141b2a;
  --muted: #5a6478;
  --line: #d4dae6;
  --accent: #0251af;
  --accent-ink: #ffffff;
  --accent-soft: #e1edfb;
  --accent-2: #1e92fa;
  --cA: #1d7a3e;
  --cAbg: #e1f2e6;
  --cB: #5f7a14;
  --cBbg: #eef3d9;
  --cC: #a2620a;
  --cCbg: #fbefd9;
  --cD: #b3261e;
  --cDbg: #fbe3e1;
  --cE: #6b4fa0;
  --cEbg: #eee8f8;
  --cW: #5b6170;
  --cWbg: #e8eaef;
  --late: #b3261e;
  --f-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1320;
    --surface: #161d2c;
    --surface-2: #1b2333;
    --ink: #e3e8f2;
    --muted: #94a0b8;
    --line: #2a3447;
    --accent: #5aaaff;
    --accent-ink: #06162e;
    --accent-soft: #16294a;
    --cA: #6fd08f;
    --cAbg: #173323;
    --cB: #b5d360;
    --cBbg: #2a3214;
    --cC: #f0b252;
    --cCbg: #3a2a10;
    --cD: #f1857c;
    --cDbg: #3d1916;
    --cE: #b9a3e8;
    --cEbg: #2a2244;
    --cW: #a7aebb;
    --cWbg: #252b37;
    --late: #f1857c;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0e1320;
  --surface: #161d2c;
  --surface-2: #1b2333;
  --ink: #e3e8f2;
  --muted: #94a0b8;
  --line: #2a3447;
  --accent: #5aaaff;
  --accent-ink: #06162e;
  --accent-soft: #16294a;
  --cA: #6fd08f;
  --cAbg: #173323;
  --cB: #b5d360;
  --cBbg: #2a3214;
  --cC: #f0b252;
  --cCbg: #3a2a10;
  --cD: #f1857c;
  --cDbg: #3d1916;
  --cE: #b9a3e8;
  --cEbg: #2a2244;
  --cW: #a7aebb;
  --cWbg: #252b37;
  --late: #f1857c;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.5;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 0 48px;
}
header.top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand b {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand span {
  color: var(--muted);
  font-size: 12px;
}
.ctrls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ctrls label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
select,
input[type='text'],
input[type='email'],
input[type='number'],
input[type='search'],
input[type='password'],
input[type='date'],
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  min-width: 0;
}
textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.demo {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 8px 12px;
}
nav.tabs {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
nav.tabs button,
.subnav button {
  font: inherit;
  font-weight: 500;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}
nav.tabs button[aria-selected='true'],
.subnav button[aria-selected='true'] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.subnav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding-inline: 8px;
}
.subnav button {
  padding: 9px 12px;
  font-size: 13px;
}
.badge {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
main {
  margin-top: 20px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
}
.panel-h {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-h h2 {
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pad {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tscroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr.row {
  cursor: pointer;
}
tr.row:hover td {
  background: var(--surface-2);
}
tr.row.sel td {
  background: var(--accent-soft);
}
tr.row.old td {
  opacity: 0.55;
}
.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.code {
  font-family: var(--f-mono);
  font-weight: 500;
  word-break: break-all;
}
.sub {
  color: var(--muted);
  font-size: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.ftag {
  display: inline-block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: 1px;
}
.stamp {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 12px;
  border: 1.5px solid currentColor;
}
.c-A {
  color: var(--cA);
  background: var(--cAbg);
  border-color: transparent;
}
.c-B {
  color: var(--cB);
  background: var(--cBbg);
  border-color: transparent;
}
.c-C {
  color: var(--cC);
  background: var(--cCbg);
  border-color: transparent;
}
.c-D {
  color: var(--cD);
  background: var(--cDbg);
  border-color: transparent;
}
.c-E {
  color: var(--cE);
  background: var(--cEbg);
  border-color: transparent;
}
.c-W {
  color: var(--cW);
  background: var(--cWbg);
  border-color: transparent;
}
.late {
  color: var(--late);
  font-weight: 600;
}
.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}
.detail {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail .code {
  font-size: 15px;
  line-height: 1.35;
}
.detail h3 {
  margin: 0;
  font-size: 18px;
  text-wrap: balance;
}
dl.meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  margin: 0;
  font-size: 13px;
}
dl.meta dt {
  color: var(--muted);
}
dl.meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.files {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.file {
  font-family: var(--f-mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.path {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sect-t {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 8px;
}
.flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.round-h {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.party {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.party.skip {
  opacity: 0.5;
}
.party-h {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
  padding: 6px 12px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
}
.party-h span {
  font-weight: 400;
  color: var(--muted);
  font-family: var(--f-mono);
}
.step {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:first-of-type {
  border-top: 0;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 3px;
  border: 2px solid var(--line);
}
.dot.done {
  background: var(--accent);
  border-color: var(--accent);
}
.dot.pending {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.dot.skipped {
  border-style: dashed;
}
.step .who {
  font-weight: 500;
}
.step .cm {
  margin-top: 4px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tag {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  margin-left: 6px;
}
.actbox {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--accent-soft);
}
.actbox h4 {
  margin: 0;
  font-size: 14px;
}
.callout {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  font-size: 13px;
}
.codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.codes label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
}
.codes input {
  accent-color: var(--accent);
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
button.b {
  font: inherit;
  font-weight: 500;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
button.b.pri {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
button.b.warn {
  color: var(--cD);
  border-color: var(--cD);
}
button.b.sm {
  padding: 4px 9px;
  font-size: 12px;
}
button.b:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.note {
  font-size: 12.5px;
  color: var(--muted);
}
.err {
  color: var(--cD);
  font-size: 13px;
}
.form {
  padding: 20px;
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.preview {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.preview .code {
  font-size: 16px;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.seg span {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--f-mono);
}
.pcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.pcard {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-width: 0;
}
.pcard.off {
  opacity: 0.55;
}
.pcard h3 {
  margin: 0;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.mem {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.mem .n {
  font-family: var(--f-mono);
  color: var(--muted);
  font-size: 12px;
}
.mem .ops {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mem label {
  font-size: 12px;
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
}
.addrow {
  display: flex;
  gap: 6px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.addrow select {
  flex: 1;
}
.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
}
.dtag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 4px;
  margin-left: 4px;
}
.matrix input[type='number'] {
  width: 60px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding: 5px 7px;
}
.matrix td,
.matrix th {
  white-space: nowrap;
  vertical-align: middle;
  padding: 6px 10px;
}
.matrix .cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.matrix select {
  padding: 5px 7px;
}
.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.legend div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12.5px;
}
.legend b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pills button {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px;
  padding: 5px 12px;
  cursor: pointer;
}
tr.off td {
  opacity: 0.5;
}
tr.off td:first-child {
  opacity: 1;
}
.pills button:disabled {
  cursor: default;
  opacity: 0.85;
}
.pills button[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.syncbar {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--surface);
}
.syncbar.bad {
  border-left-color: var(--cD);
}
.livedot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cA);
  margin-right: 6px;
  vertical-align: 1px;
}
.livedot.off {
  background: var(--cD);
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}

.setuphead {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.setuphead > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.setuphead h2 {
  margin: 0;
  font-size: 18px;
}
.wiz {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .wiz {
    grid-template-columns: minmax(0, 1fr);
  }
}
.wsteps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-width: 0;
}
@media (max-width: 900px) {
  .wsteps {
    flex-direction: row;
    overflow-x: auto;
  }
}
.wstep {
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
  white-space: nowrap;
}
.wstep:hover {
  background: var(--surface-2);
}
.wstep[aria-current='step'] {
  background: var(--accent-soft);
  font-weight: 600;
}
.wnum {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex: none;
  background: var(--surface);
}
.wstep[aria-current='step'] .wnum {
  border-color: var(--accent);
  color: var(--accent);
}
.wstep.ok .wnum {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.wfoot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
}
.lead {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 70ch;
}
.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2px 16px;
}
.tchk {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  cursor: pointer;
  min-width: 0;
}
.tchk .mono {
  min-width: 40px;
  font-weight: 500;
}
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cstep {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12.5px;
  white-space: nowrap;
  background: var(--surface);
}
.cstep.skip {
  opacity: 0.5;
  text-decoration: line-through;
}
.chain .arrow {
  color: var(--muted);
  font-size: 12px;
}
.chain input[type='number'] {
  width: 52px;
  padding: 3px 5px;
  text-align: right;
}
.tplgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}
.tplcard {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  min-width: 0;
}
.tplcard.edit {
  border-color: var(--accent);
}
.tplcard b {
  font-size: 13.5px;
}
.check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.ck {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.ck.ok {
  background: var(--cAbg);
  color: var(--cA);
}
.ck.no {
  background: var(--cDbg);
  color: var(--cD);
}
details.disc {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 8px 12px;
}
details.disc summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}
.lock {
  font-size: 12.5px;
  color: var(--muted);
}
.adm {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--accent);
  margin-left: 6px;
}
.prow {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 2fr);
  gap: 10px;
  align-items: center;
}
@media (max-width: 640px) {
  .prow {
    grid-template-columns: minmax(0, 1fr);
  }
}
.prow b {
  font-size: 13px;
}
.welcome {
  padding: 28px 20px;
  display: grid;
  gap: 12px;
  max-width: 640px;
}
.welcome h2 {
  margin: 0;
  font-size: 20px;
}
.utable input,
.utable select {
  width: 100%;
}

/* ---- v3: başlık, karşılama, pano, filtre, ekip ---- */
header.top {
  padding-block: 12px;
}
.brandbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.brandbtn .logo {
  flex: none;
}
.brandbtn b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brandbtn span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.logo {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ctrls {
  align-items: flex-end;
}
.admbtn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  height: 36px;
}
.admbtn[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.adminbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}
.adminbar b {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.adminbar nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.adminbar nav button {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: 0;
  color: var(--bg);
  opacity: 0.72;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.adminbar nav button[aria-selected='true'] {
  opacity: 1;
  background: color-mix(in srgb, var(--bg) 18%, transparent);
}
.adminbar .b {
  background: transparent;
  color: var(--bg);
  border-color: color-mix(in srgb, var(--bg) 40%, transparent);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 20px;
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}
.howto {
  display: grid;
  gap: 10px;
}
.howto div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13px;
}
.howto i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}
.howto b {
  display: block;
  font-size: 13.5px;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.projcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  min-width: 0;
}
.projcard .ph {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.projcard .ph b {
  display: block;
  font-size: 15px;
}
.projcard .ph span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mini div {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 8px 10px;
}
.mini b {
  display: block;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.mini span {
  font-size: 11.5px;
  color: var(--muted);
}
.projcard.add {
  align-items: flex-start;
  justify-content: center;
  border-style: dashed;
  background: transparent;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.kpi:hover {
  border-color: var(--accent);
}
.kpi b {
  display: block;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.kpi span {
  font-size: 12.5px;
  color: var(--muted);
}
.kpi.warn b {
  color: var(--late);
}
.charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .charts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.chart {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chart h3 {
  margin: 0;
  font-size: 14px;
}
.chart .cap {
  font-size: 12px;
  color: var(--muted);
  margin-top: -6px;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart svg text {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--f-sans);
}
.chart svg text.val {
  fill: var(--ink);
  font-weight: 600;
}
.legend2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}
.legend2 span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend2 i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.qf {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qf button {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px;
  padding: 4px 11px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.qf button[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.qf button em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}
.filters2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.filters2 select,
.filters2 input[type='text'] {
  padding: 6px 8px;
  font-size: 13px;
}
.filters2 .switch {
  font-size: 12.5px;
  color: var(--muted);
}
.ttable td {
  vertical-align: middle;
}
.ttable select {
  padding: 5px 7px;
  font-size: 13px;
}
.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.roles b {
  color: var(--ink);
  font-weight: 600;
}
.addpanel {
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.seg2 {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.seg2 button {
  font: inherit;
  font-size: 13px;
  border: 0;
  background: none;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}
.seg2 button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}
.dpick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.dpick label {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 3px 9px;
  cursor: pointer;
}
.flink {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.flink a {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 12px;
  text-decoration: none;
}
.flink a:hover {
  text-decoration: underline;
}
.flink .sub {
  white-space: nowrap;
}
.folder {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.attach {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.custom {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-left: 4px;
}
.mylist {
  display: flex;
  flex-direction: column;
}
.mylist button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  text-align: left;
  font: inherit;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 9px 0;
  cursor: pointer;
  color: var(--ink);
}
.mylist button:first-child {
  border-top: 0;
}
.mylist .code {
  font-size: 12px;
}

.pcard > button.b {
  align-self: flex-start;
}

.login {
  display: grid;
  place-items: center;
  padding-block: 48px;
}
.loginbox {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: grid;
  gap: 14px;
}
.loginbox h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.loginbox input {
  padding: 10px 12px;
  font-size: 15px;
}
.loginbox button.b.pri {
  padding: 10px 14px;
  font-size: 15px;
}
.userbox {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
}
.dashhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.seg2 {
  align-self: flex-start;
}

.privtext {
  white-space: pre-wrap;
  max-height: 300px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.55;
}

/* ---- v6 ---- */
.sysno {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 6px;
  vertical-align: 1px;
}
.stamp.c-S {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 0 6px;
}
.codes .req {
  color: var(--late);
  font-weight: 700;
  margin-left: 2px;
}
.dhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.dhead > button {
  flex: none;
}
#formRoot:empty {
  display: none;
}
body.printing {
  overflow: auto;
}
.formview {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: auto;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ftool {
  width: min(210mm, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 14px;
}
.ftool .note {
  flex: 1;
  min-width: 200px;
}
.sheet {
  --ink: #151b28;
  --muted: #5a6478;
  --line: #d4dae6;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --accent: #0251af;
  --accent-ink: #ffffff;
  --accent-soft: #e1edfb;
  --cA: #1d6b3a;
  --cAbg: #dcf0e2;
  --cB: #6a6413;
  --cBbg: #f1eecb;
  --cC: #8a4b0c;
  --cCbg: #fbe6cf;
  --cD: #9b1c1c;
  --cDbg: #fadcdc;
  --cE: #5b3f8f;
  --cEbg: #ece6f6;
  --cW: #555;
  --cWbg: #e7e7e7;
  width: 210mm;
  max-width: 100%;
  min-height: 297mm;
  background: #fff;
  color: var(--ink);
  padding: 12mm;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
  font-size: 9.5pt;
  line-height: 1.4;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.sheet * {
  box-sizing: border-box;
}
.sheet i {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85em;
  margin-left: 4px;
}
.sheet small {
  display: block;
  color: var(--muted);
  font-size: 0.85em;
}
.sheet .mut {
  color: var(--muted);
}
.sheet h4 {
  margin: 14px 0 6px;
  font-size: 9.5pt;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.f-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2.5px solid var(--accent);
}
.f-brand,
.f-proj {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.f-proj {
  justify-content: flex-end;
  text-align: right;
}
.f-brand b,
.f-proj b {
  display: block;
  font-size: 10.5pt;
}
.f-brand span,
.f-proj span {
  display: block;
  font-size: 8pt;
  color: var(--muted);
}
.f-title {
  text-align: center;
}
.f-title b {
  display: block;
  font-size: 12.5pt;
  letter-spacing: 0.04em;
}
.f-title span {
  display: block;
  font-size: 8.5pt;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.f-banner {
  margin-top: 10px;
  padding: 6px 10px;
  border: 1.5px dashed var(--cC);
  color: var(--cC);
  border-radius: 4px;
  font-weight: 600;
  font-size: 9pt;
}
.f-banner.soft {
  border-color: var(--line);
  color: var(--muted);
  font-weight: 500;
}
.f-key {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.f-key td {
  border: 1px solid var(--line);
  padding: 5px 8px;
  vertical-align: top;
}
.f-key td.w {
  width: 55%;
}
.f-key span,
.f-info span,
.f-result > span {
  display: block;
  font-size: 7.5pt;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.f-key b {
  font-size: 11pt;
}
.f-key b.mono {
  font-family: var(--f-mono);
  font-size: 10pt;
}
.f-grid {
  display: grid;
  grid-template-columns: 1fr 52mm;
  gap: 10px;
  margin-top: 10px;
}
.f-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 4px;
}
.f-info > div:first-child {
  grid-column: 1/-1;
}
.f-result {
  border: 2px solid currentColor;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}
.f-result.c-A {
  color: var(--cA);
  background: var(--cAbg);
}
.f-result.c-B {
  color: var(--cB);
  background: var(--cBbg);
}
.f-result.c-C {
  color: var(--cC);
  background: var(--cCbg);
}
.f-result.c-D {
  color: var(--cD);
  background: var(--cDbg);
}
.f-result.c-E {
  color: var(--cE);
  background: var(--cEbg);
}
.f-result.c-W,
.f-result.open {
  color: var(--cW);
  background: var(--cWbg);
}
.f-result > span {
  color: inherit;
  opacity: 0.8;
}
.f-result .big {
  font-family: var(--f-mono);
  font-size: 30pt;
  line-height: 1.05;
}
.f-result strong {
  font-size: 10.5pt;
}
.f-result em {
  font-style: normal;
  font-size: 8pt;
  color: var(--ink);
}
.f-tab {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
}
.f-tab th {
  text-align: left;
  background: var(--surface-2);
  font-size: 7.5pt;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 4px 6px;
  border: 1px solid var(--line);
}
.f-tab td {
  border: 1px solid var(--line);
  padding: 4px 6px;
  vertical-align: top;
}
.f-tab td.cmt {
  width: 34%;
  white-space: pre-wrap;
}
.f-tab tr {
  break-inside: avoid;
}
.fs {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 8.5pt;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 3px;
  min-width: 20px;
  text-align: center;
}
.fs.c-A {
  color: var(--cA);
  background: var(--cAbg);
}
.fs.c-B {
  color: var(--cB);
  background: var(--cBbg);
}
.fs.c-C {
  color: var(--cC);
  background: var(--cCbg);
}
.fs.c-D {
  color: var(--cD);
  background: var(--cDbg);
}
.fs.c-E {
  color: var(--cE);
  background: var(--cEbg);
}
.fs.c-W {
  color: var(--cW);
  background: var(--cWbg);
}
.fs.c-S {
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 7.5pt;
}
.f-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  break-inside: avoid;
}
.f-files {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 8.5pt;
}
.f-files li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 3px 0;
  overflow-wrap: anywhere;
}
.f-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 8.5pt;
}
.f-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.f-foot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 8pt;
  break-inside: avoid;
}
.f-foot b {
  display: block;
  font-size: 8.5pt;
}
.f-foot span {
  display: block;
  margin-top: 2px;
}
@media print {
  body.printing {
    background: #fff !important;
  }
  body.printing > .wrap {
    display: none !important;
  }
  body.printing .formview {
    position: static;
    background: none;
    padding: 0;
    display: block;
    overflow: visible;
  }
  body.printing .ftool {
    display: none;
  }
  body.printing .sheet {
    box-shadow: none;
    width: auto;
    min-height: 0;
    padding: 0;
  }
}
.f-foot span b {
  display: inline;
  font-size: inherit;
}

/* ---- v7: paketler, alt yüklenici, özel akışlar ---- */
.pkg {
  display: grid;
  gap: 10px;
}
.pfold {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  display: grid;
  gap: 8px;
}
.pfold.view {
  padding: 8px 10px;
  gap: 4px;
  margin-top: 8px;
}
.pfh {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.reqf {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--late);
  background: color-mix(in srgb, var(--late) 12%, transparent);
  border-radius: 4px;
  padding: 1px 6px;
}
.pfile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 200px);
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  border-top: 1px dashed var(--line);
  padding-top: 6px;
}
@media (max-width: 640px) {
  .pfile {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pfile select {
  padding: 5px 7px;
  font-size: 12.5px;
}
.pfile input[type='file'],
.pnew input[type='file'] {
  font-size: 12px;
  max-width: 100%;
}
.pnew {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.ptool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 4px;
}
.flink input[type='checkbox'] {
  margin: 0 2px 0 0;
  align-self: center;
}
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.fgrid textarea {
  font-size: 12.5px;
  font-family: var(--f-mono);
  min-height: 120px;
}
.pills.sm button {
  font-size: 11.5px;
  padding: 2px 7px;
}
.f-info > div.w {
  grid-column: 1/-1;
}
.f-files li.fgh {
  font-weight: 600;
  border-bottom: 0;
  padding-top: 6px;
  color: var(--ink);
}
.f-files small {
  display: block;
  color: var(--muted);
  font-size: 0.85em;
}
.f-foot a {
  color: var(--accent);
  word-break: break-all;
}

/* ---- v8: zorunlu alan işaretleri, fotoğraflı bulgu formu ---- */
.reqsum {
  font-size: 12.5px;
  color: var(--late);
  align-self: center;
}
.reqsum.ok {
  color: var(--cA);
}
.field.rq-ok > span:first-child::after {
  content: ' ✓';
  color: var(--cA);
  font-weight: 700;
}
.field.rq-miss > span:first-child::after {
  content: ' *';
  color: var(--late);
  font-weight: 700;
}
textarea.rq-ok,
.codes.rq-ok {
  box-shadow: inset 3px 0 0 var(--cA);
}
textarea.rq-miss,
.codes.rq-miss {
  box-shadow: inset 3px 0 0 var(--late);
}
.codes.rq-ok,
.codes.rq-miss {
  padding-left: 8px;
  border-radius: 4px;
}
.pfold.done {
  border-color: color-mix(in srgb, var(--cA) 55%, var(--line));
}
.pfold.done .reqf {
  color: var(--cA);
  background: color-mix(in srgb, var(--cA) 14%, transparent);
}
.heicnote {
  font-size: 12px;
  color: var(--cC);
  margin-top: 4px;
}
.sheet .f-sec {
  margin-top: 16px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
}
.f-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}
.f-photos figure {
  margin: 0;
  break-inside: avoid;
}
.f-photos img {
  width: 100%;
  max-height: 62mm;
  object-fit: contain;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  display: block;
}
.f-photos figcaption {
  font-size: 7.5pt;
  color: var(--muted);
  margin-top: 2px;
}
.f-photos .noimg {
  height: 40mm;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 8pt;
}
.sheet .f-info + .f-files {
  margin-top: 6px;
}

/* ---- v9: sürükle-bırak, revizyon geçmişi, BTF ---- */
.dz {
  position: relative;
  display: grid;
  gap: 6px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface);
}
.dz input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.dzbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.dzlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.dzlist:empty {
  display: none;
}
.dzlist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  background: var(--surface-2);
  border-radius: 5px;
  padding: 3px 4px 3px 8px;
}
.dzlist li .mono {
  overflow-wrap: anywhere;
}
.dzrm {
  font: inherit;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.dzrm:hover {
  background: var(--line);
  color: var(--ink);
}
.pfold .dz {
  border-style: dashed;
  background: transparent;
}
.pnew {
  display: grid;
  gap: 4px;
}
.dzall {
  border: 1.5px dashed var(--accent);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--accent);
  background: var(--accent-soft);
}
body.dragging .dz,
body.dragging .pfold,
body.dragging .dzall {
  outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}
.dzover,
.pfold.dzover,
.dzall.dzover {
  outline: 2px solid var(--accent) !important;
  background: var(--accent-soft) !important;
}
details.prevrev {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--surface-2);
}
details.prevrev > summary {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}
details.prevrev[open] > summary {
  border-bottom: 1px solid var(--line);
}
details.prevrev .flow {
  padding: 8px;
  opacity: 0.85;
}
.qa {
  display: grid;
  gap: 8px;
}
.qa-i {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
}
.qa-h {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 13px;
}
.qa-t {
  white-space: pre-wrap;
  font-size: 13.5px;
}
.qa-sol {
  margin-top: 6px;
  font-size: 13px;
}
.qa-answer {
  border-color: color-mix(in srgb, var(--cA) 50%, var(--line));
  background: color-mix(in srgb, var(--cA) 7%, var(--surface));
}
.qa-more {
  border-color: color-mix(in srgb, var(--cC) 45%, var(--line));
}
.imps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.imp {
  font-size: 12px;
  border-radius: 12px;
  padding: 2px 9px;
  background: var(--surface-2);
  color: var(--muted);
}
.imp.on {
  background: var(--cCbg);
  color: var(--cC);
}
.imp.dec-ok {
  background: var(--cAbg);
  color: var(--cA);
}
.imp.dec-no {
  background: var(--cDbg);
  color: var(--cD);
}
.improw {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.improw > div {
  display: grid;
  gap: 6px;
  align-content: start;
}
.improw [hidden] {
  display: none !important;
}
.f-chain {
  margin-top: 6px;
  font-size: 8.5pt;
}
.f-chain > span {
  display: inline-block;
  font-size: 7.5pt;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 6px;
}
.f-chain i {
  color: var(--muted);
}
.f-tab tr.sep td {
  background: #eaf0f8;
  color: var(--accent);
  font-weight: 600;
  font-size: 8pt;
}
.qa-tab tr.ans td {
  background: var(--cAbg);
}
.qa-tab td:first-child {
  width: 22mm;
}
.qa-tab td:nth-child(2) {
  width: 38mm;
}

/* ---- v10 ---- */
.ck.warn {
  background: var(--cCbg);
  color: var(--cC);
}
.stamp.adv {
  opacity: 0.55;
  border-style: dashed;
  background: transparent;
}
.stc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.advl {
  display: block;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.codes.adv label {
  background: var(--surface-2);
}
.advsum {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  font-size: 12.5px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.advi {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fs.adv {
  opacity: 0.55;
  outline: 1px dashed currentColor;
  outline-offset: -1px;
  background: transparent;
}
small.advl {
  font-size: 6.5pt;
}
.chkbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  margin-bottom: 6px;
}
.chkbar b {
  font-size: 12.5px;
}
.chkcnt {
  font-size: 12px;
  color: var(--muted);
  margin-right: 4px;
}
.aplist {
  display: grid;
  gap: 2px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 4px;
  margin-top: 6px;
}
.aplist label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}
.aplist label:hover {
  background: var(--surface-2);
}
.aplist label:has(input:checked) {
  background: var(--accent-soft);
}
.aplist label[hidden] {
  display: none;
}
.aplist .apnew {
  border-bottom: 1px solid var(--line);
  border-radius: 5px 5px 0 0;
}
.aplist .apnone {
  padding: 6px 8px;
}
.fixval {
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 13.5px;
}
input.em-ok {
  border-color: var(--cA);
}
input.em-bad {
  border-color: var(--late);
  box-shadow: 0 0 0 1px var(--late);
}
.emmsg {
  display: block;
  font-size: 12px;
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0;
}
.emmsg.ok {
  color: var(--cA);
}
.emmsg.bad {
  color: var(--late);
}
.authlinks {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.linkb {
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--accent);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkb:hover {
  text-decoration-thickness: 2px;
}
.tag.warn {
  background: var(--cCbg);
  color: var(--cC);
}
#admBtn .badge {
  background: var(--late);
  color: #fff;
}

/* ---- v11 ---- */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.lg-d {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .lg-l {
    display: none;
  }
  :root:not([data-theme='light']) .lg-d {
    display: inline;
  }
}
:root[data-theme='dark'] .lg-l {
  display: none;
}
:root[data-theme='dark'] .lg-d {
  display: inline;
}
.sheet .lg-d {
  display: none !important;
}
.sheet .lg-l {
  display: inline !important;
}
.galogo {
  background: transparent;
  border-radius: 0;
}
.galogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brandfull {
  display: flex;
  justify-content: flex-start;
}
.brandfull img {
  width: auto;
  max-width: 100%;
}
/* sabit üst bar */
header.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  flex-wrap: nowrap;
  gap: 12px 20px;
  min-height: 72px;
}
.brandbtn {
  min-width: 0;
  overflow: hidden;
}
.brandbtn > span:last-child {
  min-width: 0;
  overflow: hidden;
}
.brandbtn b,
.brandbtn > span:last-child > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctrls {
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.ctrls select {
  width: 210px;
  text-overflow: ellipsis;
}
#projSel {
  width: 230px;
}
.admbtn {
  min-width: 224px;
  justify-content: center;
  white-space: nowrap;
}
.userbox {
  flex: none;
}
.userbox .uname {
  display: inline-block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.asbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--cCbg);
  color: var(--ink);
  font-size: 13px;
  border: 1px solid var(--line);
}
.asbar[hidden] {
  display: none;
}
@media (max-width: 1180px) {
  header.top {
    grid-template-columns: minmax(0, 1fr);
  }
  .ctrls {
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .ctrls {
    flex-wrap: wrap;
  }
  .ctrls label,
  .ctrls select,
  #projSel {
    width: 100%;
  }
  .admbtn {
    min-width: 0;
    flex: 1;
  }
}
/* zorunlu dokümantasyon */
.tchk2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.tchk2 .tchk {
  flex: 1;
  min-width: 0;
}
.rqd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1px 8px;
  cursor: pointer;
}
.rqd.on {
  color: var(--accent);
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.phwarn textarea {
  border-color: var(--late);
}
/* kapanış formu */
.formf {
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}
/* geri gönderme */
.sbbox {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed var(--cC);
  border-radius: 6px;
  background: var(--surface);
}
.sbbox[hidden] {
  display: none;
}
.sbrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.party.reparty {
  border-color: var(--cC);
}
/* dinamik pano */
.dfbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.dfbar input[type='search'] {
  width: 220px;
}
.dfbar select {
  max-width: 190px;
}
.dfchip {
  font: inherit;
  font-size: 12.5px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  padding: 3px 10px;
  cursor: pointer;
}
.dfcount {
  font-size: 12.5px;
  color: var(--muted);
  margin-left: auto;
}
.dfhint {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
g.dfc {
  cursor: pointer;
  outline: none;
}
g.dfc:hover rect:not(.hit) {
  filter: brightness(1.12);
}
g.dfc:focus-visible .hit {
  stroke: var(--accent);
  stroke-width: 2;
}
g.dfc.off {
  opacity: 0.32;
}
g.dfc.on text {
  font-weight: 700;
  fill: var(--accent);
}

/* ---- v12 ---- */
.gbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 14px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #fff;
  color: #3c4043;
  cursor: pointer;
}
.gbtn:hover {
  background: #f8faff;
  border-color: #c6d4ef;
}
.gbtn svg {
  flex: none;
}
.orline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.orline::before,
.orline::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.authm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}
.authm svg {
  width: 14px;
  height: 14px;
}
.oldlink .mono {
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: line-through dotted;
}

/* v13 */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 760px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}
.detbox {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--panel);
}
.detgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.detgrid .w {
  grid-column: 1/-1;
}
@media (max-width: 760px) {
  .detgrid {
    grid-template-columns: 1fr;
  }
}
.tplbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1.5px dashed #9cbbe6;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f3f8ff;
}
.tplbox.dzover {
  background: #e1edfb;
  border-color: var(--accent);
}
.autowarn {
  font-size: 12.5px;
  color: #7a4a00;
  background: #fff4dc;
  border: 1px solid #f0d69a;
  border-radius: 8px;
  padding: 7px 9px;
}
.heicnote.ok {
  color: var(--accent);
}
.kvtab {
  border-collapse: collapse;
  font-size: 13px;
}
.kvtab th {
  text-align: left;
  font-weight: 600;
  padding: 3px 14px 3px 0;
  color: var(--muted);
  white-space: nowrap;
}
.kvtab td {
  padding: 3px 0;
}
.asgrow > td {
  background: var(--bg2, #f6f8fb);
}
.asgp {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  cursor: pointer;
}
.asgp > span {
  display: grid;
  gap: 2px;
}
.asgp input {
  width: 18px;
  height: 18px;
  flex: none;
}

/* v14 */
.startok {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #e8f5ec;
  border: 1.5px solid #8fcca5;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 16px;
}
.startok b {
  font-size: 16px;
}
.startok p {
  margin: 6px 0 0;
  font-size: 13.5px;
  max-width: 760px;
}
.b.lg {
  font-size: 15px;
  padding: 10px 20px;
}
.newproj {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #e1edfb;
  border: 1.5px solid #8fb4e6;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 14px;
}
.projcard [data-open] {
  font-size: 15px;
  padding: 10px 20px;
}
.pwwrap {
  position: relative;
  display: block;
}
.pwwrap input {
  width: 100%;
  padding-right: 42px;
}
.pweye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  border-radius: 6px;
}
.pweye:hover,
.pweye[aria-pressed='true'] {
  color: var(--accent);
}
.heicnote.bad {
  color: var(--cD);
  font-weight: 600;
}
.xgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 18px;
}
.xgrid > div {
  display: grid;
  gap: 4px;
  align-content: start;
}
.xgrid.xs {
  gap: 4px 18px;
}

/* ---- v12b ---- */
header.top {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.langbox {
  display: flex;
  align-items: center;
}
.langsw {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  height: 30px;
}
.langsw button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 0 9px;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.langsw button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}
@media (max-width: 1180px) {
  header.top {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ctrls {
    grid-column: 1/-1;
  }
}
.sheet.lang-en [lang='en'],
.sheet.lang-tr [lang='en'] {
  display: none;
}
