@font-face {
  font-family: Display;
  src: url("vendor/BebasNeue-Regular.ttf");
}

@font-face {
  font-family: Symbols;
  src: url("vendor/NotoSansSymbols2-Regular.ttf");
}

@font-face {
  font-family: Roboto;
  src: url("vendor/Roboto-Regular.ttf");
}

@font-face {
  font-family: Roboto;
  src: url("vendor/Roboto-Medium.ttf");
  font-weight: 700;
}

@font-face {
  font-family: Roboto;
  src: url("vendor/Roboto-Italic.ttf");
  font-style: italic;
}

@font-face {
  font-family: Roboto;
  src: url("vendor/Roboto-MediumItalic.ttf");
  font-weight: 700;
  font-style: italic;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.section-actions button {
  white-space: normal;
}

.reference-thumb {
  max-width: 230px;
  margin: 15px auto;
}

.reference-thumb svg {
  display: block;
  width: 100%;
  height: auto;
}

.reference-thumb.is-targeting {
  cursor: crosshair;
  outline: 2px solid var(--accent,#f4511e);
  outline-offset: 4px;
}

.reference-callout-editor {
  border-top: 1px solid var(--line,#ccd2cc);
  margin-top: 16px;
  padding-top: 4px;
}

.reference-coordinates {
  max-width: 280px;
}

.reference-editor .row-actions {
  flex-wrap: wrap;
}

.reference-editor summary {
  overflow-wrap: anywhere;
}

.rich-field {
  margin: 12px 0 18px;
}

.rich-field>label {
  margin: 0 0 5px;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid #cad4c6;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.rich-toolbar button {
  min-height: 32px;
  min-width: 34px;
  padding: 4px 9px;
  font-size: 14px;
}

.rich-toolbar .rich-clear {
  margin-left: auto;
  font-size: 11px;
}

.rich-toolbar .rich-size {
  margin: 0;
  max-width: 115px;
}

.rich-size select {
  margin: 0;
  min-height: 32px;
  padding: 3px 6px;
  font-size: 12px;
  background: white;
}

.rich-field textarea {
  margin: 0;
  border-radius: 0 0 4px 4px;
}

.rich-help {
  margin-top: 6px;
  color: #778371;
  font-size: 11px;
}

.rich-help summary {
  cursor: pointer;
  width: fit-content;
}

.rich-help p {
  margin: 7px 0;
  line-height: 1.6;
}

.rich-help code {
  padding: 1px 3px;
  border-radius: 2px;
  color: #43553f;
}

body {
  margin: 0;
  background: #f4f5f2;
  color: #26302c;
  font: 14px/1.5 "Segoe UI",Arial,sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccd2cc;
  border-radius: 4px;
  padding: 9px 12px;
  color: inherit;
}

button:hover {
  border-color: #ed4b22;
}

button:focus-visible,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #ed4b22;
  outline-offset: 2px;
}

button:disabled {
  opacity: .4;
  cursor: default;
}

.primary {
  background: #ed4b22;
  color: white;
  border-color: #ed4b22;
  font-weight: 650;
}

header {
  background: #151a18;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 3px solid #ed4b22;
}

.brand {
  text-decoration: none;
  color: #f5542e;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 28px;
}

.brand span {
  font-size: 16px;
  letter-spacing: 1px;
  color: white;
}

.brand b {
  font-weight: 400;
  color: #abb3ae;
}

.project-name {
  font-size: 13px;
  color: #d3dbd4;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.header-actions button:not(.primary) {
  color: white;
  background: #252d28;
  border-color: #465249;
}

.workspace {
  display: grid;
  grid-template-columns: 204px minmax(355px,1fr) minmax(365px,1.04fr);
  min-height: calc(100vh - 72px);
}

aside {
  padding: 28px 14px;
  background: #fff;
  border-right: 1px solid #dce1da;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: #7b887e;
}

nav {
  display: grid;
  gap: 6px;
  margin-top: 23px;
}

nav button {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 10px;
  font-size: 13px;
}

nav button small {
  color: #7d897f;
  white-space: nowrap;
}

nav button.active {
  background: #e9efe5;
  color: #273f2b;
  box-shadow: inset 3px 0 #70816e;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 40px 8px 0;
  font-size: 11px;
  color: #849084;
}

.edition {
  font-size: 9px;
  letter-spacing: .8px;
  color: #677962;
}

main {
  min-width: 0;
  padding: 26px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

h1 {
  font-size: 27px;
  line-height: 1.2;
  font-weight: 650;
  margin: 7px 0 15px;
  letter-spacing: -.6px;
}

.section-heading button {
  font-size: 12px;
  white-space: nowrap;
}

.section-note {
  color: #7c897c;
  font-size: 12px;
  margin: 0 0 19px;
}

.section-note:empty {
  display: none;
}

#record-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 23px;
}

.record {
  text-align: left;
  font-size: 11px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 9px;
}

.record small {
  color: #9aa394;
  font-size: 10px;
}

.panel {
  background: #fff;
  border: 1px solid #dce2d9;
  border-radius: 5px;
  padding: 18px;
  margin-bottom: 16px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 10px;
  letter-spacing: 1.1px;
  border-bottom: 1px solid #e6ebe4;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.panel-title span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: #8c9789;
  text-align: right;
}

label {
  display: block;
  color: #7b8778;
  font-size: 12px;
  margin: 12px 0;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  background: #fafcf8;
  color: #26302c;
  border: 1px solid #cad4c6;
  border-radius: 3px;
  padding: 8px 9px;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.5;
}

textarea {
  min-height: 135px;
  resize: vertical;
  font-family: Roboto,Symbols,sans-serif;
}

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

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox input {
  width: 17px;
  height: 17px;
  margin: 0;
}

.hint {
  font-size: 11px;
  color: #8a9585;
  line-height: 1.7;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.danger {
  color: #ae4935;
}

.small {
  font-size: 11px;
  padding: 6px 9px;
}

.nested {
  border: 1px solid #dbe2d6;
  background: #fbfcf9;
  border-radius: 3px;
  padding: 12px;
  margin-bottom: 10px;
}

.nested summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: #52694c;
}

.nested[open] summary {
  padding-bottom: 8px;
  border-bottom: 1px solid #e3e9df;
  margin-bottom: 12px;
}

.add-inline {
  width: 100%;
  border-style: dashed;
  color: #6b805f;
  font-size: 12px;
}

.loadout {
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ebe2;
  margin-bottom: 16px;
}

input[type=color] {
  width: 65px;
  height: 36px;
  padding: 3px;
}

.import-label {
  display: inline-block;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccd2cc;
  padding: 9px 12px;
  margin: 0;
  border-radius: 4px;
}

.import-label input {
  display: none;
}

#preview-panel {
  padding: 28px 26px;
  border-left: 1px solid #d0d8cd;
  position: sticky;
  align-self: start;
  min-height: 620px;
  overflow: auto;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.badge {
  font-size: 11px;
  border: 1px solid #bfcbb9;
  border-radius: 3px;
  padding: 3px 7px;
  color: #7e9074;
}

.physical-card {
  position: relative;
  margin: auto;
  filter: drop-shadow(0 8px 10px #23362024);
}

.physical-card.portrait {
  max-width: 345px;
}

.physical-card.landscape {
  max-width: 640px;
  margin-top: 60px;
}

.physical-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.side-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  margin-top: 24px;
  font-size: 11px;
  color: #718267;
}

.side-controls button {
  padding: 5px 12px;
  background: transparent;
  border-color: #bdcbb5;
}

.side-controls button:disabled {
  visibility: hidden;
}

#preview-note {
  font-size: 11px;
  text-align: center;
  color: #7d8e72;
  max-width: 370px;
  margin: 15px auto;
  line-height: 1.6;
}

.print-hint {
  border-top: 1px solid #c8d3c0;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 20px 0;
  margin-top: 26px;
  font-size: 11px;
  color: #8b9b80;
  gap: 5px;
}

.print-hint b {
  letter-spacing: 2px;
  font-size: 10px;
}

#toast {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px,90vw);
  padding: 13px 20px;
  border-radius: 5px;
  z-index: 50;
}

