/* Semantic RO — standalone styles */
* { box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    margin: 0; background: #f3f4f7; color: #1f2430; line-height: 1.5;
}
.sro-app { max-width: 880px; margin: 0 auto; padding: 28px 20px 60px; }

.sro-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.sro-head h1 { font-size: 22px; margin: 0; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.sro-head h1 span { font-size: 11px; font-weight: 400; color: #667; letter-spacing: .05em; text-transform: uppercase; }

.sro-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.sro-badge.ok  { background: #e4f3e8; color: #1c7a3c; }
.sro-badge.off { background: #fdecec; color: #b32424; }

.sro-tabs { display: flex; gap: 4px; margin: 18px 0 4px; border-bottom: 1px solid #dcdfe4; }
.sro-tab { background: none; border: none; padding: 10px 16px; font-size: 14px; cursor: pointer;
    color: #5a6270; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sro-tab.sel { color: #2a6df4; border-bottom-color: #2a6df4; font-weight: 600; }

.sro-card { background: #fff; border: 1px solid #dcdfe4; border-radius: 8px; padding: 18px 20px; margin: 16px 0; }
.sro-card h2 { margin: 0 0 4px; font-size: 15px; }
.sro-help { margin: 0 0 14px; color: #5a6270; font-size: 13px; }
code { background: #f0f2f5; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

input[type=text], input[type=url], input[type=password], select, textarea {
    font: inherit; padding: 8px 10px; border: 1px solid #cfd3da; border-radius: 6px; width: 100%; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #2a6df4; outline-offset: 0; border-color: #2a6df4; }
textarea { resize: vertical; }

.sro-key-row input { max-width: 480px; }
.sro-inline { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: #5a6270; }
.sro-inline input { width: auto; }

.sro-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sro-mode { display: block; border: 1.5px solid #dcdfe4; border-radius: 8px; padding: 12px 14px; cursor: pointer;
    transition: border-color .12s, background .12s; position: relative; }
.sro-mode:hover { border-color: #8a93a3; }
.sro-mode.sel { border-color: #2a6df4; background: #f5f8ff; }
.sro-mode input { position: absolute; opacity: 0; }
.sro-mode strong { display: block; font-size: 14px; margin-bottom: 3px; }
.sro-mode span { display: block; font-size: 12px; color: #5a6270; line-height: 1.4; }

.sro-field { display: flex; flex-direction: column; gap: 4px; max-width: 320px; margin-top: 16px; }
.sro-field label { font-size: 13px; font-weight: 600; }

.sro-domains { display: grid; gap: 10px; }
.sro-domain { display: flex; gap: 10px; align-items: flex-start; }
.sro-dot { width: 9px; height: 9px; border-radius: 50%; background: #2a6df4; margin-top: 6px; flex: 0 0 auto; }
.sro-domain strong { font-size: 13px; }
.sro-ymyl { font-style: normal; font-size: 10px; font-weight: 700; color: #b32424; background: #fdecec;
    padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.sro-attrs { display: block; font-size: 12px; color: #5a6270; margin-top: 2px; }

.sro-mcp-list { display: grid; gap: 8px; margin-bottom: 12px; }
.sro-mcp-row { display: grid; grid-template-columns: 1fr 1.6fr 1fr auto; gap: 8px; align-items: center; }
.sro-mcp-del { color: #b32424; font-weight: 700; line-height: 1; padding: 8px 12px; }

.sro-usage { display: flex; gap: 32px; margin-bottom: 8px; }
.sro-usage .sro-num { font-size: 22px; font-weight: 700; display: block; }
.sro-usage label { font-size: 12px; color: #5a6270; }

.button {
    font: inherit; padding: 8px 16px; border: 1px solid #cfd3da; background: #fff; border-radius: 6px;
    cursor: pointer; color: #1f2430;
}
.button:hover { background: #f3f4f7; }
.button-primary { background: #2a6df4; border-color: #2a6df4; color: #fff; font-weight: 600; }
.button-primary:hover { background: #205fd8; }
.button:disabled { opacity: .6; cursor: default; }

.sro-actions { margin-top: 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sro-savemsg { font-size: 13px; color: #5a6270; }
.sro-savemsg.ok { color: #1c7a3c; }
.sro-savemsg.err { color: #b32424; }

.sro-out {
    background: #1e2430; color: #d6e2f5; padding: 16px; border-radius: 8px; overflow: auto;
    font-size: 12px; line-height: 1.5; max-height: 480px; margin-top: 16px;
    white-space: pre-wrap; word-break: break-word;
}

@media (max-width: 640px) {
    .sro-modes { grid-template-columns: 1fr; }
    .sro-mcp-row { grid-template-columns: 1fr auto; }
}

/* ---- Workflow (Etapa 2) ---- */
.sro-proj-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sro-proj-row select { max-width: 380px; }
.sro-proj-new { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 8px; margin-top: 12px; align-items: center; }

.sro-steps { display: grid; gap: 12px; }
.sro-step { border-left: 3px solid #cfd3da; }
.sro-step.done { border-left-color: #1c7a3c; }
.sro-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sro-step-status { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
    border-radius: 50%; background: #eef0f3; color: #8a93a3; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.sro-step.done .sro-step-status { background: #e4f3e8; color: #1c7a3c; }
.sro-step-head strong { font-size: 14px; }
.sro-opt { font-style: normal; font-size: 10px; font-weight: 600; color: #8a6d1c; background: #fff6e5; padding: 1px 6px; border-radius: 4px; }

.sro-step-flabel { display: block; font-size: 12px; font-weight: 600; margin: 8px 0 4px; color: #5a6270; }
.sro-step-input { margin-bottom: 4px; }
.sro-step-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.sro-step-msg { font-size: 12px; color: #5a6270; }
.sro-step-msg.ok { color: #1c7a3c; }
.sro-step-msg.err { color: #b32424; }
.sro-step-msg.warn { color: #8a6d1c; }
.sro-step-out { margin-top: 12px; }

@media (max-width: 640px) {
    .sro-proj-new { grid-template-columns: 1fr; }
}

/* ---- Tools (Etapa 3) ---- */
.sro-tools { display: grid; gap: 12px; }
.sro-cat-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #8a93a3;
    margin: 18px 0 2px; font-weight: 700; }
.sro-cat-title:first-child { margin-top: 0; }
.sro-tool { border-left: 3px solid #2a6df4; }
.sro-tier { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
    background: #eef2fb; color: #2a6df4; }
.sro-tool-input { margin-bottom: 4px; }

/* ---- Descriere + exemplu pe card tool ---- */
.sro-tool-desc { margin: 4px 0 8px; font-size: 13px; color: #444b57; line-height: 1.5; }
.sro-tool-ex { margin: 0 0 10px; font-size: 12.5px; }
.sro-tool-ex summary { cursor: pointer; color: #2a6df4; font-weight: 600; user-select: none; }
.sro-tool-ex summary:hover { text-decoration: underline; }
.sro-tool-ex p { margin: 6px 0 0; color: #5a6270; background: #f5f8ff; border-left: 2px solid #cfe0ff;
    padding: 8px 10px; border-radius: 0 6px 6px 0; line-height: 1.5; }

/* ---- Ghid ---- */
.sro-guide-intro h2 { font-size: 18px; }
.sro-guide-h { font-size: 15px; border-bottom: 1px solid #eef0f3; padding-bottom: 8px; margin-bottom: 12px; }
.sro-guide-item { padding: 12px 0; border-bottom: 1px solid #f2f3f5; }
.sro-guide-item:last-child { border-bottom: none; padding-bottom: 0; }
.sro-guide-item strong { font-size: 14px; }
.sro-guide-item > p { margin: 6px 0 0; font-size: 13px; color: #444b57; line-height: 1.55; }
.sro-guide-ex { background: #f5f8ff; border-left: 2px solid #cfe0ff; padding: 8px 10px;
    border-radius: 0 6px 6px 0; font-size: 12.5px !important; color: #5a6270 !important; }
.sro-guide-ex span { font-weight: 700; color: #2a6df4; }
