.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.notice {
  margin: 16px 0;
  border-radius: 8px;
  padding: 12px 14px;
}

.notice.success {
  color: var(--green);
  background: #e8f4ee;
}

.notice.danger {
  color: var(--danger);
  background: #fae9e6;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--accent-dark);
  padding: 5px 9px;
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 20px;
}

.account-dialog {
  width: min(820px, 88vw);
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.account-header h2,
.account-form h3 {
  margin: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.account-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel-soft) 82%, transparent),
    var(--panel)
  );
}

.account-note-box {
  align-content: start;
}

.account-note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-form label,
.account-form span {
  display: grid;
  gap: 6px;
}

.account-form span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.account-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.account-form input:focus {
  border-color: var(--accent);
}

.account-profile {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 48%
    ),
    var(--panel-soft);
}

.account-profile strong {
  font-size: 18px;
}

.account-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-profile span,
.account-profile small,
.account-note,
.account-security span {
  color: var(--muted);
  font-size: 13px;
}

.account-profile p {
  margin: 8px 0 0;
  color: var(--green);
  font-size: 13px;
  line-height: 1.5;
}

.account-security {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}

.account-security strong {
  font-size: 14px;
}

.account-note {
  margin: 0;
  line-height: 1.5;
}

.code-shell {
  overflow: hidden;
  margin: 0 0 1.1em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1f2933;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 7px 9px 7px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.code-lang {
  color: #b9c6d2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.code-copy {
  min-width: 68px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f6efe3;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.code-copy:hover,
.code-copy.copied {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.code-shell pre {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