#editor .panel {
  margin-bottom: 8px;
}

#editor .panel-title {
  padding-bottom: 6px;
  margin-bottom: 8px;
}

#editor .nested {
  margin-bottom: 5px;
}

#editor .rich-field {
  margin: 6px 0 9px;
}

#editor .row-actions {
  margin: 8px 0;
}

#editor label:not(.rich-size) {
  margin-top: 6px;
  margin-bottom: 6px;
}

#editor .nested[open]>summary {
  padding-bottom: 4px;
  margin-bottom: 6px;
}

#editor .introduction-panel>summary {
  display: list-item;
  cursor: pointer;
}

#editor .introduction-panel:not([open])>summary {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.archetype-choice {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.archetype-choice>label {
  flex: 1;
  min-width: 150px;
}

.archetype-choice>button {
  flex: none;
  margin-bottom: 6px;
}

.archetype-slot+.archetype-slot {
  margin-top: 8px;
}

#view-toggle {
  display: none;
}

.physical-card.lore-page {
  max-width: 595px;
}

.lore-empty {
  aspect-ratio: 210/297;
  max-width: 430px;
  margin: auto;
  background: #fff;
  border: 1px solid #c5cfc0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  color: #b5c0ae;
}

.lore-empty span {
  font-size: 13px;
  text-align: center;
  max-width: 240px;
}

.lore-image-item {
  border: 1px solid #dce2d9;
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 14px;
}

