/* Atlas — the screens' own pieces: board, module page, Araçlar, settings (Görünüm), sign-in, toasts.
   Load order (index.html): css/tokens.css → css/components.css → css/blocks.css → css/shell.css →
   the modules' widgets.css (added at run time, before this file) → app.css. Tokens, components and the card
   chrome live in those files; nothing here defines a colour. */

/* --- pages: board and module ------------------------------------------------------------------------------------ */

.page-inner { max-width: 1240px; margin: 0 auto; padding: 24px 24px 60px; }
.page-inner.narrow { max-width: 860px; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 22px; font-weight: 620; letter-spacing: -.02em; }
.page-head p { margin: 2px 0 0; font-size: 13.5px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.span-2 { grid-column: span 2; }
.span-1 { grid-column: span 1; }
.slot { min-height: 160px; }
.slot > .skeleton { min-height: 160px; height: 100%; border-radius: var(--r-2); }

.board-empty { max-width: 760px; margin: 0 auto; text-align: center; padding: 28px 0 0; }
.board-empty .empty--big { padding: 32px 24px 22px; }
.module-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; text-align: left; }
.module-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-3); text-align: left; transition: box-shadow .15s, transform .18s var(--spring); }
.module-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.module-card-ic { width: 36px; height: 36px; border-radius: var(--r-2); display: grid; place-items: center;
  background: color-mix(in oklab, var(--mc) 14%, transparent); color: var(--mc); margin-bottom: 6px; }
.module-card b { font-size: 14.5px; font-weight: 620; }
.module-card .muted { font-size: 12.5px; line-height: 1.45; }

/* module page header (.o-top in shell.css): tinted icon, name and summary, ask + Araçlar on the right */
.module-head { background: color-mix(in oklab, var(--bg) 70%, transparent); }
.module-head-ic { width: 38px; height: 38px; border-radius: var(--r-2); display: grid; place-items: center; flex: none;
  background: color-mix(in oklab, var(--mc) 15%, transparent); color: var(--mc); }
.module-head-ic svg { width: 20px; height: 20px; }
.module-head-text { min-width: 0; flex: 1 1 220px; }
.module-head-text p { margin: 1px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.4; }
.module-head-tools { display: flex; align-items: center; gap: 8px; flex: 0 1 460px; min-width: 0; margin-left: auto; }
.module-ask { flex: 1; min-width: 0; }
.module-content { margin-bottom: 28px; }
/* shared by module pages: a section title row, and v7.1's parameter bar (filters above a page's cards) */
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 15.5px; font-weight: 620; }
.section-head .muted { font-size: 13px; }
.o-param-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin-bottom: 16px;
  border-radius: var(--r-3); background: var(--surface-2); border: 1px solid var(--border); }
.module-page { padding-top: 20px; }

/* Araçlar (sheet): every model tool of the module as a form */
.tool-intro { margin: 0 0 14px; font-size: 13px; color: var(--text-3); }
.tool-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2); }
.tool[open] { border-color: var(--border-2); box-shadow: var(--sh-1); }
.tool summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; border-radius: var(--r-2); }
.tool summary:hover { background: var(--surface-2); }
.tool summary::-webkit-details-marker { display: none; }
.tool summary b { font-size: 14px; font-weight: 600; }
.tool summary .muted { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool[open] summary .muted { -webkit-line-clamp: unset; }
.tool-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 4px 14px 12px; }
.tool-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-2); flex: 1 1 160px; min-width: 0; }
.tool-form label.check { flex-direction: row; align-items: center; gap: 6px; flex: 0 0 auto; padding-bottom: 8px; }
.tool-out { display: flex; flex-direction: column; gap: 14px; }
.tool-badge { margin-left: 8px; font-size: 10.5px; vertical-align: 1px; }

/* --- conversations (Sohbetler sheet) ------------------------------------------------------------------------------- */

.conv-search { width: 100%; margin-bottom: 10px; }
.conv-list { display: flex; flex-direction: column; gap: 1px; }
.conv-item { display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 11px; border-radius: var(--r-1); color: var(--text-2); min-height: 36px; }
.conv-item:hover { background: var(--surface-3); color: var(--text); }
.conv-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.conv-title { flex: 1; min-width: 0; font-size: 13.5px; }
.conv-item .icon-btn { width: 28px; height: 28px; opacity: 0; transition: opacity .12s; }
.conv-item:hover .icon-btn, .conv-item:focus-within .icon-btn, [data-touch] .conv-item .icon-btn { opacity: 1; }
.conv-rename { flex: 1; min-width: 0; height: 30px; font-size: 13.5px; }
.conv-day { font-size: 11px; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); padding: 12px 11px 4px; }
.conv-day:first-child { padding-top: 0; }
.conv-empty { padding: 4px 11px; color: var(--text-3); font-size: 13px; }
@media (max-width: 760px) { .conv-item .icon-btn { opacity: 1; } }

