:root {
  --accent: #0f8a7b;
  --accent-dark: #0b6f63;
  --accent-soft: #e2f5f1;
  --accent-shadow: rgba(15, 138, 123, 0.22);
  --primary-gradient: linear-gradient(135deg, #0f8a7b, #14b8a6);
}

body[data-document-type="handout"] {
  --accent: #ea7a1f;
  --accent-dark: #c95d12;
  --accent-soft: #fff0df;
  --accent-shadow: rgba(234, 122, 31, 0.22);
  --primary-gradient: linear-gradient(135deg, #f97316, #f59e0b);
}

.teacher-stats {
  display: none !important;
}

.logo-sprite {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.arm-logo {
  aspect-ratio: 1500 / 430;
  display: block;
  object-fit: contain;
}

.brand-row {
  align-items: center;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,0.98), rgba(255,255,255,0.7) 38%, transparent 62%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 70%, #ffffff), #ffffff 72%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.075);
  display: grid;
  gap: 12px;
  justify-items: start;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.brand-row::after {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 68%);
  bottom: -72px;
  content: "";
  height: 160px;
  pointer-events: none;
  position: absolute;
  right: -58px;
  width: 160px;
}

.brand-logo {
  flex: 0 0 auto;
  height: auto;
  max-height: 75px;
  object-fit: contain;
  object-position: left center;
  position: relative;
  width: min(100%, 300px);
  z-index: 1;
}

.app-brand-logo {
  filter: drop-shadow(0 16px 18px rgba(15, 23, 42, 0.09));
}

.brand-meta {
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.brand-note {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.brand-meta .account-name {
  margin-top: 0;
}

.account-name {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 10px;
  padding: 6px 10px;
}

.pin-logo {
  height: auto;
  max-height: 62px;
  width: min(100%, 250px);
}

.pin-hero-logo {
  height: auto;
  max-height: 86px;
  width: min(92%, 300px);
}

.admin-brand-logo {
  flex: 0 0 230px;
  height: auto;
  max-height: 58px;
  width: 230px;
}

.advanced-shell {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  overflow: hidden;
}

.advanced-toggle {
  align-items: center;
  background: #fff;
  border: 0;
  color: #102033;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 18px;
  text-align: left;
  width: 100%;
}

.advanced-toggle small {
  color: #64748b;
  display: block;
  font-weight: 700;
  margin-top: 3px;
}

.advanced-toggle.is-open {
  background: var(--accent-soft);
}

.advanced-icon {
  align-items: center;
  background: var(--primary-gradient);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.advanced-panel {
  background: #fbfdfc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.advanced-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.custom-option-input {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  font: inherit;
  margin-top: 10px;
  padding: 12px 14px;
  width: 100%;
}

.choice-button.is-selected,
.choice-card.is-selected,
.template-card.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 10px 25px var(--accent-shadow);
  color: var(--accent-dark);
}

.choice-card {
  align-items: center;
  gap: 8px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 78px;
  padding: 11px;
}

.choice-card strong {
  color: inherit;
  font-size: 13.5px;
}

.choice-card small {
  color: #526271;
  font-size: 11px;
  line-height: 1.18;
}

.choice-card.is-selected small {
  color: color-mix(in srgb, var(--accent-dark) 74%, #475569);
  font-weight: 760;
}

.choice-card.is-selected .choice-icon {
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-dark);
}

.primary-button,
.download-button:not(.is-disabled) {
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 14px 30px var(--accent-shadow);
}

.secondary-button,
.revision-chips button:hover,
.history-actions button:hover,
.history-actions a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.step-mark {
  background: var(--primary-gradient);
  box-shadow: 0 12px 28px var(--accent-shadow);
}

.summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.folder-tools {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.folder-create-row,
.folder-move-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.folder-move-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.folder-create-row input,
.folder-move-row select {
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  font: inherit;
  min-width: 0;
  padding: 10px 11px;
}

.small {
  min-height: 38px;
  padding: 8px 10px;
}

.history-thumb {
  background:
    linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-color: #ffffff;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  object-fit: contain;
  object-position: center;
}

.history-actions button,
.history-actions a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  text-align: center;
}

.loading-overlay {
  backdrop-filter: blur(6px);
}

.paper-loader {
  height: 86px;
  position: relative;
  width: 112px;
}

.paper-loader i {
  animation: page-float 1.35s ease-in-out infinite;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, #dbe4ea);
  border-radius: 8px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
  height: 68px;
  left: 20px;
  position: absolute;
  top: 8px;
  transform-origin: bottom center;
  width: 54px;
}

.paper-loader i:nth-child(2) {
  animation-delay: 0.14s;
  left: 34px;
}

.paper-loader i:nth-child(3) {
  animation-delay: 0.28s;
  left: 48px;
}

@keyframes page-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@media (min-width: 981px) {
  .output-panel {
    align-self: start;
    position: sticky;
    top: 18px;
  }
}

@media (max-width: 720px) {
  .brand-row {
    align-items: center;
  }

  .brand-logo {
    max-height: 68px;
    width: min(100%, 272px);
  }

  .admin-brand-logo {
    flex-basis: 190px;
    max-height: 48px;
    width: 190px;
  }

  .folder-create-row,
  .folder-move-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  .app-shell {
    grid-template-columns: minmax(300px, 370px) minmax(430px, 1fr) minmax(250px, 305px);
    min-width: 1010px;
  }

  .history-panel {
    border-left: 1px solid var(--line);
    border-top: 0;
    box-shadow: -12px 0 34px rgba(19, 33, 43, 0.05);
    grid-column: auto;
    max-height: 100vh;
    min-height: 100vh;
    position: sticky;
    top: 0;
  }

  .history-list,
  .history-panel .filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .app-shell {
    grid-template-columns: minmax(292px, 330px) minmax(410px, 1fr) minmax(244px, 280px);
  }

  .control-panel {
    padding: 20px;
  }

  .history-panel {
    padding: 20px 14px;
  }

  .brand-row {
    padding: 14px;
  }

  .brand-logo {
    max-height: 66px;
    width: min(100%, 260px);
  }

  .folder-move-row,
  .bulk-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    min-width: 0;
  }
}

.pin-gate {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    url("landing-wallpaper.svg?v=20260516a") center / cover no-repeat;
  padding: 24px;
}

.pin-layout {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: block;
  overflow: visible;
  width: min(100%, 430px);
}

.pin-card {
  align-content: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  justify-items: center;
  min-height: 0;
  padding: 34px;
  text-align: center;
  backdrop-filter: blur(18px);
}

.pin-card h1 {
  color: #102033;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-align: center;
}

.pin-card .input-block {
  width: 100%;
  text-align: left;
}

.pin-card .primary-button {
  max-width: 240px;
}

.choice-card.is-selected strong,
.choice-card.is-selected small,
.choice-card.is-selected .choice-icon {
  color: var(--accent-dark);
}

.choice-card.is-selected small {
  opacity: 0.86;
}

.choice-card.is-selected .choice-icon {
  background: rgba(255, 255, 255, 0.64);
}

.history-heading-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.history-expand-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  line-height: 1;
  width: 32px;
}

#historyCount {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.folder-move-row {
  align-items: stretch;
  grid-template-columns: 1fr 1fr;
}

.folder-move-row select {
  grid-column: 1 / -1;
}

.folder-move-row button {
  min-width: 0;
  white-space: normal;
  width: 100%;
}

.history-thumb.is-portrait {
  aspect-ratio: 1 / 1.414;
}

.history-thumb.is-landscape {
  aspect-ratio: 1.414 / 1;
}

@media (min-width: 760px) {
  .app-shell:not(.admin-mode) {
    grid-template-columns: minmax(250px, 360px) minmax(300px, 1fr) minmax(220px, 315px);
    min-width: 0;
  }

  .app-shell.history-expanded:not(.admin-mode) {
    grid-template-columns: minmax(240px, 330px) minmax(280px, 1fr) minmax(410px, min(44vw, 560px));
  }

  .control-panel {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    box-shadow: 12px 0 40px rgba(19, 33, 43, 0.06);
    min-height: 100vh;
  }

  .output-panel {
    align-self: start;
    min-height: 100vh;
    position: sticky;
    top: 18px;
  }

  .history-panel {
    border-left: 1px solid var(--line);
    border-top: 0;
    box-shadow: -12px 0 34px rgba(19, 33, 43, 0.05);
    grid-column: auto;
    max-height: 100vh;
    min-height: 100vh;
    position: sticky;
    top: 0;
  }

  .history-list,
  .history-panel .filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 759px) {
  .app-shell:not(.admin-mode) {
    grid-template-columns: 1fr;
  }

  .history-panel {
    grid-column: 1 / -1;
  }
}

.brand-row {
  justify-items: center;
  text-align: center;
}

.brand-logo {
  object-position: center;
}

.brand-meta {
  border-top: 0;
  justify-content: center;
  padding-top: 0;
}

.brand-meta .account-name,
.account-name {
  justify-content: center;
  margin-top: 0;
  text-align: center;
  text-transform: uppercase;
}

.compact-controls {
  grid-template-columns: 1fr;
}

.segmented-control .choice-button {
  line-height: 1.15;
  min-height: 44px;
  padding-left: 8px;
  padding-right: 8px;
  white-space: normal;
  word-break: keep-all;
}

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

.palette-option {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  min-height: 42px;
  padding: 7px 9px;
}

.palette-option.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 8px 18px var(--accent-shadow);
  color: var(--accent-dark);
}