.lore-image-item>img {
  display: block;
  max-width: 100%;
  height: 140px;
  margin: auto;
  object-fit: contain;
}

.lore-image-item textarea {
  min-height: 60px;
}

.lore-image-item .row-actions {
  margin-bottom: 0;
}

.lore-image-item button {
  font-size: 12px;
}

.roster-row {
  border-bottom: 1px solid #e2e8de;
  padding: 8px 0 14px;
}

.roster-row>.checkbox {
  font-weight: 650;
  color: #43553f;
}

.roster-options {
  display: flex;
  align-items: end;
  gap: 12px;
}

.roster-options label {
  max-width: 110px;
  margin: 0;
}

.roster-options button {
  margin-bottom: 2px;
}

.roster-row:last-of-type {
  border-bottom: 0;
}

@media (min-width:1600px) {
  main {
    padding: 35px 45px;
  }

  .physical-card.portrait {
    max-width: 390px;
  }

  .workspace {
    grid-template-columns: 225px minmax(420px,1fr) minmax(450px,1.05fr);
  }
}

@media (max-width:1100px) {
  .workspace {
    grid-template-columns: 180px minmax(330px,1fr);
  }

  #view-toggle {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    color: #536e47;
  }

  #preview-panel {
    display: none;
    grid-column: 2;
    position: static;
    height: auto;
  }

  .show-preview #editor {
    display: none;
  }

  .show-preview #preview-panel {
    display: block;
  }

  aside {
    grid-row: span 2;
  }

  .project-name {
    display: none;
  }
}

@media (max-width:700px) {
  header {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .header-actions {
    margin-left: 0;
    width: 100%;
  }

  .workspace {
    display: block;
  }

  aside {
    padding: 15px;
  }

  nav {
    display: flex;
    overflow: auto;
    margin-top: 10px;
  }

  nav button {
    white-space: nowrap;
  }

  .sidebar-bottom {
    display: none;
  }

  main,
  #preview-panel {
    padding: 22px;
  }

  #preview-panel {
    min-height: 0;
  }

  .physical-card.portrait {
    max-width: 310px;
  }

  .physical-card.landscape {
    margin-top: 0;
  }
}

.studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid #dce2d9;
}

.studio-tabs {
  display: flex;
  gap: 4px;
  margin: 0;
}

.studio-tabs button {
  padding: 9px 15px;
  white-space: nowrap;
}

.cloud-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cloud-indicator button {
  font-size: 11px;
  padding: 5px 8px;
}

#cloud-status[data-state=error] {
  color: #ae4935;
}

#cloud-status[data-state=pending] {
  color: #8b691f;
}

#community-panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 28px 60px;
}

.community-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.community-heading p {
  color: #65745f;
  max-width: 700px;
}

.community-heading button {
  flex-shrink: 0;
}

#library-search-label {
  max-width: 460px;
  margin: 26px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(270px,1fr));
  gap: 20px;
  margin-top: 26px;
}

.team-tile {
  border: 1px solid #dce2d9;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

.team-tile-top,
.team-tile-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #778371;
}

.team-state {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
}

.team-tile h2 {
  margin: 18px 0 4px;
  font-size: 23px;
  line-height: 1.25;
}

.team-tile>p {
  color: #778371;
  font-size: 13px;
  margin: 6px 0 24px;
}

.team-tile-meta {
  margin-top: auto;
  padding-top: 12px;
}

.team-tile button {
  margin-top: 22px;
  align-self: flex-start;
}

.team-tile .draft-note {
  font-size: 11px;
  margin: 12px 0 0;
}

.community-empty {
  grid-column: 1/-1;
  padding: 36px;
  border: 1px dashed #cad4c6;
  border-radius: 8px;
  line-height: 1.8;
}

#library-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  color: #778371;
  font-size: 12px;
}

#publication-dialog {
  width: min(1200px,calc(100% - 32px));
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #cad4c6;
  border-radius: 10px;
  padding: 28px;
  color: #26302c;
  background: #f4f5f2;
}

#publication-dialog::backdrop {
  background: #152019bb;
}

.publication-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.publication-heading h2 {
  margin: 5px 0;
  font-size: 28px;
  overflow-wrap: anywhere;
}

.publication-heading p {
  color: #778371;
  font-size: 12px;
}

#publication-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 15px 0 25px;
}

#publication-nav button {
  border: 1px solid #dce2d9;
}

#publication-nav button.active {
  background: #e9efe5;
}

#publication-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,380px),1fr));
  gap: 28px;
}

#publication-cards[data-section="operatives"] {
  grid-template-columns: minmax(0,1fr);
}

#publication-cards[data-section="operatives"]>.published-card {
  width: 100%;
  max-width: 1040px;
  justify-self: center;
}

.published-card {
  min-width: 0;
}

.published-card h3 {
  font-size: 13px;
  color: #65745f;
  overflow-wrap: anywhere;
}

