:root {
  color-scheme: light;
  --background: #f3f5f0;
  --surface: #ffffff;
  --surface-soft: #e9efeb;
  --surface-strong: #153f36;
  --foreground: #18231f;
  --muted: #738079;
  --muted-light: #a1aaa5;
  --border: #dfe5e0;
  --primary: #176b5b;
  --primary-hover: #105a4c;
  --primary-foreground: #ffffff;
  --danger: #a74439;
  --danger-soft: #fff0ed;
  --warning: #a36a26;
  --warning-soft: #fff3df;
  --success-soft: #e5f1ec;
  --shadow: 0 18px 50px rgba(29, 59, 49, 0.08);
  --series-cash: #82938a;
  --series-bond: #5c7fa3;
  --series-gold: #d2a13d;
  --series-equity: #2e7d6d;
  --series-commodity: #b46e4d;
  --series-other: #927b98;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #101713;
    --surface: #18221e;
    --surface-soft: #22302a;
    --surface-strong: #1d594c;
    --foreground: #edf3ef;
    --muted: #a8b4ae;
    --muted-light: #7d8b84;
    --border: #2b3933;
    --primary: #61ad98;
    --primary-hover: #77bea9;
    --primary-foreground: #0d211b;
    --danger: #ef8f82;
    --danger-soft: #3a2421;
    --warning: #e3ad61;
    --warning-soft: #3b3021;
    --success-soft: #203a31;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
.file-label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.file-label:focus-within {
  outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--foreground);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: var(--primary-foreground);
  background: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  font-weight: 700;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 48px;
}

.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.nav-item span {
  width: 18px;
  font-size: 18px;
  text-align: center;
}

.nav-item:hover {
  color: var(--foreground);
  background: var(--surface-soft);
}

.nav-item.is-active {
  color: var(--primary);
  background: var(--surface-soft);
}

.sidebar-note {
  margin: auto 8px 0;
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.6;
}

.main-content {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 42px 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1.2px;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.save-state {
  margin-right: 4px;
  color: var(--muted);
  font-size: 12px;
}

.button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.button-primary {
  color: var(--primary-foreground);
  background: var(--primary);
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  color: var(--foreground);
  border-color: var(--border);
  background: var(--surface);
}

.button-danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.text-button {
  padding: 6px 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 24px;
}

.page-section {
  display: none;
}

.page-section.is-active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) repeat(2, minmax(190px, 1fr));
  gap: 18px;
}

.hero-card,
.summary-card,
.panel,
.record-card,
.allocation-result-panel,
.target-list,
.settings-actions,
.privacy-banner {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 28px 30px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #123f36, #237462);
}

.hero-card::after {
  position: absolute;
  top: -92px;
  right: -40px;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
}

.hero-card p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 13px;
}

.hero-card > strong {
  position: relative;
  z-index: 1;
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(33px, 4vw, 50px);
  letter-spacing: -2px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.hero-meta b {
  margin-right: 4px;
  color: #fff;
  font-size: 15px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 176px;
  padding: 25px;
}

.summary-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.summary-card strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-card > span {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--primary);
  background: var(--success-soft);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 26px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.allocation-visual {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(260px, 1.1fr);
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}

.donut-wrap {
  display: grid;
  min-height: 230px;
  place-items: center;
}

.donut {
  width: min(100%, 230px);
  overflow: visible;
}

.donut-bg {
  fill: none;
  stroke: var(--surface-soft);
  stroke-width: 17;
}

.donut-segment {
  fill: none;
  stroke-width: 17;
  transition: stroke-dasharray 220ms ease, stroke-dashoffset 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .donut-segment {
    transition: none;
  }
}

.donut-total {
  fill: var(--foreground);
  font-size: 16px;
  font-weight: 700;
  text-anchor: middle;
}

.donut-label {
  fill: var(--muted);
  font-size: 8px;
  text-anchor: middle;
}

.legend-list {
  display: grid;
  gap: 14px;
}

.legend-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.legend-dot,
.record-dot,
.target-dot,
.recommend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-color);
}

