/* Cold Kit 760x520 Split Glass Account & Login Window (Shared UI/account_ui.cpp) */
#nanohana-screen-viewer {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1042px;
  margin: 0 auto 14px;
  padding: 10px 16px;
  border: 1px solid rgba(174, 143, 224, 0.28);
  border-radius: 999px;
  background: rgba(14, 14, 19, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #f5f7fc;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.screen-viewer-label {
  color: #d6b3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.screen-viewer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.screen-viewer-tab {
  height: 32px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #aab4c3;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.screen-viewer-tab:hover {
  border-color: rgba(174, 143, 224, 0.45);
  background: rgba(158, 97, 245, 0.14);
  color: #f5f7fc;
}

.screen-viewer-tab.is-active {
  border-color: #b98aff;
  background: linear-gradient(180deg, #a96fff 0%, #7d3fe0 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(125, 63, 224, 0.42);
}

#nanohana-account-stage {
  box-sizing: border-box;
  max-width: 1042px;
  margin: 0 auto;
  padding: 36px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(158, 97, 245, 0.24), transparent 54%),
    linear-gradient(180deg, rgba(8, 8, 12, 0.52), rgba(8, 8, 12, 0.80)),
    url("/demos/shared/hwnd-background.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f5f7fc;
}

.ck-window {
  box-sizing: border-box;
  width: 760px;
  max-width: 100%;
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  border-radius: 26px;
  background: rgba(11, 11, 14, 0.84);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 22px 60px rgba(0, 0, 0, 0.62);
  overflow: hidden;
}

.ck-window-login {
  grid-template-columns: 304px minmax(0, 1fr);
}

.ck-window-overview {
  grid-template-columns: 200px minmax(0, 1fr);
}

/* Brand Mark & Row */
.ck-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ck-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, #8a4ee8 0%, #5e2bb0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(110, 55, 210, 0.42);
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  flex-shrink: 0;
}

.ck-brand-row.is-compact .ck-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 17px;
}

.ck-mark-hero {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  font-size: 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 12px 32px rgba(110, 55, 210, 0.55);
  position: relative;
  z-index: 2;
}

.ck-mark-lg {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 22px;
}

.ck-brand-word {
  color: #f5f7fc;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ck-brand-row.is-compact .ck-brand-word {
  font-size: 16px;
}

.ck-brand-dot {
  color: #d6b3ff;
}

.ck-brand-kicker {
  color: #969eae;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-top: 3px;
}

/* Login Left Pane */
.ck-login-left {
  box-sizing: border-box;
  position: relative;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ck-login-left::after,
.ck-overview-rail::after {
  content: "";
  position: absolute;
  right: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(174, 143, 224, 0.34) 25%, rgba(174, 143, 224, 0.34) 75%, transparent 100%);
}

.ck-emblem-stage {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ck-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ck-ring-outer {
  width: 186px;
  height: 186px;
  border: 1px solid rgba(158, 97, 245, 0.28);
}

.ck-ring-inner {
  width: 142px;
  height: 142px;
  border: 1px solid rgba(158, 97, 245, 0.15);
}

.ck-left-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-left-headline {
  margin: 0;
  color: #f5f7fc;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ck-left-subline {
  margin: 0;
  color: #aab4c3;
  font-size: 12px;
}

.ck-left-foot {
  margin-top: 8px;
  color: #969eae;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

/* Chips */
.ck-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #aab4c3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ck-chip.is-good {
  background: rgba(126, 226, 184, 0.11);
  border-color: rgba(126, 226, 184, 0.36);
  color: #7ee2b8;
}

.ck-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #969eae;
}

.ck-chip-dot.is-good {
  background: #7ee2b8;
  box-shadow: 0 0 8px #7ee2b8;
}

/* Login Right Form Pane */
.ck-login-right {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ck-form-body {
  padding: 22px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ck-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ck-eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ck-eyebrow.is-soft {
  color: #d6b3ff;
}

.ck-eyebrow.is-mute {
  color: #969eae;
}

.ck-wbtns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ck-wbtn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.035);
  color: #aab4c3;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ck-wbtn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.ck-wbtn.is-close:hover {
  background: rgba(190, 60, 80, 0.38);
  color: #ffffff;
}

.ck-title {
  margin: 0;
  color: #f5f7fc;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ck-intro {
  margin: -4px 0 2px;
  color: #aab4c3;
  font-size: 12px;
  line-height: 1.55;
}

.ck-saved-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.ck-saved-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #7d3fe0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.ck-saved-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.ck-saved-name {
  color: #f5f7fc;
  font-size: 13px;
  font-weight: 600;
}