.published-card .physical-card {
  margin: 16px auto 24px;
}

.published-card .physical-card.portrait {
  max-width: 460px;
}

.published-card .physical-card.landscape {
  max-width: 1040px;
}

@media (max-width:900px) {
  .studio-bar {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }

  .cloud-indicator {
    width: 100%;
    font-size: 11px;
  }

  .studio-tabs button {
    padding: 8px 12px;
  }

  #community-panel {
    padding: 24px 18px;
  }

  .community-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
  }

  #publication-dialog {
    padding: 18px;
  }

  #publication-nav {
    gap: 4px;
  }

  #publication-nav button {
    font-size: 11px;
    padding: 8px;
  }

  .header-actions button {
    font-size: 12px;
  }
}

header {
  gap: 18px;
}

.project-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.project-picker #new-project {
  flex-shrink: 0;
  white-space: nowrap;
  background: #252d28;
  color: white;
  border-color: #465249;
}

.crop-dialog {
  width: min(1040px,calc(100% - 32px));
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #cbd4c7;
  border-radius: 10px;
  color: #26302c;
  box-shadow: 0 18px 80px #0005;
}

.crop-dialog::backdrop {
  background: #152019bb;
}

.crop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crop-heading h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
}

.crop-heading button {
  padding: 6px 10px;
}

.crop-help {
  color: #677962;
  font-size: 13px;
  margin: 12px 0 20px;
}

.crop-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 220px;
  gap: 24px;
  align-items: start;
}

.crop-board {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 80px;
  padding: 8px;
  border-radius: 5px;
  overflow: hidden;
}

.crop-stage {
  position: relative;
  flex: none;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
  overflow: hidden;
  max-width: 100%;
}

.crop-image {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crop-selection {
  position: absolute;
  border: 2px solid #f34b16;
  box-shadow: 0 0 0 2000px #101b16a6;
  cursor: move;
  touch-action: none;
}

.crop-selection:before,
.crop-selection:after {
  content: "";
  position: absolute;
  inset: 33.333% 0;
  border-top: 1px solid #ffffff60;
  border-bottom: 1px solid #ffffff60;
  pointer-events: none;
}

.crop-selection:after {
  inset: 0 33.333%;
  border: 0;
  border-left: 1px solid #ffffff60;
  border-right: 1px solid #ffffff60;
}

.crop-handle {
  position: absolute;
  width: 22px;
  height: 22px;
  min-width: 0;
  padding: 0;
  border: 2px solid white;
  border-radius: 3px;
  background: #f34b16;
  z-index: 1;
  touch-action: none;
}

.crop-nw {
  left: -2px;
  top: -2px;
  cursor: nwse-resize;
}

.crop-ne {
  right: -2px;
  top: -2px;
  cursor: nesw-resize;
}

.crop-sw {
  left: -2px;
  bottom: -2px;
  cursor: nesw-resize;
}

.crop-se {
  right: -2px;
  bottom: -2px;
  cursor: nwse-resize;
}

.crop-preview>span {
  display: block;
  color: #677962;
  font-size: 12px;
  margin-bottom: 10px;
}

.crop-preview canvas {
  display: block;
  width: 100%;
  height: 180px;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto;
  background: repeating-conic-gradient(#e4e9e0 0% 25%,#f8faf5 0% 50%) 50% / 16px 16px;
  border: 1px solid #cbd4c7;
}

.crop-status {
  font-size: 12px;
  color: #677962;
  min-height: 18px;
  margin: 16px 0;
}

.crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.crop-actions [data-crop-reset] {
  margin-right: auto;
}

@media (max-width:700px) {
  .crop-dialog {
    padding: 16px;
    width: calc(100% - 20px);
  }

  .crop-heading h2 {
    font-size: 18px;
  }

  .crop-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }

  .crop-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8px;
  }

  .crop-preview canvas {
    height: 90px;
    max-height: 90px;
  }

  .crop-preview .hint {
    display: none;
  }

  .crop-actions button {
    padding: 8px;
    font-size: 12px;
  }
}

.operative-image-editor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.operative-image-thumb,
.operative-image-empty {
  width: 100px;
  height: 78px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 5px;
  background: #141718;
  border: 1px solid #dce2d9;
}

.operative-image-empty {
  display: grid;
  place-items: center;
  font-size: 26px;
}

.operative-image-editor button {
  margin: 3px 6px 3px 0;
  font-size: 12px;
}

.operative-image-editor .hint {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

header {
  height: auto;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.header-actions {
  flex-wrap: wrap;
}

.header-actions button {
  white-space: nowrap;
}

#tts-dialog {
  border: 1px solid #cbd4c7;
  border-radius: 10px;
  padding: 28px;
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: #26302c;
  box-shadow: 0 18px 80px #0005;
}

#tts-dialog::backdrop {
  background: #152019aa;
}

