.ra-tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.ra-tool-layout > div { min-width: 0; }
.ra-tool-form .field { margin-top: 18px; }
.ra-tool-form .form-grid .field { margin-top: 0; }
.ra-tool-form > .form-grid { margin-top: 18px; }
.ra-tool-form textarea { min-height: 110px; }
.ra-tool-form select { max-width: 100%; }
.ra-tool-status { font-size: 14px; line-height: 1.55; margin: 16px 0 0; color: var(--text-secondary, #505650); }
.ra-tool-import { margin-top: 24px; }
.ra-tool-import .form-actions { flex-wrap: wrap; }
.ra-tool-profile { position: sticky; top: 88px; }
.ra-tool-profile h2 { font-size: 16px; margin-bottom: 20px; }
.ra-tool-profile dl { margin: 0 0 24px; font-size: 14px; line-height: 1.5; }
.ra-tool-profile dt { color: #636a62; margin-top: 18px; }
.ra-tool-profile dd { margin: 3px 0 0; color: #252c25; }
.ra-tool-options { border-top: 1px solid #e1e4dc; margin-top: 24px; padding-top: 20px; }
.ra-tool-options > summary, .ra-tool-hazard > summary { cursor: pointer; font-weight: 500; font-size: 15px; line-height: 1.5; }
.ra-tool-hazard { border-top: 1px solid #e1e4dc; padding: 18px 0; }
.ra-tool-hazard[open] > summary { margin-bottom: 18px; }
.ra-tool-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 20px 0; }
.ra-tool-controls h3, .ra-tool-editor h3 { font-size: 15px; margin: 20px 0 12px; }
.ra-tool-editor .field { margin-top: 16px; }
.ra-tool-editor textarea { min-height: 90px; }
.ra-tool-editor .form-actions { position: sticky; bottom: 0; background: #fff; padding: 14px 0; border-top: 1px solid #e1e4dc; }
.button[aria-disabled="true"] { opacity: .5; cursor: default; }
@media (max-width: 1100px) { .ra-tool-layout { grid-template-columns: minmax(0, 1fr); } .ra-tool-profile { position: static; } .ra-tool-profile dl { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; } .ra-tool-profile dt, .ra-tool-profile dd { margin: 0; } }
@media (max-width: 640px) { .ra-tool-controls { grid-template-columns: 1fr; gap: 0; } .ra-tool-profile dl { grid-template-columns: 1fr; gap: 5px; } .ra-tool-profile dd { margin-bottom: 12px; } }
@media print { .ra-tool-options { display: none; } .ra-tool-hazard { break-inside: avoid; } }
.ra-workspace { width: min(100%, 820px); }
.ra-compose, .ra-ready, .ra-progress { background: #fff; border: 1px solid #d7dcd8; border-radius: 10px; padding: clamp(18px,3vw,30px); }
.ra-compose label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 18px; }
.ra-compose textarea { display: block; width: 100%; min-height: 140px; padding: 14px; border: 1px solid #b9c5bc; border-radius: 5px; font: inherit; font-size: 16px; line-height: 1.55; resize: vertical; }
.ra-compose-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.ra-outcome:not(:empty), .ra-settings { margin-top: 20px; }
.ra-progress, .ra-ready { display: flex; align-items: center; gap: 20px; }
.ra-ready { justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.ra-ready h2 { margin: 0; font-size: 20px; }
.ra-ready p { margin: 5px 0 0; color: #536058; }
.ra-page { display: grid; align-content: center; gap: 4px; width: 34px; height: 43px; padding: 7px; border: 1.5px solid #5c7365; border-radius: 3px; background: #f4f7f3; }
.ra-page i { height: 2px; background: #64856e; transform-origin: left; animation: ra-line 1.8s ease-in-out infinite; }
.ra-page i:nth-child(2) { animation-delay: .18s; } .ra-page i:nth-child(3) { width: 65%; animation-delay: .36s; }
@keyframes ra-line { 0%,100% { transform: scaleX(.18); opacity: .4; } 50%,75% { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ra-page i { animation: none; } }
.ra-error { color: #913d22; }
.ra-settings .field { margin: 16px 0; } .ra-settings select { display: block; margin-top: 6px; width: 100%; }
@media (max-width: 540px) { .ra-ready .button, .ra-compose-actions button { width: 100%; justify-content: center; } }
.ra-rating-link { display: block; margin: 8px 0 16px; }
.ra-format-controls { margin-bottom: 24px; }
.ra-format-row, .ra-plan-line, .ra-support-row, .ra-format-item { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ra-format-row { align-items: end; }
.ra-format-row > div:first-child { flex: 1; min-width: 170px; }
.ra-format-row label, .ra-support-row label, .ra-plan-line label { font-size: 14px; line-height: 1.45; margin-bottom: 4px; }
.ra-format-row select, .ra-support-row select { display: block; width: 100%; }
.ra-support { margin-top: 14px; font-size: 14px; }
.ra-support summary { cursor: pointer; }
.ra-support-row { margin: 10px 0; align-items: end; }
.ra-support-row input, .ra-library input { max-width: 100%; }
.ra-plan-line { margin-top: 15px; border-top: 1px solid #d7dcd8; padding-top: 10px; }
.ra-plan-line .ra-extra { width: 100%; } .ra-extra[hidden] { display: none; }
.ra-library .field, .ra-plan-dialog .form-actions { margin: 15px 0; }
.ra-format-item { border-top: 1px solid #d7dcd8; padding: 14px 0; } .ra-format-item p { margin: 0; }
.ra-format-item strong { width: 100%; } .ra-format-item .file-pick { width: 100%; }
.ra-compose[hidden] { display: none; }
.ra-format-row select, .ra-support-row select, .ra-library select { min-height: 42px; padding: 7px 10px; border: 1px solid #b9c5bc; border-radius: 5px; background-color: #fff; color: #17291f; font: inherit; font-size: 16px; }
.ra-format-row > div:first-child { max-width: 350px; }
