/* Aslan Panjur — arayüz
 * Marka: lacivert (#0A3F84) + çelik gri. Yazı tipi: IBM Plex Sans (yerel, CDN yok). */

/* ------------------------------------------------------------------ */
/* Yazı tipi                                                           */
/* ------------------------------------------------------------------ */
@font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Plex"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-latin-700-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Plex"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ------------------------------------------------------------------ */
/* Renkler (açık / koyu)                                               */
/* ------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --brand: #0A3F84;
  --brand-2: #1552A8;
  --brand-3: #082F66;
  --primary: #0A3F84;
  --primary-hover: #0C4C9E;
  --link: #0A3F84;
  --brand-50: #EBF1FA;
  --brand-100: #D6E2F4;
  --steel: #C8D2DF;
  --bg: #EDF1F6;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --surface-3: #EAEFF5;
  --ink: #121826;
  --text-2: #354052;
  --muted: #627089;
  --line: #DBE2EC;
  --line-2: #C6D0DD;
  --ok: #12775A;
  --ok-bg: #E5F5EE;
  --warn: #9A5300;
  --warn-bg: #FFF3DD;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --shadow: 0 1px 2px rgba(15, 27, 51, .05), 0 6px 20px rgba(15, 27, 51, .06);
  --shadow-lg: 0 18px 50px rgba(9, 25, 56, .22);
  --sidebar: linear-gradient(175deg, #0D4A98 0%, #0A3F84 38%, #072B5E 100%);
  --sidebar-ink: #DDE6F5;
  /* çizim */
  --dw-line: #1C2433;
  --dw-dim: #0A3F84;
  --dw-dimtxt: #0A3F84;
  --dw-main: #B42318;
  --dw-rail: #A8B3C2;
  --dw-box1: #DCE3EC;
  --dw-box2: #B4C0CF;
  --dw-wall: #F3EFE8;
  --dw-hatch: #B9AF9F;
  --dw-bg: #F7F9FC;
  --dw-grid: rgba(10, 63, 132, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sbw: 256px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #2D69CF; --primary-hover: #3B78DE; --link: #8FB7F6;
    --brand-50: #13213D; --brand-100: #1A2E57; --steel: #3A4A66;
    --bg: #0A0F1A; --surface: #111929; --surface-2: #151F33; --surface-3: #1B2740;
    --ink: #E8EDF5; --text-2: #C2CBD9; --muted: #8C99B0; --line: #22304B; --line-2: #2E3E5D;
    --ok: #46C79A; --ok-bg: #0F2A22; --warn: #F2B85B; --warn-bg: #2B2112; --danger: #F2837A; --danger-bg: #2E1517;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    --sidebar: linear-gradient(175deg, #0D1B36 0%, #0A152A 50%, #070F1F 100%);
    --dw-line: #D5DEEB; --dw-dim: #8FB7F6; --dw-dimtxt: #A9C8F8; --dw-main: #F2837A; --dw-rail: #5D6B82;
    --dw-box1: #3B4A63; --dw-box2: #2A374D; --dw-wall: #1E2433; --dw-hatch: #45506A; --dw-bg: #0F1726; --dw-grid: rgba(143, 183, 246, .06);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #2D69CF; --primary-hover: #3B78DE; --link: #8FB7F6;
  --brand-50: #13213D; --brand-100: #1A2E57; --steel: #3A4A66;
  --bg: #0A0F1A; --surface: #111929; --surface-2: #151F33; --surface-3: #1B2740;
  --ink: #E8EDF5; --text-2: #C2CBD9; --muted: #8C99B0; --line: #22304B; --line-2: #2E3E5D;
  --ok: #46C79A; --ok-bg: #0F2A22; --warn: #F2B85B; --warn-bg: #2B2112; --danger: #F2837A; --danger-bg: #2E1517;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  --sidebar: linear-gradient(175deg, #0D1B36 0%, #0A152A 50%, #070F1F 100%);
  --dw-line: #D5DEEB; --dw-dim: #8FB7F6; --dw-dimtxt: #A9C8F8; --dw-main: #F2837A; --dw-rail: #5D6B82;
  --dw-box1: #3B4A63; --dw-box2: #2A374D; --dw-wall: #1E2433; --dw-hatch: #45506A; --dw-bg: #0F1726; --dw-grid: rgba(143, 183, 246, .06);
}