.tts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tts-heading h2 {
  font-size: 27px;
  margin: 6px 0;
}

#tts-summary {
  color: #677962;
}

#tts-sheets {
  margin: 16px 0;
}

.tts-sheet {
  border-block: 1px solid #dce2d9;
  padding: 4px 0;
  overflow-wrap: anywhere;
}

.tts-sheet+.tts-sheet {
  border-top: 0;
}

.tts-instructions {
  padding-left: 24px;
}

.tts-instructions li {
  margin: 8px 0;
}

#tts-status {
  font-weight: 600;
}

.download-button {
  display: inline-block;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 650;
}

#tts-result p {
  font-size: 12px;
  color: #677962;
}

.token-range {
  position: relative;
}

.token-range output {
  float: right;
  font-variant-numeric: tabular-nums;
}

.token-range input[type="range"] {
  display: block;
  width: 100%;
  padding: 0;
  accent-color: var(--accent,#ed4b22);
  cursor: pointer;
}

.token-grip {
  float: right;
  cursor: grab;
  opacity: .65;
  font-size: 20px;
}

.token-image-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.token-image-controls img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #28515b;
  border-radius: 5px;
}

.token-item summary[data-token-drag] {
  cursor: grab;
}

.token-item.token-dragging {
  opacity: .4;
}

.token-item.token-drop-before {
  box-shadow: 0 -3px var(--accent,#ed4b22);
}

.token-item.token-drop-after {
  box-shadow: 0 3px var(--accent,#ed4b22);
}

#preview [data-token-id] {
  cursor: pointer;
}

#preview [data-token-id]:hover {
  filter: brightness(1.08);
}

/* Project navigation and deletion. */
.team-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
}

.team-tile-actions button {
  margin-top: 0;
}

.project-dialog {
  width: min(560px,calc(100% - 28px));
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border: 1px solid #cad4c6;
  border-radius: 10px;
  background: #f4f5f2;
  color: #26302c;
}

.project-dialog::backdrop {
  background: #152019bb;
}

.project-dialog h2 {
  margin: 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.project-dialog p {
  overflow-wrap: anywhere;
}

.project-dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.project-templates {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.project-templates button {
  display: grid;
  gap: 4px;
  text-align: left;
  min-height: 68px;
}

.project-templates span {
  font-size: 12px;
  color: #65745f;
}

.project-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.project-dialog-error {
  color: #a1261c;
}

.project-dialog-error:empty {
  display: none;
}

#confirm-delete-project {
  background: #b52c23;
  border-color: #b52c23;
  color: white;
  min-height: 42px;
}

#cancel-delete-project {
  min-height: 42px;
}

.studio-login-dialog {
  max-width: 460px;
}

.studio-login-dialog h2 {
  font-size: 22px;
}

.studio-login-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 16px;
}

.studio-login-tabs button {
  flex: 1;
  min-height: 42px;
}

.studio-login-tabs button.active {
  border-color: #bd3413;
  color: #a72e10;
  background: #fff0e8;
}

.studio-login-dialog label {
  display: block;
  margin: 12px 0;
  font-size: 14px;
}

.studio-login-dialog input {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  padding: 9px 12px;
}

#studio-login-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
}

.studio-login-note {
  margin: 18px 0 0;
  color: #65745f;
  font-size: 12px;
}

.project-name {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-author a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-author a:hover {
  color: #c9370b;
}

.publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.publication-actions button {
  min-height: 44px;
}

#publication-export-status {
  font-size: 13px;
  line-height: 1.5;
}

#publication-export-status:empty {
  display: none;
}

.rich-toolbar .rich-orange {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.rich-toolbar .rich-triangle {
  color: #269b48;
  font-size: 20px;
  line-height: 1;
}

.rich-toolbar .rich-diamond {
  color: #c52b26;
  font-size: 20px;
  line-height: 1;
}

.team-logo-thumb {
  width: 116px;
  height: 116px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  padding: 8px;
}

.project-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-name span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-tile-logo {
  display: block;
  object-fit: contain;
  margin: 12px 0 4px;
}

.rich-toolbar .rich-bullet {
  color: #f4511e;
  font-size: 20px;
  line-height: 1;
}

/* Hidden account notices must not reserve space in the toolbar. */
.sidebar-bottom {
  overflow-anchor: none;
}

.crop-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}

.crop-zoom label {
  margin: 0;
}

.crop-zoom input[type=range] {
  width: auto;
  min-width: 80px;
  max-width: 360px;
  flex: 1;
  padding: 0;
  accent-color: #f4511e;
}

.crop-zoom button {
  padding: 5px 10px;
  min-width: 34px;
}

.crop-zoom output {
  min-width: 5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.crop-preview canvas.crop-header-preview {
  height: auto;
  max-height: none;
  background: #141718;
}

/* Card order changes only on drop, so the editor and grid stay still while dragging. */
#record-list .record {
  position: relative;
  min-width: 0;
}

