/* Yachting Master — design system v3 ("Köprüüstü": midnight hull, sailcloth paper, brass). Loaded after the page styles of index.html.
   ONE place for the tokens (colour roles, type scale, spacing, radius, elevation, motion) and the look of the shared components.
   Only the look: no element, id, class or data- attribute of the page is added or removed here; the numbers on screen are the program's.
   Direction: logical properties only (inline/block), so Arabic (dir=rtl) mirrors by itself; rtl.css keeps what cannot be mirrored.
   Fonts are local files (yazi/*.woff2, SIL OFL 1.1): the page never asks another site for a font (CSP 'self'). */

/* ---------- fonts ---------- */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(yazi/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:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(yazi/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+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(yazi/inter-greek-wght-normal.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(yazi/inter-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Noto Serif Display";font-style:normal;font-weight:100 900;font-display:swap;src:url(yazi/noto-serif-display-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+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:"Noto Serif Display";font-style:normal;font-weight:100 900;font-display:swap;src:url(yazi/noto-serif-display-latin-ext-wght-normal.woff2) format("woff2");unicode-range:U+0100-017F}
@font-face{font-family:"Noto Serif Display";font-style:normal;font-weight:100 900;font-display:swap;src:url(yazi/noto-serif-display-greek-wght-normal.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}
@font-face{font-family:"Noto Serif Display";font-style:normal;font-weight:100 900;font-display:swap;src:url(yazi/noto-serif-display-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Noto Sans Arabic";font-style:normal;font-weight:100 900;font-display:swap;src:url(yazi/noto-sans-arabic-arabic-wght-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Noto Naskh Arabic";font-style:normal;font-weight:400 700;font-display:swap;src:url(yazi/noto-naskh-arabic-arabic-wght-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}

/* ---------- tokens ---------- */
:root{
  /* surfaces (day): sailcloth paper, not office grey */
  --bg:#F5F2EB; --surface:#FFFFFF; --sunk:#ECE8DE; --sunk-2:#F1EEE6; --line:#DED8CA; --line-2:#C9C1B0;
  /* text */
  --ink:#0C1C2C; --muted:#56616C;
  /* action (navy) and brand accent (brass) */
  --accent:#143A5F; --accent-ink:#FFFFFF; --accent-soft:#DFE7EF;
  --brass:#84601A; --brass-soft:#F3EAD6; --brass-bright:#CDA75E;
  /* state: money in / positive, money short / negative, warning */
  --ok:#176548; --ok-soft:#DFEEE6; --danger:#A6321F; --danger-soft:#F8E4DF; --warn-soft:#FBF1D6;
  /* the hull (header band, hero, menu): always night */
  --hull:#0A1B2C; --hull-2:#10263B; --on-hull:#F4F0E7; --on-hull-2:#A3B2C1; --hull-line:rgba(244,240,231,.14);
  --pos-hull:#8AD9B4; --neg-hull:#F6A894;
  /* type */
  --f-display:"Noto Serif Display","Noto Naskh Arabic","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --f-body:"Inter","Noto Sans Arabic","Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,sans-serif;
  --f-num:"Inter","Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;
  /* text scale: --yz (body text) and --yh (headings, scaled less) come from the "Yazı boyutu" setting (yazi-boyutu.js); 1 = Normal */
  --t-xs:calc(12px*var(--yz,1)); --t-s:calc(13px*var(--yz,1)); --t-m:calc(15px*var(--yz,1)); --t-l:calc(17px*var(--yz,1)); --t-xl:calc(20px*var(--yz,1)); --t-2xl:calc(24px*var(--yh,1)); --t-3xl:calc(32px*var(--yh,1)); --t-4xl:calc(44px*var(--yh,1)); --t-5xl:calc(60px*var(--yh,1));
  /* spacing: 4-point grid */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:72px; --s9:112px;
  /* radius: small for controls, medium for cards, large for sheets */
  --r-s:8px; --r-m:12px; --r-l:18px;
  /* elevation: hairlines first; two shadows only (raised card, floating layer) */
  --e1:0 1px 2px rgba(12,28,44,.06); --shadow:0 24px 48px -20px rgba(12,28,44,.32);
  /* motion */
  --d1:120ms; --d2:240ms; --d3:600ms; --ease:cubic-bezier(.2,.7,.2,1);
  --grid:transparent;
}
@media (prefers-color-scheme:dark){:root{
  --bg:#08131E; --surface:#0F1E2C; --sunk:#0B1823; --sunk-2:#0D1B28; --line:#20313F; --line-2:#2D4153;
  --ink:#ECE7DC; --muted:#93A2B0;
  --accent:#9CC2E8; --accent-ink:#08131E; --accent-soft:#17293A;
  --brass:#D8B46A; --brass-soft:#2A2213; --brass-bright:#D8B46A;
  --ok:#7FD1A8; --ok-soft:#12291F; --danger:#F09A86; --danger-soft:#35191A; --warn-soft:#2E2610;
  --hull:#060F18; --hull-2:#0C1A28;
  --e1:0 1px 2px rgba(0,0,0,.4); --shadow:0 24px 48px -20px rgba(0,0,0,.7);
}}

/* ---------- base ---------- */
body{background-image:none;font-size:var(--t-m);line-height:1.5;font-feature-settings:"ss01","cv11";text-rendering:optimizeLegibility}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.band :focus-visible,.serit :focus-visible,.fabs :focus-visible{outline-color:var(--brass-bright)}
::selection{background:var(--brass-soft);color:var(--ink)}
.wrap{max-width:1120px;padding-inline:var(--s5)}
/* money: one numeral style everywhere (tabular, lining), never a typewriter face */
.mono,.amt,.bal,.kc .v,.cbar .v,.kv b,.closebox .v,.tbl td.r,.tbl th.r,.stat b,.fxline b,.mhead .sub,.mcol .bv,.ystat b,.ykutu b,.hpaket .fiyat,.fiskart .ftut,table.pv td.r,.ytablo td.num,.saatler time,.kur,.stamp .sx b,.tkk .v,.tkbv,table.sirkett td.r,.row .d{font-family:var(--f-num);font-variant-numeric:tabular-nums lining-nums;letter-spacing:0}

/* ---------- strip (clocks, rates) ---------- */
.serit{background:#06121E;border-block-end:1px solid var(--hull-line);font-size:calc(12px*var(--yz,1))}
.seritic{min-height:32px}
.saatler b{color:var(--brass-bright);font-weight:600}

/* ---------- header band ---------- */
.band{background:var(--hull);background-image:none;border-block-end:1px solid rgba(205,167,94,.35)}
header.top{padding-block:var(--s3) var(--s4)}
.flag{font-size:calc(11px*var(--yz,1));letter-spacing:.16em;gap:var(--s3);min-height:36px}
.ics{display:none}
.savewrap{margin-inline-start:auto;gap:var(--s3)}
.savest{color:var(--on-hull-2)}
.savebtn{min-height:36px;border-radius:var(--r-s);border-color:rgba(138,217,180,.5);background:transparent;color:var(--pos-hull);font-weight:600;padding-inline:10px 14px}
.savebtn.busy{border-color:var(--hull-line)}
.senkb{min-height:36px;border-radius:var(--r-s);border-color:var(--hull-line)}
.band .langsw{border-radius:var(--r-s);border-color:transparent}
.langsw select{min-height:34px;padding-inline:10px;letter-spacing:.06em}
.headrow{align-items:center;margin-block-start:var(--s3);gap:var(--s3) var(--s4)}
.brand{gap:var(--s3)}
.brand .rose,.brand h1{cursor:pointer}
.menub{width:44px;height:44px;border-radius:var(--r-s);border-color:var(--hull-line);margin-inline-end:0}
.menub:hover,.navb:hover:not(:disabled),.expb:hover{background:rgba(244,240,231,.08)}
.rose{width:34px;height:34px}
h1{font-family:var(--f-display);font-weight:500;font-size:clamp(24px,3.2vw,30px);letter-spacing:.005em;line-height:1.1}
.period{letter-spacing:.14em;font-size:calc(11px*var(--yz,1));gap:var(--s2)}
.band select.pill{background-color:transparent;color:var(--on-hull);border-color:rgba(244,240,231,.28);border-radius:var(--r-s);min-height:44px;font-weight:600;background-image:linear-gradient(45deg,transparent 50%,var(--on-hull-2) 50%),linear-gradient(135deg,var(--on-hull-2) 50%,transparent 50%)}
/* Açılır listeler (dönem, tekne, dil): sistemin beyaz listesi yerine tema renkleri */
select option,select optgroup,.band select.pill option{color:var(--ink);background:var(--surface)}
select option:checked{background:var(--accent-soft);color:var(--ink)}
/* Tarayıcı özelleştirilebilir seçici destekliyorsa (Chrome 135+; Windows uygulama penceresi): listeyi tam temaya uydur, açık sistemlerde yukarıdaki sade kural geçerli kalır */
@supports (appearance:base-select){
  .band select.pill,.langsw select{appearance:base-select}
  .band select.pill::picker-icon,.langsw select::picker-icon{display:none}
  .band select.pill::picker(select),.langsw select::picker(select){appearance:base-select;background:var(--surface);color:var(--ink);border:1px solid var(--line-2);border-radius:14px;padding:6px;margin-top:6px;box-shadow:0 12px 32px rgba(0,0,0,.35);width:max-content;min-width:180px;max-width:min(90vw,320px)}
  .band select.pill option,.langsw select option{padding:9px 12px;border-radius:9px;font-weight:600;color:var(--ink);background:transparent}
  .band select.pill option:hover,.band select.pill option:focus-visible,.langsw select option:hover,.langsw select option:focus-visible{background:var(--sunk);outline:none}
  .band select.pill option:checked,.langsw select option:checked{background:var(--accent-soft);color:var(--ink)}
  .band select.pill option::checkmark,.langsw select option::checkmark{color:var(--accent)}
}
.band select.tekneSec{min-height:36px;font-size:calc(13px*var(--yz,1));letter-spacing:.02em;text-transform:none}
.navb{width:44px;height:44px;border-radius:var(--r-s);border-color:transparent;background:transparent;color:var(--on-hull-2)}
.navb:hover:not(:disabled){color:var(--on-hull)}
.newp,.expb{min-height:44px;border-radius:var(--r-s);padding-inline:16px;font-weight:600}
.expb{border-color:transparent;background:rgba(244,240,231,.07)}
.newp{border-color:var(--brass-bright);color:var(--brass-bright)}
.closedTag{border-radius:var(--r-s);min-height:44px;border-color:var(--brass-bright);color:var(--brass-bright)}

/* the cash figures: ONE dominant number (what is in the cash box now), three supporting ones */
.kasa{margin-block-start:var(--s4);grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));gap:0;border-block-start:1px solid var(--hull-line)}
.kc{background:transparent;border:0;border-radius:0;border-inline-start:1px solid var(--hull-line);padding:20px var(--s5) var(--s2);display:flex;flex-direction:column;gap:6px}
.kc .lbl{font-size:calc(11px*var(--yz,1));letter-spacing:.16em;color:var(--on-hull-2);font-weight:600;margin:0}
.kc .v{font-size:clamp(17px,1.9vw,22px);font-weight:500;line-height:1.2;color:var(--on-hull)}
.kc .from{font-size:calc(12px*var(--yz,1));line-height:1.45;color:var(--on-hull-2);margin:0}
.kc.in .v{color:var(--pos-hull)}
.kc .v.neg{color:var(--neg-hull)}
.kc.end,.kc.end.neg{order:-1;background:transparent;border:0;border-block-start:2px solid var(--brass-bright);margin-block-start:-1px;padding-inline-start:0;color:var(--on-hull)}
.kc.end .lbl{color:var(--brass-bright);opacity:1}
.kc.end .v{font-family:var(--f-display);font-weight:400;font-size:clamp(40px,5vw,58px);line-height:1;color:var(--on-hull);letter-spacing:-.005em;white-space:nowrap;overflow-wrap:normal}
.kc.end .from{color:var(--brass-bright);opacity:1}
.kc.end.neg{border-block-start-color:var(--neg-hull)}
.kc.end.neg .lbl,.kc.end.neg .v,.kc.end.neg .from{color:var(--neg-hull)}
.kc.end.low{box-shadow:none}
.kc.end.low .from::before{content:"";display:inline-block;inline-size:7px;block-size:7px;border-radius:50%;background:var(--brass-bright);margin-inline-end:8px;vertical-align:1px}
.kc .v .kr{font-size:.52em;opacity:.72;letter-spacing:0}
.kc:not(.end) .v .kr{font-size:.82em}
.formula{margin:var(--s3) 0 0;font-size:calc(12px*var(--yz,1));line-height:1.5;color:var(--on-hull-2);opacity:.85}

/* ---------- page title ---------- */
nav.tabs{padding-block:28px var(--s3);background:var(--bg)}
.sayfabas{font-family:var(--f-display);font-weight:500;font-size:var(--t-3xl);line-height:1.1;letter-spacing:.002em}

/* ---------- controls ---------- */
.btn{border-radius:var(--r-s);min-height:44px;padding:10px 18px;font-weight:600;border-color:var(--line-2);transition:background var(--d1) var(--ease),border-color var(--d1) var(--ease),transform var(--d1) var(--ease)}
.btn:hover{border-color:var(--ink)}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn.pri:hover{border-color:var(--accent);filter:brightness(1.12)}
.btn.sm{min-height:36px;padding:6px 14px}
@media (pointer:coarse){.btn.sm,.linkbtn{min-height:44px}}
/* touch screens: every control of the header is at least 44 px (music, language, boat, save, sync) */
@media (pointer:coarse){.seritic{min-height:48px}.langsw select,.band select.tekneSec,.savebtn,.senkb{min-height:44px}.ah-donem button,.qchip{min-height:44px}}
a.btn{display:inline-flex;align-items:center;justify-content:center}
.linkbtn{font-size:var(--t-s)}
select.pill{border-radius:var(--r-s);min-height:44px;border-color:var(--line-2)}
.filters{gap:var(--s3);margin-block-end:var(--s5)}
.filters input{min-height:48px;border-radius:var(--r-s);border-color:var(--line-2);padding-inline:16px}
.field label,.seglbl{font-size:var(--t-s);letter-spacing:.01em;font-weight:600}
.field input,.field select,.field textarea,.tkad input,.tkekle input{min-height:48px;border-radius:var(--r-s);border-color:var(--line-2);padding:11px 14px;transition:border-color var(--d1) var(--ease),box-shadow var(--d1) var(--ease)}
.field input:focus,.field select:focus,.field textarea:focus,.filters input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.field .help{line-height:1.45}
#f_amount{font-family:var(--f-num);font-variant-numeric:tabular-nums lining-nums;font-size:calc(22px*var(--yh,1));font-weight:600;min-height:56px}
.field .amtline select.cursel{min-height:56px}
.seg{border-radius:var(--r-s);padding:4px;gap:4px}
.seg label{min-height:40px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:background var(--d1) var(--ease),color var(--d1) var(--ease)}
.seg label:has(input:checked){box-shadow:var(--e1)}
.check input{width:20px;height:20px}
input[type=checkbox],input[type=radio]{accent-color:var(--accent)}
.check{min-height:32px;align-items:center}
.quick{gap:6px;margin-block:0 var(--s4)}
.qchip{border-radius:var(--r-s);padding:6px 10px;background:var(--sunk-2);font-size:calc(12.5px*var(--yz,1));min-height:34px}
.qchip small{font-size:calc(12px*var(--yz,1))}
.chip{border-radius:6px;padding:2px 8px;font-size:calc(11.5px*var(--yz,1));font-weight:500;background:transparent;border:1px solid var(--line);color:var(--muted)}
.chip:first-child:not(.pay):not(.cur):not(.cam){color:var(--ink)}
.chip.in{background:var(--ok-soft);border-color:transparent;color:var(--ok);font-weight:600}
.chip.pay{background:transparent}
.chip.cam{background:var(--brass-soft);border-color:transparent;color:var(--brass)}

/* ---------- the book (rows) ---------- */
.month{margin-block-end:var(--s6)}
.mhead{border-block-end:0;padding:0 2px var(--s3);align-items:baseline}
.mhead h2{font-family:var(--f-display);font-weight:500;font-size:calc(22px*var(--yh,1))}
.mhead .sub{font-size:calc(13px*var(--yz,1));gap:var(--s4)}
.mtag{border-radius:4px}
ul.rows{border:1px solid var(--line);border-radius:var(--r-m);box-shadow:var(--e1)}
.row{grid-template-columns:48px minmax(0,1fr) auto;gap:4px var(--s4);padding:14px var(--s4) 14px var(--s3);padding-inline:var(--s3) var(--s4);min-height:68px;transition:background var(--d1) var(--ease)}
.row.hrow{padding-inline-start:var(--s4)}
button.row:hover{background:var(--sunk-2)}
.row .d{font-size:calc(10.5px*var(--yz,1));letter-spacing:.12em;color:var(--muted);text-align:center;font-weight:600}
.row .d b{font-size:calc(20px*var(--yz,1));letter-spacing:0;font-weight:600;line-height:1.1}
.row .t .ds{font-weight:600}
.row .t .ds small{font-size:calc(14px*var(--yz,1))}
.row .t .mt{gap:4px 6px;margin-block-start:6px}
.row .amt{font-size:calc(16px*var(--yz,1));font-weight:600}
.bal{font-size:calc(12px*var(--yz,1))}
.row.devir{background:var(--sunk-2)}
.row.hrow .amt{font-size:calc(18px*var(--yz,1))}
.ym-yinelenen{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.stamp{background:var(--brass-soft);border-block-start:1px solid var(--line)}
.empty{border-radius:var(--r-m);border-style:solid;padding:var(--s7) var(--s5)}
.empty h3{font-family:var(--f-display);font-weight:500;font-size:var(--t-2xl)}

/* ---------- cards, sheets ---------- */
.panel{border-radius:var(--r-m);padding:var(--s5) 28px;margin-block-end:var(--s4);box-shadow:var(--e1)}
.panel h3{font-family:var(--f-display);font-weight:500;font-size:var(--t-xl);margin-block-end:var(--s2)}
.panel p.lead{line-height:1.55;max-width:78ch}
.note{border-radius:var(--r-m);padding:14px 16px}
.scrim{background:rgba(6,15,24,.56)}
.sheet{border-radius:var(--r-l);padding:28px;box-shadow:var(--shadow)}
.sheet h3{font-family:var(--f-display);font-weight:500;font-size:var(--t-2xl);margin-block-end:var(--s4)}
.sheet .acts{margin-block-start:var(--s5);padding-block-start:var(--s4);border-block-start:1px solid var(--line)}
.opt{border-radius:var(--r-m);padding:14px 16px;border-color:var(--line-2)}
.oi{border-radius:3px 9px 3px 3px}
.closebox,.kv div,.pathbox{border-radius:var(--r-s)}
.kv div{padding:12px 14px}
.kv b{font-size:calc(17px*var(--yz,1));font-weight:600}
.rrow,.yrow,.tkrow{border-radius:var(--r-m)}
.rrow{padding:14px 16px}
.cbar{margin-block-end:14px}
.cbar .track{height:6px;border-radius:3px}
.cbar .fill{border-radius:3px}
.cbar .v{font-size:calc(14px*var(--yz,1));font-weight:500}
.mcol .b{border-radius:3px 3px 0 0}
.tbl th,.tbl td{padding:10px 8px}
.drawer{padding-inline:var(--s3)}
.dbas{padding-block-end:var(--s4);margin-block-end:var(--s2)}
.dbas b{font-family:var(--f-display);font-weight:500;font-size:calc(19px*var(--yz,1))}
.ditem{min-height:46px;border-radius:var(--r-s)}
.ditem svg{color:var(--muted)}
.ditem.on{background:var(--accent-soft);font-weight:600}
.ditem.on svg{color:var(--accent)}
.toast{border-radius:var(--r-s)}
.giris{border-radius:var(--r-l)}
.giris h2,.bye h1{font-family:var(--f-display);font-weight:500}
kbd{font-family:var(--f-num)}

/* ---------- floating actions ---------- */
.fab,.fab2{min-height:52px;border-radius:999px;transition:transform var(--d1) var(--ease),filter var(--d1) var(--ease)}
.fab{background:var(--accent);padding-inline:18px 24px}
.fab2{background:var(--surface);color:var(--ok);border:1px solid var(--line-2);padding-inline:14px 20px}
.fab:hover,.fab2:hover{transform:translateY(-1px);filter:brightness(1.06)}

/* ---------- phone ---------- */
@media (max-width:720px){
  .kasa{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kc{padding:14px var(--s4) var(--s3)}
  .kc.end{grid-column:1/-1;padding-block:14px 12px}
  .flag{min-height:0;gap:var(--s2)}
  .savewrap{gap:var(--s2)}
  .savest{font-size:calc(11.5px*var(--yz,1))}
  .newp,.expb{min-height:40px;padding-inline:12px}
  .period{inline-size:100%}
  .period label{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .period select.pill{flex:1 1 120px}
  .rose{width:28px;height:28px}
  h1{font-size:calc(24px*var(--yh,1))}
  .kc .from{font-size:calc(11.5px*var(--yz,1))}
  .kc.end .v{font-size:clamp(38px,12vw,52px)}
  .kc:nth-child(1){border-inline-start:0;padding-inline-start:0}
  .kc:nth-child(3){grid-column:1/-1;border-inline-start:0;padding-inline-start:0;border-block-start:1px solid var(--hull-line)}
  .kc:nth-child(1),.kc:nth-child(2){border-block-start:1px solid var(--hull-line)}
}
@media (max-width:520px){
  .wrap{padding-inline:var(--s4)}
  .sayfabas{font-size:calc(26px*var(--yh,1))}
  nav.tabs{padding-block:var(--s5) var(--s2)}
  .panel{padding:var(--s4)}
  .sheet{padding:var(--s5) var(--s4)}
  .row{padding-inline:var(--s2) var(--s3);gap:4px var(--s3);grid-template-columns:40px minmax(0,1fr) auto}
  .row .amt{font-size:calc(15px*var(--yz,1))}
  .fab{padding-inline:14px 18px}.fab2{padding-inline:12px 16px}
  .quick{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--s4) * -1);padding-inline:var(--s4);scroll-snap-type:x proximity}
  .quick .ql{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
  .qchip{flex:none;max-width:78vw;min-height:44px;scroll-snap-align:start}
  .formula{font-size:calc(11.5px*var(--yz,1))}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}

/* Ekip (ekip-kaptan.js) */
.ekip-fis{border:1px solid var(--line);border-radius:var(--r-m);padding:14px 16px;margin-block-end:10px;background:var(--surface)}
.ekip-fis-ust{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ekip-tutar{font-variant-numeric:tabular-nums;white-space:nowrap}
.ekip-foto img{max-inline-size:100%;max-block-size:240px;border-radius:var(--r-s);margin-block-start:10px;display:block}
.ekip-uye{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-block:12px;border-block-start:1px solid var(--line);flex-wrap:wrap}
.ekip-uye-sag{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.ekip-serit{border-color:var(--accent);background:var(--accent-soft)}
.ekip-serit .btn{min-height:44px;min-width:96px}
.ekip-kartlar{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.ekip-kart{border:1px solid var(--line);border-radius:var(--r-m);padding:12px;background:var(--surface)}
.ekip-kart-ust{display:flex;gap:12px;align-items:flex-start}
.ekip-kart-bilgi{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ekip-kart-bilgi b,.ekip-kart-bilgi span{overflow-wrap:anywhere}
.ekip-kucuk{flex:none;width:56px;height:56px;border-radius:var(--r-s);border:1px solid var(--line);background:var(--sunk);color:var(--muted);display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden;cursor:pointer}
.ekip-kucuk img{width:100%;height:100%;object-fit:cover;display:block}
.ekip-kucuk.yok{cursor:default;opacity:.6}
.ekip-kucuk:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ekip-belirsiz{margin:8px 0 0}
.ekip-dugmeler{justify-content:flex-start;margin-top:12px;flex-wrap:wrap;gap:8px}
.ekip-dugmeler .btn{min-height:44px}
.ekip-duz{margin-top:10px}
.ekip-pencere .field input,.ekip-pencere .field select{min-height:44px}
@media (max-width:480px){.ekip-dugmeler .btn{flex:1 1 auto}.ekip-duz.grid2{grid-template-columns:1fr}}
/* FIŞ-DÜZENLE: değişiklik istekleri (ekip-istek.js) ve personel sayfasının düzenle/sil/istek satırları (ekip-duzen.js) */
.ekip-ist-baslik{margin:16px 0 10px;font-size:calc(16px*var(--yz,1))}
.ekip-ist-tablo{width:100%;border-collapse:collapse;margin-top:10px;font-size:calc(14px*var(--yz,1));table-layout:fixed}
.ekip-ist-tablo th,.ekip-ist-tablo td{text-align:start;padding:6px 6px;border-block-end:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.ekip-ist-tablo thead th{color:var(--muted);font-weight:600;font-size:calc(12.5px*var(--yz,1))}
.ekip-ist-tablo tbody th{color:var(--muted);font-weight:600;width:28%}
.ekip-ist-tablo tr.degisti td{background:var(--accent-soft)}
.ekip-ist-tablo td{font-variant-numeric:tabular-nums}
.satir .islem{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.satir .islem .btn{min-height:44px;padding:8px 14px}
.satir .istek-not{color:var(--muted)}
.satir .istek-not.red{color:var(--danger)}
.satir .istek-not.ok{color:var(--ok)}
.satir .sil-kutu{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.satir .sil-kutu input{min-height:44px;font:inherit;font-size:calc(16px*var(--yz,1));padding:9px 12px;border:1px solid var(--line-2);border-radius:var(--r-s);background:var(--surface);color:var(--ink)}
.foto-ekli{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:14px;margin-bottom:16px;border:1px solid var(--line);border-radius:var(--r-m);background:var(--sunk-2)}
.ekip-sayi{background:var(--accent);color:var(--accent-ink);border-radius:99px;font-size:calc(13px*var(--yz,1));padding:1px 10px;margin-inline-start:8px;vertical-align:middle;font-family:var(--f-body)}

/* Dil menüsü (dilmenu.js): bayraklı açılır liste */
.langsw.dm{border:1px solid rgba(255,255,255,.3);border-radius:999px;background:rgba(255,255,255,.07);overflow:visible;transition:background .15s,border-color .15s}
.langsw.dm:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.5)}
.langsw.dm .dm-gizli{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden;clip:rect(0 0 0 0)}
.dm-dugme{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--on-hull,#fff);font:inherit;font-weight:700;font-size:calc(12px*var(--yz,1));letter-spacing:.07em;line-height:1;padding:6px 10px 6px 8px;min-height:34px;cursor:pointer;border-radius:999px}
.dm-dugme:focus-visible,.dm-oge:focus-visible{outline:2px solid #E9C46A;outline-offset:2px}
.dm-dugme .dm-bay{display:inline-flex}
.dm-dugme .dm-ok{width:11px;height:11px;opacity:.75;transition:transform .15s}
.dm-dugme[aria-expanded="true"] .dm-ok{transform:rotate(180deg)}
.dm-bayrak{width:24px;height:16px;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.28),0 1px 3px rgba(0,0,0,.3);flex:none;display:block}
.sheet .langsw.dm,.giris .langsw.dm{border-color:var(--line);background:transparent}
.sheet .dm-dugme,.giris .dm-dugme{color:var(--ink)}
.dm-liste{position:fixed;z-index:100000;min-width:196px;max-height:min(70vh,440px);overflow:auto;padding:6px;border-radius:14px;background:linear-gradient(180deg,#14304D,#0E2740);border:1px solid rgba(233,196,106,.4);box-shadow:0 18px 44px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.3);animation:dmAc .14s ease-out}
.dm-oge{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;color:#EEF3F8;font:inherit;font-size:calc(14px*var(--yz,1));font-weight:600;padding:9px 10px;border-radius:9px;cursor:pointer;text-align:start}
.dm-oge .dm-ad{flex:1}
.dm-oge .dm-k{font-size:calc(11px*var(--yz,1));letter-spacing:.08em;opacity:.55;font-weight:700}
.dm-oge:hover,.dm-oge:focus{background:rgba(255,255,255,.1)}
.dm-oge[aria-selected="true"]{background:rgba(233,196,106,.18);color:#F6DFA0}
.dm-oge[aria-selected="true"] .dm-k{opacity:1;color:#E9C46A}
@keyframes dmAc{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.dm-liste{animation:none}.dm-dugme .dm-ok{transition:none}}

/* ---------- text size and high contrast (yazi-boyutu.js; device-only settings "yaziBoyutu" and "yuksekKarsit") ----------
   html[data-yazi]: 1.15 (Büyük) / 1.3 (Çok büyük) for body text, headings grow less. The report page (rapor.html) and the PDF do not load this.
   html[data-karsit="1"] or the system's "more contrast": stronger text, borders and no soft shadows, in the light and the dark theme. */
html[data-yazi="buyuk"]{--yz:1.15; --yh:1.07}
html[data-yazi="cokbuyuk"]{--yz:1.3; --yh:1.15}
html[data-yazi="buyuk"] body,html[data-yazi="cokbuyuk"] body{overflow-wrap:break-word}
html[data-yazi="buyuk"] .btn,html[data-yazi="cokbuyuk"] .btn,html[data-yazi="buyuk"] .pill,html[data-yazi="cokbuyuk"] .pill{height:auto;min-height:44px;white-space:normal;text-align:center}
html[data-yazi="cokbuyuk"] .kc .lbl,html[data-yazi="cokbuyuk"] .period,html[data-yazi="cokbuyuk"] .flag{letter-spacing:.06em}
html[data-yazi="cokbuyuk"] .note{flex-wrap:wrap}
html[data-karsit="1"]{--ink:#000F1C; --muted:#2B3640; --line:#7F7766; --line-2:#5E5748; --brass:#5A3F0C; --accent:#0B2A47; --ok:#0B4D33; --danger:#8A1F10;
  --on-hull-2:#DCE5EE; --pos-hull:#A8F0CB; --neg-hull:#FFC2B3; --hull-line:rgba(244,240,231,.4); --e1:none; --shadow:0 0 0 1px var(--line-2);
}
html[data-karsit="1"] :is(.btn,.panel,.chip,.note,.row,.qchip,input,select,textarea){border-color:var(--line-2)}
html[data-karsit="1"] :is(.chip,.bal,.row .d,.small,.lead,label){color:var(--ink)}
@media (prefers-color-scheme:dark){html[data-karsit="1"]{--ink:#FFFFFF; --muted:#CBD6E0; --line:#6A8399; --line-2:#9AB0C3; --brass:#F0CF8A; --accent:#BFDDF8; --ok:#9BE3BF; --danger:#FFB4A3;
  --on-hull-2:#E1E9F1; --pos-hull:#A8F0CB; --neg-hull:#FFC2B3; --hull-line:rgba(244,240,231,.45); --e1:none; --shadow:0 0 0 1px var(--line-2);
}}
@media (prefers-contrast:more){
  :root:not([data-karsit="0"]){--ink:#000F1C; --muted:#2B3640; --line:#7F7766; --line-2:#5E5748; --brass:#5A3F0C; --accent:#0B2A47; --ok:#0B4D33; --danger:#8A1F10;
  --on-hull-2:#DCE5EE; --pos-hull:#A8F0CB; --neg-hull:#FFC2B3; --hull-line:rgba(244,240,231,.4); --e1:none; --shadow:0 0 0 1px var(--line-2);
  }
  :root:not([data-karsit="0"]) :is(.btn,.panel,.chip,.note,.row,.qchip,input,select,textarea){border-color:var(--line-2)}
  :root:not([data-karsit="0"]) :is(.chip,.bal,.row .d,.small,.lead,label){color:var(--ink)}
}
@media (prefers-contrast:more) and (prefers-color-scheme:dark){:root:not([data-karsit="0"]){--ink:#FFFFFF; --muted:#CBD6E0; --line:#6A8399; --line-2:#9AB0C3; --brass:#F0CF8A; --accent:#BFDDF8; --ok:#9BE3BF; --danger:#FFB4A3;
  --on-hull-2:#E1E9F1; --pos-hull:#A8F0CB; --neg-hull:#FFC2B3; --hull-line:rgba(244,240,231,.45); --e1:none; --shadow:0 0 0 1px var(--line-2);
}}
html[data-yazi="buyuk"] .row .d,html[data-yazi="cokbuyuk"] .row .d{overflow-wrap:normal;word-break:keep-all;min-width:3.4em}