/* ------------------------------------------------------------------ */
/* Temel                                                               */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--font); font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 .6em; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brand-2); outline-offset: 2px; }
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; }
.center { text-align: center; }
.num { text-align: right; white-space: nowrap; }
.strong { font-weight: 650; }
.mt { margin-top: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ */
/* Yerleşim: yan menü (masaüstü) + üst çubuk & alt menü (mobil)        */
/* ------------------------------------------------------------------ */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sbw); z-index: 40;
  background: var(--sidebar); color: var(--sidebar-ink);
  display: flex; flex-direction: column; padding: 22px 16px 16px; overflow-y: auto;
  box-shadow: inset -1px 0 0 rgba(255,255,255,.06);
}
.sidebar::after { /* panjur lamel dokusu */
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.035) 0 13px, rgba(0,0,0,.08) 13px 15px);
  -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%);
}
.sb-brand { display: block; padding: 0 6px; }
.sb-brand img { width: 190px; height: auto; display: block; }
.sb-tag { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(221,230,245,.62); margin: 10px 8px 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.sb-nav { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.sb-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(221,230,245,.5); margin: 14px 10px 6px; }
.sb-nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
  color: var(--sidebar-ink); font-weight: 500; text-decoration: none; position: relative;
}
.sb-nav a small { margin-left: auto; font-size: .7rem; color: rgba(221,230,245,.55); }
.sb-nav a:hover { background: rgba(255,255,255,.08); }
.sb-nav a.on { background: #fff; color: #0A3F84; font-weight: 650; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.sb-nav a.on small { color: #5a6d8c; }
.sb-foot { margin-top: auto; padding-top: 18px; position: relative; z-index: 1; }
.sb-contact { font-size: .74rem; color: rgba(221,230,245,.6); margin: 10px 6px 0; line-height: 1.6; }

.theme-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 6px; border-radius: 8px; color: inherit; }
.theme-btn .ic { display: none; }
.theme-btn[data-theme-now="auto"] .th-auto, .theme-btn[data-theme-now="light"] .th-light, .theme-btn[data-theme-now="dark"] .th-dark { display: inline-block; }
.theme-btn .th-txt { font-size: .82rem; }
.sb-theme { width: 100%; padding: 9px 12px; background: rgba(255,255,255,.08); color: var(--sidebar-ink); border: 1px solid rgba(255,255,255,.12); }
.sb-theme:hover { background: rgba(255,255,255,.14); }
.ab-theme .th-txt { display: none; }

.appbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 58px; padding: 0 24px; padding-left: calc(var(--sbw) + 24px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.ab-brand { display: none; }
.ab-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ab-theme { color: var(--muted); width: 38px; height: 38px; justify-content: center; border: 1px solid var(--line); background: var(--surface); }
.ab-theme:hover { color: var(--ink); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 8px 28px 48px; }
body.has-nav .wrap { margin-left: var(--sbw); margin-right: 0; max-width: none; padding-left: max(28px, calc((100vw - var(--sbw) - 1300px) / 2)); padding-right: max(28px, calc((100vw - var(--sbw) - 1300px) / 2)); }

.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: .78rem; }
.um-name { font-weight: 550; font-size: .9rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.um-head { padding: 10px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.um-head strong, .um-head small { display: block; }
.um-head small { color: var(--muted); }
.um-pop a, .um-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; text-align: left; border-radius: 8px; color: var(--ink); cursor: pointer; font-size: .92rem; text-decoration: none; }
.um-pop a:hover, .um-pop button:hover { background: var(--surface-3); }
.um-pop form { margin: 0; }
.um-pop .danger { color: var(--danger); }

.tabbar { display: none; }

@media (max-width: 999px) {
  .sidebar { display: none; }
  .appbar { padding: 0 14px; padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); background: var(--brand); border-bottom: 0; box-shadow: 0 2px 12px rgba(4, 22, 52, .25); }
  :root[data-theme="dark"] .appbar { background: #0C1830; }
  .ab-brand { display: block; }
  .ab-brand img { height: 38px; width: auto; display: block; }
  .ab-theme { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
  .usermenu summary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; padding-right: 4px; }
  .usermenu .avatar { background: #fff; color: var(--brand); }
  .um-name { display: none; }
  body.has-nav .wrap { margin-left: 0; padding: 14px 14px calc(92px + env(safe-area-inset-bottom)); }
  .wrap { padding: 14px 14px 40px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(15, 27, 51, .08);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px; color: var(--muted); font-size: .7rem; font-weight: 550; border-radius: 10px; text-decoration: none; }
  .tabbar a .ic { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--link); background: var(--brand-50); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .appbar { } }
@media (max-width: 999px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .appbar { background: #0C1830; } }

/* ------------------------------------------------------------------ */
/* Bileşenler                                                          */
/* ------------------------------------------------------------------ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 18px; }
.page-head h1 .muted { font-weight: 500; font-size: .8em; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--primary); border-radius: 10px; background: var(--primary); color: #fff;
  font-weight: 600; font-size: .93rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-2); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.linklike { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: inherit; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-head h2 { display: flex; align-items: center; gap: 10px; }
.card-head.pad { padding: 16px 20px; margin: 0; border-bottom: 1px solid var(--line); }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); font-size: .76rem; font-weight: 600; letter-spacing: .03em; }
.chip-brand { background: var(--brand); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-admin { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1200px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid-2, .grid-admin { grid-template-columns: 1fr; } }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.row-btns form { margin: 0; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .92rem; border: 1px solid transparent; }
.alert .ic { margin-top: 2px; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-info { background: var(--brand-50); color: var(--text-2); border-color: var(--brand-100); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.flash { position: relative; padding: 12px 44px 12px 16px; border-radius: 10px; margin: 6px 0 14px; font-weight: 550; font-size: .93rem; border-left: 4px solid; transition: opacity .4s, transform .4s; word-break: break-word; }
.flash.out { opacity: 0; transform: translateY(-6px); }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-info { background: var(--brand-50); color: var(--link); }
.flash-x { position: absolute; right: 8px; top: 8px; border: 0; background: none; color: inherit; cursor: pointer; padding: 4px; opacity: .7; }

/* Form */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field > span, .field > legend { font-size: .8rem; font-weight: 600; color: var(--text-2); letter-spacing: .01em; padding: 0; }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=email], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 22%, transparent); }
input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.hint { min-height: 1.2em; margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.hint.err { color: var(--danger); font-weight: 550; }
.input-unit { position: relative; display: flex; }
.input-unit input { padding-right: 46px; }
.input-unit em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; font-size: .85rem; pointer-events: none; }
.input-unit.sm input { min-height: 38px; width: 112px; text-align: right; }
.field.big input { min-height: 58px; font-size: 1.45rem; font-weight: 650; letter-spacing: -.01em; }
.input-ic { position: relative; display: flex; align-items: center; }
.input-ic > .ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.input-ic > .ic + input { padding-left: 40px; }
.input-ic .pw-toggle, .input-ic .pw-gen { position: absolute; right: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; }
.input-ic .pw-toggle.on { color: var(--link); }
.input-ic input { padding-right: 42px; }
.input-ic.grow { flex: 1; }
.input-pre { position: relative; display: flex; align-items: center; }
.input-pre .swatch { position: absolute; left: 10px; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); }
.input-pre .swatch.none { background: repeating-linear-gradient(45deg, var(--surface-3) 0 4px, var(--surface) 4px 8px) !important; }
.input-pre input { padding-left: 42px; }
.stepper { display: flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--surface); }
.stepper button { width: 46px; border: 0; background: var(--surface-2); font-size: 1.3rem; cursor: pointer; color: var(--text-2); }
.stepper button:hover { background: var(--surface-3); }
.stepper input { border: 0; border-radius: 0; text-align: center; font-weight: 650; -moz-appearance: textfield; min-width: 0; }
.stepper input:focus { box-shadow: none; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm button { width: 38px; }
.stepper.sm input { min-height: 38px; }
.price-group { display: flex; gap: 8px; }
.price-group input { flex: 1; font-weight: 650; font-size: 1.05rem; }
.price-group select { width: 110px; flex: none; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .93rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }

/* Seçim çipleri (radyo) */
.chips legend { margin-bottom: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: .88rem; font-weight: 550; color: var(--text-2); transition: all .12s; }
.chip-opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-opt input:focus-visible + span { outline: 2.5px solid var(--brand-2); outline-offset: 2px; }
.chip-opt:first-child span { color: var(--muted); border-style: dashed; }
.chip-opt:first-child input:checked + span { background: var(--surface-3); color: var(--text-2); border-color: var(--line-2); border-style: solid; }

/* Aksesuar */
.aks legend { margin-bottom: 8px; }
.aks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aks-item { display: flex; flex-direction: column; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.aks-item > span { font-size: .82rem; font-weight: 600; color: var(--text-2); }
@media (max-width: 560px) { .aks-grid { grid-template-columns: 1fr; } .aks-item { flex-direction: row; align-items: center; justify-content: space-between; } .aks-item .stepper { width: 150px; } }

/* Segmented */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.seg a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.seg a:hover { background: var(--surface-3); }
.seg a.on { background: var(--brand); color: #fff; }
.seg.sm a { padding: 5px 10px; font-size: .82rem; }
@media (max-width: 560px) { .seg-tip { width: 100%; } .seg-tip a { flex: 1; justify-content: center; padding: 10px 6px; } }

/* Sekmeler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--link); border-color: var(--link); }

/* Etiketler */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: .78rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.tag .ic { width: 15px; height: 15px; }
.tag-brand { background: var(--brand-50); color: var(--link); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag.t-l39 { background: #E7F0FD; color: #0A3F84; }
.tag.t-l55 { background: #E5F4F1; color: #0D6B5C; }
.tag.t-l77 { background: #F3ECFA; color: #5B2C8E; }
:root[data-theme="dark"] .tag.t-l39 { background: #13284A; color: #9EC2FA; }
:root[data-theme="dark"] .tag.t-l55 { background: #10302C; color: #7FD9C6; }
:root[data-theme="dark"] .tag.t-l77 { background: #2A1D3E; color: #CDB0F2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag.t-l39 { background: #13284A; color: #9EC2FA; }
  :root:not([data-theme="light"]) .tag.t-l55 { background: #10302C; color: #7FD9C6; }
  :root:not([data-theme="light"]) .tag.t-l77 { background: #2A1D3E; color: #CDB0F2; }
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--danger); } .dot.off { background: var(--line-2); }

/* Tablolar */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover td { background: var(--surface-2); }
.tbl .num { text-align: right; }
.tbl tr.is-off td { opacity: .6; }
.tbl tr.is-fail td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.rt-main a, .ut-main a { color: var(--ink); display: block; text-decoration: none; }
.rt-main strong, .ut-main strong { display: block; }
.rt-main small, .ut-main small { color: var(--muted); }
.ut-main { display: flex; align-items: center; gap: 10px; }
.ua { color: var(--muted); font-size: .82rem; max-width: 320px; }
@media (max-width: 760px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 3px 0; text-align: left !important; display: flex; justify-content: space-between; gap: 10px; }
  .tbl td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .8rem; }
  .tbl td.rt-main, .tbl td.ut-main { font-size: 1rem; padding-bottom: 6px; }
  .tbl td.rt-main a { width: 100%; }
}

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px; margin-bottom: 16px; }
.filters select { width: auto; min-width: 150px; }
.filters .grow { flex: 1 1 260px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty > .ic { width: 44px; height: 44px; color: var(--steel); margin-bottom: 10px; }
.empty h2 { color: var(--ink); margin-bottom: 6px; }
.empty.small { padding: 18px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 14px; }
.kv div { display: contents; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
.mini-log { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.mini-log li { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mini-log li.fail span:nth-child(2) { color: var(--danger); }
h3.sub { font-size: .9rem; margin: 18px 0 8px; }

/* Admin: sabitler & modüller */
.consts { display: flex; flex-direction: column; }
.const { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.const:last-child { border-bottom: 0; }
.c-txt strong { display: block; font-size: .9rem; }
.c-txt small { color: var(--muted); font-size: .78rem; }
.c-txt small b { color: var(--link); }
.const.changed { background: linear-gradient(90deg, var(--warn-bg), transparent); margin: 0 -10px; padding: 10px; border-radius: 8px; }
.c-def { grid-column: 1 / -1; color: var(--warn); font-size: .76rem; }
.card-head h2 .ic { color: var(--link); }
.mods { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.switch { display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; width: 42px; height: 24px; flex: none; border-radius: 99px; background: var(--line-2); transition: background .15s; }
.switch i::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 + i { background: var(--primary); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2.5px solid var(--brand-2); outline-offset: 2px; }
.switch span strong { display: block; font-size: .92rem; }
.switch span small { color: var(--muted); font-size: .8rem; }

/* ------------------------------------------------------------------ */
/* Ana sayfa                                                           */
/* ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
  margin: 10px 0 26px; padding: 30px 32px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, #0B468F 0%, #0A3F84 45%, #072B5E 100%);
  box-shadow: 0 14px 40px rgba(10, 63, 132, .25);
}
.hero::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 46%; opacity: .45;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.10) 0 16px, rgba(255,255,255,0) 16px 19px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.hero-txt { position: relative; z-index: 1; max-width: 620px; }
.hero .eyebrow { color: rgba(255,255,255,.65); }
.hero h1 { font-size: 1.9rem; margin-bottom: 8px; }
.hero p { color: rgba(255,255,255,.82); margin: 0; }
.hero-stats { position: relative; z-index: 1; display: flex; gap: 10px; }
.hero-stats div { min-width: 92px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.hero-stats strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.hero-stats span { font-size: .78rem; color: rgba(255,255,255,.72); }
.sec-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.choose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.choice { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s, border-color .12s; }
.choice:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand-100); box-shadow: 0 12px 30px rgba(10, 63, 132, .12); }
.choice-art { position: relative; width: 64px; height: 64px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--link); }
.choice-art .ic { width: 34px; height: 34px; }
.choice-art b { position: absolute; right: -6px; bottom: -6px; background: var(--brand); color: #fff; font-size: .72rem; padding: 2px 6px; border-radius: 6px; border: 2px solid var(--surface); }
.choice-txt { flex: 1; min-width: 0; }
.choice-txt strong { display: block; font-size: 1.08rem; }
.choice-txt small { display: block; color: var(--muted); font-size: .84rem; }
.choice-txt em { display: inline-block; margin-top: 6px; font-style: normal; font-size: .74rem; font-weight: 600; color: var(--text-2); background: var(--surface-3); padding: 2px 8px; border-radius: 6px; }
.choice-go { color: var(--muted); }
@media (max-width: 1100px) { .choose { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hero { padding: 22px 20px; } .hero h1 { font-size: 1.5rem; } .hero-stats { width: 100%; } .hero-stats div { flex: 1; min-width: 0; } }
.rlist { list-style: none; margin: 0 -20px -20px; padding: 0; }
.rlist li a { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rlist li a:hover { background: var(--surface-2); }
.rl-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--link); }
.rl-main { flex: 1; min-width: 0; }
.rl-main strong, .rl-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-main small { color: var(--muted); }
.rl-side { text-align: right; flex: none; }
.rl-side b { display: block; font-size: .8rem; color: var(--link); }
.rl-side small { color: var(--muted); font-size: .78rem; }
@media (max-width: 560px) { .rl-side small { display: none; } }

/* ------------------------------------------------------------------ */
/* Hesap sayfası                                                       */
/* ------------------------------------------------------------------ */
.calc-grid { display: grid; grid-template-columns: minmax(330px, 420px) minmax(0, 1fr); grid-template-areas: "olcu res" "proje res" "save res"; gap: 18px; align-items: start; }
.area-olcu { grid-area: olcu; } .area-res { grid-area: res; } .area-proje { grid-area: proje; } .savebar { grid-area: save; }
@media (max-width: 1180px) { .calc-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "olcu" "res" "proje" "save"; } }
.olcu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.area-proje .form-grid { grid-template-columns: 1fr 1fr; }
.area-proje .chips, .area-proje .price-field { grid-column: 1 / -1; }
@media (max-width: 400px) { .olcu-grid { grid-template-columns: 1fr; } }
.savebar { display: flex; gap: 10px; }
.savebar .btn { flex: 1; }
@media (max-width: 999px) {
  .savebar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin: 0 -14px; padding: 10px 14px; border-top: 1px solid var(--line); }
}
.res-empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); }
.res-empty .ic { width: 52px; height: 52px; color: var(--steel); margin-bottom: 8px; }
.sinir-uyari { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); font-size: .9rem; }
.sinir-uyari .su-txt { flex: 1 1 240px; }
.sinir-uyari .su-btn { background: var(--danger); border-color: var(--danger); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.kpi span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.kpi strong { display: block; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.01em; margin-top: 2px; }
.kpi small { color: var(--muted); font-size: .78rem; }
.kpi-hl { background: var(--brand); border-color: var(--brand); color: #fff; }
.kpi-hl span, .kpi-hl small { color: rgba(255,255,255,.75); }
.draw-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .draw-grid { grid-template-columns: 1fr; } }
figure.draw { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column;
  background-color: var(--dw-bg);
  background-image: linear-gradient(var(--dw-grid) 1px, transparent 1px), linear-gradient(90deg, var(--dw-grid) 1px, transparent 1px);
  background-size: 16px 16px; }
figure.draw > div { flex: 1; display: flex; align-items: center; justify-content: center; }
figure.draw svg { width: 100%; height: auto; max-height: 440px; display: block; }
figure.draw figcaption { text-align: center; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-top: 8px; }
.table-wrap { overflow-x: auto; }
table.parts { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.parts th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--ink); }
table.parts td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.parts tr.grp td { background: var(--surface-3); font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--text-2); padding: 6px 10px; }
table.parts .num { text-align: right; }
table.parts td.strong { font-size: 1.02rem; }

/* ------------------------------------------------------------------ */
/* Teknik çizim (SVG)                                                  */
/* ------------------------------------------------------------------ */
.dw text { font-family: var(--font); font-weight: 600; }
.dw .halo { stroke: var(--dw-bg); paint-order: stroke; stroke-linejoin: round; }
.dw-opening { fill: none; stroke: var(--line-2); stroke-dasharray: 4 3; }
.dw-rail { fill: var(--dw-rail); stroke: var(--dw-line); }
.dw-railin { stroke: var(--dw-line); opacity: .45; }
.dw-curtain-edge { fill: none; stroke: var(--dw-line); }
.dw-bottom { fill: #6F7B8C; stroke: var(--dw-line); }
.dw-box { stroke: var(--dw-line); }
.dw-box-s1 { stop-color: var(--dw-box1); } .dw-box-s2 { stop-color: var(--dw-box2); }
.dw-boxline { stroke: var(--dw-line); opacity: .4; }
.dw-boxtxt { fill: var(--dw-line); letter-spacing: .08em; }
.dw-tag { fill: var(--surface); stroke: var(--dw-line); opacity: .94; }
.dw-tagtxt { fill: var(--ink); }
.dw-floor { stroke: var(--dw-line); }
.dw-ext { stroke: var(--dw-dim); opacity: .55; }
.dw-dim { stroke: var(--dw-dim); }
.dw-dimhead { fill: var(--dw-dim); }
.dw-dimtxt { fill: var(--dw-dimtxt); }
.dw-dimtxt.dw-main { fill: var(--dw-main); font-weight: 700; }
.dw-wallbg { fill: var(--dw-wall); } .dw-hatch { stroke: var(--dw-hatch); }
.dw-wall { stroke: var(--dw-line); }
.dw-boxsec { fill: none; stroke: var(--dw-line); stroke-linejoin: round; }
.dw-boxin { fill: none; stroke: var(--dw-line); opacity: .45; }
.dw-roll { stroke: var(--dw-line); }
.dw-ring { fill: none; stroke: rgba(0,0,0,.28); }
.dw-shaft { fill: var(--dw-box1); stroke: var(--dw-line); }
.dw-axle { fill: var(--dw-line); }
.dw-railsec { fill: var(--dw-rail); stroke: var(--dw-line); opacity: .9; }
.dw-slat { stroke: var(--dw-line); }
.dw-break { fill: none; stroke: var(--dw-line); }
.dw-leader { stroke: var(--muted); }
.dw-dot { fill: var(--dw-dim); }
.dw-label { fill: var(--text-2); font-weight: 600; }
/* SVG çizgi kalınlıkları (çizimdeki u birimine göre JS verir); ölçü çizgileri: */
.dw line.dw-dim { stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.dw line.dw-ext { stroke-width: .8; vector-effect: non-scaling-stroke; }
.dw .dw-leader { stroke-width: .9; vector-effect: non-scaling-stroke; }

/* ------------------------------------------------------------------ */
/* Kayıt: çıktı seçimi + A4 belge                                      */
/* ------------------------------------------------------------------ */
.doc-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 10px; margin-bottom: 16px; }
.doc-switch a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.doc-switch a .ic { width: 26px; height: 26px; color: var(--muted); }
.doc-switch a strong { display: block; font-size: .95rem; }
.doc-switch a small { color: var(--muted); font-size: .78rem; }
.doc-switch a.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.doc-switch a.on .ic { color: var(--link); }
@media (max-width: 560px) { .doc-switch { grid-template-columns: 1fr 1fr; } .doc-switch small { display: none; } }

.sheet-scroll { overflow-x: auto; padding-bottom: 6px; }
.sheet {
  --s-ink: #141A26; --s-muted: #5E6A80; --s-line: #D5DCE6; --s-soft: #F3F6FA; --s-brand: #0A3F84;
  width: 210mm; min-height: 297mm; margin: 0 auto; padding: 11mm 12mm 9mm; background: #fff; color: var(--s-ink);
  box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 20px 50px rgba(15,27,51,.14); border-radius: 4px;
  display: flex; flex-direction: column; font-size: 9.6pt; line-height: 1.4; color-scheme: light;
  /* çizim değişkenleri: belge her zaman açık renk */
  --dw-line: #1C2433; --dw-dim: #0A3F84; --dw-dimtxt: #0A3F84; --dw-main: #B42318; --dw-rail: #A8B3C2;
  --dw-box1: #DCE3EC; --dw-box2: #B4C0CF; --dw-wall: #F3EFE8; --dw-hatch: #B9AF9F; --dw-bg: #FFFFFF; --dw-grid: transparent;
  --surface: #fff; --ink: #141A26; --text-2: #354052; --muted: #5E6A80; --line-2: #C6D0DD;
}
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 4mm; border-bottom: 2.5px solid var(--s-brand); position: relative; }
.doc-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--s-line); }
.doc-logo { width: 54mm; height: auto; display: block; }
.doc-firm { font-style: normal; text-align: right; display: flex; flex-direction: column; gap: 1mm; font-size: 8.4pt; color: var(--s-muted); }
.doc-firm strong { color: var(--s-brand); font-size: 10.5pt; letter-spacing: .06em; }
.doc-firm span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.doc-firm .ic { width: 11px; height: 11px; color: var(--s-brand); }
.doc-titlebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 5mm 0 3mm; }
.doc-titlebar h2 { font-size: 17pt; letter-spacing: .14em; color: var(--s-brand); font-weight: 700; }
.doc-titlebar h2 em { font-style: normal; font-size: 9pt; letter-spacing: .06em; background: var(--s-brand); color: #fff; padding: 2px 7px; border-radius: 4px; vertical-align: 4px; }
.doc-titlebar h2 em:empty { display: none; }
.doc-titlebar dl { display: flex; margin: 0; border: 1px solid var(--s-line); border-radius: 6px; overflow: hidden; }
.doc-titlebar dl div { padding: 2mm 3.5mm; border-left: 1px solid var(--s-line); }
.doc-titlebar dl div:first-child { border-left: 0; background: var(--s-soft); }
.doc-titlebar dt { font-size: 6.8pt; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); }
.doc-titlebar dd { margin: 0; font-weight: 700; font-size: 9.4pt; white-space: nowrap; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin-bottom: 3mm; }
.party { padding: 2.4mm 3.5mm; border: 1px solid var(--s-line); border-radius: 6px; border-left: 3px solid var(--s-brand); }
.party h4 { font-size: 6.8pt; text-transform: uppercase; letter-spacing: .14em; color: var(--s-muted); margin-bottom: 1mm; }
.party strong { display: block; font-size: 11pt; margin-bottom: 1mm; }
.party p { margin: 0 0 .6mm; color: #374254; display: flex; gap: 5px; align-items: center; }
.party p .ic { width: 11px; height: 11px; color: var(--s-brand); }
.doc-items { width: 100%; border-collapse: collapse; }
.doc-items th { background: var(--s-brand); color: #fff; font-size: 7.2pt; text-transform: uppercase; letter-spacing: .08em; text-align: left; padding: 2.2mm 3mm; font-weight: 600; }
.doc-items th.num { text-align: right; }
.doc-items td { padding: 2.2mm 3mm; border-bottom: 1px solid var(--s-line); vertical-align: top; }
.doc-items td strong { display: block; font-size: 10.5pt; }
.doc-items td small { display: block; color: var(--s-muted); font-size: 8.3pt; margin-top: .6mm; }
.doc-items tr.sub td { color: #374254; font-size: 9pt; padding-top: 1.6mm; padding-bottom: 1.6mm; }
.doc-items .c-no { width: 8mm; color: var(--s-muted); text-align: center; }
.doc-price { display: flex; justify-content: space-between; align-items: stretch; gap: 6mm; margin: 3mm 0 3mm; }
.dp-note { color: var(--s-muted); font-size: 8.4pt; align-self: center; }
.dp-box { display: flex; align-items: center; gap: 6mm; padding: 2.6mm 5mm; border-radius: 6px; background: var(--s-brand); color: #fff; min-width: 74mm; justify-content: space-between; }
.dp-box span { font-size: 8.5pt; letter-spacing: .2em; font-weight: 600; opacity: .85; }
.dp-box strong { font-size: 15pt; letter-spacing: .01em; }
.doc-draw { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4mm; margin-bottom: 3mm; }
.doc-draw figure.draw { border: 1px solid var(--s-line); border-radius: 6px; padding: 2.5mm; background: #fff; }
.doc-draw figure.draw svg { max-height: 60mm; }
.doc-draw figure.draw figcaption { font-size: 6.8pt; margin-top: 1mm; color: var(--s-muted); }
.doc-notes { padding: 2.4mm 4mm; background: var(--s-soft); border-radius: 6px; margin-bottom: 3mm; font-size: 8.8pt; }
.doc-notes h4 { font-size: 7pt; text-transform: uppercase; letter-spacing: .14em; color: var(--s-muted); margin-bottom: 1mm; }
.doc-notes ul { margin: 0; padding-left: 4.5mm; }
.doc-notes li { margin: .4mm 0; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; margin-top: auto; padding-top: 8mm; }
.doc-sign.three { grid-template-columns: repeat(3, 1fr); gap: 6mm; }
.doc-sign div { border-top: 1px solid var(--s-ink); padding-top: 1.5mm; min-height: 15mm; }
.doc-sign span { display: block; font-size: 7.2pt; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); font-weight: 600; }
.doc-sign em { font-style: normal; font-weight: 600; font-size: 8.6pt; color: #8A94A6; }
.doc-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 4mm; padding-top: 2mm; border-top: 1px solid var(--s-line); font-size: 7pt; color: var(--s-muted); }
.doc-info { width: 100%; border-collapse: collapse; margin-bottom: 3.5mm; }
.doc-info th, .doc-info td { border: 1px solid var(--s-line); padding: 1.4mm 2.4mm; text-align: left; font-size: 8.8pt; }
.doc-info th { background: var(--s-soft); font-size: 6.6pt; letter-spacing: .06em; color: var(--s-muted); width: 30mm; font-weight: 700; }
.doc-info td { font-weight: 600; }
.doc-olcu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; margin-bottom: 3.5mm; }
.doc-olcu div { border: 1px solid var(--s-line); border-radius: 6px; padding: 1.5mm 3mm; }
.doc-olcu span { display: block; font-size: 6.8pt; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); font-weight: 600; }
.doc-olcu strong { font-size: 14pt; }
.doc-olcu small { font-size: 8pt; color: var(--s-muted); }
.doc-olcu .hl { background: var(--s-brand); border-color: var(--s-brand); color: #fff; }
.doc-olcu .hl span, .doc-olcu .hl small { color: rgba(255,255,255,.8); }
.doc-warn { display: flex; gap: 6px; align-items: center; color: #B42318; font-weight: 600; font-size: 8.6pt; margin: -1mm 0 3mm; }
.doc-warn .ic { width: 13px; height: 13px; }
.doc-h { font-size: 8.4pt; letter-spacing: .16em; color: var(--s-brand); margin: 0 0 1.5mm; }
.sheet-imalat .doc-draw figure.draw svg { max-height: 46mm; }
.sheet table.doc-parts { font-size: 9pt; margin-bottom: 3mm; }
.sheet table.doc-parts th { border-bottom: 1.5px solid var(--s-ink); padding: 1.3mm 2.6mm; font-size: 6.8pt; color: var(--s-muted); }
.sheet table.doc-parts td { padding: 1.25mm 2.6mm; border-bottom: 1px solid var(--s-line); }
.sheet table.doc-parts tr.grp td { background: var(--s-soft); color: var(--s-brand); font-size: 6.6pt; padding: .8mm 2.6mm; }
.sheet table.doc-parts td.strong { font-size: 10pt; }
.doc-note { padding: 2.5mm 3.5mm; border: 1px dashed var(--s-line); border-radius: 6px; margin-bottom: 3mm; font-size: 9pt; }
@media (max-width: 860px) { .sheet { border-radius: 0; } }

/* ------------------------------------------------------------------ */
/* Giriş / Kurulum                                                     */
/* ------------------------------------------------------------------ */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 46%) 1fr; }
.auth-aside { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #0D4A98 0%, #0A3F84 40%, #062654 100%); display: flex; align-items: center; padding: 48px; }
.aa-shutter { position: absolute; inset: 0; opacity: .55;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0 22px, rgba(0,0,0,.12) 22px 25px, rgba(255,255,255,0) 25px 26px);
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 75%); mask-image: linear-gradient(200deg, #000 10%, transparent 75%); }
.aa-in { position: relative; z-index: 1; max-width: 440px; }
.aa-in img { width: 260px; height: auto; display: block; margin-bottom: 18px; }
.aa-tag { font-size: 1.15rem; font-weight: 600; color: rgba(255,255,255,.92); margin-bottom: 22px; }
.aa-feat { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 10px; }
.aa-feat li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); }
.aa-feat li::before { content: ""; width: 22px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.5); box-shadow: 0 -8px 0 rgba(255,255,255,.25), 0 8px 0 rgba(255,255,255,.25); flex: none; }
.aa-contact { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: .86rem; color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }
.aa-contact span { display: flex; gap: 8px; align-items: center; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 18px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow-lg); }
.auth-brand { text-align: left; margin-bottom: 22px; }
.auth-logo { border-radius: 16px; display: block; margin-bottom: 16px; box-shadow: 0 8px 22px rgba(10,63,132,.3); }
.auth-brand h1 { font-size: 1.5rem; }
.auth-brand p { color: var(--muted); margin: 4px 0 0; }
.auth-note { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 18px 0 0; }
.auth-note .ic { margin-top: 2px; }
.auth-foot { font-size: .84rem; color: var(--muted); margin-top: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.auth-foot .theme-btn { padding: 0; color: var(--link); }
.auth-foot .theme-btn .th-txt { font-size: .84rem; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { padding: 28px 22px 24px; padding-top: calc(28px + env(safe-area-inset-top)); }
  .aa-in img { width: 190px; margin-bottom: 8px; }
  .aa-tag { font-size: .95rem; margin-bottom: 0; }
  .aa-feat, .aa-contact { display: none; }
  .auth-main { justify-content: flex-start; padding-top: 22px; }
  .auth-card { padding: 24px 20px; box-shadow: var(--shadow); }
  .auth-logo { display: none; }
}

/* ------------------------------------------------------------------ */
/* PWA kurulum                                                         */
/* ------------------------------------------------------------------ */
.install-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 60; width: min(460px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
body.has-nav .install-banner { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { body.has-nav .install-banner { bottom: 20px; left: calc(50% + var(--sbw) / 2); } }
.install-banner img { border-radius: 10px; }
.ib-txt { flex: 1; min-width: 0; }
.ib-txt strong, .ib-txt span { display: block; }
.ib-txt span { font-size: .84rem; color: var(--muted); }
.ib-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; }
.dlg { border: 0; padding: 0; border-radius: 18px; width: min(460px, calc(100% - 24px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: rgba(6, 18, 40, .55); backdrop-filter: blur(2px); }
.dlg-in { padding: 22px; }
.dlg-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.dlg-head img { border-radius: 12px; }
.dlg-head p { margin: 2px 0 0; font-size: .85rem; }
.dlg-body p { font-size: .93rem; }
.steps { padding-left: 20px; margin: 0 0 10px; }
.steps li { margin: 6px 0; }
.kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface-2); font-size: .85em; }
.dlg-foot { display: flex; justify-content: flex-end; margin-top: 12px; }

.hide-sm { }
@media (max-width: 560px) { .hide-sm { display: none; } h1 { font-size: 1.35rem; } .page-head { margin-top: 4px; } .page-head .actions .btn { padding: 0 12px; } }

/* ------------------------------------------------------------------ */
/* Yazdırma — tek sayfa A4                                             */
/* ------------------------------------------------------------------ */
@media print {
  @page { size: A4 portrait; margin: 8mm; }
  :root, :root[data-theme="dark"] { color-scheme: light; --bg: #fff; }
  html, body { background: #fff !important; }
  body { font-size: 10pt; }
  .no-print, .sidebar, .appbar, .tabbar, .install-banner, .dlg, .flash, .page-head, .doc-switch { display: none !important; }
  body.has-nav .wrap, .wrap { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .sheet-scroll { overflow: visible; padding: 0; }
  .sheet { width: auto; min-height: 279mm; height: auto; padding: 0; box-shadow: none; border-radius: 0; zoom: var(--print-zoom, 1) !important; break-inside: avoid; page-break-after: avoid; }
  .sheet[hidden] { display: none !important; }
  .doc-items th, .dp-box, .doc-olcu .hl, .doc-titlebar h2 em, .doc-notes, .doc-info th, .doc-parts tr.grp td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  figure.draw, .doc-draw { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