#record-list .record-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

#record-list .record[draggable="true"] {
  cursor: grab;
}

#record-list .record-grip {
  margin-left: auto;
  align-self: center;
  color: var(--muted,#677962);
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

#record-list .record-dragging {
  opacity: .45;
  cursor: grabbing;
}

#record-list :is(.record-drop-before,.record-drop-after)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--accent,#ed4b22);
  pointer-events: none;
}

#record-list .record-drop-before::after {
  left: -5px;
}

#record-list .record-drop-after::after {
  right: -5px;
}

#record-list .record-drop-vertical::after {
  left: 0;
  right: 0;
  width: auto;
  height: 3px;
}

#record-list .record-drop-vertical.record-drop-before::after {
  top: -5px;
  bottom: auto;
}

#record-list .record-drop-vertical.record-drop-after::after {
  bottom: -5px;
  top: auto;
}

#editor [data-nested-type="weapons"] {
  position: relative;
}

#editor summary[data-weapon-drag] {
  position: relative;
  padding-right: 24px;
  cursor: grab;
}

#editor .weapon-grip {
  position: absolute;
  right: 0;
  top: 0;
  color: var(--muted,#677962);
  font-size: 18px;
  line-height: 1.2;
}

#editor .weapon-dragging {
  opacity: .45;
}

#editor .weapon-dragging>summary {
  cursor: grabbing;
}

#editor :is(.weapon-drop-before,.weapon-drop-after)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--accent,#ed4b22);
  pointer-events: none;
}

#editor .weapon-drop-before::after {
  top: -4px;
}

#editor .weapon-drop-after::after {
  bottom: -4px;
}

.token-item input[type="color"] {
  height: 42px;
  padding: 4px;
  cursor: pointer;
}

.token-symbol-control {
  margin: 10px 0;
}

.token-symbol-control>span {
  font-size: 12px;
  color: var(--muted,#677962);
}

.token-symbol-control>button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px;
  text-align: left;
}

.token-symbol-change {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent-text,#b74708);
}

.token-symbol-thumb {
  display: inline-flex;
  flex: none;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #28515b;
  color: #eef1da;
}

.token-symbol-thumb svg,
.token-symbol-thumb img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.token-symbol-empty {
  font-size: 32px;
  font-weight: 400;
}

#token-symbol-dialog {
  width: min(940px,calc(100% - 24px));
  max-height: 90dvh;
  padding: 20px;
  overflow: hidden;
}

#token-symbol-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#token-symbol-dialog h2 {
  font-size: 22px;
}

#token-symbol-dialog .hint {
  margin: 0;
}

#token-symbol-dialog .token-symbol-filters {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 12px;
}

#token-symbol-dialog label {
  margin: 0;
  color: var(--muted,#677962);
}

.token-symbol-special {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.token-symbol-special button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.token-symbol-special .token-symbol-thumb {
  width: 30px;
  height: 30px;
}

.token-symbol-special :is(svg,img) {
  width: 26px;
  height: 26px;
}

.token-symbol-special .token-symbol-empty {
  font-size: 24px;
}

.token-symbol-results {
  display: flex;
  justify-content: space-between;
  color: var(--muted,#677962);
  font-size: 12px;
}

.token-symbol-grid {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(94px,1fr));
  grid-auto-rows: minmax(112px,auto);
  align-content: start;
  gap: 8px;
  padding: 3px 5px 5px 3px;
}

.token-symbol-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
}

.token-symbol-grid button>span:last-child {
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#token-symbol-dialog [aria-pressed="true"] {
  border: 2px solid var(--accent,#ed4b22);
  background: rgb(var(--accent-rgb,237 75 34)/.12);
}

#token-symbol-dialog::backdrop {
  background: #101815c9;
}

@media (max-width:600px) {
  #token-symbol-dialog {
    padding: 12px;
  }

  #token-symbol-dialog .token-symbol-filters {
    grid-template-columns: 1fr;
  }

  #token-symbol-dialog h2 {
    font-size: 19px;
  }

  .token-symbol-grid {
    grid-template-columns: repeat(auto-fill,minmax(82px,1fr));
  }

  .token-symbol-change {
    max-width: 90px;
  }
}

/* Team exports retain a readable link and installation steps on narrow screens. */
.tts-share {
  margin-block: 1rem;
  padding-block: .5rem 1rem;
  border-bottom: 1px solid var(--border, #59615b);
}

.tts-share input,
#tts-importer-code {
  width: 100%;
  box-sizing: border-box;
}

#tts-importer-code {
  margin-top: .75rem;
  font-family: monospace;
}

