.standard-symbol-entry {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 1px solid #8d261e;
  background: #fff8f5;
  color: #7f1d1d;
  font-weight: 700;
  letter-spacing: .02em;
}

.standard-symbol-drawer {
  position: absolute;
  z-index: 26;
  inset: 10px auto 10px 58px;
  width: min(480px, calc(100vw - 90px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #b8c0cc;
  box-shadow: 10px 0 34px rgba(15, 23, 42, .22);
  transform: translateX(calc(-100% - 80px));
  visibility: hidden;
  transition: transform .18s ease, visibility 0s linear .18s;
}

.standard-symbol-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.standard-symbol-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: #f8fafc;
  background: #172033;
  border-bottom: 3px solid #a3261d;
}

.standard-symbol-head h2 { margin: 0; font-size: 16px; letter-spacing: .04em; }
.standard-symbol-head p { margin: 3px 0 0; color: #b9c3d3; font-size: 11px; }
.standard-symbol-head > div:first-child { flex: 1; min-width: 0; }
.standard-symbol-head label { display: flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; }
.standard-symbol-head button { width: 34px; height: 34px; padding: 0; color: #fff; background: transparent; border-color: #5c6678; font-size: 22px; }

.standard-symbol-search { padding: 12px 14px 8px; background: #fff; }
.standard-symbol-search input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid #98a2b3; background: #fff; }
.standard-symbol-search input:focus { outline: 2px solid #a3261d; outline-offset: 1px; }

.standard-symbol-nav {
  display: flex;
  gap: 6px;
  padding: 8px 14px 10px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #d9dee7;
  scrollbar-width: thin;
}

.standard-symbol-nav button { flex: 0 0 auto; min-height: 30px; padding: 5px 9px; border-color: #c6ccd6; background: #f8fafc; font-size: 11px; }
.standard-symbol-nav button.is-active { border-color: #8d261e; color: #fff; background: #8d261e; }
.standard-symbol-status { padding: 8px 14px 2px; color: #657084; font-size: 11px; }

.standard-symbol-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding: 8px 12px 16px;
  overflow: auto;
}

.standard-symbol-card { position: relative; min-width: 0; border: 1px solid #d2d7df; background: #fff; }
.standard-symbol-card:hover { border-color: #8d261e; box-shadow: 0 3px 10px rgba(15, 23, 42, .12); }
.standard-symbol-card.is-pending { outline: 3px solid #b42318; outline-offset: 1px; }
.standard-symbol-place { width: 100%; min-height: 126px; padding: 8px 5px 7px; display: flex; flex-direction: column; align-items: center; border: 0; background: transparent; }
.standard-symbol-thumb { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 4px; background: #f8fafc; border: 1px solid #e3e7ed; }
.standard-symbol-thumb img { max-width: 64px; max-height: 64px; object-fit: contain; }
.standard-symbol-place strong { width: 100%; min-height: 30px; overflow: hidden; color: #172033; font-size: 11px; line-height: 15px; text-align: center; }
.standard-symbol-place small { width: 100%; overflow: hidden; color: #7a8494; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.standard-symbol-favorite { position: absolute; top: 4px; right: 4px; width: 27px; height: 27px; padding: 0; border-radius: 0; color: #9ca3af; background: rgba(255,255,255,.92); }
.standard-symbol-favorite.is-active { color: #d97706; border-color: #d97706; }
.standard-symbol-empty { grid-column: 1 / -1; padding: 50px 20px; color: #657084; line-height: 2; text-align: center; }
.standard-symbol-pager { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 0 2px; color: #657084; font-size: 11px; }
.standard-symbol-pager button { min-height: 32px; padding: 5px 14px; }

@media (max-width: 680px) {
  .standard-symbol-drawer { inset: auto 0 0 0; width: 100%; max-height: 68dvh; transform: translateY(100%); }
  .standard-symbol-drawer.is-open { transform: translateY(0); }
  .standard-symbol-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: 8px; }
  .standard-symbol-head { padding-top: max(10px, env(safe-area-inset-top)); }
  .standard-symbol-place { min-height: 112px; }
  .standard-symbol-thumb { width: 58px; height: 58px; }
  .standard-symbol-thumb img { max-width: 52px; max-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .standard-symbol-drawer { transition: none; }
}
.standard-symbol-placement-active .upper-canvas,
.standard-symbol-placement-active canvas { cursor: crosshair !important; }
