/* fitur-ai.html · AI module (page-local; the kit owns everything else) */

.crumb a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-hero__foot .ctas { flex-wrap: wrap; row-gap: 18px; }
.page-hero__foot .ctas .link { white-space: nowrap; }
.ch .h2 + .sec-intro { margin-top: calc(-1 * clamp(56px, 7vw, 104px) + 28px); }
.sec-intro { margin-bottom: clamp(56px, 6vw, 88px); color: #2F2D29; }

/* shared UI-recreation vocabulary (paper cards, hairlines, terracotta only for AI) */
.aipill { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-right: 9px; border-radius: 3px; background: var(--accent); color: var(--paper); font: 500 10px/1 var(--f-mono); letter-spacing: .06em; vertical-align: 2px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--hair-2); background: var(--paper); font-size: 12.5px; white-space: nowrap; }
.chip--x { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- (01) THE SIGNATURE: the answer resolves with its sources */
.ask { margin: 0; }
.ask__win { background: var(--paper-2); border: 1px solid var(--hair-2); box-shadow: 0 24px 60px rgba(20, 20, 19, .07); }
.ask__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 26px 18px; border-bottom: 1px solid var(--hair); }
.ask__t { font-weight: 500; font-size: 19px; letter-spacing: -.015em; }
.ask__s { margin-top: 6px; font-size: 14px; color: var(--muted); }
.ask__scope { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--hair-2); font: 400 12px/1 var(--f-mono); letter-spacing: .02em; }
.ask__body { padding: 28px 26px 30px; min-height: 330px; }
.ask__q { margin-left: auto; width: fit-content; max-width: 80%; padding: 12px 16px; background: var(--ink); color: var(--paper); font-size: 16px; line-height: 1.4; }
.ask__caret { display: none; width: 1.5px; height: 1.05em; margin-left: 2px; background: var(--paper); vertical-align: -2px; animation: ai-caret 1s steps(1) infinite; }
.ask__q.is-typing .ask__caret { display: inline-block; }
@keyframes ai-caret { 50% { opacity: 0; } }
.ask__a { position: relative; margin-top: 26px; max-width: 46em; }
.ask__ans { position: relative; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; letter-spacing: -.008em; }
.ask__ans sup { font: 500 11px/1 var(--f-mono); color: var(--accent); vertical-align: 5px; }
.ask__ghost { position: absolute; left: 0; top: 0; width: 100%; color: transparent; text-shadow: 0 0 14px var(--ink); opacity: 0; pointer-events: none; }  /* blur by text-shadow, no filter layer */
.ask__ghost * { color: transparent; text-shadow: inherit; }
.ask__src { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ask__src li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--hair-2); background: var(--paper); font-size: 13.5px; }
.ask__src b { font: 500 12px/1 var(--f-mono); color: var(--accent); }
.ask__src em { font: 400 11.5px/1 var(--f-mono); font-style: normal; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--hair-2); }
.ask__stop { position: absolute; right: 0; bottom: -2px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--ink); font-size: 12.5px; opacity: 0; }
.ask__stop i { width: 8px; height: 8px; background: var(--ink); }
.ask__tag { margin-top: 20px; }