.tts-shared-item {
  padding-block: .75rem;
  border-bottom: 1px solid var(--border, #59615b);
  overflow-wrap: anywhere;
}

.tts-shared-item p {
  margin: .25rem 0;
}

/* Companion editor chrome and responsive controls. */
/* Editor chrome only. SVG cards, imported artwork and export renderers are untouched. */
body[data-companion-section="studio"] {
  font: 16px/1.5 var(--font-ui);
  background: var(--bg);
  color: var(--ink);
}

#studio-workspace {
  --studio-muted: var(--muted);
}

#studio-workspace>header {
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  gap: 12px;
  padding: 12px 24px;
  min-height: 64px;
}

#studio-workspace>header .brand {
  display: none;
}

#studio-workspace .project-name {
  color: var(--muted);
  font-size: 14px;
}

body[data-companion-section="studio"] button {
  min-height: 40px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  border-radius: var(--button-radius);
  color: var(--ink);
  background: var(--panel-2);
  border-color: var(--line-strong);
  box-shadow: none;
}

body[data-companion-section="studio"] button:hover {
  border-color: var(--accent);
}

body[data-companion-section="studio"] .primary {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 750;
}

body[data-companion-section="studio"] .primary:hover {
  background: var(--accent-hover);
}

#studio-workspace .header-actions button:not(.primary),
#studio-workspace #new-project {
  color: var(--ink);
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.studio-bar {
  background: var(--surface);
  border-color: var(--line);
}

.studio-tabs button {
  background: transparent;
  border-color: transparent;
}

.studio-tabs button.active {
  color: var(--ink);
  background: rgb(var(--accent-rgb)/.14);
  box-shadow: inset 0 -2px var(--accent);
}

.cloud-indicator {
  color: var(--muted);
  font-size: 12px;
}

#cloud-status[data-state="error"] {
  color: var(--danger);
}

#cloud-status[data-state="pending"] {
  color: var(--gold);
}

.workspace>aside {
  background: var(--surface);
  border-color: var(--line);
}

.workspace>main {
  background: var(--bg);
}

.workspace :is(.panel,.team-tile) {
  background: var(--panel);
  border-color: var(--line);
  border-radius: 8px;
}

.workspace :is(.eyebrow,.section-note,.sidebar-bottom,.edition,.panel-title small,.record small,.hint,.rich-help,.rich-help code) {
  color: var(--muted);
}

.eyebrow,
.section-note,
.hint,
.rich-help {
  font-size: 12px;
}

.workspace nav button {
  background: transparent;
  border-color: transparent;
  font-size: 14px;
  font-weight: 500;
}

.workspace nav button.active {
  background: rgb(var(--accent-rgb)/.14);
  color: var(--ink);
  box-shadow: inset 3px 0 var(--accent);
}

.workspace nav button small {
  color: var(--muted);
}

.record.active {
  background: rgb(var(--accent-rgb)/.12);
  border-color: var(--accent);
  color: var(--ink);
}

#studio-workspace :is(label,.checkbox,.panel-title,.panel h2,.panel h3) {
  color: var(--ink);
}

#studio-workspace :is(input,textarea,select),
body[data-companion-section="studio"] dialog :is(input,textarea,select) {
  background: var(--surface-input);
  color: var(--ink);
  border-color: var(--line-strong);
  border-radius: var(--button-radius);
  font: 14px/1.5 var(--font-ui);
}

#studio-workspace :is(input:not([type="checkbox"]):not([type="file"]),select) {
  min-height: 40px;
}

#studio-workspace input[type="checkbox"] {
  accent-color: var(--accent);
}

#studio-workspace :is(.panel-title,.roster-row,.lore-image-item,.section-heading) {
  border-color: var(--line);
}

#studio-workspace .roster-row>.checkbox {
  color: var(--ink);
}

.rich-toolbar {
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.rich-toolbar .rich-size select {
  background: var(--surface-input);
}

.rich-help code {
  background: var(--panel-2);
}

#studio-workspace .nested {
  background: var(--panel-2);
  border-color: var(--line);
}

#studio-workspace .nested summary {
  color: var(--ink);
  border-color: var(--line);
}

#studio-workspace .loadout {
  border-color: var(--line);
}

#studio-workspace .import-label {
  background: var(--panel-2);
  border-color: var(--line-strong);
  border-radius: var(--button-radius);
}

#studio-workspace .panel-title span {
  color: var(--muted);
}

#studio-workspace .danger {
  color: var(--danger);
}

#studio-workspace .lore-empty {
  background: var(--panel-2);
  color: var(--muted);
  border-color: var(--line);
}

.rich-toolbar .rich-orange {
  color: var(--accent-text);
  text-decoration-color: var(--accent);
}

#preview-panel {
  background: var(--surface-well);
  border-color: var(--line);
  top: calc(var(--companion-bar-height,64px) + 8px);
  height: calc(100dvh - var(--companion-bar-height,64px) - 16px);
}

#preview-panel :is(.badge,.side-controls,#preview-note,.print-hint) {
  color: var(--muted);
  border-color: var(--line);
}

