/* Copyright (c) A|iens. All rights reserved. */

/* [HEADER]
 * Module: Cloud.CosmosRecovery styles
 * Version: 1.0.0
 * Author: A'nil Cyborg
 * Author URI: https://aliens.inc
 * Requires: Shared Aliens theme, resource workspace, panels and PremiumSelect.
 * Description: Exact retained-point recovery, readable proposals and preserved drafts.
 * Responsibilities: Responsive scope selection, light/dark readability and visible focus.
 * Dependencies: Shared panel, border, text, muted and primary theme tokens.
 * Integration Notes: Scoped styles only; no global navigation or shell overrides.
 */

/* [SECTION] Workspace and retained evidence */
.cr-section,.cr-form,.cr-review,.cr-inspect{min-width:0;max-width:100%;color:var(--text)}
.cr-section{display:grid;gap:16px}
.cr-section h3,.cr-review h3,.cr-inspect h3{overflow-wrap:anywhere;line-height:1.5}
.cr-notice{padding:12px 14px;margin:0 0 14px;border-inline-start:3px solid var(--primary);border-radius:0 12px 12px 0;background:var(--panel-soft);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.cr-note{color:var(--muted);font-size:12px;line-height:1.7;margin:9px 0;overflow-wrap:anywhere}
.cr-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:12px 0}
.cr-actions .btn,.cr-dialog .dialog-foot .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.cr-action{display:grid;gap:6px;align-content:start;justify-items:start;min-width:0;max-width:28rem}
.cr-disabled-reason{font-size:11px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.cr-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:10px;margin:12px 0}
.cr-facts>div{min-width:0;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--panel-soft);box-shadow:inset 0 1px 2px rgba(20,30,70,.035)}
.cr-facts dt{font-size:11px;color:var(--muted);line-height:1.6;margin-bottom:6px}
.cr-facts dd{margin:0;font-size:12px;font-weight:650;line-height:1.65;overflow-wrap:anywhere}
.cr-points,.cr-records{display:grid;gap:14px}
.cr-point,.cr-record{padding:16px;border:1px solid var(--border);border-radius:18px;background:var(--panel);min-width:0;box-shadow:var(--shadow)}
.cr-point h3,.cr-record h3{margin:0;font-size:14px}
.cr-state{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0;padding:9px 12px;border:1px solid var(--border);border-radius:12px;background:var(--panel-soft);font-size:12px;line-height:1.6}
.cr-state span{color:var(--muted);overflow-wrap:anywhere}
.cr-link{color:var(--primary-strong);font-size:12px;font-weight:650;line-height:1.6;overflow-wrap:anywhere;text-underline-offset:3px}
.cr-section details,.cr-review details,.cr-inspect details{min-width:0;margin-top:12px}
.cr-section summary,.cr-review summary,.cr-inspect summary{cursor:pointer;font-size:12px;font-weight:650;line-height:1.65;padding:8px 0;overflow-wrap:anywhere}
.cr-json{max-height:420px;max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--panel-soft);font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}

/* [SECTION] Exact selection and reviewed authoring */
.cr-form{display:grid;gap:16px}
.cr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.cr-field{display:grid;gap:7px;min-width:0;align-content:start}
.cr-field label{font-size:12px;font-weight:650;line-height:1.6}
.cr-field input,.cr-field textarea,.cr-field select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:12px;padding:11px 12px;background:var(--panel);color:var(--text);font:inherit;font-size:13px;line-height:1.5}
.cr-field textarea{resize:vertical;min-height:86px}
.cr-field input[readonly]{background:var(--panel-soft)}
.cr-field .cr-note{margin:0}
.cr-wide{grid-column:1/-1}
.cr-check{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.7;margin:8px 0}
.cr-check input{flex-shrink:0;margin-top:5px}
.cr-selection{min-width:0;border:1px solid var(--border);border-radius:14px;padding:14px;background:var(--panel-soft)}
.cr-selection h3{margin:0 0 8px;font-size:13px}
.cr-selection ul{margin:7px 0;padding-inline-start:20px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.cr-config-list{display:grid;gap:10px;margin:12px 0}
.cr-config-list>div{border:1px solid var(--border);border-radius:12px;padding:12px;min-width:0;background:var(--panel-soft)}
.cr-config-list h4{font-size:12px;line-height:1.6;margin:0 0 7px;overflow-wrap:anywhere}
.cr-config-list p{font-size:12px;line-height:1.6;margin:5px 0;overflow-wrap:anywhere}
.cr-error{color:var(--danger,#b42318);font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.cr-error:empty{display:none}
.cr-dialog .dialog-body{min-width:0}
.cr-dialog .dialog-foot{flex-wrap:wrap;flex-shrink:0}
.cr-section .table-wrap,.cr-review .table-wrap,.cr-inspect .table-wrap{max-width:100%;overflow-x:auto}
.cr-section .data-table td,.cr-review .data-table td,.cr-inspect .data-table td{white-space:normal;overflow-wrap:anywhere}
.cr-review .data-table{min-width:0}
.cr-section button:focus-visible,.cr-section a:focus-visible,.cr-section summary:focus-visible,.cr-dialog button:focus-visible,.cr-dialog input:focus-visible,.cr-dialog textarea:focus-visible,.cr-dialog select:focus-visible,.cr-dialog summary:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
body[data-theme="light"] .cr-field{color-scheme:light}
body[data-theme="dark"] .cr-field{color-scheme:dark}
.cr-fields [hidden],.cr-form [hidden]{display:none!important}

@media(max-width:640px){
  .cr-fields,.cr-facts{grid-template-columns:minmax(0,1fr)}
  .cr-point,.cr-record{padding:12px}
  .cr-actions{align-items:stretch}
  .cr-actions>.btn{flex:1 1 180px}
  .cr-state{align-items:flex-start;flex-direction:column}
  .cr-dialog .dialog-foot>.btn{flex:1 1 160px}
}

/* [FOOTER] Preserve shared material depth and theme behavior. Provider backup discovery and execution remain separate from local recovery. */