/* --- settings ------------------------------------------------------------------------------------------------------- */

.settings-sec { margin-bottom: 16px; }
.settings-sec > h2, .sec-head h2 { font-size: 15.5px; font-weight: 620; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.kv > span:nth-child(odd) { color: var(--text-3); }
.kv > .pill, .kv > .badge { justify-self: start; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row input { flex: 1 1 180px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.mod-checks { grid-column: span 2; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 6px; }
.form-grid .btn { grid-column: span 2; justify-self: start; }
.sec-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Ayarlar › Marka: the logo on a checkerboard (so a transparent PNG shows its edges), the name and the colour */
.marka-form { display: flex; flex-direction: column; gap: 12px; }
.marka-satir { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.marka-onizleme { width: 200px; height: 84px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--r-2); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.marka-onizleme img { max-width: 100%; max-height: 100%; object-fit: contain; }
.marka-alanlar { display: flex; flex-direction: column; gap: 8px; flex: 1 1 220px; min-width: 0; }
.marka-alan { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.marka-alan input[type="color"] { width: 64px; height: 32px; padding: 2px; border: 1px solid var(--border); border-radius: var(--r-1); background: var(--surface); cursor: pointer; }

/* Görünüm: theme preview cards, switches, aura swatches and the two scales */
.look { display: flex; flex-direction: column; gap: 20px; }
.look-sec { display: flex; flex-direction: column; gap: 10px; }
.look-sec > h3 { margin: 0; font-size: 12px; font-weight: 640; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.look-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.look-theme { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--r-2);
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); font: inherit; }
.look-theme:hover { border-color: var(--border-strong); }
.look-theme[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--ring); color: var(--text); }
.look-theme-preview { display: flex; height: 58px; border-radius: var(--r-1); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border-2); }
.look-theme-name { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 560; }
.look-theme-name svg { width: 15px; height: 15px; }
/* the mini shell: a rail strip and a body with a header line and two message bars (fixed light/dark samples) */
.mini { flex: 1; display: flex; min-width: 0; --m-rail: oklch(93% .008 250); --m-surface: oklch(99% 0 0); --m-line: oklch(86% .01 250); --m-me: oklch(78% .08 250); }
.mini--dark { --m-rail: oklch(21% .015 260); --m-surface: oklch(14% .012 260); --m-line: oklch(32% .015 260); --m-me: oklch(45% .1 250); }
.mini-rail { width: 18%; background: var(--m-rail); }
.mini-body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 8px; background: var(--m-surface); }
.mini-line { display: block; height: 5px; width: 55%; border-radius: 3px; background: var(--m-line); }
.mini-line--long { width: 80%; }
.mini-line--me { align-self: flex-end; width: 45%; background: var(--m-me); }
.look-theme-preview--system .mini + .mini { box-shadow: -1px 0 0 var(--border-2); }
.look-theme-preview--system .mini-rail { width: 22%; }
.look-switches { display: flex; flex-direction: column; gap: 12px; }
.look-switch-help { display: block; font-size: 12.5px; color: var(--text-3); margin: 2px 0 0 42px; }
.look-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.look-color { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 2px solid transparent; color: oklch(99% 0 0);
  background: oklch(62% calc(.16 * var(--r-k)) var(--r-h)); box-shadow: inset 0 0 0 1px oklch(0% 0 0 / .15); }
.look-color[aria-pressed="true"] { border-color: var(--text); }
.look-color svg { width: 15px; height: 15px; }
.look-scales { display: grid; gap: 12px; max-width: 360px; }
.look-scale { display: grid; gap: 6px; font-size: 12.5px; font-weight: 560; color: var(--text-2); }
.look-scale > span { display: flex; justify-content: space-between; }
.look-scale b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
input.look-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; margin: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / .14); cursor: pointer; outline: none; }
input.look-slider:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
input.look-slider::-webkit-slider-runnable-track { background: transparent; height: 14px; }
input.look-slider::-moz-range-track { background: transparent; height: 14px; }
input.look-slider--hue { background: linear-gradient(to right, oklch(70% .15 0), oklch(70% .15 30), oklch(70% .15 60), oklch(70% .15 90),
  oklch(70% .15 120), oklch(70% .15 150), oklch(70% .15 180), oklch(70% .15 210), oklch(70% .15 240), oklch(70% .15 270),
  oklch(70% .15 300), oklch(70% .15 330), oklch(70% .15 360)); }
