:root{
  --bg:#f7f5ef; --card:#ffffff; --ink:#162033; --muted:#53606f; --line:#d9ddd8;
  --green:#13866f; --green-dark:#0f6b5b; --green-soft:#dcf6ed; --cream:#f3f1e8;
  --amber:#b7791f; --amber-soft:#fff7d6; --red:#be123c; --red-soft:#fff1f2;
  --blue-soft:#eef5ff; --shadow:0 18px 45px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink);line-height:1.55;font-size:16px}
.wrap{width:min(980px,calc(100% - 28px));margin:26px auto 46px}.rn-app{display:grid;gap:22px}.rn-privacy,.rn-toolbar,.rn-progress,.card{background:var(--card);border:1px solid var(--line);border-radius:16px}.rn-privacy{display:flex;gap:18px;align-items:center;padding:18px 22px}.rn-privacy p,.rn-main-head p,.rn-card-head p{margin:.15rem 0 0;color:var(--muted)}.rn-privacy-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#e7f4d9;color:var(--green-dark);font-weight:700}.rn-main-head h1{margin:0;font-size:2rem;font-weight:700}.rn-main-head p{font-size:1.1rem;max-width:820px}.rn-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:16px 22px;background:#fbfaf5}.rn-progress{border:0;background:transparent}.rn-progress-row{display:flex;justify-content:space-between;gap:18px;margin-bottom:8px;color:#303640}.rn-bar{height:9px;border:1px solid var(--line);border-radius:99px;overflow:hidden;background:#fff}.rn-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--green),#45c3a6);border-radius:99px}.rn-activity-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}.rn-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;color:#394150;cursor:pointer}.rn-chip.active{background:var(--green-soft);border-color:#5bc9aa;color:#0f6b5b}.card{padding:0;box-shadow:var(--shadow);overflow:hidden}.rn-card-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:1px solid var(--line);padding:24px 28px}.rn-card-head h2{font-size:1.6rem;margin:0}.rn-work-card>h2,.rn-work-card>h3,.rn-work-card>p,.rn-work-card>.notice,.rn-work-card>.warn,.rn-work-card>.debug,.rn-work-card>.rn-info,.rn-work-card>.summary-mini,.rn-work-card>.rn-success,.rn-work-card>.choice-grid{margin-left:28px;margin-right:28px}.rn-work-card>h3{font-size:1.25rem;margin-top:24px}.rn-info,.rn-success,.rn-scope-box{background:var(--cream);border-left:4px solid #54c9a9;border-radius:0 12px 12px 0;padding:14px 18px;margin-top:20px}.rn-success{background:#e9faef;border:1px solid #a8e3be;border-left:4px solid #35a36d}.notice{background:var(--amber-soft);border:1px solid #f2c94c;border-radius:12px;padding:12px;margin:12px 0}.warn{background:var(--red-soft);border:1px solid #fecdd3;color:var(--red);border-radius:12px;padding:12px;margin:12px 0;font-weight:700}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.check-card{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fff;cursor:pointer}.check-card.selected{border-color:#47c6a4;background:var(--green-soft);color:#075c4b}.check-card input{width:18px;height:18px}.progress{height:8px;background:#e7ebe7;border-radius:99px;overflow:hidden;margin:12px 0}.progress>div{height:100%;background:var(--green);transition:width .2s ease}.summary-mini{display:grid;gap:10px;margin:18px 0}.summary-row{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;background:#fbfcfd;border:1px solid var(--line);border-radius:12px;padding:12px 14px}.rn-step-label{display:inline-block;background:var(--green-soft);color:#0f6b5b;border-radius:999px;padding:5px 10px;font-weight:700;margin:20px 28px 0}.question-card{border:0;border-radius:0;background:#fff}.rn-activity-card{padding:0}.rn-activity-title{display:flex;justify-content:space-between;gap:20px;padding:24px 28px 18px}.rn-activity-title h3{font-size:1.45rem;margin:0 0 6px}.rn-activity-title p{margin:0;color:#46515e}.rn-pill{height:max-content;background:var(--green-soft);color:#0f6b5b;border-radius:999px;padding:6px 14px;font-size:.92rem}.rn-scope-box{margin:0 28px 22px}.rn-question-progress{margin:0 28px 8px}.rn-question-card{display:grid;grid-template-columns:34px 1fr;gap:14px;border-top:1px solid var(--line);padding:26px 28px}.rn-question-number{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#efeee7;color:#555;font-weight:700}.option-list{display:grid;gap:12px}.option{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:#1b2733;font-weight:600;padding:15px 16px;cursor:pointer;text-align:left}.option.selected-option{border-color:#47c6a4;background:var(--green-soft);color:#075c4b}.label{display:block;font-weight:700;margin:16px 0 7px}textarea,.text-input{width:100%;border:1px solid var(--line);border-radius:12px;padding:14px;font:inherit;background:#fff;resize:vertical}.actions{display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding:18px 28px;background:#fbfaf5;align-items:center}.rn-actions{justify-content:flex-end}.rn-save-status{margin-right:auto;color:#53606f}.primary,.ghost{border:1px solid #bfc6ce;border-radius:12px;padding:12px 18px;font-weight:700;cursor:pointer;background:#fff;color:#1f2937}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover{background:var(--green-dark)}.ghost:hover{background:#f4f6f7}.debug{margin-top:18px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#f8fafc}.debug summary{cursor:pointer;font-weight:700}.debug pre,pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#111827;color:#f9fafb;border-radius:12px;padding:14px;font-size:.88rem}.draft{border:1px solid var(--line);border-radius:12px;background:#f1fbf8;padding:16px}.draft h3{margin:18px 0 6px}.draft p{margin:0 0 16px}.ai-result{margin:14px 28px 0}.endpoint-box{display:block;width:calc(100% - 56px);margin:0 28px;box-sizing:border-box;border:1px solid #cbd5e1;background:#f8fafc;border-radius:10px;padding:12px 14px;color:#334155;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:.92rem;word-break:break-all}.rn-large-text{font-size:19px}.rn-high-contrast{--bg:#000;--card:#fff;--ink:#000;--muted:#111;--line:#000;--cream:#fff;--green-soft:#e6fff2}.rn-high-contrast .primary{background:#000;color:#fff;border-color:#000}button:disabled{opacity:.65;cursor:wait}@media(max-width:760px){.wrap{width:min(100% - 16px,980px);margin:12px auto 32px}.rn-card-head,.rn-privacy,.rn-toolbar,.rn-activity-title{padding-left:18px;padding-right:18px}.choice-grid,.summary-row{grid-template-columns:1fr}.rn-progress-row{flex-direction:column;gap:4px}.rn-actions{justify-content:stretch}.rn-actions button{flex:1 1 150px}.rn-save-status{width:100%;margin:0}.rn-question-card{grid-template-columns:1fr;padding:20px 18px}.rn-scope-box,.rn-question-progress,.endpoint-box,.ai-result,.rn-work-card>h2,.rn-work-card>h3,.rn-work-card>p,.rn-work-card>.notice,.rn-work-card>.warn,.rn-work-card>.debug,.rn-work-card>.rn-info,.rn-work-card>.summary-mini,.rn-work-card>.rn-success,.rn-work-card>.choice-grid{margin-left:18px;margin-right:18px;width:auto}.rn-activity-chips{max-height:92px;overflow:auto}}


/* v4.7.1 padding fix: keep profile and activity content away from card edges */
.rn-work-card > .progress,
.rn-work-card > p.muted,
.rn-work-card > .question-card:not(.rn-question-card){
  margin-left:28px;
  margin-right:28px;
}
.rn-work-card > .progress{
  width:calc(100% - 56px);
}
.question-card:not(.rn-question-card){
  border-top:1px solid var(--line);
  padding:24px 0 28px;
}
.question-card:not(.rn-question-card) > h3{
  margin:0 0 18px;
  font-size:1.32rem;
  line-height:1.3;
}
.question-card:not(.rn-question-card) > p{
  margin:0 0 18px;
  color:#263445;
}
.question-card:not(.rn-question-card) .option-list{
  margin-top:10px;
}
.rn-work-card > .question-card:not(.rn-question-card) .option{
  padding-left:18px;
  padding-right:18px;
}

@media(max-width:760px){
  .rn-work-card > .progress,
  .rn-work-card > p.muted,
  .rn-work-card > .question-card:not(.rn-question-card){
    margin-left:18px;
    margin-right:18px;
  }
  .rn-work-card > .progress{
    width:calc(100% - 36px);
  }
  .question-card:not(.rn-question-card){
    padding:20px 0 24px;
  }
}


/* v4.7.3: single-choice cards use the same visual size as checkbox cards */
.rn-question-card .option-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.rn-question-card .option{
  min-height:62px;
  display:flex;
  align-items:center;
  padding:15px 16px;
  line-height:1.35;
}
.rn-question-card .option.selected-option{
  font-weight:700;
}

@media(max-width:760px){
  .rn-question-card .option-list{
    grid-template-columns:1fr;
  }
}


/* v4.7.4: make single-choice option text match the larger checkbox card text */
.option{
  font:inherit;
}
.rn-question-card .option,
.question-card:not(.rn-question-card) .option{
  font-size:1rem;
  font-weight:700;
}
.rn-question-card .option{
  min-height:72px;
}

/* v4.7.5: clean user draft page, hide developer-style output from normal view */
.clean-draft-result .notice{
  margin-left:0;
  margin-right:0;
}
.helper-card,
.truth-check{
  margin:16px 28px 0;
  padding:14px 18px;
  border:1px solid var(--line);
  border-left:4px solid #54c9a9;
  border-radius:0 12px 12px 0;
  background:var(--cream);
}
.helper-card p{margin:.35rem 0 0;color:#46515e;}
.truth-check ul{margin:.5rem 0 0 1.1rem;padding:0;}
.truth-check li{margin:.25rem 0;}
.draft-field{margin-bottom:20px;}
.draft-field h3{letter-spacing:.02em;}
@media(max-width:760px){
  .helper-card,
  .truth-check{margin-left:18px;margin-right:18px;}
}

/* v4.8: AR1 paper-style review screen */
.clean-draft-result{margin-top:18px;}
.ar1-review-screen{display:grid;gap:22px;}
.ar1-ready-banner{display:flex;gap:18px;align-items:flex-start;background:#dcf6ed;border:2px solid #35c9a7;border-radius:14px;padding:18px 22px;color:#075c4b;}
.ar1-ready-banner p{margin:.35rem 0 0;color:#0f6b5b;}
.ar1-ready-icon{width:34px;height:34px;border-radius:50%;background:#c9f1e3;display:grid;place-items:center;font-weight:800;flex:0 0 auto;}
.ar1-soft-warning{background:#fff7d6;border:1px solid #f2c94c;border-radius:14px;padding:14px 18px;}
.ar1-review-title h2{font-size:1.55rem;margin:0 0 4px;}
.ar1-review-title p{margin:0 0 16px;color:var(--muted);}
.ar1-review-dots{display:flex;align-items:center;gap:8px;margin-top:12px;}
.ar1-dot{width:14px;height:14px;border-radius:50%;border:2px solid #d5d9d5;background:#fff;display:inline-block;}
.ar1-dot.active,.ar1-dot.approved{background:#23b999;border-color:#23b999;}
.ar1-dot-label{margin-left:4px;color:#53606f;font-size:.95rem;}
.ar1-paper-review{display:grid;gap:20px;}
.ar1-paper-box{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.04);}
.ar1-paper-box.active{border:2px solid #23b999;box-shadow:0 0 0 4px rgba(35,185,153,.12);}
.ar1-paper-box.approved{border-color:#98d9c9;}
.ar1-box-head{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:flex-start;padding:22px 26px;border-bottom:1px solid var(--line);background:#fff;}
.ar1-paper-box.active .ar1-box-head{background:#e7f8f3;}
.ar1-box-number{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#dcf6ed;color:#0f6b5b;font-size:1.15rem;font-weight:800;}
.ar1-box-head h3{margin:0;font-size:1.18rem;line-height:1.28;}
.ar1-box-head p{margin:.25rem 0 0;color:#4b5563;}
.ar1-box-body{padding:20px 26px;display:grid;gap:16px;}
.ar1-tick-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.ar1-tick{min-height:62px;border:2px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:12px;padding:14px 18px;font-size:1.05rem;background:#fff;}
.ar1-tick.selected{border-color:#20aa8e;background:#dcf6ed;color:#075c4b;}
.ar1-radio{width:24px;height:24px;border:2px solid #9ca3af;border-radius:50%;display:inline-block;position:relative;flex:0 0 auto;}
.ar1-tick.selected .ar1-radio{border-color:#159579;}
.ar1-tick.selected .ar1-radio:after{content:"";position:absolute;inset:4px;border-radius:50%;background:#159579;}
.ar1-draft-label{display:block;color:#4b5563;margin:0 0 8px;}
.ar1-draft-answer textarea{width:100%;min-height:155px;border:1px solid var(--line);border-radius:10px;padding:14px 16px;font-size:1rem;line-height:1.6;background:#fff;}
.ar1-blank-note{background:#f3f1e8;border-radius:10px;padding:16px 18px;color:#4b5563;}
.ar1-box-actions{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);background:#fbfaf5;padding:14px 26px;}
.ar1-box-actions .ar1-correct-btn{margin-left:auto;}
.ar1-review-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:14px;background:#fbfaf5;padding:18px 22px;}
#reviewContinueMessage{color:#53606f;}
.ar1-overlay{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding:48px 18px;overflow:auto;}
.ar1-modal{width:min(1120px,100%);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.35);}
.ar1-modal-head{display:flex;justify-content:space-between;gap:18px;align-items:center;background:#24599a;color:#fff;padding:26px 34px;}
.ar1-modal-head h2{margin:0;font-size:1.8rem;}
.ar1-modal-head p{margin:.3rem 0 0;color:#dbeafe;font-size:1.1rem;}
.ar1-modal-actions{display:flex;gap:12px;align-items:center;}
.ar1-modal-actions .ghost,.ar1-modal-foot .ghost{background:#fff;color:#162033;}
.ar1-close{font-size:1.6rem;line-height:1;padding:10px 16px;}
.ar1-modal-body{padding:30px 38px;max-height:70vh;overflow:auto;}
.ar1-modal-body .sheet h1{margin-top:0;}
.ar1-modal-body .q{border:1px solid #1f2937;border-radius:8px;margin:16px 0;padding:16px 18px;}
.ar1-modal-body .q h2{font-size:1.2rem;margin:0 0 8px;}
.ar1-modal-body .tick{display:inline-block;margin-right:28px;}
.ar1-modal-body .box{white-space:pre-wrap;border:1px solid #9ca3af;background:#eef2ff;min-height:80px;padding:12px;margin-top:10px;border-radius:4px;}
.ar1-modal-body .muted{color:#4b5563;}
.ar1-modal-foot{display:flex;gap:14px;justify-content:flex-end;border-top:1px solid var(--line);background:#f8fafc;padding:18px 34px;}

@media(max-width:760px){
  .ar1-ready-banner{padding:16px;}
  .ar1-box-head{grid-template-columns:38px 1fr;padding:18px;}
  .ar1-box-number{width:38px;height:38px;}
  .ar1-box-body,.ar1-box-actions{padding-left:18px;padding-right:18px;}
  .ar1-tick-row{grid-template-columns:1fr;}
  .ar1-box-actions,.ar1-review-footer{flex-direction:column;align-items:stretch;}
  .ar1-box-actions .ar1-correct-btn{margin-left:0;}
  .ar1-modal-head{align-items:flex-start;flex-direction:column;padding:22px;}
  .ar1-modal-actions{width:100%;flex-wrap:wrap;}
  .ar1-modal-actions button{flex:1 1 auto;}
  .ar1-modal-body{padding:22px;}
  .ar1-modal-foot{padding:18px 22px;flex-direction:column;}
  .ar1-modal-foot button{width:100%;}
}

@media print{
  body{background:#fff;}
  .rn-app > *:not(.ar1-overlay){display:none!important;}
}


/* v4.8.1: clearer approval wording and true-reflection approval panel */
.ar1-box-actions{
  flex-wrap:wrap;
}
.ar1-action-help{
  flex:1 1 100%;
  margin:0 0 2px;
  color:#4b5563;
  font-size:.96rem;
}
.ar1-box-actions .ar1-correct-btn{
  margin-left:auto;
}
.ar1-box-actions-simple{
  justify-content:flex-end;
}
.ar1-box-actions-simple .ar1-correct-btn{
  margin-left:0;
}
.ar1-approve-all-panel{
  border:2px solid #35c9a7;
  background:#dcf6ed;
  color:#075c4b;
  border-radius:14px;
  padding:18px 22px;
}
.ar1-approve-all-panel p{
  margin:.35rem 0 .8rem;
  color:#0f6b5b;
}
.ar1-approve-all-panel label{
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-weight:700;
  line-height:1.45;
}
.ar1-approve-all-panel input{
  width:22px;
  height:22px;
  margin-top:2px;
  flex:0 0 auto;
}
@media(max-width:760px){
  .ar1-box-actions .ar1-correct-btn{margin-left:0;}
  .ar1-action-help{font-size:1rem;}
  .ar1-approve-all-panel{padding:16px;}
}

.rn-reminder{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-left: 4px solid #0f8f78;
  border-radius: 12px;
  background: #e9fbf6;
  color: #12352f;
  line-height: 1.45;
}
.rn-reminder strong{display:block;margin-bottom:4px;color:#075e51;}
.rn-reminder span{display:block;margin-top:6px;color:#334155;}

/* v5.6.1 dynamic interview inside the original render workflow */
.rn-main-head{background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:24px 28px;}
.rn-main-head .badge{display:inline-block;background:var(--green-soft);color:var(--green-dark);font-weight:700;font-size:.76rem;border-radius:999px;padding:4px 12px;letter-spacing:.04em;text-transform:uppercase;margin-bottom:8px;}
.rn-dynamic-card{padding-bottom:0;}
.rn-inline-input{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 28px 0;}
.rn-inline-input .text-input{flex:1 1 260px;}
.rn-tag{display:inline-flex;align-items:center;gap:8px;background:var(--green-soft);color:var(--green-dark);border-radius:999px;padding:7px 12px;font-size:.95rem;}
.rn-tag button{border:0;background:transparent;color:var(--green-dark);font-weight:900;cursor:pointer;padding:0;}
.rn-tag-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 28px 0;}
.rn-field-block{margin:18px 28px 0;}
.rn-field-block label{display:block;font-weight:700;margin:0 0 8px;color:#334155;}
.rn-select{width:100%;border:1px solid var(--line);border-radius:12px;padding:14px;font:inherit;background:#fff;color:var(--ink);}
.rn-activity-choice{min-height:84px;text-align:left;align-items:flex-start;flex-direction:column;justify-content:center;font-weight:600;}
.rn-activity-choice small{display:block;color:var(--muted);font-weight:600;margin-bottom:3px;}
.rn-activity-choice.selected{border-color:#47c6a4;background:var(--green-soft);color:#075c4b;}
.rn-activity-choice.selected small{color:#0f6b5b;}
.rn-stage-note{background:var(--green-soft);border-left:4px solid #54c9a9;border-radius:0 12px 12px 0;padding:12px 14px;margin:0 28px 18px;color:#0f6b5b;}
.rn-stage-note strong{display:block;}
.rn-stage-note small{display:block;color:#53606f;margin-top:3px;}
.rn-dynamic-question h3{margin-top:0;font-size:1.25rem;line-height:1.35;}
.rn-dynamic-question .option{font-weight:500;min-height:auto;line-height:1.35;}
.rn-dynamic-question .option.selected-option{font-weight:600;}
.rn-dynamic-question textarea{margin-top:12px;min-height:96px;}
.rn-answer-history{margin:0 28px 24px;display:grid;gap:10px;}
.rn-answer-line{border:1px solid var(--line);background:#fbfaf5;border-radius:12px;padding:12px 14px;}
.rn-answer-line strong{display:block;margin-bottom:2px;}
.rn-answer-line small{display:block;color:var(--muted);margin-bottom:4px;}
.rn-result-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 28px 0;}
@media(max-width:760px){.rn-main-head{padding:20px 18px}.rn-inline-input,.rn-tag-row,.rn-field-block,.rn-stage-note,.rn-answer-history,.rn-result-actions{margin-left:18px;margin-right:18px}.rn-activity-choice{min-height:70px}}

/* v5.6.2: UI adjustment from live test feedback */
.rn-interview-actions{
  margin-top:0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.rn-evidence-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:8px 0 10px;
}
.rn-evidence-tag{
  display:inline-flex;
  align-items:center;
  border:1px solid #b9d8d0;
  background:#eefaf6;
  color:#0f6b5b;
  border-radius:999px;
  padding:3px 8px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.01em;
}
.rn-answer-text{margin-top:6px;}
.rn-answer-line .rn-evidence-tags{margin:6px 0 6px;}


/* v5.6.13: condition autocomplete from PIP condition list */
.rn-condition-field{position:relative;flex:1 1 260px;min-width:240px;}
.rn-condition-field .text-input{width:100%;}
.rn-condition-suggestions{
  position:absolute;
  z-index:50;
  left:0;
  right:0;
  top:calc(100% + 6px);
  max-height:260px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  box-shadow:0 16px 34px rgba(15,23,42,.14);
  padding:6px;
}
.rn-condition-suggestion{
  display:block;
  width:100%;
  text-align:left;
  border:0;
  border-radius:9px;
  background:#fff;
  color:var(--ink);
  padding:10px 12px;
  cursor:pointer;
  font:inherit;
  line-height:1.25;
}
.rn-condition-suggestion:hover,.rn-condition-suggestion:focus{background:var(--green-soft);color:var(--green-dark);outline:none;}
.rn-condition-no-match{padding:10px 12px;color:var(--muted);font-size:.94rem;}
@media(max-width:760px){.rn-condition-field{min-width:100%;}.rn-inline-input .ghost{width:100%;}}

/* v5.6.13: PHP cache/reference fix. index.php now points at this autocomplete build. */

/* v5.6.13: condition autocomplete kept; quick-add chips removed. */
.rn-condition-help{margin:8px 28px 0;font-size:14px;}

/* v5.6.13: Activity 7 communication layer added. Existing layout and autocomplete preserved. */

/* v5.6.13: Corrects visible DWP AR1 numbering from Activity 3 onward and keeps claimant-typed functional links as lived evidence. */

/* v5.6.13: Global condition-anchor guard added. The why/when box should name the relevant selected condition once where symptoms are otherwise floating without a diagnosis anchor. */

/* v5.6.13: fixes condition-classifier false positives, especially Essential tremor being misread as TIA/stroke because of the letters "tia" inside "essential". */

/* v5.6.13: strengthens the global condition-anchor guard so a symptom word such as tremor does not count as naming a more specific diagnosis such as essential tremor. */

/* v5.6.15: Adds global long-term condition wording guard, while keeping Activity 8 reading and previous numbering, condition-anchor and timeline-aid guards. */

/* v5.6.25: preserves v5.6.22 stable lock and strengthens Activity 7 stammer Q56/Q57 separation. */


/* v5.6.39: clearer Real Needs AI loading panels for next-question and AR1 generation waits */
/* v5.6.42: no visual change; Activity 11 target/route guard is server/runtime-side. */
.rn-loading-panel{
  margin:18px 28px 20px;
  border:2px solid #35c9a7;
  background:linear-gradient(135deg,#dcf6ed 0%,#fffefa 100%);
  border-radius:18px;
  padding:22px 24px;
  display:flex;
  align-items:center;
  gap:20px;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.rn-loader-wrap{
  width:78px;
  height:78px;
  position:relative;
  flex:0 0 auto;
  display:grid;
  place-items:center;
}
.rn-loader-ring{
  position:absolute;
  inset:0;
  border-radius:50%;
  border:5px solid rgba(35,185,153,.2);
  border-top-color:#159579;
  animation:rnSpin 1s linear infinite;
}
.rn-loader-paper{
  width:42px;
  height:50px;
  border:2px solid #159579;
  border-radius:8px;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  padding:8px;
  box-shadow:0 4px 12px rgba(15,23,42,.1);
}
.rn-loader-paper span{
  height:4px;
  border-radius:999px;
  background:#bceadd;
  display:block;
  animation:rnLinePulse 1.25s ease-in-out infinite;
}
.rn-loader-paper span:nth-child(2){animation-delay:.15s;width:85%;}
.rn-loader-paper span:nth-child(3){animation-delay:.3s;width:65%;}
.rn-loader-tick{
  position:absolute;
  right:2px;
  bottom:2px;
  width:26px;
  height:26px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#159579;
  color:#fff;
  font-weight:900;
  font-size:15px;
  box-shadow:0 4px 10px rgba(15,23,42,.16);
}
.rn-loading-copy strong{
  display:block;
  font-size:1.18rem;
  color:#0f172a;
  margin-bottom:4px;
}
.rn-loading-copy p{
  margin:0 0 8px;
  color:#334155;
}
.rn-loading-copy small{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  background:#c9f1e3;
  color:#075c4b;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  padding:5px 10px;
}
@keyframes rnSpin{to{transform:rotate(360deg)}}
@keyframes rnLinePulse{0%,100%{opacity:.45;transform:scaleX(.82);transform-origin:left center}50%{opacity:1;transform:scaleX(1)}}
@media(max-width:760px){
  .rn-loading-panel{margin-left:18px;margin-right:18px;align-items:flex-start;padding:18px;}
  .rn-loader-wrap{width:62px;height:62px;}
  .rn-loader-paper{width:34px;height:42px;}
}

/* v5.6.44: no visual change; traumatic physical-condition classifier guard is runtime/server-side. */

/* v5.6.55 Activity 9 polish: acronym capitalisation, helper-label duplication guard and majority-of-days wording only when frequency evidence supports it. Keeps v5.6.54 bespoke frequency and condition-aware prompting. */
.ar1-distance-row{grid-template-columns:1fr;}
.ar1-distance-choice small{display:block;margin-top:3px;color:#526173;font-size:.88rem;font-weight:400;}
.ar1-distance-choice strong{display:block;}

.rn-guided-text-prompt{margin:14px 0 6px;color:#415063;font-size:.96rem;line-height:1.45;}
.rn-guided-text-prompt::before{content:"Tip: ";font-weight:700;color:#0f6b5b;}


/* v5.6.87 AR1 review wording guard: CSS filename bumped for cache-busting. */