.ck-banner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(120, 35, 55, 0.32);
  border: 1px solid rgba(242, 169, 184, 0.36);
  color: #ffd9e0;
  font-size: 12px;
}

.ck-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ck-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ck-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ck-label {
  color: #f5f7fc;
  font-size: 12px;
  font-weight: 700;
}

.ck-label-hint {
  color: #969eae;
  font-size: 10px;
  font-weight: 700;
}

.ck-input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.038);
  color: #f5f7fc;
  font-size: 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.ck-input:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ck-input:focus {
  outline: none;
  border-color: rgba(158, 97, 245, 0.72);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(158, 97, 245, 0.20);
}

.ck-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ck-input-pass {
  padding-right: 64px;
}

.ck-eye-btn {
  position: absolute;
  right: 10px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d6b3ff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ck-eye-btn:hover {
  color: #ffffff;
}

.ck-primary-btn {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  border-radius: 23px;
  border: 1px solid #b98aff;
  background: linear-gradient(180deg, #a96fff 0%, #7d3fe0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 10px 26px rgba(120, 60, 220, 0.42);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.ck-primary-btn:hover {
  filter: brightness(1.08);
}

.ck-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ck-text-btn {
  border: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: transparent;
  color: #d6b3ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ck-text-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.ck-text-btn.is-dim {
  color: #aab4c3;
}

.ck-login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.ck-build-id {
  color: #969eae;
  font-size: 11px;
  font-weight: 700;
  font-family: Consolas, monospace;
}

/* Overview View (account_ui.cpp paint_overview) */
.ck-overview-rail {
  box-sizing: border-box;
  position: relative;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 0% 80%, rgba(158, 97, 245, 0.12), transparent 65%);
}

.ck-hrule {
  height: 1px;
  margin: 16px 0 14px;
  background: linear-gradient(90deg, transparent 0%, rgba(174, 143, 224, 0.34) 25%, rgba(174, 143, 224, 0.34) 75%, transparent 100%);
}

.ck-rail-section {
  margin-bottom: 10px;
}

.ck-rail-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(158, 97, 245, 0.30) 0%, rgba(158, 97, 245, 0.08) 100%);
  border: 1px solid rgba(158, 97, 245, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #f5f7fc;
  font-size: 13px;
  font-weight: 600;
}

.ck-grid-icon {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 2px;
}

.ck-grid-icon i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #d6b3ff;
}

.ck-rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-rail-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.ck-rail-user {
  color: #f5f7fc;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ck-rail-sub {
  color: #969eae;
  font-size: 10.5px;
  font-weight: 700;
}

.ck-rail-keys {
  text-align: center;
  color: #969eae;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ck-overview-main {
  box-sizing: border-box;
  padding: 22px 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ck-ws-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ck-ws-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}

.ck-ws-name {
  color: #f5f7fc;
  font-size: 15px;
  font-weight: 700;
}

.ck-ws-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ck-status-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ck-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ck-status-title {
  color: #f5f7fc;
  font-size: 16px;
  font-weight: 700;
}

.ck-status-detail {
  margin: 0;
  color: #aab4c3;
  font-size: 12px;
}

.ck-seg-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.ck-seg {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
}

.ck-seg.is-filled {
  background: #9e61f5;
  box-shadow: 0 0 10px rgba(158, 97, 245, 0.45);
}

.ck-seg-caption {
  color: #969eae;
  font-size: 10.5px;
  font-weight: 700;
}

.ck-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.ck-mode-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.035);
  color: #f5f7fc;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.ck-mode-card:hover {
  background: rgba(255, 255, 255, 0.065);
}

.ck-mode-card.is-active {
  background: rgba(158, 97, 245, 0.15);
  border-color: rgba(158, 97, 245, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ck-mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.ck-mode-tag {
  color: #d6b3ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ck-mode-desc {
  color: #969eae;
  font-size: 10.5px;
  line-height: 1.45;
}

.ck-overview-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ck-kit-foot {
  text-align: center;
  color: #969eae;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

html.nanohana-embedded-preview body {
  padding: 10px 12px 14px;
}

html.nanohana-embedded-preview .preview-toolbar,
html.nanohana-embedded-preview .preview-notice,
html.nanohana-embedded-preview .preview-banner {
  display: none;
}

html.nanohana-embedded-preview #nanohana-screen-viewer {
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  #nanohana-screen-viewer {
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
  }
  .ck-window-login,
  .ck-window-overview {
    grid-template-columns: 1fr;
  }
  .ck-login-left::after,
  .ck-overview-rail::after {
    display: none;
  }
  .ck-mode-grid {
    grid-template-columns: 1fr;
  }
}
