:root {
  color-scheme: light dark;
  --paper: #f2f6f4;
  --panel: #fff;
  --ink: #192b27;
  --muted: #486058;
  --line: #72887e;
  --accent: #155e50;
  --focus: #a34c09;
  --added: #d9f5e7;
  --added-ink: #164a31;
  --removed: #fde3e1;
  --removed-ink: #801f24;
  font: 100%/1.6 system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151e1b;
    --panel: #202e29;
    --ink: #edf6f1;
    --muted: #bed2c8;
    --line: #6e897f;
    --accent: #a1e9d7;
    --focus: #ffb471;
    --added: #224a38;
    --added-ink: #cdffdf;
    --removed: #542d31;
    --removed-ink: #ffdddf;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.masthead { background: #173832; color: #f1f8f4; padding: clamp(2rem, 6vw, 4rem) 0; }
.masthead h1 { font: 700 clamp(2.5rem, 7vw, 5rem)/.98 Georgia, serif; letter-spacing: -.04em; margin: 0 0 1rem; }
.masthead h1 span { color: #a1e9d7; }
.masthead p { max-width: 58ch; margin: .6rem 0 0; }
.masthead .muted { color: #c9ded5; }
main { padding-block: 1.25rem 2rem; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem; }
.full { grid-column: 1 / -1; }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.6rem); overflow-wrap: anywhere; }
h2, h3 { line-height: 1.2; }
h2 { margin: 0 0 .85rem; font: 700 1.65rem/1.2 Georgia, serif; }
h3 { margin: 1.4rem 0 .55rem; font-size: 1.08rem; }
p { margin: .55rem 0 .9rem; }
.heading, .actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.heading { justify-content: space-between; margin-bottom: .9rem; }
.heading h2 { margin: 0; }
.project-form { display: grid; grid-template-columns: 2fr 1.2fr minmax(10rem, 1fr) auto; align-items: end; gap: .7rem; }
.projects .actions, #kayit-form .actions, #claude-ac { margin-top: .75rem; }
input, select, textarea, button { font: inherit; padding: .48rem .65rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); color: var(--ink); }
input, textarea { width: 100%; display: block; }
textarea { resize: vertical; }
select { max-width: 100%; min-width: 0; }
label { display: block; font-size: .94rem; font-weight: 650; min-width: 0; }
label input, label textarea, label + input, label + textarea, label + select { margin-top: .25rem; }
#kayit-alanlar label { margin-block: .7rem; }
.check { display: flex; width: fit-content; align-items: baseline; gap: .5rem; }
.check input { width: auto; flex: none; accent-color: var(--accent); }
button { cursor: pointer; font-weight: 650; }
button:hover { border-color: var(--accent); }
.primary { background: var(--accent); color: var(--panel); border-color: var(--accent); }
.danger { color: var(--removed-ink); background: var(--removed); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
summary { cursor: pointer; font-weight: 650; }
.privacy { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .75rem; }
[role="status"] { color: var(--muted); }
[role="status"]:empty { margin: 0; }
#durum { margin-block: .75rem; }
.entry { border-bottom: 1px solid var(--line); padding-block: .65rem; }
.entry:last-child { border-bottom: 0; }
.entry summary { padding-block: .2rem; }
.entry dt { font-weight: 650; }
.entry dd { margin: 0 0 .5rem; white-space: pre-wrap; }
.diff { white-space: pre-wrap; padding: .85rem; border: 1px solid var(--line); border-radius: .5rem; max-height: 30rem; overflow: auto; }
ins { background: var(--added); color: var(--added-ink); }
del { background: var(--removed); color: var(--removed-ink); }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
@media screen {
  .table-wrap :is(th, td) { overflow-wrap: normal; }
  .table-wrap :is(th, td):nth-child(-n+2) { white-space: nowrap; }
}
figure { margin: .75rem 0; }
svg { display: block; width: min(100%, 38rem); height: auto; color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: .5rem; margin: 0; }
#yanit-form, #istem-kutu { margin-top: 1rem; }
#yanit-form button, #istem-sec { margin-top: .55rem; }
#anlati p, #anlati blockquote { white-space: pre-wrap; }
footer { padding-block: .9rem 1.6rem; border-top: 1px solid var(--line); }
a { color: var(--accent); }
footer a { display: inline-block; margin-inline-end: 1rem; }
@media (max-width: 50rem) {
  .project-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .workspace, .project-form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; }
  body, #surec { background: #fff; color: #000; }
  body > :not(main), main > :not(#calisma), #calisma > :not(#surec), .report-actions { display: none !important; }
  main.wrap, #calisma, #surec { display: block; width: 100%; margin: 0; padding: 0; border: 0; }
  .table-wrap { overflow: visible; }
  tr { break-inside: avoid; }
  svg { color: #000; }
}
