/* Storage Lab: the lab's state (the VPC's two AZs, the web servers, the EFS
   file system and its mount targets, the snapshots and the AMI) beside the
   terminals. Shared parts are in ../iam.css. */

:root { --ec2: #ed7100; --st: #3f8624; --sgc: #dd344c; --ok: #1d8102; --no: #d13212; --az: #0972d3; }

.sv-fig { justify-content: flex-start; overflow: auto; }
@media (min-width: 861px) { .sv-side .sv-body { grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); } }

[data-sec="intro"] { --sec: #334155; }
[data-sec="rebuild"] { --sec: #6b21a8; }
[data-sec="efs"] { --sec: #15803d; }
[data-sec="snap"] { --sec: #0f766e; }
[data-sec="ami"] { --sec: #c2410c; }
[data-sec="clean"] { --sec: #475569; }

.term.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.term .pr.pi { color: #f2b705; }
.tcap { display: block; font-size: 12.5px; font-weight: 600; color: var(--sv-ink2); margin: 0 0 -6px; }

.pair { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.pair-a { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 1700px) { .pair { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.fresh { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 6px; }

/* The lab's state. */
.lab { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.crumbs small { color: var(--sv-ink2); margin-right: 4px; }
.crumbs span { background: #fff; border: 1px solid var(--sv-line); border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.crumbs .who { font-family: var(--mono); color: var(--user); border-color: var(--user); }
.crumbs i { color: var(--sv-ink2); font-style: normal; }

.vpc, .az { position: relative; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lab { gap: 8px !important; }
.subn { gap: 4px !important; padding: 4px !important; }
.inst { padding: 4px 8px !important; }
.vpc { border: 2px solid #8c4fff; background: #fbf9ff; padding: 26px 10px 10px; }
.az { border: 2px dashed var(--az); padding: 24px 8px 8px; }
.zl { position: absolute; top: 5px; left: 10px; font-size: 12.5px; font-weight: 700; color: #6b2fd6; }
.az > .zl { color: var(--az); }
.nat { font-size: 12.5px; color: #545b64; background: #fff; border: 1px solid var(--sv-line); border-radius: 6px; padding: 3px 8px; align-self: flex-start; }
.nat.off { color: var(--no); text-decoration: line-through; }
.azs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.subn { display: flex; flex-direction: column; gap: 6px; background: #f3f7fd; border-radius: 8px; padding: 6px; }
.subn > small { font: 12px var(--mono); color: var(--sv-ink2); }

.inst { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff7ef; border: 2px solid var(--ec2); border-radius: 8px; padding: 6px 8px; }
.inst img, .it img, .efs img { width: 28px; height: 28px; }
.inst span { display: flex; flex-direction: column; }
.inst b { font: 700 13px var(--mono); } .inst code { font: 12px var(--mono); color: var(--sv-ink2); }
.inst.none { background: #fff; border-style: dashed; color: var(--sv-ink2); justify-content: center; min-height: 44px; }
.inst.test { border-style: dashed; }
.mnt { font: 700 12px var(--mono) !important; color: var(--st); background: #eef6ea; border: 1px solid #b7d7a8; border-radius: 6px; padding: 1px 6px; display: inline-block !important; margin-left: auto; }
.from { font-size: 12px; color: #c2410c; display: inline-block !important; margin-left: auto; }
.mt { background: #fff; border: 2px solid var(--st); border-radius: 8px; padding: 4px 8px; display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; }
.mt small { font-weight: 600; } .mt code { font: 12px var(--mono); }

.efs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f6fbf3; border: 2px solid var(--st); border-radius: 10px; padding: 8px 10px; }
.efs span { display: flex; flex-direction: column; } .efs b { font: 700 14px var(--mono); } .efs code { font: 12px var(--mono); color: var(--sv-ink2); }
.efs.none { background: #fff; border-style: dashed; }
.efs.none i { color: var(--sv-ink2); font-size: 13px; }
.sgc { font: 12px var(--mono); color: var(--sgc); background: #fff6f7; border: 1px solid var(--sgc); border-radius: 6px; padding: 2px 6px; margin-left: auto; }

.side { display: flex; flex-direction: column; gap: 6px; }
.side > small { font-size: 12.5px; font-weight: 700; color: var(--sv-ink2); }
.it { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--sv-line); border-left: 4px solid #0f766e; border-radius: 8px; padding: 5px 10px; }
.it span { display: flex; flex-direction: column; flex: 1; } .it b { font: 700 13px var(--mono); } .it code { font: 12px var(--mono); color: var(--sv-ink2); }
.it small { font: 600 12px var(--mono); color: var(--sv-ink2); }

@media (max-width: 860px) { .azs { grid-template-columns: 1fr; } }
