.research-plot-page { min-height: 100vh; background: #f3f6fb; color: #23344a; }
.rp-header { min-height: 66px; padding: 10px clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #e1e8f1; }
.rp-brand img { display: block; width: auto; height: 42px; max-width: 170px; }
.rp-header-actions { display: flex; align-items: center; gap: 18px; color: #60758e; font-size: 14px; }
.rp-back-link { color: #41658a; text-decoration: none; font-weight: 700; }
.rp-shell { width: min(1240px, calc(100% - 36px)); margin: 34px auto; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, .8fr); align-items: start; gap: 22px; }
.rp-card { background: #fff; border: 1px solid #dce6f2; border-radius: 18px; box-shadow: 0 14px 36px rgba(42, 68, 99, .07); }
.rp-main-card { padding: clamp(22px, 4vw, 38px); }
.rp-heading { margin-bottom: 26px; }
.rp-eyebrow { margin: 0 0 8px; color: #527596; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.rp-heading h1 { margin: 0; color: #243b56; font-size: clamp(25px, 3vw, 34px); }
.rp-heading p:last-child { margin: 10px 0 0; color: #71849b; line-height: 1.7; }
.rp-field { display: block; margin: 0 0 20px; color: #344c67; font-size: 14px; font-weight: 700; }
.rp-field > span { display: block; margin-bottom: 8px; }
.rp-field select, .rp-field textarea, .rp-upload-box { width: 100%; border: 1px solid #d6e1ee; border-radius: 10px; background: #fbfcfe; color: #263c55; font: inherit; }
.rp-field select { height: 46px; padding: 0 12px; }
.rp-field textarea { min-height: 132px; padding: 12px; resize: vertical; line-height: 1.65; }
.rp-field textarea::placeholder { color: #9aabbe; }
.rp-upload-box { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: none; min-height: 138px; padding: 20px; border: 1px dashed #d9dee3; border-radius: 6px; background: #fafbfc; color: #8b949e; text-align: center; }
#rpDropZone.rp-upload-box { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; }
.rp-upload-box:hover, .rp-upload-box.is-dragover { border-color: #aab3bc; background: #f6f7f8; }
.rp-upload-box svg { width: 23px; height: 23px; color: #75808b; }
.rp-upload-box strong { color: #65707b; }
.rp-file-list { display: grid; gap: 8px; padding: 0; margin: 10px 0 0; list-style: none; }
.rp-file-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 11px; border: 1px solid #e1e9f2; border-radius: 9px; color: #526a84; font-size: 13px; }
.rp-file-remove { border: 0; background: transparent; color: #ad4c4c; cursor: pointer; font: inherit; }
.rp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 17px; }
.rp-primary-button, .rp-secondary-button { min-height: 42px; padding: 0 18px; border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
.rp-primary-button { border: 1px solid #526f91; background: #526f91; color: #fff; }
.rp-primary-button:disabled { opacity: .55; cursor: wait; }
.rp-secondary-button { border: 1px solid #cad8e7; background: #fff; color: #526f91; }
.rp-actions > span { color: #8495a9; font-size: 13px; }
.rp-plan, .rp-task { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e3eaf2; }
.rp-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.rp-section-title h2, .rp-help-card h2 { margin: 0; color: #2a4059; font-size: 19px; }
.rp-section-title > span { color: #8999ac; font-size: 13px; }
.rp-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 0; }
.rp-plan-grid > div { padding: 11px 12px; border-radius: 9px; background: #f6f8fb; min-width: 0; }
.rp-plan-grid dt { color: #8797aa; font-size: 12px; }
.rp-plan-grid dd { margin: 5px 0 0; color: #344c67; font-weight: 700; overflow-wrap: anywhere; }
.rp-warning, .rp-error { padding: 11px 13px; border-radius: 9px; line-height: 1.6; }
.rp-warning { background: #fff8e8; color: #946b20; }
.rp-error { margin: 18px 0 0; background: #fff1f0; color: #a13e37; }
.rp-task progress { width: 100%; height: 12px; accent-color: #527596; }
.rp-task-result { display: grid; gap: 8px; margin-top: 15px; }
.rp-task-result a { color: #42698c; overflow-wrap: anywhere; }
.rp-result-image { display: block; width: min(100%, 760px); height: auto; border: 1px solid #dfe7ef; border-radius: 10px; }
.rp-help-card { padding: 25px; }
.rp-help-list { display: grid; gap: 18px; padding-left: 20px; margin: 20px 0 24px; color: #566d86; line-height: 1.55; }
.rp-help-list li b, .rp-help-list li span { display: block; }
.rp-help-list li b { margin-bottom: 4px; color: #344c67; }
.rp-help-list li span, .rp-status-box span { font-size: 13px; color: #7a8da3; }
.rp-status-box { display: grid; gap: 7px; padding: 14px; border-radius: 10px; background: #f5f8fc; }
.rp-status-box b { color: #344c67; font-size: 14px; }
.rp-confirm-dialog { width: min(480px, calc(100% - 32px)); padding: 24px; border: 1px solid #dce6f2; border-radius: 16px; box-shadow: 0 18px 60px rgba(30, 49, 72, .22); }
.rp-confirm-dialog::backdrop { background: rgba(25, 40, 58, .4); }
.rp-confirm-dialog h2 { margin: 0 0 10px; }
.rp-confirm-dialog p { color: #647891; line-height: 1.6; }
@media (max-width: 820px) { .rp-shell { grid-template-columns: 1fr; width: min(100% - 24px, 680px); margin: 18px auto; } .rp-header-actions { gap: 10px; font-size: 12px; } }
@media (max-width: 480px) { .rp-main-card, .rp-help-card { padding: 19px; } .rp-plan-grid { grid-template-columns: 1fr; } .rp-section-title { align-items: flex-start; flex-direction: column; } }

/* Match the workspace editor: a sticky two-rail left side and a separate guide/results column. */
.rp-site-header { position: sticky; top: 0; z-index: 30; }
.rp-site-header .rp-brand { text-decoration: none; }
.rp-site-header .rp-brand img { display: block; width: 126px; height: 42px; max-width: 170px; }
.rp-header-actions { gap: 14px; color: #657384; font-size: 13px; }
.rp-header-actions #rpUserName { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-workspace-shell.app-shell.has-context-column { width: 100%; min-height: calc(100vh - 64px); margin: 0; grid-template-columns: 877px minmax(0, 1fr); align-items: stretch; background: #f7f8fa; }
.rp-side-nav.side-nav.has-context-column { position: sticky; top: 64px; height: calc(100vh - 64px); align-self: start; overflow: hidden; }
.rp-nav-column { display: flex; flex-direction: column; height: 100%; overflow-y: auto; scrollbar-width: none; }
.rp-nav-column::-webkit-scrollbar { display: none; }
.rp-nav-column a.nav-item { gap: 12px; }
.rp-nav-column .nav-group-personal { margin-top: auto; }
.rp-context-column { min-height: 0; height: 100%; overflow-y: auto; background: #fbfcfd; }
.rp-service-context { padding: 22px 18px 26px; }
.rp-service-context .side-section-title { margin-bottom: 20px; }
.rp-heading { margin: 0 0 23px; }
.rp-heading h1 { margin: 0 0 9px; color: #283746; font-size: 21px; line-height: 1.35; }
.rp-heading p { margin: 0; color: #7d8b9b; font-size: 12px; line-height: 1.65; }
.rp-context-form { display: grid; gap: 12px; }
.rp-context-form .rp-field { margin: 0; font-size: 12px; }
.rp-context-form .rp-field > span,
.rp-context-form .rp-field > label { display: block; margin-bottom: 6px; }
.rp-context-form select,
.rp-context-form textarea { min-height: 38px; border-color: #dfe3e7; border-radius: 6px; background: #fff; font-size: 12px; }
.rp-context-form select { height: 40px; padding: 0 9px; }
.rp-context-form textarea { min-height: 108px; padding: 9px; line-height: 1.55; }
.rp-context-form .rp-upload-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; font-size: 11px; line-height: 1.45; text-align: center; }
.rp-context-form .rp-file-list { margin-top: 7px; }
.rp-context-form .rp-file-list li { padding: 7px 8px; font-size: 11px; }
.rp-context-form .rp-actions { margin-top: 3px; }
.rp-context-form .rp-primary-button,
.rp-context-form .rp-secondary-button { min-height: 40px; font-size: 12px; }
.rp-main-column { min-width: 0; padding: 36px clamp(24px, 3.2vw, 56px) 54px; background: #f7f8fa; }
.rp-help-card { max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.rp-help-card h2 { margin: 0 0 25px; color: #2a3541; font-size: 18px; }
.rp-help-list { gap: 17px; margin: 0 0 22px; padding-left: 20px; }
.rp-status-box { max-width: 620px; }
.rp-state-card { margin: 24px 0 0; padding: 22px 24px; border-radius: 10px; box-shadow: 0 6px 20px rgba(42, 68, 99, .05); }
.rp-main-error { max-width: 700px; }
.rp-my-tasks { max-width: 900px; }
.rp-my-tasks .rp-section-title { align-items: center; }
.rp-my-tasks .rp-section-title .rp-secondary-button { min-height: 34px; padding: 0 12px; font-size: 12px; }
.rp-my-task-list { display: grid; gap: 8px; }
.rp-my-task-list > p { margin: 0; color: #8495a9; font-size: 13px; }
.rp-my-task-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 11px 12px; border: 1px solid #e1e8f0; border-radius: 8px; background: #fff; color: #344c67; text-align: left; cursor: pointer; }
.rp-my-task-item:hover, .rp-my-task-item:focus-visible { border-color: #aebfd1; outline: none; }
.rp-my-task-copy { display: grid; min-width: 0; gap: 4px; }
.rp-my-task-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.rp-my-task-copy small { color: #8b9bad; font-size: 11px; }
.rp-my-task-status { flex: none; color: #597593; font-size: 12px; }

@media (max-width: 1100px) {
  .rp-workspace-shell.app-shell.has-context-column { grid-template-columns: 755px minmax(0, 1fr); }
  .rp-side-nav.side-nav.has-context-column { grid-template-columns: minmax(0, 204px) minmax(0, 551px); }
}

@media (max-width: 860px) {
  .rp-side-nav.side-nav.has-context-column {
    position: static;
    height: auto;
    overflow: visible;
    grid-template-columns: minmax(0, 1.25fr) minmax(150px, .85fr);
  }
  .rp-nav-column,
  .rp-context-column { height: auto; min-height: 0; overflow: visible; }
}
