:root {
  --paper: #f5f7fb;
  --white: #fff;
  --ink: #192c4b;
  --text: #35445d;
  --muted: #637188;
  --line: #e0e6ef;
  --primary: #3458c8;
  --primary-dark: #2645a4;
  --pale: #eef3ff;
  --accent-soft: #e3ebff;
  --radius: 24px;
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse 620px 420px at 88% 190px, #e5ecffb3, transparent 85%), radial-gradient(ellipse 700px 440px at 4% 500px, #eff3fb, transparent 85%); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--primary); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #5376d8; outline-offset: 4px; }
input[type=radio]:focus-visible + span, .question-choice:has(input:focus-visible) { outline: 3px solid #5376d8; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1, h2 { color: var(--ink); }
h2 { font-size: 1.6rem; line-height: 1.5; letter-spacing: -.025em; }
[hidden] { display: none !important; }
.wrap { width: min(1136px, 100%); margin-inline: auto; padding-inline: 36px; }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 84px; border-bottom: 1px solid #dde4efb3; }
.brand { display: flex; align-items: center; gap: 15px; }
.wordmark { font-family: system-ui, sans-serif; font-size: 29px; font-weight: 850; letter-spacing: -1.6px; color: var(--ink); }
.brand-dot { color: #5478df; }
.brand-sub { font-family: system-ui, sans-serif; font-size: 9px; line-height: 1.65; letter-spacing: 1.6px; font-weight: 650; border-left: 1px solid #ccd6e6; padding-left: 15px; }
.header-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.version-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; border: 1px solid #dce4f1; border-radius: 30px; padding: 7px 12px; background: #ffffffb3; white-space: nowrap; }
.small-dot { width: 6px; height: 6px; border-radius: 50%; background: #5675c6; display: inline-block; flex: none; }
.intro { padding: 40px 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 650; letter-spacing: .015em; display: flex; align-items: center; gap: 8px; }
.intro-eyebrow { display: inline-flex; background: #eaf0fc; border: 1px solid #dce5f7; padding: 6px 11px; border-radius: 99px; font-size: 11px; }
h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.3; font-weight: 650; letter-spacing: -.045em; margin: 17px 0 15px; }
.accent { color: #3c60ce; position: relative; isolation: isolate; }
.accent::after { content: ""; position: absolute; height: 8px; background: #dce6ff; border-radius: 5px; bottom: 4px; left: 0; right: 0; z-index: -1; transform: rotate(-2deg); }
.intro-text { font-size: 14px; line-height: 1.9; color: var(--muted); }
.intro-note { padding: 10px 22px 10px 30px; width: 302px; flex: none; line-height: 1.85; }
.intro-note p { font-size: 13px; }
.intro-note strong { font-size: 17px; color: var(--ink); font-weight: 600; }
.intro-note p + p { margin-top: 8px; font-size: 11px; }
.note-art { position: relative; width: 154px; height: 65px; margin: 0 0 20px; padding-top: 7px; }
.note-line { display: block; height: 7px; border-radius: 9px; background: #becdf1; width: 100px; margin-bottom: 9px; }
.note-line:nth-child(2) { width: 77px; background: #d1dcf4; }
.note-line:nth-child(3) { width: 58px; background: #e1e7f6; }
.note-symbol { position: absolute; display: grid; place-items: center; right: 0; top: -5px; background: var(--accent-soft); border: 5px solid var(--paper); border-radius: 20px; width: 66px; height: 66px; transform: rotate(-8deg); box-shadow: 0 6px 16px #1c345710; }
.note-symbol .icon { width: 29px; height: 29px; }
.muted, .quiet { color: var(--muted); }
.small { font-size: 12px; line-height: 1.8; }
.normal { font-weight: 400; }
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 22px; gap: 24px; }
.steps li { position: relative; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.steps li:not(:last-child)::after { content: ""; width: 36px; height: 1px; background: #d6dfed; margin-left: 12px; }
.steps li span { display: grid; place-items: center; font-family: system-ui, sans-serif; font-size: 11px; font-weight: 650; width: 27px; height: 27px; border: 1px solid #dbe2ee; border-radius: 50%; background: #eef2f8; }
.steps li.active { color: var(--primary); font-weight: 600; }
.steps li.active span { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 2px 5px #25458a21; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.form-column { min-width: 0; }
.panel { background: var(--white); border: 1px solid #dde4ee; border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 36px -18px #263d6224, 0 2px 5px #22355a03; }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; gap: 10px; }
.panel-top .quiet { font-size: 11px; }
.mode-picker, .type-picker { padding: 0; border: 0; margin: 0 0 22px; min-width: 0; }
.mode-picker { display: flex; background: #f0f3f8; border: 1px solid #e8edf5; border-radius: 13px; padding: 4px; gap: 5px; }
.mode-picker label { flex: 1; }
.mode-picker input, .type-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-picker label > span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 6px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 13px; cursor: pointer; font-weight: 500; transition: background .15s, box-shadow .15s; }
.mode-picker input:checked + span { background: white; color: var(--primary); border-color: #dfe6f1; box-shadow: 0 2px 5px #293a6310; font-weight: 650; }
.type-picker legend { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.type-options { display: flex; gap: 9px; flex-wrap: wrap; }
.type-options label > span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 45px; border: 1px solid #e0e6f0; border-radius: 11px; font-size: 13px; cursor: pointer; background: #fcfdff; transition: background .15s, border-color .15s; }
.type-options .icon { width: 19px; height: 19px; }
.type-options input:checked + span { background: #edf2ff; border-color: #6d8ada; color: #3053b5; box-shadow: inset 0 0 0 .5px #6d8ada; font-weight: 600; }
label, .field-label { display: block; font-size: 13px; line-height: 1.8; font-weight: 600; margin-bottom: 7px; }
.mode-picker label, .type-options label { margin: 0; }
.main-label { font-size: 15px; margin-bottom: 11px; color: var(--ink); }
textarea, input[type=text], select { width: 100%; border: 1px solid #d9e1ed; border-radius: 13px; background: #fff; color: var(--text); padding: 13px 15px; line-height: 1.85; min-height: 46px; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; display: block; }
textarea::placeholder, input::placeholder { color: #7a8699; opacity: 1; }
#request { min-height: 148px; background: #f8fafd; }
textarea:focus, input[type=text]:focus, select:focus { border-color: #7492dd; background: #fff; box-shadow: 0 0 0 3px #5274ca14; }
textarea[aria-invalid=true] { border-color: #b95032; }
.field-hint { font-size: 11px; color: var(--muted); line-height: 1.85; margin-top: 8px; overflow-wrap: anywhere; }
.extra-details { border-top: 1px solid #e8ecf3; margin-top: 19px; padding-top: 2px; }
summary { cursor: pointer; font-size: 13px; font-weight: 500; padding: 15px 0; line-height: 1.8; list-style: none; }
summary::-webkit-details-marker { display: none; }
.summary-plus { float: right; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #f0f3fa; font-size: 17px; color: var(--primary); }
details[open] .summary-plus { transform: rotate(45deg); }
#detail-fields label { margin-top: 16px; }
.field-group { border-top: 1px dashed var(--line); margin-top: 20px; padding-top: 8px; }
.field-group:first-child { border: 0; margin-top: 0; padding-top: 0; }
.field-group-title { font-size: 13px; color: var(--primary); margin-top: 12px; font-weight: 650; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 12px; }
.replace-tool { border-top: 1px dashed var(--line); margin-top: 22px; padding-top: 18px; }
.replace-tool label { margin-top: 10px; }
.button { border-radius: 12px; min-height: 49px; padding: 12px 20px; border: 1px solid transparent; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; line-height: 1.6; transition: background .15s, box-shadow .15s, transform .15s; }
.primary { background: linear-gradient(110deg, #365bd5, #2b49b4); color: white; box-shadow: 0 5px 12px #27499b24, inset 0 1px 0 #ffffff14; }
.primary:hover { background: linear-gradient(110deg, #2d50c8, #223fa3); box-shadow: 0 7px 17px #294a9b30; }
.button:active { transform: translateY(1px); }
.secondary { background: #f5f7fc; border-color: var(--line); color: var(--primary); }
.secondary:hover { background: #ebf0fc; }
.small-button { font-size: 13px; min-height: 44px; }
.arrange-button { width: 100%; justify-content: space-between; margin-top: 17px; padding-inline: 20px; min-height: 54px; }
.arrange-button > span:last-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #ffffff12; font-size: 20px; }
.submit-note { font-size: 10px; text-align: center; color: var(--muted); line-height: 1.8; margin-top: 12px; }
.side-note { padding: 30px 0 0 6px; }
.side-note > .eyebrow { font-size: 11px; color: #6b7b95; }
.side-note h2 { font-size: 24px; margin-top: 14px; line-height: 1.55; font-weight: 600; }
.tips { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 23px; }
.tips li { display: flex; gap: 13px; }
.tips li > span { display: grid; place-items: center; font-family: system-ui, sans-serif; font-size: 10px; color: #6b7fa6; border: 1px solid #dce4f2; border-radius: 8px; background: #eaf0fa; width: 27px; height: 27px; flex: none; }
.tips strong { font-size: 13px; font-weight: 600; }
.tips p { color: var(--muted); font-size: 11px; line-height: 1.85; margin-top: 4px; }
.privacy-note { border-top: 1px solid #dce4f0; margin-top: 30px; padding-top: 20px; display: flex; gap: 10px; font-size: 10px; line-height: 1.9; color: var(--muted); }
.privacy-note > span { font-size: 20px; color: #6d80a7; }
.edit-fields { margin-top: 20px; padding: 18px; border: 1px solid #e0e8f6; border-radius: 14px; background: #f0f4fc; }
.edit-fields textarea { margin-bottom: 15px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; font-weight: 400; }
.checkbox-label input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; margin-top: 3px; }
.follow-panel { margin: 24px 0; scroll-margin-top: 24px; }
.follow-panel h2 { margin-top: 7px; }
.follow-panel > p.muted { font-size: 13px; margin-top: 8px; line-height: 1.8; }
.question { border: 0; border-top: 1px solid var(--line); padding: 22px 0; margin: 20px 0; min-width: 0; }
.question legend { font-size: 15px; font-weight: 600; padding: 0 0 6px; float: left; width: 100%; line-height: 1.7; }
.question .field-hint { clear: both; padding-bottom: 12px; }
.question-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.question-choice { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid #dce4f0; padding: 10px 14px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 400; margin: 0; background: #fcfdff; }
.question-choice:has(input:checked) { border-color: #6d8ada; background: #edf2ff; color: var(--primary); box-shadow: inset 0 0 0 .5px #6d8ada; }
.question-choice input { accent-color: var(--primary); margin: 0; flex: none; }
.custom-answer { margin-top: 15px; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.notice { border: 1px solid #e0d9b6; border-radius: 14px; background: #fffced; padding: 18px; font-size: 13px; line-height: 1.8; }
.notice h2 { font-size: 17px; }
.notice .action-row { margin-top: 14px; }
.storage-notice { margin-bottom: 18px; padding: 11px 15px; }
.error { color: #a43d2c; font-size: 13px; line-height: 1.8; margin-top: 10px; }
.result-panel { border-color: #c7d5ef; padding: 30px; background: linear-gradient(140deg, #f3f7ff 0, white 200px); }
.result-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.result-heading .eyebrow { display: inline-flex; font-size: 10px; border: 1px solid #d3e0fb; background: #eaf1ff; padding: 4px 10px; border-radius: 30px; }
.result-dot { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--accent-soft); border: 1px solid #d5e0f9; font-size: 25px; transform: rotate(-5deg); }
.result-summary { font-size: 12px; color: var(--muted); margin: 10px 0 20px; line-height: 1.8; overflow-wrap: anywhere; }
.result-notes { border-left: 3px solid #b6c8f1; border-radius: 0 10px 10px 0; background: #f2f5fc; padding: 10px 14px; margin-bottom: 18px; font-size: 12px; line-height: 1.9; }
.result-notes p + p { margin-top: 6px; }
#output { background: #f7f9fe; min-height: 210px; line-height: 1.95; border-color: #dce4f3; padding: 18px; }
.copy-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.copy-row .field-hint { margin: 0; }
.copy-row .button { min-width: 225px; justify-content: space-between; }
.result-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.result-actions button { background: #f5f7fc; border: 1px solid #e4eaf4; border-radius: 9px; color: var(--primary); font-size: 12px; min-height: 44px; padding: 8px 12px; }
.result-actions button:hover { background: #eaf0ff; border-color: #c5d4f4; }
.shop-link { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 16px; font-size: 13px; }
.provenance-item { margin: 14px 0; }
.provenance-item strong { font-size: 12px; color: var(--primary); }
.provenance-item pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12px; line-height: 1.9; padding: 12px; background: #f4f7fc; border-radius: 10px; }
.research { margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.research summary { display: flex; justify-content: space-between; color: #586c8c; font-size: 12px; }
.research > p { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 8px 0 14px; }
.research ul { padding-left: 20px; font-size: 12px; line-height: 1.9; }
.research li { margin-block: 8px; overflow-wrap: anywhere; }
footer { padding: 24px 0 36px; display: grid; gap: 10px; }
footer p { font-size: 10px; color: var(--muted); line-height: 1.85; }
.footer-brand { font-family: system-ui, sans-serif; font-size: 16px; font-weight: 750; letter-spacing: -.5px; color: var(--ink); }
.footer-brand span { font-size: 11px; font-weight: 400; letter-spacing: 0; margin-left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 10px; top: -90px; background: #fff; padding: 12px; z-index: 10; }
.skip-link:focus { top: 10px; }
.icon { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.15em; flex: none; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 801px) {
  .follow-panel { margin-right: 300px; }
}
@media (hover: hover) {
  .type-options label > span:hover, .question-choice:hover { border-color: #9bb0e5; background: #f0f4ff; }
}
@media (max-width: 900px) {
  .wrap { padding-inline: 26px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
  .intro-note { width: 240px; padding-inline: 8px; }
  .follow-panel { margin-right: 248px; }
  .side-note { padding-left: 0; }
  .side-note h2 { font-size: 22px; }
  .steps { gap: 16px; }
}
@media (max-width: 800px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .side-note { display: none; }
  .follow-panel { margin-right: 0; }
}
@media (max-width: 600px) {
  body { background: radial-gradient(ellipse 340px 300px at 100% 120px, #e6edffa6, transparent 85%); }
  .wrap { padding-inline: 16px; }
  .site-header { min-height: 68px; }
  .wordmark { font-size: 25px; }
  .brand { gap: 10px; }
  .brand-sub { font-size: 8px; padding-left: 10px; letter-spacing: 1.2px; }
  .version-tag { font-size: 9px; padding: 6px 8px; gap: 5px; }
  .version-tag .small-dot { width: 5px; height: 5px; }
  .header-right { gap: 8px; }
  .header-right a { font-size: 10px; }
  .intro { padding: 25px 4px 24px; gap: 0; }
  .intro-note { display: none; }
  h1 { font-size: clamp(29px, 8.2vw, 37px); line-height: 1.32; margin: 14px 0 11px; }
  .accent::after { height: 6px; bottom: 3px; }
  .intro-text { font-size: 12px; line-height: 1.8; max-width: 340px; }
  .eyebrow { font-size: 11px; }
  .intro-eyebrow { font-size: 10px; padding: 5px 9px; }
  .steps { justify-content: space-between; gap: 5px; margin: 0 2px 16px; }
  .steps li { font-size: 10px; gap: 6px; }
  .steps li span { font-size: 9px; width: 22px; height: 22px; }
  .steps li:not(:last-child)::after { display: none; }
  .panel { padding: 20px 17px; border-radius: 20px; box-shadow: 0 8px 24px -14px #243d702e; }
  .panel-top { margin-bottom: 16px; }
  .panel-top .small { font-size: 9px; }
  .mode-picker { margin-bottom: 18px; }
  .mode-picker label > span { font-size: 12px; min-height: 41px; padding: 9px 5px; }
  .type-picker { margin-bottom: 19px; }
  .type-picker legend { font-size: 11px; margin-bottom: 9px; }
  .type-options { gap: 7px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; }
  .type-options label > span { font-size: 12px; padding: 10px 7px; gap: 6px; }
  .type-options .icon { width: 17px; height: 17px; }
  .main-label { font-size: 13px; margin-bottom: 10px; }
  textarea, input[type=text], select { font-size: 16px; padding: 12px; border-radius: 12px; }
  #request { min-height: 144px; height: 150px; }
  #request::placeholder { font-size: 14px; }
  .field-hint { font-size: 10px; }
  .extra-details { margin-top: 16px; }
  .extra-details summary { font-size: 12px; }
  .arrange-button { margin-top: 14px; }
  .submit-note { font-size: 9px; margin-top: 10px; }
  .result-panel { padding: 22px 17px; }
  .result-heading .eyebrow { font-size: 10px; }
  .result-actions { gap: 7px; }
  .result-actions button { font-size: 11px; flex-grow: 1; }
  .copy-row .button { width: 100%; }
  .action-row { flex-direction: column; }
  .action-row .button { width: 100%; }
  .edit-fields { padding: 13px; }
  .edit-fields label { font-size: 12px; }
  .two-fields { grid-template-columns: 1fr; gap: 4px; }
  .question legend { font-size: 14px; }
  .question-choice { font-size: 12px; padding: 10px 11px; }
  .question-choices { gap: 7px; }
  .follow-panel { scroll-margin-top: 12px; }
  h2 { font-size: 22px; }
  .result-dot { width: 41px; height: 41px; font-size: 23px; border-radius: 13px; }
  #output { font-size: 16px; padding: 14px; }
  .research { margin-top: 24px; }
  .research summary { font-size: 11px; }
  footer { padding-top: 23px; }
  .desktop-break { display: none; }
}
@media (max-width: 350px) {
  .wrap { padding-inline: 12px; }
  .brand-sub { letter-spacing: .7px; }
  .wordmark { font-size: 23px; }
  .panel { padding-inline: 14px; }
  .panel-top .small { display: none; }
  .steps li { font-size: 9px; gap: 4px; }
  .type-options label > span { font-size: 11px; }
  .type-options .icon { width: 16px; height: 16px; }
  .main-label { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
/* Prompt Search uses the same colors and controls as the existing Helper. */
.app-modes { display: flex; width: fit-content; max-width: 100%; gap: 4px; padding: 4px; margin: 24px auto 0; background: #eaf0fa; border: 1px solid #dae3f3; border-radius: 15px; }
.app-modes button { border: 1px solid transparent; border-radius: 11px; min-height: 48px; padding: 10px 22px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.app-modes button span { display: block; font-size: 10px; font-weight: 400; margin-top: 1px; }
.app-modes button[aria-pressed=true] { background: white; color: var(--primary); border-color: #dce5f5; box-shadow: 0 2px 6px #19365c0b; }
.search-intro { text-align: center; padding: 42px 0 24px; }
.search-intro h1 { font-size: clamp(30px,4vw,46px); margin: 17px 0 14px; }
.search-intro > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.8; }
.search-mobile-break { display: none; }
#search-form { max-width: 860px; margin-inline: auto; }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 8px 9px 8px 20px; background: white; border: 1px solid #c6d4ee; border-radius: 18px; box-shadow: 0 6px 25px #284b8910; }
.search-input-row > .icon { width: 23px; height: 23px; color: #6d83b7; }
.search-input-row:focus-within { border-color: #6789de; box-shadow: 0 0 0 3px #5274ca14; }
#library-query { flex: 1; min-width: 0; font-size: 16px; border: 0; padding: 12px 0; background: transparent; color: var(--ink); outline-offset: 1px; }
#library-query::placeholder { color: #7987a0; }
.search-input-row .button { flex: none; min-height: 48px; padding-inline: 24px; }
.search-filters { max-width: 860px; margin: 19px auto 0; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.search-filters > label { font-weight: 500; font-size: 11px; min-width: 230px; flex: 1; margin: 0; }
#library-category { margin-top: 5px; min-height: 44px; font-size: 12px; padding: 8px 12px; background: #f9fbff; }
.category-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; flex: 2; }
.category-shortcuts button { border: 1px solid #dce5f5; border-radius: 20px; background: #f9fbff; color: #516b9c; padding: 7px 11px; min-height: 36px; font-size: 10px; }
.category-shortcuts button[aria-pressed=true] { background: #e7eeff; border-color: #9fb5e9; color: #284cae; }
.search-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 38px 0 13px; }
.search-results-heading h2 { font-size: 19px; }
.search-results-heading p { font-size: 12px; color: var(--muted); }
.search-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.search-results li { min-width: 0; border-bottom: 1px solid #e0e7f2; }
.search-result { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 18px 13px; text-align: left; border: 0; border-radius: 10px; background: transparent; }
.search-result:hover { background: #ecf2ff; }
.search-result-meta { color: #647ca7; font-size: 10px; }
.search-result-title { display: flex; justify-content: space-between; gap: 10px; width: 100%; color: var(--ink); font-size: 16px; font-weight: 600; }
.search-result-arrow { color: #567ac9; flex: none; }
.search-result-description { color: var(--muted); font-size: 12px; line-height: 1.8; }
.load-more { display: flex; margin: 25px auto; }
.search-help { text-align: center; margin: 26px 0; color: var(--muted); font-size: 12px; }
.text-button { border: 0; padding: 9px 5px; min-height: 44px; border-radius: 7px; background: transparent; color: var(--primary); font-size: inherit; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
.search-empty { text-align: center; padding: 42px 18px; }
.search-empty h2 { font-size: 19px; }
.search-empty p { max-width: 480px; margin: 14px auto 22px; color: var(--muted); line-height: 1.8; font-size: 13px; }
.search-privacy { text-align: center; font-size: 11px; line-height: 1.8; color: var(--muted); margin: 30px 0 0; }
.library-detail { margin-top: 26px; scroll-margin-top: 20px; }
.library-heading { padding: 10px 0 23px; }
.library-heading h2 { margin: 8px 0; }
.library-heading > p:last-child { font-size: 14px; color: var(--muted); }
.library-editor { display: grid; grid-template-columns: minmax(0,1fr); }
.library-preview { min-width: 0; background: white; border: 1px solid #dbe5f5; border-radius: 20px; padding: 22px; box-shadow: 0 6px 22px #284b8907; }
#library-output { min-height: 410px; font-size: 15px; background: #f8faff; line-height: 1.95; }
.library-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.library-actions .button { flex-grow: 1; }
.clear-library { margin-top: 13px; font-size: 11px; color: var(--muted); }
#library-manual-backup summary { font-size: 12px; }
#library-backup { font-size: 13px; }
#helper-handoff { margin-top: 24px; background: #edf3ff; border-color: #d7e3fa; }
#helper-handoff .text-button { font-size: 12px; }
@media (max-width: 800px) {
 .library-editor { grid-template-columns: minmax(0,1fr); gap: 25px; }
 .category-shortcuts { flex: auto; }
 .search-filters > label { flex-basis: 100%; }
}
@media (max-width: 600px) {
 .app-modes { width: 100%; margin-top: 18px; }
 .app-modes button { flex: 1; min-width: 0; padding: 8px 7px; font-size: 13px; }
 .search-intro { padding-top: 28px; }
 .search-intro h1 { font-size: 32px; line-height: 1.45; }
 .search-intro > p:last-child { font-size: 12px; }
 .search-mobile-break { display: initial; }
 .search-input-row { padding: 6px; gap: 7px; border-radius: 15px; }
 .search-input-row > .icon { margin-left: 5px; width: 18px; height: 18px; }
 #library-query { padding-block: 11px; }
 #library-query::placeholder { font-size: 12px; }
 .search-input-row .button { padding-inline: 13px; font-size: 12px; min-height: 44px; }
 .search-filters { margin-top: 13px; }
 .category-shortcuts button { font-size: 10px; min-height: 40px; }
 .search-results { grid-template-columns: minmax(0,1fr); }
 .search-results-heading { margin-top: 27px; }
 .search-results-heading h2 { font-size: 17px; }
 .search-result { padding: 17px 7px; }
 .search-result-title { font-size: 15px; }
 .search-result-description { font-size: 12px; }
 .library-heading h2 { font-size: 23px; }
 .library-heading > p:last-child { font-size: 13px; line-height: 1.8; }
 .library-preview { padding: 18px 14px; border-radius: 17px; }
 #library-output { font-size: 16px; min-height: 360px; }
 .library-actions { flex-direction: column; }
 .header-right .version-tag { display: none; }
 .header-right a { font-size: 11px; }
}