/* ---------- (02) six stations on the left spine */
.grid > .sts { grid-column: 1 / 13; }
.st { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; padding: clamp(56px, 6vw, 88px) 0; }
.st::before { content: ""; position: absolute; top: 0; left: calc((100% - 11 * var(--gap)) / 12 + var(--gap)); right: calc((100% - 11 * var(--gap)) / 12 + var(--gap)); height: 1px; background: var(--hair); }
.st:first-child::before { background: var(--ink); }
.st__k { grid-column: 2 / 7; grid-row: 1; display: flex; align-items: baseline; gap: 14px; color: var(--ink); font-size: 12.5px; }
.st__txt { grid-column: 2 / 7; grid-row: 2; margin-top: 22px; }
.st__h { font-weight: 500; font-size: clamp(26px, 2.4vw, 40px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; margin-bottom: 22px; }
.st__txt .body { font-size: clamp(16px, 1.2vw, 19px); }
.st__i { margin-top: 26px; border-top: 1px solid var(--hair-2); }
.st__i li { position: relative; padding: 10px 0 11px 18px; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.4; color: #2F2D29; }
.st__i li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 9px; height: 1px; background: var(--muted); }
.st__link { display: inline-block; margin-top: 22px; font-size: 15px; }
.st .mini { grid-column: 8 / 12; grid-row: 1 / span 2; margin: 0; }

/* the small recreations */
.mini__win { background: var(--paper-2); border: 1px solid var(--hair-2); padding: 20px 20px 22px; font-size: 13.5px; line-height: 1.4; }
.mini__h { font-weight: 500; font-size: 16px; letter-spacing: -.01em; margin-bottom: 16px; }
.mini__sub { margin: 18px 0 8px; font: 400 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini__lead { color: var(--muted); margin: -6px 0 16px; }
.mini__tag { margin-top: 14px; }
.mini__row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.mini__row--top { align-items: flex-start; }
.mini__row--end { justify-content: flex-end; margin-top: 18px; }
.mini__btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--ink); font-size: 12.5px; white-space: nowrap; }
.mini__row .mini__btn:first-of-type:not(:last-child) { margin-left: auto; }
.mini__row--end .mini__btn:first-of-type { margin-left: 0; }
.mini__btn--ink { background: var(--ink); color: var(--paper); }
.mini__btn--acc { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.mini__kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.mini__kv span { color: var(--muted); }
.mini__kv b { font-weight: 500; text-align: right; }
.mini__kv--sum { flex-direction: column; gap: 4px; }
.mini__kv--sum b { text-align: left; font-weight: 400; }
.mini__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.mini__link { margin-top: 16px; font-weight: 500; }
.mini__link span { color: var(--accent); }
.scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.scope__k { width: 64px; font: 400 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.convs { border-top: 1px solid var(--hair); }
.convs li { padding: 9px 10px; border-bottom: 1px solid var(--hair); }
.convs li.is-cur { box-shadow: inset 2px 0 0 var(--accent); background: var(--paper); }
.switch { position: relative; flex: none; width: 30px; height: 17px; border-radius: 9px; background: var(--hair-2); }
.switch i { position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); }
.switch.is-on { background: var(--accent); }
.switch.is-on i { left: 15px; }
.field-x { padding: 10px 12px; border: 1px solid var(--hair-2); background: var(--paper); color: var(--faint); }
.recip { margin-top: 18px; padding: 14px 14px 15px; border: 1px dashed var(--hair-2); }
.recip__h { font-weight: 500; }
.recip__d { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.prompts li { padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--hair-2); background: var(--paper); }
.prompts li::before { content: "↳ "; color: var(--accent); }
.sugg { margin-top: 18px; padding: 14px; border: 1px solid var(--hair-2); background: var(--paper); }
.sugg__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); }
.sugg__e { position: relative; display: flex; justify-content: center; }
.sugg__e i { position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px dashed var(--accent); }
.sugg__e em { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; background: var(--paper); border: 1px dashed var(--accent); font: 500 11px/1.1 var(--f-sans); font-style: normal; }
.sugg__e s { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sugg__q { margin-top: 12px; font-size: 13px; }
.sugg__q span { font: 400 11px/1 var(--f-mono); color: var(--muted); margin-left: 6px; }
.sugg__btns { display: flex; gap: 8px; margin-top: 12px; }
.srch { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--ink); background: var(--paper); }
.srch__q { flex: 1; min-width: 0; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--hair-2); font: 400 11.5px/1 var(--f-mono); }
.seg span { padding: 7px 10px; color: var(--muted); }
.seg .is-on { background: var(--ink); color: var(--paper); }
.res { margin-top: 14px; }
.res li { display: flex; flex-direction: column; gap: 4px; padding: 11px 0 12px; border-bottom: 1px solid var(--hair); }
.res b { font-weight: 500; }
.res span { color: var(--muted); font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.tiles li { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border: 1px solid var(--hair-2); background: var(--paper); }
.tiles li.is-top { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tiles b { font-weight: 500; font-size: 13px; line-height: 1.25; }
.tiles em { font: 400 11px/1 var(--f-mono); font-style: normal; color: var(--muted); }
.tiles .is-top em { color: var(--accent); }
.tiles__k { font: 500 9.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- (03) boundary (dark) */
.bound-note { margin-top: 36px; color: var(--paper); }
.modnote { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) auto; column-gap: var(--gap); align-items: baseline; margin-top: clamp(72px, 8vw, 112px); padding-top: 22px; border-top: 1px solid var(--paper); }
.modnote__l { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.modnote .mk { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--paper); }
.modnote .body { color: #D9D5CC; }
.modnote .link { color: var(--paper); white-space: nowrap; }

/* ---------- mid widths */
@media (max-width: 1100px) {
  .st__k, .st__txt { grid-column: 2 / 12; }
  .st .mini { grid-column: 2 / 12; grid-row: 3; margin-top: 40px; max-width: 560px; }
  .modnote { grid-template-columns: 1fr; row-gap: 12px; }
}

/* ---------- phones */
@media (max-width: 760px) {
  .h2, .h2--long { font-size: calc(clamp(30px, 8.2vw, 40px) * var(--ts, 1)); }
  .ch .h2 + .sec-intro { margin-top: -18px; }
  .sec-intro { margin-bottom: 40px; }
  .ask__head { flex-direction: column; gap: 12px; padding: 16px 16px 14px; }
  .ask__body { padding: 20px 16px 22px; min-height: 0; }
  .ask__q { max-width: 92%; font-size: 15px; }
  .ask__ans { font-size: 16px; }
  .ask__stop { position: static; margin-top: 14px; }
  .ask__src li { font-size: 12.5px; flex-wrap: wrap; }
  .st { display: block; padding: 44px 0 52px; border-top: 1px solid var(--hair); }
  .st:first-child { border-top-color: var(--ink); }
  .st::before { display: none; }
  .st__txt { margin-top: 16px; }
  .st__h { font-size: 26px; margin-bottom: 16px; }
  .st .mini { margin-top: 32px; }
  .mini__win { padding: 16px 14px 18px; }
  .tiles { grid-template-columns: 1fr; }
  .tiles li { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
  .tiles .tiles__k { width: 100%; }
  .scope__k { width: 100%; }
  .chip { white-space: normal; height: auto; padding: 5px 9px; }
}

/* ---------- station 06: batch upload, folders filled in one by one (2026-10-05) */
.bt { border-top: 1px solid var(--hair-2); }
.bt__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.bt__f { font: 400 12px/1.3 var(--f-mono); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt__c { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 9px; border: 1px solid var(--accent); background: rgba(194, 73, 46, .06); white-space: nowrap; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.bt__c b { font-weight: 500; font-size: 12.5px; }
.bt__c em { font: 400 11px/1 var(--f-mono); font-style: normal; color: var(--accent); }
.bt__r--chg .bt__c { border-color: var(--ink); background: var(--paper); }
.bt__r--chg .bt__c em { color: var(--paper); background: var(--ink); padding: 3px 5px; }
.bt__note { margin: 0 auto 0 0; }
.js:not(.reduce) .mini--batch:not(.is-done) .bt__c { opacity: 0; transform: translateX(8px); }
.js:not(.reduce) .mini--batch .bt__r.is-in .bt__c { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .bt__r { grid-template-columns: 1fr; gap: 6px; }
  .bt__c { justify-self: start; }
  .mini--batch .mini__row--end { flex-wrap: wrap; }
}
