:root {
      color-scheme: light;
      --paper: #f4f6fb;
      --white: #fff;
      --ink: #1c2438;
      --muted: #687286;
      --line: #e1e6f0;
      --accent: #3157e8;
      --accent-strong: #2446cb;
      --accent-pale: #edf1ff;
      --green: #17684e;
      --green-pale: #e8f2ec;
      --red: #c84c32;
      --red-pale: #fff0e9;
      --amber: #a87912;
      --amber-pale: #fff6dc;
    }
    body[data-app-mode="victim"] { --accent: #2b4f70; --accent-strong: #203d58; --accent-pale: #eaf1f7; }
    body[data-app-mode="self"] { --accent: #2b4f70; --accent-strong: #203d58; --accent-pale: #eaf1f7; }
    body[data-app-mode="mental"] { --accent: #2b4f70; --accent-strong: #203d58; --accent-pale: #eaf1f7; }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background: linear-gradient(145deg, #f7f8fc 0%, #eef2f8 100%);
      color: var(--ink);
      font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
    }
    button, input, textarea, select { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    .shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
    .topbar { position: sticky; top: 0; z-index: 20; min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 9px 0; border-bottom: 1px solid rgb(216 224 233 / 78%); background: rgb(247 249 252 / 88%); backdrop-filter: blur(18px); }
    .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
    .brand-mark { width: 38px; height: 38px; flex: 0 0 auto; filter: drop-shadow(0 3px 6px rgb(23 43 71 / 18%)); }
    .brand-wordmark strong { color: #1c2d46; font-size: 15px; line-height: 1.3; }
    .intro { padding: 44px 0 30px; }
    .eyebrow { margin: 0 0 10px; color: color-mix(in srgb, var(--accent-strong) 72%, white); font-size: 10px; font-weight: 700; letter-spacing: 0; }
    h1 { max-width: 900px; margin: 0; font-family: "Pretendard", sans-serif; font-size: 42px; font-weight: 800; line-height: 1.22; letter-spacing: 0; }
    .intro p:last-child { max-width: 720px; margin: 14px 0 20px; color: #64748b; font-size: 15px; }
    .privacy-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--accent-pale); border-radius: 99px; background: var(--accent-pale); color: var(--accent-strong); font-size: 11px; font-weight: 700; }
    .privacy-badge span { font-size: 13px; }
    .form-privacy-badge { margin-bottom: 17px; }
    .mental-local-badge { margin-bottom: 18px; }
    .intro-utilities { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; }
    .hero-shortcut { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 12px; border: 1px solid #d8dff2; border-radius: 10px; background: white; color: #40517f; font-size: 10px; font-weight: 800; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
    .hero-shortcut:hover { transform: translateY(-1px); border-color: #b9c8fb; background: var(--accent-pale); }
    .hero-shortcut-primary { border-color: var(--accent); background: var(--accent); color: white; box-shadow: 0 5px 13px rgb(49 87 232 / 16%); }
    .hero-shortcut-primary:hover { background: var(--accent-strong); color: white; }
    .disclaimer { display: flex; align-items: center; gap: 7px; margin: 0 0 22px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 85%); color: var(--muted); font-size: 11px; box-shadow: 0 4px 14px rgb(28 36 56 / 3%); }
    #app-intro[hidden], #service-disclaimer[hidden] { display: none !important; }
    .disclaimer strong { color: var(--ink); }
    .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 22px; align-items: start; padding-bottom: 60px; }
    .grid.report-mode { grid-template-columns: minmax(0, 900px); justify-content: center; }
    .panel { border: 1px solid #e1e6f0; border-radius: 18px; background: var(--white); box-shadow: 0 18px 48px rgb(28 36 56 / 8%), 0 2px 8px rgb(28 36 56 / 3%); }
    .main-panel { padding: 30px; }
    .panel-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 25px; }
    .panel-head h2 { margin: 0; font-size: 20px; }
    .panel-head span { color: var(--muted); font-size: 10px; }
    .mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: -8px 0 10px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f2f4f9; }
    .mode-switch button { min-height: 40px; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: #667187; font-size: 11px; font-weight: 700; cursor: pointer; }
    .mode-switch button[aria-pressed="true"] { background: white; color: var(--accent-strong); box-shadow: 0 2px 8px rgb(28 36 56 / 8%); }
    .mode-description { margin: 0 0 14px; color: var(--muted); font-size: 10px; }
    .app-mode-switch { flex: 0 1 740px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 0 auto; padding: 4px; border: 1px solid rgb(218 225 232 / 90%); border-radius: 13px; background: rgb(255 255 255 / 76%); box-shadow: 0 4px 14px rgb(28 36 56 / 5%); }
    .app-mode-switch button { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; font-size: 12px; line-height: 1.25; white-space: nowrap; }
    .app-mode-icon { flex: 0 0 auto; font-size: 17px; line-height: 1; }
    .app-mode-switch button[aria-pressed="true"] { background: var(--accent); color: white; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 25%, transparent); }
    .app-mode-switch button:not([aria-pressed="true"]):hover { background: var(--accent-pale); color: var(--accent-strong); }
    .self-view { display: grid; gap: 16px; padding-bottom: 38px; }
    .self-intro { padding: 22px 24px; border: 1px solid var(--accent-pale); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--accent-pale); }
    .self-intro h2 { margin: 0; color: var(--accent-strong); font-size: 20px; }
    .self-intro p { margin: 6px 0 0; color: #58616b; font-size: 12px; }
    .self-panel { padding: 24px; }
    .self-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 26px; align-items: stretch; }
    .self-field-stack { display: grid; align-content: start; gap: 20px; }
    .self-field-stack .field { display: grid; gap: 8px; margin: 0; }
    .self-field-stack .field label { margin: 0; }
    .self-fields textarea { min-height: 145px; }
    .self-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
    .self-report[hidden], .self-view[hidden], #workflow[hidden], #victim-guide[hidden], #mental-view[hidden] { display: none !important; }
    .self-report { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 14px 36px rgb(28 36 56 / 6%); }
    .self-report-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
    .self-report-head h2 { margin: 0; font-size: 20px; }
    .self-risk-badge { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--self-risk); border-radius: 99px; background: var(--self-risk-pale); color: var(--self-risk); font-size: 11px; font-weight: 800; }
    .self-score { display: flex; align-items: baseline; gap: 9px; margin: 14px 0 0; color: var(--self-risk); }
    .self-score strong { font-size: 34px; line-height: 1; }
    .self-score span { color: var(--muted); font-size: 11px; }
    .self-report-summary { margin: 12px 0; color: #46536a; font-size: 12px; line-height: 1.7; }
    .self-findings { display: grid; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
    .self-findings li { padding: 11px 13px; border: 1px solid var(--line); border-left: 4px solid var(--self-risk); border-radius: 9px; background: #fbfcff; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
    .self-recommendation { padding: 14px; border-radius: 10px; background: #f2f5fb; color: #414d63; font-size: 12px; line-height: 1.75; }
    .self-meter { height: 8px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #e8ecf2; }
    .self-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--self-tier, #1f7a5a); transition: width .3s ease; }
    .self-alert { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--self-tier-line, #bfe3d3); border-left: 5px solid var(--self-tier, #1f7a5a); border-radius: 10px; background: var(--self-tier-pale, #eef8f3); }
    .self-alert strong { display: block; color: var(--self-tier, #1f7a5a); font-size: 13px; font-weight: 800; }
    .self-alert p { margin: 4px 0 0; color: #3b4558; font-size: 12px; line-height: 1.65; }
    .self-report[data-tier="danger"] { --self-tier: #c0392b; --self-tier-line: #f0b9b2; --self-tier-pale: #fdf0ee; border-color: #f0b9b2; box-shadow: 0 14px 36px rgb(192 57 43 / 12%); }
    .self-report[data-tier="caution"] { --self-tier: #a87912; --self-tier-line: #ecd9a4; --self-tier-pale: #fdf7e6; }
    .self-report[data-tier="safe"] { --self-tier: #1f7a5a; --self-tier-line: #bfe3d3; --self-tier-pale: #eef8f3; }
    .self-report[data-tier="danger"] .self-risk-badge { background: var(--self-tier); color: #fff; letter-spacing: .2px; }
    .self-report[data-tier="danger"] .self-recommendation { border-left: 4px solid var(--self-tier); background: #fdf0ee; color: #4a2a26; font-weight: 600; }
    .self-report[data-tier="caution"] .self-recommendation { border-left: 4px solid var(--self-tier); background: #fdf7e6; }
    .self-report[data-tier="safe"] .self-recommendation { border-left: 4px solid var(--self-tier); background: #eef8f3; }
    .self-defense-guide { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
    .self-defense-guide h3 { margin: 0 0 8px; font-size: 14px; }
    .self-defense-guide ul { display: grid; gap: 7px; margin: 0; padding-left: 19px; color: #536078; font-size: 11px; }
    .mental-view { padding: 0 0 40px; }
    .mental-survey { margin-bottom: 18px; padding: 28px; border: 1px solid #f0dcda; border-radius: 14px; background: #fff9f7; }
    .mental-survey-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
    .mental-survey-header h2 { margin: 0; color: #593d43; font-size: 22px; }
    .mental-survey-header p { margin: 8px 0 0; color: #786267; font-size: 12px; line-height: 1.7; }
    .mental-step-status { min-width: 112px; color: var(--accent-strong); font-size: 11px; font-weight: 800; text-align: right; }
    .mental-step-status progress { display: block; width: 112px; height: 7px; margin: 0 0 6px auto; accent-color: var(--accent); }
    .mental-step { margin: 26px 0 0; padding: 0; border: 0; }
    .mental-step[hidden], .mental-report[hidden] { display: none !important; }
    .mental-step legend { margin-bottom: 15px; color: #593d43; font-size: 16px; font-weight: 800; }
    .mental-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 9px; }
    .mental-choice { display: flex; min-height: 54px; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #ead9d7; border-radius: 9px; background: white; color: #59494b; font-size: 12px; line-height: 1.5; cursor: pointer; }
    .mental-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-pale); box-shadow: inset 0 0 0 1px var(--accent); }
    .mental-choice input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
    .mental-step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
    .mental-step-actions [hidden] { display: none !important; }
    .mental-step-status-message { min-height: 19px; margin: 11px 0 0; color: #a34839; font-size: 11px; }
    .mental-report { margin: 0 0 18px; padding: 25px; border: 1px solid #f0dcda; border-radius: 14px; background: white; box-shadow: 0 12px 32px rgb(95 52 58 / 7%); }
    .mental-report-header { padding-bottom: 16px; border-bottom: 1px solid #f1e5e3; }
    .mental-report-header p { margin: 0 0 6px; color: var(--accent-strong); font-size: 10px; font-weight: 800; }
    .mental-report-header h2 { margin: 0; color: #593d43; font-size: 21px; }
    .mental-index-card { --index-color: #43877f; --index-pale: #eaf5f3; margin: 18px 0 4px; padding: 18px 20px; border: 1px solid #d8eae7; border-radius: 12px; background: #f2f8f7; }
    .mental-index-card[data-level="urgent"] { --index-color: #bd5547; --index-pale: #fff0ed; border-color: #f0d6d1; background: #fff8f6; }
    .mental-index-top { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
    .mental-index-label { margin: 0; color: #42635f; font-size: 11px; font-weight: 800; }
    .mental-index-value { display: flex; align-items: baseline; gap: 3px; margin-top: 5px; color: var(--index-color); }
    .mental-index-value strong { font-size: 38px; line-height: 1; }
    .mental-index-value span { font-size: 17px; font-weight: 800; }
    .mental-index-badge { max-width: 190px; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--index-color) 28%, white); border-radius: 99px; background: var(--index-pale); color: var(--index-color); font-size: 10px; font-weight: 800; text-align: center; }
    .mental-index-meter { height: 10px; overflow: hidden; margin-top: 13px; border-radius: 99px; background: #dce8e5; }
    .mental-index-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--index-color); transition: width .45s ease; }
    .mental-index-note { margin: 8px 0 0; color: #6c7c79; font-size: 10px; line-height: 1.6; }
    .mental-report-section { padding: 16px 0; border-bottom: 1px solid #edf0ee; }
    .mental-report-section:last-of-type { border-bottom: 0; }
    .mental-report-section h3 { margin: 0 0 8px; color: #68484e; font-size: 13px; }
    .mental-report-section p, .mental-report-section li { color: #6b5c5e; font-size: 12px; line-height: 1.8; }
    .mental-report-section p { margin: 0; }
    .mental-report-section ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; }
    .mental-empathy { padding: 18px 20px; border: 1px solid #d8e9ed; border-left: 4px solid #78adb3; border-radius: 10px; background: #edf7f8; color: #365d63 !important; font-size: 13px !important; box-shadow: 0 5px 15px rgb(75 126 133 / 7%); }
    .mental-urgent-note { margin-top: 13px !important; padding: 12px 14px; border-radius: 8px; background: #fff2ed; color: #8d3f32 !important; }
    .mental-report-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 16px; }
    .mental-action-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid #d4e4df; border-radius: 10px; background: #f6faf8; color: #365e53; font-size: 11px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
    .mental-action-button:hover { border-color: #8eb8aa; background: #edf6f2; }
    .mental-share-status { grid-column: 1 / -1; }
    .mental-share-status { width: 100%; min-height: 18px; margin: 0; color: #58706b; font-size: 10px; }
    .mental-toast { position: fixed; z-index: 30; right: 18px; bottom: 22px; left: 18px; width: fit-content; max-width: min(440px, calc(100% - 36px)); margin: 0 auto; padding: 13px 18px; border: 1px solid #cde0d8; border-radius: 12px; background: #264b42; color: white; box-shadow: 0 10px 30px rgb(20 51 42 / 22%); font-size: 12px; font-weight: 700; text-align: center; }
    .mental-toast[hidden] { display: none !important; }
    .mental-help-link { color: var(--accent-strong); font-size: 13px; font-weight: 800; }
    .field { margin-top: 20px; }
    .field label, .field legend { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
    .hint { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 400; }
    .field-label-row { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
    .field-label-row label { margin: 0; font-size: 12px; font-weight: 800; }
    .muted-label { color: var(--muted); font-size: 10px; font-weight: 400; }
    .tooltip-wrap { position: relative; display: inline-flex; }
    .info-button { width: 21px; height: 21px; padding: 0; border: 1px solid #cbd4f4; border-radius: 50%; background: white; color: var(--accent); font-size: 12px; font-weight: 800; line-height: 18px; cursor: help; }
    .tooltip { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 8px); width: min(280px, 78vw); padding: 9px 11px; border-radius: 4px; background: var(--ink); color: white; font-size: 11px; font-weight: 400; line-height: 1.5; opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
    .tooltip-wrap:hover .tooltip, .tooltip-wrap:focus-within .tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
    input[type="text"], input[type="url"], textarea, select { width: 100%; border: 1px solid #d7ddea; border-radius: 10px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
    input[type="text"], input[type="url"], select { min-height: 48px; padding: 10px 13px; }
    textarea { min-height: 132px; padding: 13px; resize: vertical; }
    input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(49 87 232 / 12%); }
    .source-url-row { display: flex; gap: 8px; }
    .source-url-row input { min-width: 0; flex: 1; }
    .source-url-row button { white-space: nowrap; }
    .collect-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 9px; }
    .collect-row span { color: var(--muted); font-size: 11px; }
    .privacy-consent { display: flex; align-items: start; gap: 8px; margin-top: 11px; color: var(--muted); font-size: 10px; cursor: pointer; }
    .privacy-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--green); }
    .example-tray { display: grid; gap: 8px; margin-top: 13px; padding: 12px; border: 1px solid #e1e6f0; border-radius: 12px; background: #f8f9fc; }
    .example-tray-title { color: #49556c; font-size: 10px; font-weight: 800; }
    .example-tags { display: flex; flex-wrap: wrap; gap: 7px; }
    .example-tag { min-height: 34px; padding: 0 10px; border: 1px solid #dbe1ed; border-radius: 99px; background: white; color: #48536a; font-size: 10px; font-weight: 700; cursor: pointer; }
    .example-tag:hover, .example-tag:focus-visible { border-color: #bdcafa; background: var(--accent-pale); color: var(--accent-strong); }
    .example-status { color: var(--muted); font-size: 10px; }
    .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    fieldset { min-width: 0; margin: 0; }
    .choices { display: flex; flex-wrap: wrap; gap: 7px; }
    .choice { position: relative; }
    .choice input { position: absolute; opacity: 0; }
    .choice span { min-height: 40px; display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; color: #46524c; font-size: 11px; cursor: pointer; }
    .choice input:checked + span { border-color: var(--accent); background: var(--accent-pale); color: var(--accent-strong); font-weight: 800; }
    .choice input:focus-visible + span { outline: 3px solid rgb(23 104 78 / 20%); }
    .source-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin-top: 8px; color: var(--muted); font-size: 10px; }
    .source-tools a { padding: 0; border: 0; color: var(--accent-strong); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
    .source-tools a:hover { color: var(--accent); }
    .primary { min-height: 50px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent); color: white; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgb(49 87 232 / 20%); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
    .primary:hover { background: var(--accent-strong); box-shadow: 0 10px 22px rgb(49 87 232 / 25%); transform: translateY(-1px); }
    .secondary { min-height: 42px; padding: 0 14px; border: 1px solid #dbe1ed; border-radius: 10px; background: white; color: #48536a; font-size: 11px; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
    .secondary:hover { border-color: #c8d2fa; background: var(--accent-pale); color: var(--accent-strong); }
    .actions { display: flex; gap: 10px; margin-top: 22px; }
    .empty-state { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 38px; text-align: center; }
    .empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 14px; background: var(--accent-pale); color: var(--accent); font-size: 22px; }
    .empty-state h2 { margin: 0; font-size: 17px; }
    .empty-state p { max-width: 310px; margin: 9px 0 0; color: var(--muted); font-size: 12px; }
    .empty-state strong { color: var(--ink); }
    .empty-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 19px; }
    .empty-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: #52635a; font-size: 10px; }
    .empty-private { margin-top: 18px !important; font-size: 10px !important; }
    .result { overflow: hidden; }
    .result[hidden], .main-panel[hidden], .empty-state[hidden] { display: none !important; }
    .result-head { padding: 28px 30px; background: #202943; color: white; }
    .result-heading-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
    .result-head .kicker { margin: 0 0 9px; color: #aebeff; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
    .result-head h2 { margin: 0; font-size: 23px; line-height: 1.4; }
    .result-head p:last-child { margin: 10px 0 0; color: #d4daeb; font-size: 12px; }
    .result-body { padding: 26px 28px 30px; }
    .assessment { --risk-accent: #3157e8; --risk-soft: #edf1ff; --risk-panel: #fbfcff; --risk-ink: #202943; margin-bottom: 22px; padding: 21px; border: 2px solid var(--risk-accent); border-top-width: 7px; border-radius: 16px; background: var(--risk-panel); box-shadow: 0 10px 26px rgb(28 36 56 / 5%); }
    .meme-verdict { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 5px 14px; margin: -3px -3px 20px; padding: 17px 18px; border: 1px solid var(--risk-accent); border-radius: 12px; background: var(--risk-soft); color: var(--risk-ink); }
    .meme-tier-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: var(--risk-accent); color: white; font-size: 34px; line-height: 1; box-shadow: 0 7px 16px color-mix(in srgb, var(--risk-accent) 25%, transparent); }
    .meme-verdict-copy { min-width: 0; display: grid; gap: 3px; }
    .meme-verdict .meme-tier { color: var(--risk-accent); font-size: 10px; font-weight: 800; }
    .meme-verdict strong { font-size: 19px; line-height: 1.45; }
    .meme-verdict .meme-legal-note { color: var(--risk-accent); font-size: 10px; font-weight: 800; }
    .meme-verdict p { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.5; }
    .assessment-top { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
    .assessment-top span { color: var(--muted); font-size: 11px; }
    .assessment-top strong { display: block; font-family: inherit; font-size: 38px; font-weight: 800; line-height: 1.1; }
    .assessment-level { padding: 4px 8px; border-radius: 99px; background: var(--amber-pale); color: #71520d !important; font-size: 11px; font-weight: 800; }
    .score-track { height: 8px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #e6ebe7; }
    .score-fill { width: 0; height: 100%; border-radius: inherit; background: var(--amber); transition: width .25s ease; }
    .score-fill.high { background: var(--red); }
    .score-caption { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
    .requirement-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
    .requirement { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
    .requirement span { display: block; color: var(--muted); font-size: 10px; }
    .requirement strong { display: block; margin-top: 2px; font-size: 13px; }
    .requirement .yes { color: var(--green); }
    .requirement .maybe { color: var(--amber); }
    .requirement .no { color: var(--muted); }
    .details-panel { margin-top: 16px; border-top: 1px solid var(--line); }
    .details-panel summary { padding: 14px 2px; color: var(--accent-strong); font-size: 12px; font-weight: 800; cursor: pointer; }
    .details-content { display: grid; gap: 15px; padding-bottom: 8px; }
    .signal { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12px; font-weight: 800; }
    .signal-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--amber); }
    .signal.high .signal-dot { background: var(--red); }
    .signal.low .signal-dot { background: var(--green); }
    .result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
    .mask-toggle { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: #46534c; font-size: 11px; cursor: pointer; }
    .mask-toggle input { accent-color: var(--green); }
    .result-actions .secondary { min-height: 36px; }
    .share-status { width: 100%; color: var(--muted); font-size: 10px; }
    .stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-bottom: 17px; }
    .stat { padding: 11px 8px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
    .stat:hover { border-color: #bdcafa; background: var(--accent-pale); }
    .stat[aria-pressed="true"] { border-color: #8a94a6; background: #f1f3f7; box-shadow: 0 0 0 2px rgb(28 36 56 / 10%); }
    .stat:focus-visible { outline: 3px solid rgb(23 104 78 / 20%); outline-offset: 1px; }
    .stat strong { display: block; font-family: inherit; font-size: 22px; line-height: 1.15; }
    .stat span { color: var(--muted); font-size: 10px; }
    .result-block { padding-top: 14px; border-top: 1px solid var(--line); }
    .result-block + .result-block { margin-top: 14px; }
    .result-block h3 { margin: 0 0 7px; color: var(--muted); font-size: 10px; letter-spacing: .3px; }
    .result-block p, .result-block li { margin: 0; color: #35413b; font-size: 12px; }
    .result-block ul { margin: 0; padding-left: 16px; }
    .result-block li + li { margin-top: 5px; }
    .laws { display: flex; flex-wrap: wrap; gap: 6px; }
    .laws a { padding: 6px 9px; border: 1px solid #d8e0fb; border-radius: 8px; background: var(--accent-pale); color: var(--accent-strong); font-size: 10px; font-weight: 700; }
    .comment-list { display: grid; gap: 8px; margin-top: 11px; }
    .comment-item { padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgb(28 36 56 / 3%); }
    .comment-item.high { border-left-color: var(--red); }
    .comment-item.selected { box-shadow: 0 0 0 3px rgb(28 36 56 / 10%); }
    .comment-item { scroll-margin-top: 16px; }
    .comment-item p { margin: 0; color: #333; font-size: 11px; overflow-wrap: anywhere; }
    .comment-item span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
    .comment-item .comment-reason { margin-top: 7px; color: #46534c; font-size: 11px; }
    .evidence-list { display: grid; gap: 8px; margin-top: 10px; }
    .evidence-item { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
    .evidence-item a { color: var(--accent-strong); font-size: 12px; font-weight: 700; }
    .evidence-item p { margin-top: 5px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
    .notice { margin-top: 15px; padding: 11px; border-left: 3px solid #e2b747; background: var(--amber-pale); color: #5b4d2c; font-size: 10px; }
    .false-fact-guidance { border-left-color: #c84c32; background: #fff1eb; color: #704333; font-size: 11px; }
    .false-fact-guidance[hidden] { display: none; }
    .reassurance { margin-top: 20px; padding: 22px 24px; border: 1px solid #cde1e7; border-radius: 14px; background: #eff7f8; box-shadow: 0 8px 24px rgb(39 93 105 / 6%); }
    .reassurance h3 { margin: 0; color: #285d69; font-size: 14px; }
    .reassurance p { margin: 7px 0 0; color: #46636a; font-size: 12px; line-height: 1.8; }
    .result-legal-disclaimer { margin-top: 14px; padding: 12px 14px; border-top: 1px dashed #c8d1cb; color: #5c6861; font-size: 11px; line-height: 1.7; }
    .result-legal-disclaimer strong { color: var(--ink); }
    .statement-launch { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
    .statement-launch[hidden] { display: none; }
    .statement-launch h3 { margin: 0; font-size: 13px; }
    .statement-launch p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
    .statement-launch .secondary { flex: 0 0 auto; }
    .result-next-actions { margin-top: 18px; padding: 20px; border: 1px solid #c9d9e5; border-radius: 14px; background: #edf4f8; }
    .result-next-heading { margin-bottom: 13px; }
    .result-next-heading p { margin: 0 0 4px; color: #486985; font-size: 10px; font-weight: 800; }
    .result-next-heading h3 { margin: 0; color: #263f54; font-size: 16px; }
    .result-next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .result-next-card { min-height: 74px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #ccdbe4; border-radius: 11px; background: white; color: #29465c; text-decoration: none; cursor: pointer; }
    .result-next-card:hover { border-color: #789bb2; background: #f7fbfd; }
    .result-next-card-primary { border-color: #2b4f70; background: #2b4f70; color: white; }
    .result-next-card-primary:hover { border-color: #203d58; background: #203d58; color: white; }
    .result-next-icon { flex: 0 0 auto; font-size: 22px; }
    .result-next-copy { display: grid; gap: 2px; font-size: 12px; font-weight: 800; line-height: 1.45; }
    .result-next-copy small { color: inherit; opacity: .78; font-size: 10px; font-weight: 500; }
    .partner-slot { margin-top: 12px; padding: 14px 16px; border: 1px dashed #cbd3da; border-radius: 9px; background: #fafbfc; color: #7c8791; }
    .partner-slot strong { display: block; font-size: 10px; font-weight: 800; }
    .partner-slot span { display: block; margin-top: 3px; font-size: 10px; }
    .hotline-module { margin-top: 16px; padding-top: 13px; border-top: 1px solid #e6e9ed; }
    .hotline-module h3 { margin: 0; color: #64717b; font-size: 11px; font-weight: 800; }
    .hotline-module p { margin: 3px 0 9px; color: #818b93; font-size: 10px; }
    .hotline-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
    .hotline-chip { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #d8e0e5; border-radius: 999px; background: white; color: #536673; font-size: 10px; font-weight: 700; text-decoration: none; }
    .hotline-chip:hover { border-color: #92a9b8; background: #f3f7f9; }
    .hotline-chip-primary { border-color: #c9ddd6; background: #eff7f3; color: #285f4b; }
    .hotline-chip-number { font-variant-numeric: tabular-nums; font-weight: 800; }
    .hotline-inline-list { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0 4px; vertical-align: middle; }
    .foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; padding: 16px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
    .foot-brand { display: grid; gap: 3px; }
    .foot strong { color: var(--ink); }
    .policy-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
    .policy-links a { color: var(--accent-strong); text-decoration: none; text-underline-offset: 3px; }
    .policy-links a:hover, .policy-links a:focus-visible { color: var(--accent); text-decoration: underline; }
    .foot-contact { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
    .foot-contact:hover, .foot-contact:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
    .policy-dialog { width: min(640px, calc(100% - 32px)); max-height: min(82vh, 720px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); box-shadow: 0 24px 70px rgb(20 35 28 / 22%); }
    .policy-dialog::backdrop { background: rgb(20 35 28 / 48%); backdrop-filter: blur(2px); }
    .policy-dialog-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); background: var(--white); }
    .policy-dialog-head p { margin: 0 0 4px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
    .policy-dialog-head h2 { margin: 0; font-size: 19px; }
    .policy-dialog-head .secondary { flex: 0 0 auto; min-height: 34px; }
    .policy-body { display: grid; gap: 13px; padding: 18px 22px 24px; }
    .policy-body[hidden] { display: none; }
    .policy-body p { margin: 0; color: #435149; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
    .policy-body strong { color: var(--ink); }
    .policy-note { margin: 0 22px 20px; padding: 10px 12px; border-left: 3px solid var(--green); background: var(--green-pale); color: #46594d; font-size: 10px; }
    .statement-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 18px 22px 0; }
    .statement-inputs label { display: grid; gap: 5px; color: #435149; font-size: 11px; font-weight: 700; }
    .statement-inputs input, .statement-inputs textarea { width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font: inherit; font-weight: 400; }
    .statement-inputs textarea { min-height: 68px; resize: vertical; }
    .statement-option { display: flex; align-items: start; gap: 8px; margin: 13px 22px 0; color: var(--muted); font-size: 10px; }
    .statement-option input { margin: 2px 0 0; accent-color: var(--green); }
    .statement-draft { display: block; width: calc(100% - 44px); min-height: 245px; margin: 14px 22px; padding: 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); font-size: 11px; line-height: 1.7; resize: vertical; }
    .statement-actions { display: grid; gap: 9px; padding: 0 22px 18px; }
    .statement-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .statement-actions span { color: var(--muted); font-size: 10px; }
    .statement-ecrm-tip { margin: 0; color: #426352; font-size: 10px; line-height: 1.6; }
    .statement-print { display: none; }
    .guide-section { padding: 30px 0 48px; border-top: 1px solid var(--line); }
    .guide-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
    .guide-heading h2 { margin: 0; font-size: 21px; }
    .guide-heading p { margin: 0; color: var(--muted); font-size: 11px; }
    .statement-helper-link { flex: 0 0 auto; color: var(--green); font-weight: 700; }
    .guide-grid { display: grid; gap: 9px; }
    .guide-article { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgb(28 36 56 / 4%); }
    .guide-article summary { padding: 14px 16px; font-size: 13px; font-weight: 800; cursor: pointer; }
    .guide-article[open] summary { border-bottom: 1px solid var(--line); color: var(--accent-strong); }
    .guide-content { display: grid; gap: 10px; padding: 14px 16px 16px; }
    .guide-content p, .guide-content li { margin: 0; color: #46534c; font-size: 12px; }
    .guide-content ul, .guide-content ol { display: grid; gap: 7px; margin: 0; padding-left: 19px; }
    .guide-content a { color: var(--accent-strong); font-size: 11px; font-weight: 700; }
    .mental-hotline-module { border-color: #eee1df; }
    .mental-hotline-module .hotline-chip-primary { border-color: #c9ddd6; background: #eff7f3; color: #285f4b; }
    .mental-help-link { display: inline-flex; color: var(--accent-strong); font-size: 12px; font-weight: 800; text-decoration: none; }
    .appear { animation: appear .5s both; }
    @keyframes appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
    @media (max-width: 820px) {
      .grid { grid-template-columns: 1fr; }
      .empty-state { min-height: 260px; }
      .self-fields { grid-template-columns: 1fr; gap: 20px; }
      input, textarea, select { scroll-margin-top: 92px; scroll-margin-bottom: 128px; }
    }
    @media (max-width: 560px) {
      .shell { width: calc(100% - 28px); }
      .topbar { min-height: 0; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 8px 0; }
      .intro { padding: 30px 0 20px; }
      h1 { font-size: 31px; }
      .intro p:last-child { font-size: 12px; }
      .main-panel { padding: 19px 15px; }
      .mode-switch button { padding: 7px 5px; font-size: 10px; }
      .app-mode-switch { width: 100%; flex: none; gap: 3px; margin: 0; padding: 4px; }
      .app-mode-switch button { min-height: 48px; flex-direction: column; gap: 4px; padding: 5px 2px; font-size: 9px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
      .app-mode-icon { font-size: 16px; }
      .self-panel, .self-report { padding: 18px 15px; }
      .self-fields { grid-template-columns: 1fr; gap: 20px; }
      .self-report-head { align-items: start; flex-direction: column; }
      .mental-survey, .mental-report { padding: 19px 15px; }
      .result-head, .result-body { padding-right: 16px; padding-left: 16px; }
      .stats { grid-template-columns: repeat(2, 1fr); }
      .requirement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
      .requirement { padding: 8px 6px; }
      .requirement strong { font-size: 11px; }
      .meme-verdict { grid-template-columns: 52px minmax(0, 1fr); gap: 5px 10px; padding: 14px; }
      .meme-tier-icon { width: 50px; height: 50px; border-radius: 15px; font-size: 31px; }
      .meme-verdict strong { font-size: 16px; }
      .result-actions .mask-toggle { width: 100%; }
      .two-col { grid-template-columns: 1fr; gap: 0; }
      .statement-launch { align-items: stretch; flex-direction: column; }
      .statement-launch .secondary { width: 100%; }
      .result-next-grid { grid-template-columns: 1fr; }
      .result-next-actions { padding: 16px 13px; }
      .result-next-card { min-height: 66px; padding: 11px 12px; }
      .hotline-chip-list { gap: 6px; }
      .statement-inputs { grid-template-columns: 1fr; padding-right: 16px; padding-left: 16px; }
      .statement-option { margin-right: 16px; margin-left: 16px; }
      .statement-draft { width: calc(100% - 32px); margin-right: 16px; margin-left: 16px; }
      .statement-actions { flex-wrap: wrap; padding-right: 16px; padding-left: 16px; }
      .mental-survey-header { flex-direction: column; }
      .mental-step-status { display: flex; width: 100%; align-items: center; justify-content: space-between; text-align: left; }
      .mental-step-status progress { width: min(220px, 70%); margin: 0; }
      .mental-choice-grid { grid-template-columns: 1fr; }
      .mental-report-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
      .mental-action-button { min-height: 44px; padding: 8px 7px; font-size: 10px; }
      .result-actions .secondary, .self-actions .secondary, .mental-step-actions .secondary { min-height: 44px; }
      .collect-row button, .statement-buttons button { min-height: 44px; }
      .guide-heading { display: grid; gap: 10px; }
      .guide-heading p { margin-top: 5px; }
      .statement-helper-link { width: 100%; }
      .foot { display: grid; }
      .policy-dialog-head, .policy-body { padding-right: 16px; padding-left: 16px; }
      .policy-note { margin-right: 16px; margin-left: 16px; }
      .policy-dialog-head h2 { font-size: 17px; }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; } }
    @page { size: A4; margin: 18mm; }
    @media print {
      html, body { width: auto; min-width: 0; margin: 0; background: #fff !important; }
      body > :not(#statement-print) { display: none !important; }
      #statement-print { display: block !important; color: #111; font-family: "Pretendard", sans-serif; font-size: 11pt; line-height: 1.75; }
      .statement-print-brand { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #777; color: #555; font-size: 9pt; }
      #statement-print h1 { margin: 28px 0 18px; font-family: "Pretendard", sans-serif; font-size: 20pt; text-align: center; }
      .statement-print-note { margin: 0 0 20px; padding: 9px 11px; border: 1px solid #aaa; font-size: 9pt; }
      #statement-print-content { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 10.5pt/1.8 "Pretendard", sans-serif; }
      .statement-print-footer { margin-top: 30px; padding-top: 9px; border-top: 1px solid #bbb; color: #555; font-size: 9pt; }
    }

.scroll-top-fab{position:fixed;right:16px;bottom:20px;z-index:50;width:46px;height:46px;border-radius:50%;border:0;background:#333;color:#fff;font-size:22px;box-shadow:0 4px 12px rgba(0,0,0,.25);cursor:pointer}
.scroll-top-fab[hidden]{display:none}
.self-retest-top{margin:10px 0;width:100%}

.retest-cta{font-weight:700;background:#fff;color:#333;border:2px solid #333;border-radius:999px;padding:8px 16px;cursor:pointer}
.retest-cta:hover{background:#333;color:#fff}
.result-heading-row .retest-cta{white-space:nowrap}

#result-title,#self-report{scroll-margin-top:92px}

.partner-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;background:var(--white);color:var(--ink);text-decoration:none;transition:background .15s ease,border-color .15s ease}
.partner-banner:hover,.partner-banner:focus-visible{background:var(--accent-pale);border-color:var(--accent)}
.partner-banner-text{display:grid;gap:3px;min-width:0}
.partner-banner-text strong{font-size:13px;font-weight:800}
.partner-banner-text span{color:var(--muted);font-size:11px}
.partner-banner-cta{flex:0 0 auto;color:var(--accent-strong);font-size:12px;font-weight:800;white-space:nowrap}

.foot-opened{color:var(--muted);font-size:11px;font-weight:500}
.trust-note{display:grid;gap:3px;margin-top:12px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:#fafbfc}
.trust-note strong{font-size:12px;font-weight:800;color:var(--ink)}
.trust-note span{font-size:11px;color:var(--muted)}

a.brand{color:inherit;text-decoration:none;cursor:pointer}

/* 브랜드 컬러 통일: 유리멘탈 응급실·공통 액션 버튼의 분홍/초록 크롬을 네이비 계열로 정돈 (위험도·지수 의미색은 유지) */
.mental-survey, .mental-report { border-color: var(--line); }
.mental-survey { background: #f8fafc; }
.mental-report { box-shadow: 0 12px 32px rgb(32 61 88 / 7%); }
.mental-report-header { border-bottom-color: var(--line); }
.mental-survey-header h2, .mental-step legend, .mental-report-header h2 { color: #1c2d46; }
.mental-survey-header p, .mental-report-section p, .mental-report-section li { color: #536078; }
.mental-report-section h3 { color: #203d58; }
.mental-choice { border-color: var(--line); color: #3b4558; }
.mental-action-button { border-color: #cfdbe8; background: var(--accent-pale); color: var(--accent-strong); }
.mental-action-button:hover { border-color: var(--accent); background: #dfe9f3; }

/* 이불킥/유리멘탈 타이틀 영역을 고소미각 판독기 인트로와 동일하게 통일 */
.self-intro.intro, .mental-intro.intro { padding: 44px 0 30px; border: 0; border-radius: 0; background: transparent; }
.self-intro.intro h2, .mental-intro.intro h2 { max-width: 900px; margin: 0; color: var(--ink, inherit); font-family: "Pretendard", sans-serif; font-size: 42px; font-weight: 800; line-height: 1.22; letter-spacing: 0; }
.self-intro.intro p, .mental-intro.intro p { max-width: 720px; margin: 14px 0 20px; color: #64748b; font-size: 15px; font-weight: 400; line-height: inherit; }
@media (max-width: 720px) {
  .self-intro.intro, .mental-intro.intro { padding: 30px 0 20px; }
  .self-intro.intro h2, .mental-intro.intro h2 { font-size: 31px; }
  .self-intro.intro p, .mental-intro.intro p { font-size: 12px; }
}