/* zCLOUD demo console. Follows the aicloud-fe "white skin": gold brand colour, square corners,
   1px borders instead of shadows, 260px light sidebar. */
:root {
  --brand: #d8bb44; --brand-hover: #e0c85e; --brand-active: #7a6a27; --brand-soft: #faf5df;
  --text: #161616; --text-2: #525252; --text-3: #999; --border: #e4e7ed; --side: #f7f7f7;
  --th: #ebedf0; --link: #3a7dba; --ok: #39bca6; --warn: #e2a93b; --bad: #b73b3b;
  --el-color-primary: var(--brand); --el-color-primary-light-3: var(--brand-hover);
  --el-color-primary-light-5: var(--brand-hover); --el-color-primary-light-7: #efe2a3;
  --el-color-primary-light-8: #f4ebc0; --el-color-primary-light-9: var(--brand-soft);
  --el-color-primary-dark-2: var(--brand-active); --el-border-radius-base: 0px;
  --el-border-radius-small: 0px; --el-border-color: #e4e4de; --el-font-size-base: 14px;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { font: 14px/1.5 "Suisse Intl", "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text); background: #fff; }
a { color: var(--link); text-decoration: none; } a:hover { color: #00569f; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
pre { background: #f5f7fa; border: 1px solid var(--border); padding: 12px 14px; overflow-x: auto; margin: 8px 0 16px; }

.shell { display: flex; height: 100%; }
.side { width: 260px; flex: none; background: var(--side); display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.logo { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.logo i { width: 28px; height: 28px; background: #2fbf8f; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 15px; font-weight: 700; border-radius: 6px; }
.logo small { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); }
.nav { flex: 1; overflow-y: auto; padding: 4px 0 12px; }
.nav-group > button { all: unset; box-sizing: border-box; width: 100%; height: 48px; padding: 0 16px 0 20px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.nav-group > button:hover { background: #e6e8eb; }
.nav-group > button .chev { margin-left: auto; transition: transform .15s; color: var(--text-2); font-size: 12px; }
.nav-group.open > button .chev { transform: rotate(90deg); }
.nav-group .ico { width: 18px; text-align: center; color: var(--text-2); }
.nav-items { display: none; } .nav-group.open .nav-items { display: block; }
.nav-items a { display: flex; align-items: center; height: 40px; padding-left: 50px; color: var(--text); }
.nav-items a:hover { background: var(--brand-active); color: #fff; }
.nav-items a.router-link-active { background: var(--brand); color: #fff; }
.side-foot { border-top: 1px solid var(--border); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #c8ccd2; color: #fff; display: grid; place-items: center; font-weight: 600; text-transform: uppercase; }
.side-foot .who { flex: 1; min-width: 0; } .side-foot .who b { display: block; font-weight: 500; } .side-foot .who span { font-size: 12px; color: var(--text-2); }

.main { flex: 1; min-width: 0; overflow-y: auto; }
.page { padding: 16px 24px 40px; max-width: 1500px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 40px; }
.page-head h1 { font-size: 24px; line-height: 40px; font-weight: 500; margin: 0; flex: 1; }
.page-head p { margin: 0; color: var(--text-2); }
h2 { font-size: 18px; font-weight: 500; margin: 24px 0 12px; }
.sub { color: var(--text-2); margin: -8px 0 16px; }
.muted { color: var(--text-3); } .right { text-align: right; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 24px; }
.kpi { border: 1px solid var(--border); padding: 12px 14px; } .kpi span { font-size: 12px; color: var(--text-2); } .kpi b { display: block; font-size: 22px; font-weight: 500; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 16px; font-weight: 500; } .card .by { color: var(--text-2); font-size: 12px; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.price div { background: #fafafa; padding: 8px 10px; } .price b { display: block; font-weight: 500; } .price span { font-size: 12px; color: var(--text-2); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; }
.empty { text-align: center; padding: 72px 0; color: var(--text-2); } .empty b { display: block; font-size: 18px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.note { border: 1px solid #efe2a3; background: var(--brand-soft); padding: 10px 14px; margin-bottom: 16px; }

.el-button { height: 40px; padding: 0 20px; border-radius: 0; } .el-button--small { height: 28px; padding: 0 10px; }
.el-button--primary { --el-button-text-color: #fff; --el-button-hover-text-color: #fff; }
.el-table { --el-table-header-bg-color: var(--th); --el-table-header-text-color: var(--text-2); color: var(--text); }
.el-table th.el-table__cell { font-weight: 500; height: 49px; } .el-table td.el-table__cell { height: 60px; }
.el-tag { border-radius: 0; } .el-dialog, .el-drawer, .el-input__wrapper, .el-select__wrapper, .el-textarea__inner { border-radius: 0 !important; }
.el-form-item__label { color: var(--text-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--warn); } .dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); }

.login { height: 100%; display: grid; place-items: center; }
.login form { width: 470px; max-width: calc(100vw - 32px); } .login h1 { font-size: 20px; font-weight: 500; margin: 24px 0 4px; } .login p { color: var(--text-2); margin: 0 0 24px; }
.login .el-button { width: 100%; } .login footer { margin-top: 32px; font-size: 12px; color: var(--text-3); }

.play { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--border); height: calc(100vh - 150px); min-height: 420px; }
.play aside { border-right: 1px solid var(--border); padding: 16px; overflow-y: auto; } .play aside label { display: block; font-size: 12px; color: var(--text-2); margin-top: 12px; }
.chat { display: flex; flex-direction: column; min-width: 0; } .msgs { flex: 1; overflow-y: auto; padding: 16px 20px; }
.msg { margin-bottom: 14px; white-space: pre-wrap; word-break: break-word; } .msg b { display: block; font-size: 12px; color: var(--text-2); font-weight: 500; }
.msg.user div { background: var(--brand-soft); border: 1px solid #efe2a3; padding: 8px 12px; display: inline-block; }
.msg .meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.composer { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 12px; align-items: flex-end; }

.term { background: #16181d; color: #d6dae0; padding: 14px 16px; height: calc(100vh - 230px); min-height: 360px; overflow-y: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.term pre { all: unset; white-space: pre-wrap; word-break: break-word; display: block; } .term .cmd { color: #f5f6f8; font-weight: 600; } .term .ps { color: #78c882; } .term .err { color: #ed6a5e; }
.term .line { display: flex; gap: 8px; } .term input { all: unset; flex: 1; color: #f5f6f8; font: inherit; caret-color: var(--brand); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; } .chips button { all: unset; cursor: pointer; border: 1px solid var(--border); padding: 4px 10px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; } .chips button:hover { background: var(--brand-soft); border-color: #efe2a3; }

.steps { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; } .step { border-top: 1px solid var(--border); padding: 16px 0; }
.step > header { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 500; } .step > header i { width: 26px; height: 26px; display: grid; place-items: center; background: #ebedf0; font-style: normal; font-size: 13px; }
.step.on > header i { background: var(--brand); color: #fff; } .step .body { padding: 16px 0 0 38px; max-width: 640px; }
.opt { border: 1px solid var(--border); padding: 12px 14px; cursor: pointer; margin-bottom: 8px; } .opt.sel { border-color: var(--brand); background: var(--brand-soft); } .opt b { font-weight: 500; } .opt span { display: block; font-size: 12px; color: var(--text-2); }
.summary { border: 1px solid var(--border); padding: 16px; position: sticky; top: 16px; } .summary h3 { margin: 0 0 12px; font-size: 16px; font-weight: 500; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; } .summary dt { color: var(--text-2); } .summary dd { margin: 0; text-align: right; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; border-bottom: 1px solid var(--border); padding-top: 8px; } .bars div { flex: 1; background: var(--brand); min-height: 1px; position: relative; } .bars div:hover { background: var(--brand-active); }
.bar-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 4px; }
@media (max-width: 900px) { .side { width: 200px; } .play, .steps { grid-template-columns: 1fr; height: auto; } .nav-items a { padding-left: 36px; } }
.el-tag { color: var(--text-2) !important; border: 1px solid var(--border) !important; background: #f4f4f1 !important; height: 24px; padding: 0 10px; }
.el-tag.el-tag--warning { color: #8a6412 !important; background: #fdf7eb !important; border-color: #f0dcae !important; }

.opt .el-tag { display: inline-flex; width: auto; }
.page-head .el-radio-button__inner { border-radius: 0 !important; }

/* --- zettabyte console look: sprite icons, logo, pill tags */
.mi { width: 16px; height: 16px; flex: none; background: url(/menu-icon-black-en.png) no-repeat; background-size: 608px 16px; }
.nav-items a:hover .mi, .nav-items a.router-link-active .mi { background-image: url(/menu-icon-white.png); }
.zlogo { width: 30px; height: 30px; flex: none; border-radius: 8px; background: url(/icons.png) no-repeat -30px -170px; background-size: 400px 200px; }
.zname { width: 63px; height: 13px; background: url(/icons.png) no-repeat -144px -2px; background-size: 400px 200px; transform: scale(1.25); transform-origin: left center; }
.logo { height: 56px; padding-top: 8px; } .logo-sub { padding: 0 16px 10px; font-size: 13px; color: var(--text-2); }
.nav-group > button { font-size: 15px; font-weight: 500; } .nav-group > button .chev { width: 7px; height: 7px; border-right: 1.5px solid #525252; border-bottom: 1.5px solid #525252; transform: rotate(-45deg); margin-right: 4px; }
.nav-group.open > button .chev { transform: rotate(45deg); }
.nav-items a { height: 44px; padding-left: 36px; gap: 12px; font-size: 15px; }
.pill { display: inline-block; padding: 2px 12px; border-radius: 12px; font-size: 13px; line-height: 20px; background: #f4f4f1; color: #525252; white-space: nowrap; }
.pill.ok { background: #ecfbf8; color: #39bca6; } .pill.warn { background: #fdf7eb; color: #c98f1d; } .pill.bad { background: #faecec; color: #b73b3b; } .pill.info { background: #edf5fb; color: #3a7dba; }
.el-tag { border-radius: 12px !important; border: 0 !important; background: #edf5fb !important; color: #3a7dba !important; }
.el-tag.el-tag--warning { background: #fdf7eb !important; color: #c98f1d !important; }
.el-table { --el-table-header-bg-color: #fff; --el-table-border-color: var(--border); font-size: 15px; } .el-table th.el-table__cell { font-size: 15px; height: 56px; } .el-table td.el-table__cell { height: 72px; }
.el-button--default { border-color: var(--brand); color: #b89a22; } .el-button--default:hover { background: var(--brand-soft); border-color: var(--brand-hover); color: #b89a22; }
.el-button { font-size: 15px; } .page-head h1 { font-size: 26px; }
.el-tabs__item { font-size: 15px; } .el-tabs__item.is-active, .el-tabs__item:hover { color: #b89a22; } .el-tabs__active-bar { background: var(--brand); }
.el-link.el-link--primary, .el-link.el-link--danger { margin-right: 14px; }
.hub { display: grid; grid-template-columns: 220px 1fr; gap: 24px; max-width: none; } .filters { border-right: 1px solid var(--border); padding-right: 16px; }
.filters h3 { font-size: 16px; font-weight: 500; margin: 12px 0; } .filters h4 { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; margin: 20px 0 6px; font-weight: 500; }
.filters .el-checkbox { display: flex; height: 30px; margin-right: 0; } .filters .el-checkbox-group { display: block; }
.card.click { cursor: pointer; } .card.click:hover { border-color: var(--brand); }
.crumb { color: var(--text-2); margin-bottom: 4px; }
@media (max-width: 900px) { .hub { grid-template-columns: 1fr; } .filters { border: 0; padding: 0; } }
.el-tag { opacity: 1 !important; transform: none !important; }
.dc { border: 1px solid var(--border); margin-bottom: 16px; } .dc-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fafafa; border-bottom: 1px solid var(--border); font-size: 15px; } .dc-head .muted { flex: 1; }
.xterm-box { height: 62vh; background: #1e1e1e; padding: 8px 6px 8px 10px; } .xterm-box .xterm { height: 100%; }
.xterm-box .xterm-viewport { background: #1e1e1e !important; scrollbar-color: #555 #1e1e1e; }
.ws { padding: 0 12px 10px; } .ws span { display: block; font-size: 12px; color: var(--text-2); margin: 0 4px 4px; } .ws .el-select { width: 100%; }
.acts { display: flex; flex-wrap: wrap; gap: 2px 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .el-form-item { margin-bottom: 14px; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

.tpl-ports { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-port { font-family: ui-monospace, Menlo, Monaco, Consolas, monospace; font-size: 12px; background: #f1f5f9; color: #334155; border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; }
.tpl-desc { color: var(--text-2); font-size: 13px; line-height: 1.45; flex: 1 1 auto; }