.legend-main {
  min-width: 0;
}

.legend-name-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
}

.legend-name-row span:last-child {
  color: var(--muted);
}

.progress-track {
  overflow: hidden;
  height: 6px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--dot-color);
}

.legend-value {
  font-size: 12px;
  font-weight: 700;
}

#recent-records {
  margin-top: 20px;
}

.compact-record,
.empty-compact {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.compact-record:last-child {
  border-bottom: 0;
}

.compact-record strong,
.compact-record small {
  display: block;
}

.compact-record strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-record small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.compact-value {
  text-align: right;
}

.empty-compact {
  display: block;
  padding: 38px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.records-heading {
  align-items: flex-end;
  margin-bottom: 22px;
}

.records-total {
  text-align: right;
}

.records-total span,
.records-total strong {
  display: block;
}

.records-total span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.records-total strong {
  font-size: 20px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.record-card {
  display: grid;
  gap: 24px;
  min-width: 0;
  padding: 22px;
  border-color: var(--border);
  cursor: pointer;
  text-align: left;
}

button.record-card {
  color: var(--foreground);
}

.record-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.record-card-top,
.record-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.record-card-title {
  min-width: 0;
}

.record-card-title strong,
.record-card-title small {
  display: block;
}

.record-card-title strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-card-title small,
.record-card-bottom small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.record-card-value {
  font-size: 17px;
  font-weight: 700;
}

.percentage-pill,
.tag {
  flex: none;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--primary);
  background: var(--success-soft);
  font-size: 10px;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border: 1px dashed var(--border);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  margin-bottom: 8px;
  color: var(--foreground);
  font-size: 18px;
}

.content-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.category-intro {
  margin-bottom: 22px;
}

.category-intro > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.target-list {
  overflow: hidden;
}

.target-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) minmax(92px, auto);
  gap: 13px;
  align-items: center;
  min-height: 82px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.target-row:last-child {
  border-bottom: 0;
}

.target-info strong,
.target-info small {
  display: block;
}

.target-info strong {
  font-size: 14px;
}

.target-info small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.target-input-wrap {
  display: flex;
  align-items: center;
  width: 92px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
}

.target-input-wrap input {
  width: 100%;
  height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--foreground);
  background: transparent;
  text-align: right;
}

.target-input-wrap span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}

.target-total {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 12px;
  color: var(--primary);
  background: var(--success-soft);
  font-size: 13px;
}

.target-total.is-invalid {
  color: var(--danger);
  background: var(--danger-soft);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.allocation-tool-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(380px, 1.15fr);
  gap: 18px;
}

.allocation-input-panel,
.allocation-result-panel {
  min-width: 0;
}

.allocation-input-panel {
  min-height: 420px;
  padding: 30px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #123f36, #247461);
}

.allocation-input-panel .section-kicker {
  color: rgba(255, 255, 255, 0.55);
}

.allocation-input-panel h2 {
  margin-bottom: 42px;
  font-size: 25px;
}

