/* The chat-style "Yeni harita" screen (web/newmap-chat.js): the assistant asks one thing at a time,
   the user answers with chips, files or by typing. Uses the studio's tokens (web/app.css :root). */
.nc-page { max-width: none; padding-top: 28px; padding-bottom: 0; }
.nc { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - var(--head) - 28px); }
/* the heading is the classic screen's .page-head (same h1), with the same "Ekran: Klasik | Sohbet" control
   inline right of the title (.nm-title / .nm-screen-w in app.css) */
.nc-head { margin-bottom: var(--s-5); }
.nc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nc-thread { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.nc-msg { display: flex; gap: 12px; align-items: flex-start; }
.nc-msg.me { justify-content: flex-end; align-items: center; }
.nc-av { width: 34px; height: 34px; border-radius: var(--r-12); background: var(--spectrum); flex: none; display: grid; place-items: center; color: #fff; }
.nc-av svg { width: 17px; height: 17px; }
.nc-bub { background: var(--surface); border-radius: 4px var(--r-18) var(--r-18) var(--r-18); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: calc(100% - 46px); }
.nc-bub > p { margin: 0; font-size: var(--fs-16); }
.nc-bub > small, .nc-bub small.muted { color: var(--muted); font-size: var(--fs-13); }
.nc-bub > small svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.nc-msg.past .nc-bub { background: transparent; padding: 4px 0; }
.nc-msg.past .nc-bub > p { color: var(--ink-2); }
.nc-msg.me .nc-bub { background: var(--accent); color: #fff; border-radius: var(--r-18) 4px var(--r-18) var(--r-18); max-width: 75%; }
.nc-msg.me .nc-bub small { color: rgba(255, 255, 255, .85); }
.nc-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.nc-qa { display: block; font-size: var(--fs-13); }
.nc-msg.cur { animation: nc-in .35s var(--ease) both; }
@keyframes nc-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .nc-msg.cur { animation: none; } }
.nc-edit { border: 0; background: none; color: var(--muted); font: 600 var(--fs-13) var(--body); display: inline-flex; gap: 4px; align-items: center; padding: 6px; border-radius: var(--r-8); cursor: pointer; order: -1; }
.nc-edit svg { width: 14px; height: 14px; }
.nc-edit:hover, .nc-edit:focus-visible { color: var(--accent-deep); background: var(--blue-tint); }

/* quick replies */
.nc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-chips.col { flex-direction: column; }
.nc-chip { display: inline-flex; align-items: center; gap: var(--s-2); border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: var(--s-2) 14px; font: 500 var(--fs-14) var(--body); cursor: pointer; color: var(--ink-2); transition: border-color .15s, background .15s; text-align: left; }
.nc-chip:hover { border-color: var(--line-2); }
.nc-chip svg { width: 16px; height: 16px; flex: none; }
.nc-chip.on { border-color: var(--accent); background: var(--blue-tint); color: var(--accent-deep); font-weight: 600; }
.nc-chip.big { flex-direction: column; align-items: flex-start; gap: 2px; border-radius: var(--r-18); padding: 10px 14px; }
.nc-chip.big b { font-weight: 600; color: var(--ink); }
.nc-chip.big small { color: var(--muted); font-size: var(--fs-13); font-weight: 400; }
.nc-chip:focus-visible, .nc-seg button:focus-visible, .nc-swb:focus-visible, .nc-card:focus-visible, .nc-style:focus-visible, .nc-drop:focus-visible, .nc-ref-add:focus-visible { outline: 3px solid rgba(10, 108, 240, .35); outline-offset: 2px; }
.nc-seg { display: flex; gap: 4px; padding: 4px; background: #fff; border-radius: var(--r-12); flex-wrap: wrap; }
.nc-seg button { flex: 1 1 auto; border: 0; background: none; padding: 8px 14px; border-radius: var(--r-12); font: 600 var(--fs-14) var(--body); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.nc-seg button.on { background: var(--blue-tint); color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px var(--accent); }
.nc-seg button.locked { opacity: .7; }
.nc-seg.sm { background: var(--surface); margin-top: 8px; display: inline-flex; }
.nc-seg.sm button { padding: var(--s-1) 12px; font-size: var(--fs-13); flex: none; }
.nc-sub { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--line-2); }
.nc-sub p { margin: 0; }
.nc-row-end { display: flex; justify-content: flex-end; gap: 8px; }
.nc-q { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nc-q legend { font-weight: 600; font-size: var(--fs-14); margin-bottom: 8px; padding: 0; }
.nc-other.hidden { display: none; }

/* typing dots */
.nc-typing { display: inline-flex; gap: var(--s-1); padding: 4px 2px; }
.nc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: nc-dot 1.2s infinite ease-in-out; }
.nc-typing i:nth-child(2) { animation-delay: .15s; } .nc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes nc-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .nc-typing i { animation: none; opacity: .6; } }

/* files */
.nc-drop { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-18); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.nc-drop:hover, .nc-drop.over { border-color: var(--accent); background: var(--blue-tint); }
.nc-drop-i { width: 42px; height: 42px; border-radius: var(--r-12); background: var(--blue-tint); color: var(--accent); display: grid; place-items: center; flex: none; }
.nc-drop-i svg { width: 20px; height: 20px; }
.nc-drop b { display: block; font-size: var(--fs-14); }
.nc-drop small { color: var(--muted); font-size: var(--fs-13); }
.nc-files { display: flex; flex-direction: column; gap: 8px; }
.nc-file { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-12); background: #fff; color: var(--ink); min-width: 0; }
.nc-msg.me .nc-file { border-color: transparent; }
.nc-ext { width: 38px; height: 38px; border-radius: var(--r-12); display: grid; place-items: center; font: 700 var(--fs-12) var(--body); text-transform: uppercase; color: var(--accent-deep); background: var(--blue-tint); flex: none; }
.nc-fn { flex: 1; min-width: 0; font-weight: 600; font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-fs { font-size: var(--fs-13); color: var(--muted); white-space: nowrap; }
.nc-x { border: 0; background: none; width: 30px; height: 30px; border-radius: var(--r-8); display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; font-size: var(--fs-14); }
.nc-x svg { width: 15px; height: 15px; }
.nc-x:hover, .nc-x:focus-visible { background: var(--surface); color: var(--ink); }
.nc-json { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border-radius: var(--r-12); background: #fff; }
.nc-json b { display: inline-flex; gap: 6px; align-items: center; }
.nc-json svg { width: 15px; height: 15px; }
.nc-ok { color: var(--ok) !important; display: inline-flex; gap: 4px; align-items: center; }
.spin-sm.dark { border-color: rgba(20, 22, 58, .2); border-top-color: var(--ink); display: inline-block; }

/* the look */
.nc-look { display: flex; flex-direction: column; gap: 10px; }
.nc-style { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r-18); background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.nc-style:hover { border-color: var(--line-2); }
.nc-th { width: 76px; height: 56px; border-radius: var(--r-12); overflow: hidden; flex: none; background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.nc-th img { width: 100%; height: 100%; object-fit: cover; }
.nc-st-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nc-st-t b { font-size: var(--fs-16); }
.nc-st-t small { font-size: var(--fs-13); color: var(--muted); }
.nc-note { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--ink-2); font-size: var(--fs-14); }
.nc-note svg { width: 16px; height: 16px; flex: none; }
.nc-sws { display: flex; gap: 6px; flex-wrap: wrap; }
.nc-swb { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-1) 12px var(--s-1) var(--s-1); border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #fff; font: 500 var(--fs-13) var(--body); cursor: pointer; color: var(--ink-2); }
.nc-swb i { width: 20px; height: 20px; border-radius: 50%; display: block; }
.nc-swb.on { border-color: var(--accent); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 3px rgba(10, 108, 240, .1); }

/* the summary */
.nc-sum { background: #fff; border-radius: var(--r-18); padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.nc-sum ul { list-style: none; margin: 0; padding: 0; }
.nc-sum li { display: flex; gap: 10px; align-items: center; padding: var(--s-2) 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-14); }
.nc-sum li > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.nc-sum li span { color: var(--muted); white-space: nowrap; }
.nc-sum li b { margin-left: auto; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.nc-sum li .nc-x { width: 28px; height: 28px; }
.nc-sum-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.nc-est { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--fs-14); }
.nc-est svg { width: 16px; height: 16px; }
.nc-units { color: var(--muted); font-size: var(--fs-13); }

/* the other settings */
.nc-adv { display: flex; flex-direction: column; gap: 14px; }
.nc-adv .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nc-adv .field > span { font-size: var(--fs-14); font-weight: 600; color: var(--ink-2); }
.nc-adv .input { background: #fff; }
.nc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nc-prof { display: flex; gap: 8px; align-items: center; }
.nc-prof .input { flex: 1; min-width: 0; }
.nc-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r-12); background: #fff; cursor: pointer; font: 500 var(--fs-13) var(--body); color: var(--ink-2); }
.nc-card.on { border-color: var(--accent); background: var(--blue-tint); color: var(--accent-deep); }
.nc-adv .hier-img img { max-width: 100%; border-radius: var(--r-12); background: #fff; display: block; }
.nc-tg { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r-12); background: #fff; }
.nc-tg.locked { cursor: pointer; }
.nc-tg > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nc-tg small { color: var(--muted); font-size: var(--fs-13); }
.nc-tg-i { width: 34px; height: 34px; border-radius: var(--r-12); background: var(--violet-tint); color: var(--violet); display: grid; place-items: center; flex: none; }
.nc-tg-i svg { width: 17px; height: 17px; }
.nc-refs { display: flex; flex-wrap: wrap; gap: 10px; }
.nc-ref { width: 170px; display: flex; flex-direction: column; gap: 6px; }
.nc-ref-img { position: relative; height: 96px; border-radius: var(--r-12); overflow: hidden; background: #fff; }
.nc-ref-img img { width: 100%; height: 100%; object-fit: cover; }
.nc-ref-img .nc-x { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, .9); }
.nc-ref-add { width: 120px; height: 96px; border: 1.5px dashed var(--line-2); border-radius: var(--r-12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); cursor: pointer; font-size: var(--fs-13); background: #fff; }
.nc-ref-add:hover { border-color: var(--accent); color: var(--accent-deep); }
.nc-ref-add svg { width: 20px; height: 20px; }

/* the composer, always at the bottom */
.nc-composer { position: sticky; bottom: var(--tabbar-h, 0px); padding: 24px 0 18px; margin-top: 10px; background: linear-gradient(rgba(255, 255, 255, 0), var(--paper) 40%); z-index: 5; }
.nc-composer.hidden { display: none; }
.nc-cmp { display: flex; gap: 8px; align-items: flex-end; padding: var(--s-2); border: 1.5px solid var(--line); border-radius: var(--r-28); background: #fff; box-shadow: 0 10px 30px rgba(20, 22, 58, .1); }
.nc-cmp:focus-within { border-color: var(--accent); }
.nc-cmp textarea { flex: 1; border: 0; outline: 0; font: inherit; font-size: var(--fs-16); padding: var(--s-2) 6px; min-width: 0; background: none; resize: none; max-height: 180px; overflow-y: hidden; line-height: 1.4; color: var(--ink); }
.nc-cmp textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-ib { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ink-2); }
.nc-ib svg { width: 18px; height: 18px; }
.nc-ib:focus-within, .nc-ib:focus-visible { outline: 3px solid rgba(10, 108, 240, .35); outline-offset: 1px; }
.nc-send { background: var(--cta); color: #fff; }
.nc-send:disabled { opacity: .5; cursor: default; }

/* Settings: the new-map screen */
.nm-set-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.nm-set-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-18); background: #fff; cursor: pointer; font: inherit; color: inherit; }
.nm-set-opt b { display: block; font-size: var(--fs-16); }
.nm-set-opt small { color: var(--muted); font-size: var(--fs-13); }
.nm-set-opt.on { border-color: var(--accent); background: var(--blue-tint); }
.nm-set-opt:focus-visible { outline: 3px solid rgba(10, 108, 240, .35); outline-offset: 2px; }
.nm-set-ico { width: 36px; height: 36px; border-radius: var(--r-12); background: var(--surface); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.nm-set-opt.on .nm-set-ico { background: var(--spectrum); color: #fff; }
.nm-set-ico svg { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .nc-page { padding-top: 18px; }
  .nc-head h1 { font-size: var(--fs-24); }
  .nc-bub { padding: 12px var(--s-3); }
  .nc-msg { gap: 8px; }
  .nc-av { width: 28px; height: 28px; border-radius: var(--r-8); }
  .nc-bub { max-width: calc(100% - 36px); }
  .nc-msg.me .nc-bub { max-width: 85%; }
  .nc-grid, .nm-set-opts { grid-template-columns: 1fr; }
  .nc-seg button { flex: 1 1 40%; }
  .nc-sum li { flex-wrap: wrap; }
  .nc-sum li b { flex: 1 1 100%; text-align: left; order: 3; padding-left: var(--s-5); }
  .nc-sum li .nc-x { margin-left: auto; }
  .nc-sum-f .btn { width: 100%; }
  .nc-composer { padding: 16px 0 12px; }
  .nc-style .btn span { display: none; }
}