input.look-slider--vibrance { background: linear-gradient(to right, oklch(70% 0 0), oklch(70% .15 var(--selected-h, 248))); }
input.look-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -2px; border-radius: 50%;
  background: transparent; border: 3px solid #fff; box-shadow: 0 0 0 1px oklch(0% 0 0 / .35), 0 2px 6px oklch(0% 0 0 / .35); }
input.look-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: transparent;
  border: 3px solid #fff; box-shadow: 0 0 0 1px oklch(0% 0 0 / .35), 0 2px 6px oklch(0% 0 0 / .35); }
.look-reset { justify-self: start; border: 0; background: transparent; padding: 2px 0; font-size: 12.5px; color: var(--text-3); }
.look-reset:hover { color: var(--text); }

/* modules: versions, on/off, undo */
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sec-head h2 { margin: 0; }
.sec-note { font-size: 12.5px; margin: 0 0 14px; }
.sec-note code { font-size: 11.5px; }
.mods { display: flex; flex-direction: column; gap: 10px; }
.mod-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); }
.mod-row.off { background: var(--surface-2); }
.mod-row.off .mod-ic { filter: grayscale(1); opacity: .6; }
.mod-ic { width: 36px; height: 36px; border-radius: var(--r-2); display: grid; place-items: center;
  color: var(--mc); background: color-mix(in oklab, var(--mc) 14%, transparent); }
.mod-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mod-name b { font-size: 14px; }
.mod-name code { font-size: 11.5px; color: var(--text-3); }
.mod-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; align-items: center; font-size: 12px; }
.mod-ctl { display: flex; gap: 6px; align-items: center; }
.mod-ctl select { height: 32px; padding: 0 8px; font-size: 13px; }
.mod-ctl .btn { height: 32px; }
.mod-extra { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.mod-extra .error-box { font-size: 12.5px; word-break: break-word; }
.mod-extra details { font-size: 12.5px; color: var(--text-2); }
.mod-extra details summary { cursor: pointer; color: var(--warn-ink); font-weight: 550; }
.mod-extra ul { margin: 6px 0 0; padding-left: 18px; }
.mod-extra li code { font-size: 11.5px; }
/* Stüdyodan yükle: the section takes a dropped modul.json; the dialog says what installing it would do */
.settings-sec.drop-on { outline: 2px dashed var(--accent); outline-offset: 4px; }
.studyo-plan { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.studyo-plan .mod-row { grid-template-columns: auto minmax(0, 1fr); margin-bottom: 4px; }
.mod-del-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.mod-del-confirm { display: flex; flex-direction: column; gap: 6px; }
.studyo-plan .kv-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; line-height: 1.45; }
.studyo-plan details { color: var(--text-2); }
.studyo-plan details summary { cursor: pointer; color: var(--warn-ink); font-weight: 550; }
.studyo-plan ul { margin: 6px 0 0; padding-left: 18px; }
.mod-log { margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.mod-log summary { cursor: pointer; font-weight: 550; }
.mod-log ol { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }

/* --- floating notes: modules updated, toasts --------------------------------------------------------------------- */

.update-bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 455; display: flex; gap: 10px; align-items: center;
  padding: 8px 10px 8px 14px; font-size: 13.5px; border-radius: var(--r-3); background: var(--glass-3); border: 1.5px solid var(--border-2);
  backdrop-filter: blur(var(--glass-blur-3)) saturate(var(--glass-saturation)); -webkit-backdrop-filter: blur(var(--glass-blur-3)) saturate(var(--glass-saturation));
  box-shadow: var(--sh-3); animation: pop-in-down .3s var(--spring) both; }
[data-lite] .update-bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); z-index: 460; max-width: calc(100% - 32px);
  background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 550;
  opacity: 0; transition: opacity .22s var(--ease), transform .22s var(--spring); box-shadow: var(--sh-3); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: oklch(99% 0 0); }