.allocation-input-panel label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.money-input {
  display: flex;
  align-items: center;
  margin-top: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.money-input span {
  font-size: 30px;
  font-weight: 700;
}

.money-input input {
  min-width: 0;
  width: 100%;
  height: 80px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 700;
}

.money-input input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.quick-amounts button {
  min-height: 36px;
  padding: 0 5px;
  border: 0;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  font-size: 10px;
}

.total-transition {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.total-transition b {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 13px;
}

.allocation-result-panel {
  min-height: 420px;
  padding: 28px;
}

#recommendation-list {
  margin-top: 22px;
}

.recommendation-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.recommendation-row:last-child {
  border-bottom: 0;
}

.recommendation-main strong,
.recommendation-main small {
  display: block;
}

.recommendation-main strong {
  font-size: 13px;
}

.recommendation-main small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.recommendation-amount {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.result-placeholder {
  padding: 90px 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.settings-stack {
  display: grid;
  gap: 26px;
}

.privacy-banner {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #174b40, #226b5b);
}

.privacy-mark {
  display: grid;
  flex: none;
  width: 56px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.11);
  font-size: 11px;
  font-weight: 700;
}

.privacy-banner h2 {
  font-size: 17px;
}

.privacy-banner p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.6;
}

.settings-group h2 {
  margin: 0 0 12px 3px;
  font-size: 14px;
}

.settings-actions {
  overflow: hidden;
}

.setting-row {
  display: flex;
  width: 100%;
  min-height: 78px;
  padding: 15px 20px;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row:hover {
  background: var(--surface-soft);
}

.setting-row b,
.setting-row small {
  display: block;
}

.setting-row b {
  font-size: 13px;
}

.setting-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.file-label {
  user-select: none;
}

.danger-row b,
.danger-row > span:last-child {
  color: var(--danger);
}

.version-line {
  margin: 0;
  color: var(--muted-light);
  font-size: 10px;
  text-align: center;
}

.record-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--foreground);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.24);
}

.record-dialog::backdrop {
  background: rgba(8, 20, 16, 0.55);
  backdrop-filter: blur(4px);
}

.record-dialog form {
  padding: 26px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.field-wide {
  grid-column: 1 / -1;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--foreground);
  background: var(--background);
  font-size: 13px;
}

.field small {
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 400;
}

.dialog-estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
}

.dialog-estimate strong {
  color: var(--foreground);
  font-size: 17px;
}

.dialog-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 22px;
}

.action-spacer {
  flex: 1;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 32px));
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--foreground);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 12px;
}

.bottom-nav {
  display: none;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(300px, 1.5fr) 1fr;
  }

  .hero-card {
    grid-row: span 2;
  }

  .summary-card {
    min-height: 120px;
  }

  .dashboard-grid,
  .allocation-tool-grid {
    grid-template-columns: 1fr;
  }

  .record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: 24px 18px calc(96px + env(safe-area-inset-bottom));
  }

  .topbar {
    align-items: flex-end;
    margin-bottom: 24px;
  }

  .save-state,
  #install-button {
    display: none;
  }

  .button {
    padding: 0 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 168px;
  }

  .summary-card {
    min-width: 0;
    min-height: 124px;
    padding: 18px;
  }

  .summary-card strong {
    font-size: 14px;
  }

  .dashboard-grid {
    gap: 12px;
    margin-top: 12px;
  }

  .panel {
    padding: 20px;
  }

  .allocation-visual {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .donut-wrap {
    min-height: 205px;
  }

  .donut {
    max-width: 205px;
  }

  .record-grid {
    grid-template-columns: 1fr;
  }

  .allocation-input-panel,
  .allocation-result-panel {
    min-height: auto;
    padding: 22px;
  }

  .allocation-input-panel h2 {
    margin-bottom: 30px;
  }

  .total-transition {
    margin-top: 34px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    backdrop-filter: blur(18px);
  }

  .bottom-nav .nav-item {
    display: grid;
    gap: 1px;
    min-height: 50px;
    padding: 3px;
    place-items: center;
    font-size: 9px;
    text-align: center;
  }

  .bottom-nav .nav-item span {
    font-size: 18px;
  }

  .toast {
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  #header-add-button {
    min-height: 38px;
    font-size: 11px;
  }

  .hero-card {
    padding: 24px;
  }

  .hero-meta {
    gap: 16px;
  }

  .records-heading {
    align-items: flex-start;
  }

  .target-row {
    padding-right: 14px;
    padding-left: 14px;
  }

  .form-actions,
  .dialog-actions {
    flex-wrap: wrap;
  }

  .form-actions .button {
    flex: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .record-dialog form {
    padding: 20px;
  }

  .dialog-actions .action-spacer {
    display: none;
  }

  .dialog-actions .button {
    flex: 1;
  }

  .dialog-actions .button-danger {
    flex-basis: 100%;
    order: 3;
  }
}