#preview-panel .side-controls button {
  background: var(--panel-2);
  border-color: var(--line-strong);
}

#view-toggle {
  color: var(--ink);
}

.operative-image-empty {
  background: var(--panel-2);
  color: var(--muted);
  border-color: var(--line);
}

.operative-image-thumb {
  border-color: var(--line);
}

.team-logo-thumb {
  background: var(--panel-2);
}

#community-panel {
  color: var(--ink);
}

#community-panel :is(.community-heading p,.team-tile>p,.team-tile-top,.team-tile-meta,.team-author,#library-pages) {
  color: var(--muted);
}

.team-tile {
  background: var(--panel);
  border-color: var(--line);
}

.team-state {
  color: var(--good);
}

.community-empty {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--muted);
}

body[data-companion-section="studio"] :is(dialog,#publication-dialog,#tts-dialog,.crop-dialog,.project-dialog) {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-strong);
  border-radius: 10px;
  font-family: var(--font-ui);
}

body[data-companion-section="studio"] dialog::backdrop {
  background: var(--overlay);
}

body[data-companion-section="studio"] dialog :is(p,.hint,.project-templates span,.crop-help,.crop-status,.crop-preview>span,#tts-summary,#tts-result p,.published-card h3) {
  color: var(--muted);
}

#publication-nav button {
  background: var(--panel-2);
  border-color: var(--line);
}

#publication-nav button.active,
.studio-login-tabs button.active {
  background: rgb(var(--accent-rgb)/.14);
  border-color: var(--accent);
  color: var(--ink);
}

#studio-login-submit {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.crop-board {
  background: var(--surface-well);
}

.crop-preview canvas {
  border-color: var(--line);
}

.tts-sheet {
  border-color: var(--line);
}

.download-button {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--button-radius);
}

#toast {
  background: var(--panel-3);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.project-dialog-error,
#studio-login-error {
  color: var(--danger);
}

body[data-companion-section="studio"] #confirm-delete-project {
  background: #b52c23;
  color: #fff;
  border-color: #b52c23;
}

body[data-companion-section="studio"] :is(button,input,textarea,select,summary,a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.studio-export-menu {
  position: relative;
}

.studio-export-menu>summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--button-radius);
}

.studio-export-menu>summary::-webkit-details-marker {
  display: none;
}

.studio-export-menu>summary::after {
  content: "▾";
}

.studio-export-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 15;
  min-width: 235px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}

.studio-export-options button {
  width: 100%;
  text-align: left;
}

@media (max-width:1100px) {
  #preview-panel {
    position: static;
    height: auto;
  }
}

@media (max-width:700px) {
  #studio-workspace>header {
    padding: 10px 14px;
    gap: 8px;
  }

  #studio-workspace .project-name {
    margin-left: auto;
    max-width: 150px;
  }

  #studio-workspace .header-actions {
    display: flex;
    gap: 8px;
    margin: 0;
    align-items: stretch;
  }

  #studio-workspace .header-actions>button,
  #studio-workspace .studio-export-menu {
    flex: 1 1 auto;
  }

  #studio-workspace :is(button,.studio-export-menu>summary) {
    min-height: 44px;
  }

  #studio-workspace .header-actions button {
    font-size: 13px;
  }

  .studio-export-options {
    right: 0;
  }

  .workspace>aside {
    padding: 12px 14px;
  }

  .workspace>aside .eyebrow {
    display: none;
  }

  .workspace nav {
    margin: 0;
  }

  .workspace nav button {
    min-height: 40px !important;
    padding: 8px 10px;
  }

  .workspace>main,
  #preview-panel {
    padding: 18px 14px;
  }

  .studio-bar {
    padding: 8px 14px;
    gap: 6px;
  }

  .studio-tabs button {
    padding: 7px 10px;
    font-size: 13px;
  }

  .cloud-indicator {
    font-size: 12px;
  }

  .section-heading h1 {
    font-size: 24px;
  }

  .section-note {
    margin-bottom: 12px;
  }

  #record-list {
    margin-bottom: 14px;
  }

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

@media print {
  .studio-export-menu {
    display: none;
  }
}

/* Keep workspace actions on the shared UI Kit density. */
:root #studio-workspace :is(.header-actions button,.project-picker button,.studio-export-menu>summary) {
  min-height:var(--button-height); padding:var(--button-padding); border-radius:var(--button-radius);
  font:var(--button-font-weight) var(--button-font-size)/var(--button-line-height) var(--font-ui); box-shadow:none;
}

/* Approval is a server-managed badge, separate from the team's own logo. */
.team-tile-brand { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin:12px 0 4px; min-height:64px; }
.team-tile-brand .team-tile-logo { margin:0; max-width:calc(100% - 80px); }
.team-approval-seal { display:block; width:64px; height:64px; object-fit:contain; flex:0 0 64px; margin-left:auto; }