/* --- sign in: one glass card floating over the aura ----------------------------------------------------------------- */

.login { position: relative; min-height: 100%; display: grid; place-items: center; padding: 20px; background: var(--bg); isolation: isolate; overflow: hidden; }
.login > .aura { z-index: -1; }
.login-card { width: min(400px, 100%); border-radius: var(--r-4); padding: 28px; display: flex; flex-direction: column; gap: 14px;
  animation: pop-in .4s var(--spring) both; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-brand .logo { width: 40px; height: 40px; }
.login-brand h1 { font-size: 22px; font-weight: 660; letter-spacing: -.02em; }
.login-brand p { margin: 0; font-size: 13px; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 560; color: var(--text-2); }
.login-err { color: var(--bad-ink); font-size: 13px; min-height: 1px; }
.login-card .btn.wide { height: 42px; }
.login-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r-3); background: var(--info-soft); color: var(--info-ink); font-size: 13px; }
.login-note > div { display: flex; flex-direction: column; gap: 2px; }
.login-note span { color: var(--text-2); }
.login-hint { margin: 0; font-size: 12.5px; text-align: center; }
.cards-add { margin-top: 12px; }

/* --- badge session strip: the countdown to the idle sign-out (app.js idleStart) ------------------------------------- */

body.has-card-idle #root { height: calc(100% - 70px); }
body.has-card-idle .toast { bottom: 88px; }
.card-idle { --idle: var(--accent); --strip-bg: var(--surface); isolation: isolate; position: fixed; left: 0; right: 0; bottom: 0; height: 60px; z-index: 450; display: flex; align-items: center;
  gap: 12px; padding: 0 12px 0 14px; background: var(--strip-bg); border-top: 1px solid var(--border-2); color: var(--text-2); font-size: 14px;
  box-shadow: 0 -8px 24px -12px oklch(30% .05 250 / .25); animation: idle-in .45s var(--spring) both; transition: background .4s var(--ease), color .4s var(--ease); }
/* the strip itself carries the same stripe, very faint, cut back in step with the bar (--p from app.js) */
.card-idle::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-45deg, oklch(84% .17 92 / .16) 0 12px, oklch(22% .01 90 / .06) 12px 24px);
  background-size: 34px 34px; animation: idle-crawl 1.6s linear infinite;
  clip-path: inset(0 calc((1 - var(--p, 1)) * 100%) 0 0); }
.card-idle.warn::before { animation-duration: .5s; background-image: repeating-linear-gradient(-45deg, oklch(84% .17 92 / .28) 0 12px, oklch(22% .01 90 / .09) 12px 24px); }
.card-idle.kept::before { display: none; }
.card-idle-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-idle-text b { color: var(--text); font-weight: 620; }
.card-idle-actions { display: flex; gap: 8px; }
/* the bar: a yellow-black safety stripe that is cut back from the right as time runs out (clip-path set every frame
   by app.js, so the stripes keep their shape) and slowly crawls; faster in the last 10 seconds */
.card-idle-bar { position: absolute; left: 0; right: 0; top: -10px; height: 10px; overflow: hidden;
  background: repeating-linear-gradient(-45deg, oklch(86% .05 95 / .35) 0 12px, oklch(30% .01 90 / .12) 12px 24px); }
.card-idle-bar > i { position: relative; display: block; height: 100%; width: 100%;
  background: repeating-linear-gradient(-45deg, oklch(84% .17 92) 0 12px, oklch(22% .01 90) 12px 24px);
  background-size: 34px 34px; box-shadow: 0 0 10px oklch(84% .17 92 / .5); animation: idle-crawl 1.6s linear infinite; }
.card-idle.warn .card-idle-bar > i { animation-duration: .5s; }
/* the seconds: a round badge that pops on each new second */
.card-idle-count { --p: 1; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-size: 16px; font-weight: 680; font-variant-numeric: tabular-nums; color: var(--idle);
  /* a ring that empties with the time left (--p, set every frame by app.js) */
  background: radial-gradient(closest-side, var(--strip-bg) 80%, transparent 83%),
              conic-gradient(var(--idle) calc(var(--p) * 360deg), color-mix(in oklch, var(--idle) 16%, transparent) 0); }
