.ring-claim {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
.ring-claim-text { flex: 1 1 220px; }
.ring-claim-text h2 { margin: 0 0 4px; }
.ring-claim-text p { margin: 0; line-height: 1.65; }
.ring-art { image-rendering: pixelated; display: block; }
.ring-art-ring { width: 40px; height: 40px; }
.ring-widget { position: fixed; inset: 0; pointer-events: none; z-index: 56; }
.ring-trigger, .ring-art-shadow, .ring-panel { position: fixed; top: 0; left: 0; }
.ring-trigger {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 0;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  z-index: 2;
  user-select: none;
}
.ring-trigger.dragging { cursor: grabbing; }
.ring-trigger .ring-art-ring { filter: drop-shadow(1px 2px 0 rgba(24, 47, 41, .24)); }
.ring-trigger:active .ring-art-ring { scale: .97; }
.ring-art-shadow {
  width: 56px;
  height: 62px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: drop-shadow(0 0 1px #c7e3d0);
  transition: opacity 140ms cubic-bezier(.23, 1, .32, 1), visibility 140ms;
}
.ring-open > .ring-art-shadow { opacity: 1; visibility: visible; }
.ring-panel {
  display: flex;
  flex-direction: column;
  width: 376px;
  height: min(540px, 78dvh);
  box-sizing: border-box;
  border: 1px solid var(--line-gold, #b6a77c);
  border-top: 2px solid #558a7b;
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(18, 35, 33, .18);
  background: var(--card, #fbf8f1);
  color: var(--ink, #1f252c);
  pointer-events: auto;
  overflow: hidden;
  font-size: 14px;
}
.ring-panel[hidden] { display: none; }
.ring-header, .ring-menu, .ring-footer, .ring-notice {
  flex: 0 0 auto;
  padding-inline: 12px;
}
.ring-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
}
.ring-header h2 { margin: 0; font-size: 18px; }
.ring-kicker { margin: 0 0 2px; color: var(--ink-2, #4a5158); font-size: 12px; }
.ring-menu { display: flex; gap: 4px; border-bottom: 1px solid var(--line, #d9d1bb); }
.ring-menu .ring-button {
  border-color: transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.ring-menu [aria-pressed="true"] {
  border-bottom-color: #558a7b;
  color: var(--ink, #1f252c);
  font-weight: 650;
}
.ring-notice {
  min-height: 0;
  color: var(--ink-2, #4a5158);
  line-height: 1.45;
}
.ring-notice:not(:empty) { padding-block: 5px; background: var(--paper-2, #efe8d9); }
.ring-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px; overscroll-behavior: contain; }
.ring-footer { padding-block: 4px; border-top: 1px solid var(--line, #d9d1bb); }
.ring-row { display: flex; align-items: end; flex-wrap: wrap; gap: 6px; }
.ring-row label { flex: 1 1 140px; }
.ring-button {
  font: inherit;
  min-height: 36px;
  max-width: 100%;
  padding: 4px 9px;
  color: var(--ink, #1f252c);
  border: 1px solid var(--line, #d9d1bb);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-align: start;
  overflow-wrap: anywhere;
}
.ring-button:active { transform: scale(.98); }
.ring-button:disabled { opacity: .6; cursor: default; }
.ring-primary { color: #fbfbf1; background: #305c51; border-color: #305c51; }
.ring-choice { display: block; width: 100%; margin-bottom: 6px; }
.ring-subtle { color: var(--ink-2, #4a5158); font-size: 13px; }
.ring-story { padding: 10px; margin: 8px 0; border-inline-start: 2px solid #558a7b; background: var(--paper-2, #efe8d9); line-height: 1.75; }
.ring-turn, .ring-entry, .ring-card-editor, .ring-memory-form {
  margin: 8px 0;
  padding: 9px;
  border: 1px solid var(--line, #d9d1bb);
  border-radius: 4px;
}
.ring-turn-user, .ring-feedback { background: var(--paper-2, #efe8d9); }
.ring-turn p, .ring-entry p { margin: 4px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.ring-entry h3, .ring-card-editor h3, .ring-body > h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
.ring-practice-note { margin: 6px 0; font-size: 13px; }
.ring-practice-note summary { cursor: pointer; min-height: 32px; }
.ring-growth { margin: 6px 0; padding: 5px 8px; background: var(--paper-2, #efe8d9); }
.ring-feedback { padding: 8px; }
.ring-field {
  display: grid;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--ink, #1f252c);
}
.ring-field span { font-size: 13px; }
.ring-field :is(input, textarea, select) {
  box-sizing: border-box;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line, #d9d1bb);
  border-radius: 4px;
  background: var(--card, #fbf8f1);
  color: var(--ink, #1f252c);
  font: inherit;
}
.ring-field textarea { resize: vertical; }
.ring-widget :focus-visible, .ring-claim :focus-visible { outline: 2px solid #548c7c; outline-offset: 2px; }
@media (pointer: coarse) {
  .ring-button { min-height: 44px; }
  .ring-field :is(input, textarea, select) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ring-art-shadow { transition: none; }
}