.palette-swatch {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
}

.palette-swatch.ocean {
  background: linear-gradient(135deg, #0ea5e9 0 33%, #14b8a6 33% 66%, #facc15 66%);
}

.palette-swatch.sunset {
  background: linear-gradient(135deg, #fb923c 0 33%, #f43f5e 33% 66%, #581c87 66%);
}

.palette-swatch.forest {
  background: linear-gradient(135deg, #15803d 0 33%, #a3e635 33% 66%, #7dd3fc 66%);
}

.palette-swatch.rainbow {
  background: conic-gradient(#ef4444, #f97316, #eab308, #22c55e, #06b6d4, #6366f1, #ef4444);
}

.palette-picker[hidden],
.folder-create-row[hidden],
.folder-move-row[hidden],
.library-tools[hidden] {
  display: none !important;
}

.folder-main-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.folder-create-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.folder-move-row select {
  grid-column: auto;
}

.filter-toggle-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  gap: 9px;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  width: 100%;
}

.filter-toggle-button[aria-expanded="true"] {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.filter-icon {
  display: inline-block;
  height: 18px;
  position: relative;
  width: 20px;
}

.filter-icon::before,
.filter-icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 20px;
}

.filter-icon::before {
  box-shadow: 0 7px 0 currentColor;
  top: 2px;
}

.filter-icon::after {
  top: 16px;
}

.history-expand-button {
  font-size: 1.25rem;
}

@media (min-width: 760px) {
  .folder-main-row {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .app-shell.history-expanded:not(.admin-mode) {
    grid-template-columns: minmax(220px, 315px) minmax(260px, 1fr) minmax(540px, min(62vw, 820px));
  }

  .app-shell.history-expanded .history-list {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }

  .app-shell.history-expanded .history-item {
    gap: 7px;
    padding: 7px;
  }

  .app-shell.history-expanded .history-info strong {
    -webkit-line-clamp: 1;
    font-size: 12px;
  }

  .app-shell.history-expanded .history-info small {
    font-size: 10px;
  }

  .app-shell.history-expanded .history-actions {
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell.history-expanded .history-actions button,
  .app-shell.history-expanded .history-actions a {
    font-size: 10px;
    min-height: 30px;
    padding: 0 4px;
  }
}

@media (max-width: 1180px) and (min-width: 760px) {
  .app-shell.history-expanded:not(.admin-mode) {
    grid-template-columns: minmax(210px, 285px) minmax(260px, 1fr) minmax(500px, 58vw);
  }
}

/* Make My Documents behave like a drawer instead of squeezing the workspace. */
@media (min-width: 760px) {
  .app-shell.history-expanded:not(.admin-mode) {
    grid-template-columns: minmax(250px, 360px) minmax(300px, 1fr) minmax(220px, 315px);
  }

  .app-shell.history-expanded .history-panel {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid var(--line);
    border-top: 0;
    bottom: 0;
    box-shadow: -26px 0 60px rgba(19, 33, 43, 0.18);
    max-height: 100vh;
    min-height: 100vh;
    overflow: auto;
    padding: 22px;
    position: fixed;
    right: 0;
    top: 0;
    width: min(800px, calc(100vw - 270px));
    z-index: 20;
  }

  .app-shell.history-expanded .history-list {
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    padding-bottom: 24px;
  }

  .app-shell.history-expanded .library-tools {
    background: #fbfdfc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    margin-top: 8px;
    padding: 12px;
  }

  .app-shell.history-expanded .history-panel .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell.history-expanded .bulk-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.history-expanded .history-actions {
    gap: 5px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.history-expanded .history-actions [data-delete-id] {
    grid-column: 1 / -1;
  }

  .app-shell.history-expanded .history-actions button,
  .app-shell.history-expanded .history-actions a {
    font-size: 10px;
    min-height: 29px;
    padding: 0 5px;
  }
}

@media (max-width: 920px) and (min-width: 760px) {
  .app-shell.history-expanded .history-panel {
    width: min(680px, calc(100vw - 190px));
  }

  .app-shell.history-expanded .history-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

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

.history-panel {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  position: sticky;
}

.history-heading {
  padding-right: 42px;
}

.history-heading h2 {
  font-size: 20px;
}

.history-expand-button {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  left: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
}

.history-expand-button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.folder-tools .secondary-button,
.folder-tools .small {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  color: var(--accent-dark);
}

.folder-tools .secondary-button {
  background: var(--accent-soft);
}

.filter-toggle-button {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  color: var(--accent-dark);
  justify-self: end;
  min-height: 38px;
  padding: 0;
  width: 44px;
}

.filter-toggle-button[aria-expanded="true"] {
  box-shadow: 0 8px 18px var(--accent-shadow);
}

.icon-only-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 38px;
}

.bulk-actions .icon-only-button,
.folder-tools .icon-only-button {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  color: var(--accent-dark);
}

.bulk-actions .icon-only-button {
  background: var(--accent-soft);
  min-height: 38px;
}

.bulk-actions .delete-action,
.folder-tools .icon-only-button {
  color: var(--danger);
}

.library-tools {
  background: #fbfdfc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  margin-top: 2px;
  padding: 12px;
}

.result-actions-panel {
  align-content: start;
}

.post-generate-actions,
.revision-editor {
  display: grid;
  gap: 10px;
}

.post-generate-actions {
  grid-template-columns: 1fr;
}

.revision-editor {
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  padding-top: 12px;
}

.revision-chips button {
  background: #ffffff;
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  color: var(--accent-dark);
}

.ghost-button {
  color: var(--accent-dark);
}

.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.palette-picker {
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}

.palette-option {
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.palette-option span {
  color: inherit;
  display: inline;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.palette-option .palette-swatch {
  background: var(--swatch, linear-gradient(135deg, var(--accent), #facc15));
  flex: 0 0 30px;
  height: 30px;
  width: 30px;
}

.history-actions {
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-actions .icon-action {
  aspect-ratio: 1;
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 10px;
  color: var(--accent-dark);
  min-height: 34px;
  padding: 0;
}

.history-actions .delete-action {
  color: var(--danger);
}

.mini-icon {
  height: 16px;
  width: 16px;
}

.favorite-icon {
  display: grid;
  font-size: 17px;
  font-weight: 900;
  height: 18px;
  line-height: 1;
  place-items: center;
  width: 18px;
}

.favorite-icon::before {
  content: "☆";
}

.favorite-action.is-favorite .favorite-icon::before {
  content: "★";
}

.trash-icon {
  display: inline-block;
  height: 17px;
  position: relative;
  width: 15px;
}

.trash-icon::before {
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  bottom: 0;
  content: "";
  height: 12px;
  left: 1px;
  position: absolute;
  width: 13px;
}

.trash-icon::after {
  background: currentColor;
  border-radius: 999px;
  box-shadow: 4px -3px 0 -1px currentColor, 8px 0 0 0 currentColor;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  top: 2px;
  width: 15px;
}

.app-shell.history-expanded .history-expand-button {
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
}

.app-shell.history-expanded .history-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-shell.history-expanded .history-actions [data-delete-id] {
  grid-column: auto;
}

.app-shell.history-expanded .history-actions button,
.app-shell.history-expanded .history-actions a {
  min-height: 32px;
}

@media (max-width: 759px) {
  .history-expand-button {
    left: auto;
    right: 12px;
    top: 26px;
    transform: none;
  }

  .history-heading {
    padding-right: 48px;
  }
}