.card-idle-count.tick { animation: idle-tick .35s var(--spring); }
.card-idle.warn { --idle: var(--warn-ink); --strip-bg: color-mix(in oklch, var(--warn-soft), var(--surface)); color: var(--warn-ink); }
.card-idle.warn .card-idle-count { animation: idle-pulse 1s var(--ease) infinite; }
.card-idle.refill .card-idle-bar > i { animation: idle-refill .5s var(--ease); }
.card-idle.kept .card-idle-bar { display: none; }
@keyframes idle-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes idle-crawl { from { background-position: 0 0; } to { background-position: 34px 0; } }
@keyframes idle-tick { 0% { transform: scale(.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes idle-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--idle) 45%, transparent); } 60% { box-shadow: 0 0 0 9px transparent; } }
@keyframes idle-refill { 0% { filter: brightness(1.6); } 100% { filter: none; } }

/* --- Modüller (/moduller): cards of the modules, the ones off, the catalog --------------------------------------------- */

.mp-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mp-head > div:first-child { flex: 1 1 280px; min-width: 0; }
.mp-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-search { width: 220px; height: 32px; font-size: 13px; }
.mp-sec { margin-top: 26px; }
.mp-sec:first-child { margin-top: 4px; }
.mp-sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mp-sec-head h2 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--text-2); }
.mp-count { font: 600 11.5px/1 var(--font-mono, ui-monospace, monospace); color: var(--text-3); padding: 3px 7px;
  border-radius: var(--r-pill); background: var(--surface-2); }
.mp-note { font-size: 12.5px; margin: -4px 0 12px; max-width: 70ch; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mp-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); color: inherit; text-decoration: none;
  transition: box-shadow .15s, transform .18s var(--spring), border-color .15s; }
.mp-card.is-link { cursor: pointer; }
.mp-card.is-link:hover { box-shadow: var(--sh-2); transform: translateY(-1px); border-color: color-mix(in oklab, var(--mc) 35%, var(--border)); }
.mp-card.is-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mp-card.off { background: var(--surface-2); }
.mp-card.off .mp-ic { filter: grayscale(1); opacity: .6; }
.mp-card.cat { border-style: dashed; }
.mp-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mp-ic { width: 38px; height: 38px; border-radius: var(--r-2); display: grid; place-items: center; flex: none;
  background: color-mix(in oklab, var(--mc) 14%, transparent); color: var(--mc); }
.mp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-name b { font-size: 14.5px; font-weight: 620; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-act { display: flex; gap: 4px; flex: none; }
.mp-sum { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.mp-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; font-size: 12px; }
.mp-meta .btn { height: 28px; }
.mp-chip { font: 500 11px/1 var(--font-mono, ui-monospace, monospace); color: var(--text-3); padding: 4px 7px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); }
.mp-chip:empty { display: none; }
.mp-star { color: var(--text-faint); }
.mp-star:hover { color: var(--text-2); }
.mp-star.on { color: var(--warn); }
.mp-star.on svg { fill: currentColor; }
.mp-foot { display: flex; gap: 6px; margin-left: auto; }
.mp-empty { font-size: 13px; margin: 0; }
.mp-notice { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 12px; border-radius: var(--r-2);
  background: var(--warn-soft); color: var(--warn-ink); font-size: 13px; }
.mp-notice a { color: inherit; font-weight: 600; }
/* Ayarlar › Modül Stüdyosu: three choices, the site's address */
.seg-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 11px 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2); color: inherit; cursor: pointer; }
.choice b { font-size: 13.5px; }
.choice .muted { font-size: 12px; line-height: 1.4; }
.choice:hover:not(:disabled) { border-color: var(--border-strong); }
.choice.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.choice:disabled { opacity: .5; cursor: not-allowed; }
.field-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; align-items: center; font-size: 13px; }
.field-row .muted { grid-column: 2; font-size: 12px; }

/* --- narrow screens -------------------------------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .module-head-tools { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .page-inner { padding: 16px 16px 48px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-1 { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .mod-checks, .form-grid .btn { grid-column: span 1; }
  .kv { grid-template-columns: 110px 1fr; }
  .mod-row { grid-template-columns: auto minmax(0, 1fr); }
  .mod-ctl { grid-column: 1 / -1; flex-wrap: wrap; }
  .update-bar { width: calc(100% - 32px); }
  .look-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mp-tools { width: 100%; }
  .mp-search { flex: 1 1 100%; width: auto; }
  .mp-grid { grid-template-columns: minmax(0, 1fr); }
  .seg-list { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .field-row .muted { grid-column: 1; }
}
