:root {
  --bg: #1b1b1b;
  --card: #232323;
  --line: #333;
  --text: #e6e6e6;
  --muted: #8c8c8c;
  --gold: #c9a24b;
  --gold-dim: #8f7433;
  --ok: #7bc67e;
  --err: #e06c6c;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

.wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 20px;
  overflow: auto;
}

.app {
  padding: 16px 20px 12px 16px;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 0;
  border-bottom: 0;
  text-align: left;
}

.brand-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
}

.brand-badge {
  display: block;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  flex-shrink: 0;
}

.brand-text {
  display: block;
  text-align: left;
}

.brand-title {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  color: #f2f2f2;
}

.brand-subtitle {
  display: block;
  margin: 2px 0 0;
  padding: 0;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  color: var(--muted);
}

.info-btn {
  position: static;
  flex-shrink: 0;
  margin-left: 10px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 18px;
  cursor: pointer;
}

.info-btn:hover {
  border-color: var(--gold);
}

#main-content {
  display: block;
}

.info-page {
  display: none;
  padding-bottom: 12px;
}

.info-page.open {
  display: block;
}

.info-content {
  margin: 0;
}

.info-item {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.info-item b {
  color: var(--text);
  font-size: 12px;
}

.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin: 0 0 12px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.hint {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

sp-picker {
  width: 100%;
  margin: 0;
}

.cta {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 12px;
  text-align: center;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
}

.cta.is-disabled {
  opacity: 0.4;
  cursor: default;
}

.action-list {
  margin: 0;
}

.action-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 6px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.action-btn:last-child {
  margin-bottom: 0;
}

.action-btn:hover {
  border-color: var(--gold-dim);
  background: #2a2620;
}

.action-step {
  display: inline-block;
  width: 20px;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted);
  flex-shrink: 0;
}

.action-name {
  flex: 1;
  margin-left: 6px;
}

.action-tag {
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 9px;
}

.status-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 4px 0 0;
  padding: 10px 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--muted);
  margin-right: 8px;
  flex-shrink: 0;
}

.status-dot.success {
  background: var(--ok);
}

.status-dot.error {
  background: var(--err);
}

.status {
  flex: 1;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.status.error {
  color: var(--err);
}

.link {
  font-size: 11px;
  color: var(--gold);
  cursor: pointer;
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.footer-version {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: right;
}

.border-divider {
  height: 1px;
  margin: 10px 0;
  background: var(--line);
}

#frame-row .border-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.border-row {
  margin-bottom: 0;
}

.border-plus {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.border-row .action-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.border-status {
  margin-left: 6px;
  font-size: 9.5px;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.border-remove {
  display: none;
  width: 24px;
  height: 24px;
  margin-left: 1px;
  line-height: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-radius: 12px;
  flex-shrink: 0;
}

.border-remove.show {
  display: inline-block;
}

.border-remove:hover {
  color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
}

@media (max-width: 270px) {
  .border-name { display: none; }
}

@media (max-height: 880px) {
  .section { padding: 10px; margin-bottom: 8px; }
  .hint { display: none; }
  .action-btn { padding: 6px 10px; margin-bottom: 4px; }
  .status-bar { padding: 6px 2px; }
  .border-divider { margin: 8px 0; }
}

@media (max-height: 700px) {
  .action-btn { padding: 4px 10px; }
  .action-tag { display: none; }
  .border-divider { margin: 7px 0; }
}
