/* Kotech panelleri — ana sayfadaki açık yeşil / koyu yeşil tasarım dilinin uygulama hali. */
:root {
  --lime: #84dde1;
  --orange: #f59331;      /* ana işlem düğmeleri ve HEMEN AL */
  --orange-dark: #e9821d;
  --orange-ink: #22160a;
  --lime-dark: #49b7bd;
  --lime-soft: #a5e5e9;
  --ink: #1a3032;
  --ink-2: #224041;
  --ink-3: #3a494a;
  --muted: #6b7474;
  --line: #dae3e3;
  --paper: #f4f9f9;
  --pale: #e5f4f5;
  --amber-bg: #fbf1cf;
  --amber: #6f5712;
  --red-bg: #f8e1dc;
  --red: #93392c;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, label { -webkit-tap-highlight-color: transparent; }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #45a2a7;
  outline-offset: 3px;
}
h1, h2, h3, h4 { font-weight: 500; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ---- Marka ---- */
.logo { font-size: 27px; letter-spacing: -1.6px; font-weight: 900; display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 27px; height: 27px; display: inline-block; background: var(--lime); flex: none;
  clip-path: polygon(0 0, 100% 0, 100% 28%, 32% 28%, 32% 40%, 83% 40%, 83% 67%, 32% 67%, 32% 100%, 0 100%);
}
.logo .dotc { color: #54b1b6; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 2px; font-size: 10px; font-weight: 700; }
.dot { width: 7px; height: 7px; background: var(--lime-dark); border-radius: 50%; display: inline-block; flex: none; }
.serial { font: 10px ui-monospace, Menlo, monospace; color: #808f90; letter-spacing: .6px; text-transform: uppercase; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---- Düğmeler ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 13px 20px; background: var(--orange); border: 1px solid var(--orange); border-radius: 5px;
  font-size: 13px; font-weight: 700; color: var(--orange-ink); white-space: nowrap;
  transition: background .2s, transform .2s, border-color .2s;
}
/* Ana işlem düğmeleri turuncudur ("dark" eski koyu birincil düğmenin adıdır; artık aynı görünür). */
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn.dark { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn.dark:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.ghost { background: white; border-color: var(--line); }
.btn.ghost:hover { background: var(--paper); border-color: #c0cecf; }
.btn.danger { background: white; border-color: #e6c3bc; color: var(--red); }
.btn.danger:hover { background: var(--red-bg); }
.btn.sm { padding: 8px 13px; font-size: 12px; gap: 8px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 0; font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lime-dark); }
.link:hover { text-decoration-color: var(--ink); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- Uygulama iskeleti ---- */
body.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
/* Panel kenar çubuğu açık renklidir (kullanıcı isteği): açık gri-mavi zemin, koyu yazı, seçili öğe açık turkuvaz. */
.side {
  background: #eaf1f3; color: var(--ink); display: flex; flex-direction: column; border-right: 1px solid var(--line);
  padding: 26px 16px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
/* Logo yalnızca yazıdan oluşur (alt yazısız, saydam zeminli); açık ve koyu zeminde doğrudan durur. */
.side .logo, .auth-art .logo { align-self: flex-start; }
.side .logo { margin: 0 8px; padding: 4px 0; }
.side .logo-img { height: 30px; max-width: 100%; }
.side-role { font: 10px ui-monospace, Menlo, monospace; letter-spacing: 1.6px; color: #586d6f; text-transform: uppercase; padding: 12px 10px 0 8px; margin-bottom: 26px; }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: #2c4345; transition: background .15s, color .15s;
}
.side nav a:hover { background: #dce8ea; color: var(--ink); }
.side nav a[aria-current="page"] { background: #c6e8eb; color: var(--ink); }
.side nav a .nav-ico { width: 18px; text-align: center; font-size: 14px; color: #4f8387; flex: none; }
.side nav a[aria-current="page"] .nav-ico { color: #1f6f74; }
.side nav a .count {
  margin-left: auto; background: var(--ink); color: white; border-radius: 20px;
  font-size: 11px; font-weight: 700; padding: 1px 8px; min-width: 22px; text-align: center;
}
.side-foot { margin-top: auto; border-top: 1px solid #cfdbdd; padding: 16px 10px 0; font-size: 12px; }
.side-foot b { display: block; color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot span { color: #586d6f; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot button { margin-top: 12px; background: white; border: 1px solid #c3d1d3; color: var(--ink); border-radius: 5px; padding: 8px 12px; font-size: 12px; font-weight: 600; width: 100%; }
.side-foot button:hover { background: #dce8ea; }
.menu-btn { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 66px; background: #ffffffee; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 36px;
  position: sticky; top: 0; z-index: 10;
}
.crumb { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; min-width: 0; }
.crumb b { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.bell { position: relative; background: white; border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; font-size: 15px; }
.bell:hover { background: var(--paper); }
.bell i { position: absolute; top: -3px; right: -3px; background: var(--lime); border: 2px solid white; border-radius: 20px; font: 700 10px Arial; padding: 1px 5px; font-style: normal; }
.content { padding: 34px 36px 70px; width: 100%; max-width: 1240px; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -1.3px; line-height: 1.15; margin-top: 12px; }
.page-title em { font-style: normal; background: linear-gradient(transparent 60%, var(--lime-soft) 60%); padding-right: 6px; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 8px; max-width: 620px; line-height: 1.7; }
.back { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.back:hover { color: var(--ink); }

/* ---- Kartlar ve ızgaralar ---- */
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stack > * + * { margin-top: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card.lime { background: var(--lime); border-color: var(--lime); }
.card.ink { background: var(--ink); border-color: var(--ink); color: white; }
.card.ink .muted { color: #b3bfc0; }
.card.ink .dl dt, .card.ink .serial, .card.ink .history small { color: #9bb2b3; }
.card.ink .history li::after { background: var(--ink-3); }
.card.pale { background: var(--pale); border-color: #c9e2e3; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.card.flush .card-head { padding: 20px 24px 0; }
.card-title { font-size: 17px; letter-spacing: -.3px; }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.split > * { min-width: 0; }
.sticky { position: sticky; top: 86px; }

.stat { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: block; transition: border-color .2s, transform .2s; }
a.stat:hover { border-color: var(--lime-dark); transform: translateY(-2px); }
.stat-num { font-size: 36px; letter-spacing: -1.6px; line-height: 1.1; margin-top: 14px; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat.accent { background: var(--lime); border-color: var(--lime); }
.stat.accent .stat-label, .stat.accent .serial { color: #3b5758; }

/* ---- Rozetler ---- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 30px; font-size: 11px; font-weight: 700; background: #ecf1f1; color: #4c5657; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.lime { background: #caeef0; color: #24575a; }
.badge.ink { background: var(--ink); color: var(--lime); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.plain::before { display: none; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 30px; padding: 3px 10px; font-size: 11px; background: white; margin: 0 5px 5px 0; }

/* ---- Tablolar ---- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafcfc; }
.table td { padding: 15px 16px; border-bottom: 1px solid #ecf1f1; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover td { background: var(--paper); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td b { font-weight: 600; }
.table td small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.table td .deadline-warning, .table td .deadline-warning small { color: var(--red); }
.deadline-warning .dl > div:nth-child(-n+2) dd { color: var(--red); font-weight: 700; }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.empty p { font-size: 13px; max-width: 380px; margin: 0 auto 18px; line-height: 1.7; }

/* ---- Tanım listesi ---- */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.dl.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl.c1 { grid-template-columns: 1fr; }
.dl dt { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.dl dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; white-space: pre-line; }
.dl dd.big { font-size: 26px; letter-spacing: -1px; }
.price { font-size: 30px; letter-spacing: -1.2px; line-height: 1.1; font-variant-numeric: tabular-nums; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---- Formlar ---- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; min-width: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 11px; line-height: 1.5; }
.field input, .field select, .field textarea {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: white;
  font-size: 13px; font-weight: 400; min-width: 0; width: 100%; transition: border-color .15s;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c0cecf; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime-dark); outline: 3px solid #84dde155; outline-offset: 0; }
.field .req { color: #4a9fa3; }
.form-error { background: var(--red-bg); color: var(--red); border-radius: 5px; padding: 11px 14px; font-size: 12px; font-weight: 600; }
.form-error:empty { display: none; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; cursor: pointer; line-height: 1.5; }
.check input { width: 18px; height: 18px; accent-color: #35868a; margin: 1px 0 0; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; border: 1px solid var(--line); border-radius: 30px; padding: 8px 14px; font-size: 12px; background: white; transition: background .15s, border-color .15s; }
.chip:hover span { border-color: #c0cecf; }
.chip input:checked + span { background: var(--lime); border-color: var(--lime); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid #45a2a7; outline-offset: 2px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 30px; padding: 3px; background: white; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; border-radius: 30px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: var(--muted); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }

/* ---- Dosyalar ---- */
.drop { display: block; text-align: center; background: var(--pale); padding: 22px 15px; border: 1px dashed #74acaf; border-radius: 6px; font-size: 13px; cursor: pointer; transition: background .15s; }
.drop:hover, .drop.over { background: #d6eeef; }
.drop b { display: block; margin-bottom: 4px; }
.drop small { color: var(--muted); font-size: 11px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.files { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.files:empty { display: none; }
.file { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; font-size: 12px; background: white; min-width: 0; }
.file .ext { font: 700 9px ui-monospace, Menlo, monospace; background: var(--ink); color: var(--lime); border-radius: 4px; padding: 5px 6px; text-transform: uppercase; flex: none; min-width: 38px; text-align: center; }
.file .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file .meta { color: var(--muted); flex: none; }
.file a.name:hover { text-decoration: underline; }
.file button { border: 0; background: var(--paper); border-radius: 50%; width: 24px; height: 24px; flex: none; line-height: 1; }
.file.err { border-color: #e6c3bc; background: #fdf6f4; flex-wrap: wrap; }
.file.err .meta { flex: 1 1 100%; order: 9; color: var(--red); line-height: 1.5; }
.file .bar { height: 3px; background: var(--pale); border-radius: 3px; width: 70px; overflow: hidden; flex: none; }
.file .bar i { display: block; height: 100%; background: var(--lime-dark); width: 0; transition: width .2s; }

/* ---- Ön izleme ---- */
.file button.link { width: auto; height: auto; border-radius: 0; background: none; flex: none; }
.viewer { position: relative; background: var(--pale); border: 1px solid #c9e2e3; border-radius: 8px; overflow: hidden; min-height: 220px; }
.viewer canvas { display: block; width: 100%; height: 380px; touch-action: none; cursor: grab; outline-offset: -3px; }
.viewer canvas.dragging { cursor: grabbing; }
.viewer.tall canvas { height: min(58vh, 520px); }
.viewer-info { position: absolute; left: 14px; top: 12px; display: flex; flex-direction: column; gap: 4px; font: 10px ui-monospace, Menlo, monospace; color: #517274; letter-spacing: .5px; text-transform: uppercase; pointer-events: none; }
.viewer-help { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 14px; font-size: 11px; color: var(--muted); background: white; border-top: 1px solid #c9e2e3; }
.viewer-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 44px 24px; min-height: 220px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.viewer-msg b { color: var(--ink); font-size: 14px; }
.viewer-msg span { max-width: 460px; }
.pdf-frame { display: block; width: 100%; height: 520px; border: 0; background: white; }
.viewer.tall .pdf-frame { height: min(64vh, 640px); }
.viewer-image { display: block; max-width: 100%; max-height: 560px; margin: 0 auto; }

/* ---- Teknik özet ve parça blokları ---- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: white; padding: 16px 18px; min-width: 0; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.fact small { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: .3px; }
.fact b { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.fact span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.fact.accent { background: var(--lime); }
.fact.accent small, .fact.accent span { color: #3b5758; }
.fact.accent b { font-size: 20px; letter-spacing: -.6px; }
.spec { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.spec li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed #dfe8e9; }
.spec li:last-child { border-bottom: 0; }
.spec li > span:first-child { color: var(--muted); flex: none; }
.spec li > span:last-child { text-align: right; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.part { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.part + .part { margin-top: 14px; }
.part-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; background: var(--paper); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.part-head h3 { font-size: 16px; letter-spacing: -.3px; }
.part-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; padding: 18px; }
.part-body h4 { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.note { background: var(--paper); border-left: 3px solid var(--lime-dark); border-radius: 0 6px 6px 0; padding: 11px 14px; font-size: 12.5px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.note.big { font-size: 13.5px; line-height: 1.75; padding: 16px 18px; }
.job-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 20px; background: var(--paper); border-top: 1px solid var(--line); align-items: end; }
.job-foot small { display: block; color: var(--muted); font-size: 10.5px; margin-bottom: 3px; }
.job-foot b { font-size: 19px; font-weight: 500; letter-spacing: -.6px; }
.job-foot .when b { font-size: 14px; letter-spacing: 0; }
.job-go { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; font-size: 12px; font-weight: 700; border-top: 1px solid var(--line); }
.job-go span { width: 26px; height: 26px; border-radius: 50%; background: var(--pale); display: grid; place-items: center; transition: background .2s; }
.job:hover .job-go span { background: var(--lime); }

/* ---- Bilgi kutuları ---- */
.notice { border-radius: 6px; padding: 14px 16px; font-size: 12.5px; line-height: 1.65; background: var(--pale); border-left: 3px solid var(--lime-dark); }
.notice b { display: block; margin-bottom: 2px; font-size: 13px; }
.notice.warn { background: var(--amber-bg); border-left-color: #cfa92d; color: #55430d; }
.notice.danger { background: var(--red-bg); border-left-color: #c2604f; color: #6f2a20; }
.notice.plain { background: var(--paper); border-left-color: var(--line); }

/* ---- Sipariş aşamaları ---- */
.steps { display: flex; list-style: none; padding: 0; margin: 6px 0 0; }
.steps li { flex: 1; position: relative; padding-top: 30px; font-size: 12px; color: var(--muted); min-width: 0; padding-right: 8px; }
.steps li::before { content: ''; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps li::after { content: ''; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: white; border: 2px solid var(--line); }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--lime-dark); }
.steps li.done::after { background: var(--lime-dark); border-color: var(--lime-dark); }
.steps li.current { color: var(--ink); font-weight: 700; }
.steps li.current::after { background: var(--lime); border-color: var(--ink); box-shadow: 0 0 0 4px #84dde166; }
.steps li small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { position: relative; padding: 0 0 18px 22px; font-size: 13px; }
.history li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-dark); }
.history li::after { content: ''; position: absolute; left: 6.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.history li:last-child { padding-bottom: 0; }
.history li:last-child::after { display: none; }
.history small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

/* ---- Mesajlar ---- */
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; background: white; white-space: pre-line; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: var(--pale); border-color: #c9e2e3; }
.msg.ask { border-color: #e2cf8e; background: var(--amber-bg); }
.msg .who { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; display: flex; gap: 10px; justify-content: space-between; }

/* ---- İş kartları ---- */
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.job { background: white; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: transform .25s, border-color .25s; overflow: hidden; }
.job:hover { transform: translateY(-4px); border-color: var(--lime-dark); }
.job-top { background: var(--paper); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.job-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.job h3 { font-size: 18px; letter-spacing: -.4px; line-height: 1.3; }
.job-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.job-meta small { display: block; color: var(--muted); font-size: 10.5px; margin-bottom: 3px; }
.job-meta b { font-size: 15px; font-weight: 500; }

/* ---- İş panosu kartları (ön izleme + üç düğme) ---- */
.jobcard { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s; }
.jobcard:hover { transform: translateY(-3px); border-color: var(--lime-dark); box-shadow: 0 14px 40px #1a313212; }
.jobcard-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line);
  background-color: var(--pale);
  background-image: linear-gradient(#c9e2e3 1px, transparent 1px), linear-gradient(90deg, #c9e2e3 1px, transparent 1px);
  background-size: 28px 28px; }
.jobcard-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jobcard-thumb img.photo { object-fit: contain; background: white; }
.jobcard-tags { position: absolute; inset: 10px 10px auto 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.tag-urgent { background: #d8432e; color: white; font-weight: 800; letter-spacing: 1.4px; font-size: 10px; padding: 6px 10px; border-radius: 4px; }
.tag-time { margin-left: auto; background: #1a3032e6; color: white; font: 10.5px ui-monospace, Menlo, monospace; letter-spacing: .3px; padding: 6px 9px; border-radius: 4px; }
.thumb-note { position: absolute; left: 10px; bottom: 10px; background: #ffffffe6; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; color: #4c5657; padding: 4px 8px; letter-spacing: .3px; }
.thumb-ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 34px 22px 16px; }
.thumb-ph svg { width: 86px; height: 62px; opacity: .8; }
.thumb-ph b { font-size: 12.5px; font-weight: 700; color: #3d494a; }
.thumb-ph span { font-size: 11px; color: var(--muted); line-height: 1.5; max-width: 250px; }
.jobcard-body { display: flex; flex-direction: column; gap: 14px; padding: 20px; flex: 1; }
.jobcard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.jobcard-head .serial { font: 12px Arial, Helvetica, sans-serif; letter-spacing: .2px; text-transform: none; color: var(--muted); }
.jobcard h3 { font-size: 19px; font-weight: 600; letter-spacing: -.2px; line-height: 1.3; }
.jobcard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jobcard-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 14px; margin: 0; }
.jobcard-specs dt { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 3px; }
.jobcard-specs dd { margin: 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.jobcard-specs dd small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 1px; }
.jobcard-price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: auto; }
.jobcard-price small { font-size: 12px; color: var(--muted); }
.jobcard-price b { font-size: 23px; font-weight: 600; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.jobcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jobcard-actions .btn { min-height: 46px; padding: 10px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: 0; gap: 8px; }
.jobcard-actions .btn.details { grid-column: 1 / -1; }
.jobcard-actions .btn.offer { background: transparent; border-color: transparent; color: #283647; font-weight: 500; }
.jobcard-actions .btn.offer:hover { background: #f0f4f4; border-color: #e1e9e9; }
.jobcard-actions .btn.take { background: #202d42; border-color: #202d42; color: #fff; font-weight: 600; }
.jobcard-actions .btn.take:hover { background: #30435e; border-color: #30435e; }
.jobcard-actions .btn.take .take-icon { width: 17px; height: 17px; flex: none; }
.jobcard-actions .btn.take .take-arrow { font-size: 19px; line-height: 1; margin-left: 3px; }
/* Eylem renkleri: turuncu "hemen al", turkuvaz "teklif ver". Koyu yazı her ikisinde de yüksek kontrast verir. */
.btn.take { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn.take:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.offer { background: #2cc4b6; border-color: #2cc4b6; color: #06302c; }
.btn.offer:hover { background: #1fb0a3; border-color: #1fb0a3; }

/* Üreticinin teklifleri: gerçek parça ön izlemesi ve fiyatı tek satırda. */
.bid-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; color: inherit; text-decoration: none; }
.bid-row + .bid-row { border-top: 1px solid var(--line); }
a.bid-row:hover { background: #f7faf9; }
a.bid-row:focus-visible { outline: 2px solid var(--lime-dark); outline-offset: -3px; }
.bid-thumb { width: 64px; height: 64px; overflow: hidden; border-radius: 10px; background: var(--pale); display: grid; place-items: center; }
.bid-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bid-thumb-empty { text-align: center; font-size: 10px; color: var(--muted); line-height: 1.2; }
.bid-row-info { min-width: 0; }
.bid-row-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; line-height: 1.35; }
.bid-row-heading strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.bid-row-code { margin-top: 3px; color: var(--muted); font-size: 12px; }
.bid-row-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.bid-row-price { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; white-space: nowrap; }
.bid-row-price > span, .bid-row-price small { color: var(--muted); font-size: 11px; }
.bid-row-price strong { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .bid-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 15px; }
  .bid-thumb { width: 56px; height: 56px; }
  .bid-row-price { grid-column: 2; align-items: flex-start; text-align: left; }
}
.order-list { display: grid; gap: 12px; }
.order-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.order-row:hover { background: #f7faf9; border-color: var(--lime-dark); }
.order-row:focus-visible { outline: 2px solid var(--lime-dark); outline-offset: 2px; }
.order-row .bid-thumb { width: 110px; height: 86px; border-radius: 10px; }
.order-row-body, .order-row-info { min-width: 0; }
.order-row-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.order-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; line-height: 1.35; }
.order-row-title strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.order-row-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.order-row-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; gap: 4px; }
.order-row-price strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.order-row-price small { color: var(--muted); font-size: 11px; }
.order-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 14px 0 0; padding: 0; list-style: none; }
.order-progress li { color: var(--muted); font-size: 11px; min-width: 0; line-height: 1.3; }
.order-progress li.reached { color: var(--ink); }
.order-progress-bar { display: block; height: 4px; border-radius: 5px; background: #e0e4e4; margin-bottom: 6px; }
.order-progress .reached .order-progress-bar { background: #e9b62d; }
@media (max-width: 600px) {
  .order-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px; align-items: start; }
  .order-row .bid-thumb { width: 64px; height: 64px; }
  .order-row-top { flex-wrap: wrap; gap: 10px; }
  .order-row-price { align-items: flex-start; text-align: left; }
  .order-progress { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .order-progress li { font-size: 10px; overflow-wrap: anywhere; }
}
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.action-row .btn { min-height: 48px; letter-spacing: .8px; }
.mobile-bar { display: none; }

/* ---- Site Yönetimi ---- */
.logo-img { height: 30px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; display: block; }
.sticky-bar { position: sticky; top: 78px; z-index: 9; padding: 16px 20px; box-shadow: 0 10px 30px #1a31320d; }
.list-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--paper); }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.list-item { background: white; border: 1px solid var(--line); border-radius: 7px; padding: 16px; margin-bottom: 12px; }
.list-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.image-field { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.image-thumb { max-width: 260px; max-height: 150px; border: 1px solid var(--line); border-radius: 6px; background: var(--pale); display: block; object-fit: contain; }
.image-thumb.empty { width: 220px; height: 90px; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 400; border-style: dashed; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 10px; background: white; text-align: left; font-size: 11.5px; min-width: 0; }
button.media-item:hover { border-color: var(--lime-dark); }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--pale); border-radius: 4px; }
.media-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Sözleşme kabulü ---- */
.contract { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.contract + .contract { margin-top: 10px; }
.contract summary { list-style: none; cursor: pointer; padding: 13px 15px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; background: var(--paper); }
.contract summary::-webkit-details-marker { display: none; }
.contract summary::after { content: 'Metni oku +'; font-size: 11px; color: #4c7f82; font-weight: 700; white-space: nowrap; }
.contract details[open] summary::after { content: 'Kapat −'; }
.contract-body { padding: 15px; font-size: 12.5px; line-height: 1.75; white-space: pre-line; max-height: 220px; overflow-y: auto; border-top: 1px solid var(--line); color: #3f494a; }
.contract .check { padding: 13px 15px; border-top: 1px solid var(--line); background: white; font-size: 12.5px; }

/* ---- Pencere ve bildirim ---- */
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 30px; width: min(560px, 94vw); color: var(--ink); box-shadow: 0 25px 100px #0003; max-height: 92vh; overflow-y: auto; }
dialog.wide { width: min(760px, 94vw); }
dialog::backdrop { background: #13252680; backdrop-filter: blur(5px); }
dialog h2 { font-size: 25px; letter-spacing: -1px; margin: 12px 0 10px; line-height: 1.2; }
dialog .lead { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 18px; }
.close { float: right; border: 0; background: var(--paper); border-radius: 50%; width: 32px; height: 32px; font-size: 20px; line-height: 1; }
.close:hover { background: var(--pale); }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.toasts { position: fixed; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 100; max-width: min(380px, calc(100vw - 44px)); }
.toast { background: var(--ink); color: white; border-radius: 7px; padding: 14px 18px; font-size: 13px; box-shadow: 0 12px 40px #0003; border-left: 4px solid var(--lime); animation: rise .25s ease-out; line-height: 1.5; }
.toast.err { border-left-color: #e08a7b; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.pop { position: absolute; right: 0; top: 48px; width: min(360px, 90vw); max-height: min(70vh, 520px); overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 60px #1a313226; z-index: 30; overflow-x: hidden; }
.pop-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.pop-item { display: block; padding: 13px 18px; border-bottom: 1px solid #ecf1f1; font-size: 12.5px; }
.pop-item:hover { background: var(--paper); }
.pop-item.new { background: #ebf8f8; }
.pop-item b { display: block; font-size: 13px; }
.pop-item small { color: var(--muted); font-size: 11px; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* ---- Giriş / kayıt ---- */
body.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: white; }
.auth-art { background: var(--ink); color: white; padding: 44px 52px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-art .logo-img { height: 38px; max-width: 100%; }
.auth-art h1 { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -2.4px; line-height: 1.06; margin: auto 0 20px; }
.auth-art h1 em { font-style: normal; color: var(--lime); }
.auth-art p { color: #b3bfc0; font-size: 14px; line-height: 1.75; max-width: 400px; }
.auth-art .eyebrow { color: var(--lime); margin-top: 40px; }
.auth-art svg { position: absolute; right: -70px; top: 60px; width: 430px; opacity: .9; pointer-events: none; }
.auth-points { display: flex; gap: 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid #4f6162; font-size: 12px; color: #b3bfc0; flex-wrap: wrap; }
.auth-points b { color: var(--lime); font-weight: 400; margin-right: 8px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 44px 26px; background: linear-gradient(115deg, #fbfdfd 35%, var(--pale)); }
.auth-box { width: min(440px, 100%); }
.auth-box h2 { font-size: 32px; letter-spacing: -1.3px; margin: 14px 0 8px; }
.auth-box .lead { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 26px; }
.auth-box form { display: flex; flex-direction: column; gap: 15px; }
.auth-alt { font-size: 13px; color: var(--muted); margin-top: 22px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { position: relative; cursor: pointer; }
.role-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.role-pick span { display: block; border: 1px solid var(--line); border-radius: 7px; padding: 14px 15px; background: white; font-size: 13px; font-weight: 700; transition: border-color .15s, background .15s; }
.role-pick span small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.5; }
.role-pick input:checked + span { border-color: var(--ink); background: var(--lime); }
.role-pick input:checked + span small { color: #3b5758; }
.role-pick input:focus-visible + span { outline: 3px solid #45a2a7; outline-offset: 2px; }

/* ---- Dar ekran ---- */
@media (max-width: 1080px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 900px) {
  body.app { display: block; }
  .side { position: sticky; top: 0; height: auto; z-index: 20; padding: 14px 18px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .logo { padding: 0; margin: 0; }
  .side .logo-img { height: 24px; }
  .side-role { display: none; }
  .menu-btn { display: block; background: white; border: 1px solid #c3d1d3; color: var(--ink); border-radius: 5px; padding: 8px 12px; font-size: 14px; }
  .side nav, .side-foot { display: none; width: 100%; }
  .side.open nav { display: flex; margin-top: 14px; }
  .side.open .side-foot { display: block; margin-top: 14px; }
  .topbar { position: static; padding: 0 18px; height: 58px; }
  .content { padding: 24px 18px 60px; }
  .grid.c2, .grid.c3, .form-grid, .form-grid.c3, .dl, .dl.c3 { grid-template-columns: 1fr; }
  .grid.c4 { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; gap: 0; }
  .steps li { padding: 0 0 20px 30px; }
  .steps li::before { top: 4px; bottom: -4px; left: 7px; right: auto; width: 2px; height: auto; }
  .steps li::after { top: 0; }
  body.auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px 34px; }
  .auth-art h1 { margin-top: 44px; }
  .auth-art svg { width: 260px; right: -60px; top: 10px; opacity: .45; }
  .card { padding: 20px; }
  .msg { max-width: 100%; }
  .part-body { grid-template-columns: 1fr; gap: 18px; }
  .sticky-bar { position: static; }
  .has-mobile-bar { padding-bottom: 92px; }
  .mobile-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    background: white; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px #1a313214; }
  .mobile-bar small { display: block; font-size: 10px; color: var(--muted); }
  .mobile-bar b { font-size: 17px; font-weight: 500; letter-spacing: -.5px; white-space: nowrap; }
  .mobile-bar .btn { min-height: 46px; padding: 10px 13px; font-size: 11.5px; letter-spacing: .6px; }
  .toasts { bottom: 96px; }
  .viewer canvas { height: 300px; }
  .pdf-frame { height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---- Yüklenen görsel ve belgelerin küçük ön izlemeleri ---- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.shot { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.shot-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-doc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; padding: 8px; text-align: center; }
.shot-doc b { font: 700 13px ui-monospace, Menlo, monospace; color: var(--ink); background: var(--pale); border-radius: 4px; padding: 5px 8px; }
.shot-doc small { font-size: 10px; color: var(--muted); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.shot-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #ffffffee; font-size: 15px; line-height: 1; }
.shot-x:hover { background: var(--red-bg); color: var(--red); }
.upload-count { font-size: 12px; font-weight: 700; margin: 10px 0; }
.upload-count.ok { color: #1c7d84; }
.machine-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 8px; align-items: center; }
.help-item p { white-space: pre-line; line-height: 1.75; font-size: 13px; color: #33484a; }
@media (max-width: 560px) { .machine-row { grid-template-columns: minmax(0, 1fr) 72px; } .machine-row .btn { grid-column: 1 / -1; } }

/* ---- Liste satırlarındaki küçük ön izleme ---- */
.cell-thumb { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rowthumb { flex: none; width: 88px; height: 60px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; display: grid; place-items: center;
  background-color: var(--pale);
  background-image: linear-gradient(#c9e2e3 1px, transparent 1px), linear-gradient(90deg, #c9e2e3 1px, transparent 1px);
  background-size: 14px 14px; }
.rowthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rowthumb img:not(.photo) { transform: scale(1.3); }
.rowthumb img.photo { object-fit: contain; background: white; }
.rowthumb i { font: 700 10px ui-monospace, Menlo, monospace; font-style: normal; letter-spacing: .6px; color: #4f7d80; background: #ffffffd9; border-radius: 4px; padding: 3px 6px; }
@media (max-width: 640px) { .rowthumb { width: 64px; height: 46px; } .cell-thumb { gap: 10px; } }

/* ---- Profil ---- */
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.profile-who { flex: 1; min-width: 220px; }
.profile-who .page-title { margin-top: 8px; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--pale); border: 1px solid var(--line); color: #2e6164; font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--muted); align-items: center; }
@media (max-width: 640px) { .avatar { width: 56px; height: 56px; font-size: 19px; } .profile-head { gap: 14px; } }

/* ---- Biçimli metin editörü ve gösterimi (destek talepleri) ---- */
.rich { border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.rich:focus-within { border-color: #45a2a7; box-shadow: 0 0 0 3px #45a2a722; }
.rich-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 7px 8px; border-bottom: 1px solid var(--line); background: #fafcfc; }
.rich-tool { border: 1px solid transparent; background: none; border-radius: 5px; padding: 6px 10px; font-size: 12px; color: var(--ink); min-width: 32px; }
.rich-tool:hover { background: var(--pale); border-color: var(--line); }
.rich-tool.b { font-weight: 800; } .rich-tool.i { font-style: italic; font-family: Georgia, serif; } .rich-tool.u { text-decoration: underline; }
.rich-area { min-height: 150px; max-height: 420px; overflow: auto; padding: 14px 16px; font-size: 14px; font-weight: 400; line-height: 1.65; outline: none; }
.rich-area:empty::before { content: attr(data-placeholder); color: #98a4a5; pointer-events: none; }
.rich-area p, .rich-text p { margin: 0 0 8px; }
.rich-area ul, .rich-area ol, .rich-text ul, .rich-text ol { margin: 0 0 8px; padding-left: 22px; }
.rich-area a, .rich-text a { color: #1f7f85; text-decoration: underline; text-underline-offset: 3px; }
.rich-text { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.rich-text > :last-child { margin-bottom: 0; }
.msg-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: white; }
.msg-card.forma { background: var(--pale); border-color: #b9dfe1; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.msg-head b { color: var(--ink); font-size: 13px; }
.ask { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #1f6f74; white-space: nowrap; }
.ask svg { width: 15px; height: 15px; flex: none; }
.ask:hover { text-decoration: underline; text-underline-offset: 3px; }
.jobcard-head .ask { margin-left: auto; }
.msg-files { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.doc-add { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.doc-add .field { flex: 1; min-width: 220px; max-width: 340px; }
.files .name b { font-weight: 700; }
