/* dialogs.css: Contents of the help, contact and notify dialogs; empty state and legend. */
.help h3 { margin: 0 0 4px; font-family: var(--font-title); font-size: 20px; font-weight: var(--title-weight); }
.help-fig { margin: 16px 0 6px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.help-fig svg { display: block; width: 100%; height: auto; font-family: var(--font-ja); }
.help-fig figcaption { margin-top: 10px; font-family: var(--font-ja); font-size: 13px; line-height: 1.6; color: var(--muted); }
.help-fig figcaption b { color: var(--ink); font-weight: 700; }
.help h4 { margin: 20px 0 0; font-family: var(--font-title); font-size: 13px; font-weight: 700; color: var(--muted); }
.help ol, .help ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-family: var(--font-ja); font-size: 13.5px; line-height: 1.6; }
.help .tips { gap: 10px; font-size: 13px; }
.help li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.help .steps .glyph { border-color: transparent; background: var(--ladder); color: var(--bg); border-radius: 50%; }
.help li > svg, .help .glyph { width: 30px; height: 30px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.help .glyph { display: grid; place-items: center; padding: 0; font: 700 13px/1 var(--font-num); }
.help li b { display: block; font-weight: 700; }
.help li span { color: var(--muted); }
.help .note { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-ja); font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.help .note p { margin: 0 0 8px; }
.help .note p:last-child { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.help .note a, .help .note .link-btn { color: var(--accent); }
/* Until the guide has been opened once, its button carries a small dot. */
:root[data-help-new] #helpBtn::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.contact h3 { margin: 0 0 6px; font-family: var(--font-title); font-size: 20px; font-weight: var(--title-weight); }
.contact label { display: grid; gap: 4px; margin-top: 14px; font-family: var(--font-ja); font-size: 13px; font-weight: 500; }
.contact label small { font-weight: 400; color: var(--muted); }
/* 16px keeps iOS from zooming into the field */
.contact input, .contact textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-ja); }
.contact textarea { min-height: 128px; resize: vertical; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .status { min-height: 1.6em; margin: 10px 0 0; font-family: var(--font-ja); font-size: 13px; }
.contact .status.ng { color: var(--ng); }
.contact .status.ok { color: var(--ok); }
/* 今日の上映回の「現在地から間に合うか」 (js/sheets.js fromHere). */
.here-ask { margin: 10px 0 0; }
.here-ask .text-btn { display: inline-flex; align-items: center; gap: 6px; }
.here-ask .note { font-family: var(--font-ja); font-size: 12.5px; color: var(--muted); }
.notify .status { min-height: 1.6em; margin: 10px 0 0; font-family: var(--font-ja); font-size: 13px; }
.notify .status.ng { color: var(--ng); }
.notify .status.ok { color: var(--ok); }
.notify .notify-help { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.7 var(--font-ja); }
.notify-opts { display: grid; gap: 2px; margin-top: 10px; }
.notify-opts[hidden] { display: none; }
.notify-opts label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.notify-opts label:last-child { border-bottom: 1px solid var(--line); }
/* Switches, not checkboxes: each kind turns on or off at once (iOS-style settings). Placed at the end of the row. */
.notify-opts label { justify-content: space-between; }
.notify-opts input { order: 2; flex: none; appearance: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 13px;
  background: var(--line-strong); opacity: .35; cursor: pointer; transition: background .18s var(--ease), opacity .18s var(--ease); }
.notify-opts input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: translate .18s var(--ease); }
.notify-opts input:checked { background: var(--accent); opacity: 1; }
.notify-opts input:checked::after { translate: 18px 0; }
.notify-opts input:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) { .notify-opts input, .notify-opts input::after { transition: none; } }
.notify-opts span { display: grid; gap: 3px; font-family: var(--font-ja); }
.notify-opts b { font-size: 14px; font-weight: 700; }
.notify-opts small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.contact .btn[disabled] { opacity: .6; cursor: default; }

.empty { padding: 40px 16px; color: var(--muted); text-align: center; }
.legend { padding: 12px 16px; margin: 0; color: var(--muted); font-family: var(--font-ja); font-weight: var(--ja-light); font-size: 12px; }
/* これまでのはしご (plan.js openLog), and its link under an empty plan and on the day's record card. */
.plan-log { display: flex; justify-content: center; margin: 8px 0 0; }
.recap .plan-log { grid-column: 1 / -1; margin: 2px 0 0; }
.recap .plan-log button { color: inherit; opacity: .85; white-space: nowrap; text-decoration-color: currentColor; }
.plan-log button { padding: 4px 6px; border: 0; background: none; color: var(--muted); font: 12.5px var(--font-ja); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.plan-log button:hover { color: var(--ink); text-decoration-color: currentColor; }
.plan-log b { color: var(--ink); font-weight: 700; }
.log h3 { margin: 0 0 2px; font-family: var(--font-title); font-size: 20px; font-weight: var(--title-weight); }
.log .meta { margin: 0 0 14px; font: 12px/1.6 var(--font-ja); color: var(--muted); }
.log .stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; margin: 0 0 16px; }
.log .stats div { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: 12px var(--font-ja); color: var(--muted); }
.log .stats b { display: block; margin-top: 2px; color: var(--ink); font: 700 20px/1.1 var(--font-num); }
.log .stats b small { margin-left: 2px; color: var(--muted); font: 500 11px var(--font-ja); }
.log .stats b.fav { margin-top: 4px; font: 700 13px/1.4 var(--font-ja); overflow-wrap: anywhere; }
.log ol { list-style: none; margin: 0; padding: 0; }
.log ol > li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--font-ja); }
.log ol > li > img { width: 40px; height: 40px; }
.log .when { color: var(--ink); font-size: 13px; font-weight: 700; }
.log .when span { margin-left: 8px; color: var(--accent); font-size: 12px; }
.log .films { margin: 4px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.log .films b { margin-right: 6px; color: var(--muted); font-family: var(--font-num); font-weight: 600; }
.log .films i { margin-right: 6px; color: var(--ink); font-style: normal; font-weight: 600; }
.log ol .btn { align-self: center; height: 32px; padding: 0 10px; font-size: 12px; }
.log .note { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.7 var(--font-ja); }
.log .note .link-btn { margin-left: 8px; color: var(--accent); }
/* チェックイン (sheets.js): done, as a quiet label in place of the button. */
/* チェックイン: its own row under the ticket, only around the show's time (timeline.js canCheckin), so the three
   buttons below keep their row. */
.sheet .checkin { margin: -4px 0 10px; }
.sheet .checkin > button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--accent); font: 700 14px var(--font-ja); text-align: left; cursor: pointer; }
.sheet .checkin > button svg { flex: none; width: 18px; height: 18px; }
.sheet .checkin > button span { display: grid; }
.sheet .checkin small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.sheet .checkin-say { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font: 12.5px var(--font-ja); }
.sheet .checkin .next { display: grid; gap: 2px; margin-top: 8px; padding: 8px 12px; border-left: 2px solid var(--ladder); font-family: var(--font-ja); }
.sheet .checkin .next b { font-size: 13.5px; }
.sheet .checkin .next span { color: var(--muted); font-size: 12px; }
.sheet .checkin .next-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
.sheet .checkin .next-acts a, .sheet .checkin .next-acts .link-btn { color: var(--accent); font-size: 12.5px; }
.sheet .checkin .next .ng { color: var(--ng); }
@media (hover: hover) { .sheet .checkin > button:hover { background: color-mix(in srgb, var(--accent) 13%, transparent); } }
/* バッジ (plan.js badgesHtml): a medal round 半券ちゃん, its ring notched like a ticket stub. Plain: 錆浅葱; 金; キラ:
   an aurora from 錆浅葱 through gold, pink and blue in a gold rim, with a slow sheen. */
.badges { margin: 0 0 16px; }
.badges h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font: 700 13px var(--font-title); color: var(--ink); }
.badges h4 small { color: var(--muted); font: 500 12px var(--font-ja); }
.badges ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.badges li { display: grid; justify-items: center; align-content: start; gap: 3px; text-align: center; color: var(--ink); font: 700 11.5px/1.35 var(--font-ja); }
.badges li small { color: var(--muted); font-size: 10.5px; font-weight: 500; }
.badges .medal { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, var(--surface) 0 25px, transparent 26px), var(--ring, #2a6f77);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12), inset 0 0 0 2px rgba(255, 255, 255, .35); }
.badges .medal::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .6); }
.badges .medal img { position: relative; z-index: 1; width: 46px; height: 46px; }
.badges .gold .medal { --ring: linear-gradient(145deg, #c9a24a, #f3dc8b 40%, #b8892f 70%, #e8cd7a); }
.badges .kira .medal { --ring: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 35%),
    conic-gradient(from var(--a, 200deg), #1d5f67, #3fa39a, #9fd8c4, #f0d98a, #e7a6b8, #8fb7e8, #2f7f86, #1d5f67);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 0 0 2px #c9a24a, 0 0 12px rgba(240, 217, 138, .5); animation: badge-foil 9s linear infinite; }
.badges .kira .medal::after { content: "✦"; position: absolute; z-index: 2; right: -3px; top: -1px; color: #e9c65c; font-size: 14px; text-shadow: 0 0 5px rgba(255, 230, 150, .9); }
.badges .kira .medal i { position: absolute; z-index: 2; left: 2px; bottom: 9px; color: #fff4c8; font-size: 9px; font-style: normal; text-shadow: 0 0 4px rgba(255, 230, 150, .9); }
.badges .kira:not(.off) b::after { content: " ✦"; color: #c9a24a; font-size: 10px; vertical-align: 1px; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 200deg; }
@keyframes badge-foil { to { --a: 560deg; } }
@media (prefers-reduced-motion: reduce) { .badges .kira .medal { animation: none; } }
.badges li.off { color: var(--muted); }
.badges li.off .medal { --ring: var(--line); box-shadow: none; animation: none; }
.badges li.off .medal::before { border-color: var(--surface); }
.badges li.off .medal::after { content: none; }
.badges li.off img { filter: grayscale(1); opacity: .3; }
.badges .new-tag { margin-top: -2px; color: var(--accent); font: 700 9px var(--font-num); letter-spacing: .06em; }
.badges .badge-note { margin: 12px 0 0; color: var(--muted); font: 11.5px/1.6 var(--font-ja); }
.plan-log .badge-new { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 11px; font-weight: 700; }
/* これまでのはしご: shows checked in at, and the 半券 collected. */
.log .films li.seen b::before { content: "✓"; margin-right: 4px; color: var(--accent); }
.log .stats .seen-n { display: block; margin-top: 2px; color: var(--accent); font-size: 10.5px; }
.stubs { margin: 0 0 16px; }
.stubs h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 700 13px var(--font-title); color: var(--ink); }
.stubs h4 small { color: var(--muted); font: 500 12px var(--font-ja); }
.stubs ul { list-style: none; margin: 0 -2px; padding: 2px 2px 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.stubs li { flex: none; }
/* More to the right (plan.js markStubsScroll): the row fades out at that edge, so the cut-off 半券 reads as "scroll". */
.stubs ul.more { mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.stubs li > button { display: grid; gap: 1px; width: 150px; padding: 8px 30px 8px 10px; border: 0; border-radius: var(--radius); text-align: left; cursor: pointer;
  background: linear-gradient(90deg, #d8ebea calc(100% - 22px), #2a6f77 calc(100% - 22px)); color: #1d5258; font-family: var(--font-ja); }
.stubs li > button small { font: 600 10px var(--font-num); letter-spacing: .05em; opacity: .8; }
.stubs h4 .link-btn { margin-left: auto; color: var(--accent); font: 500 12px var(--font-ja); }
.stubs .stubs-more { width: auto; height: 100%; padding: 8px 14px; background: none; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); font-weight: 700; font-size: 12.5px; place-content: center; }
.stubs .stubs-more span { font: 500 11px var(--font-ja); color: var(--muted); }
/* すべて見る: by month, wrapping into columns. */
.stubs.all h5 { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 6px; font: 700 12.5px var(--font-ja); color: var(--ink); }
.stubs.all h5 small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.stubs.all ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
.stubs.all li > button { width: 100%; }
.stubs li > button b { overflow: hidden; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.stubs li > button span { overflow: hidden; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }
/* チェックイン in マイ時間割 (plan.js itemsHtml), beside チケット. */
.item .item-checkin { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px dashed var(--accent);
  border-radius: 999px; background: none; color: var(--accent); font: 700 12px var(--font-ja); cursor: pointer; white-space: nowrap; }
.item .item-checkin svg { width: 13px; height: 13px; }
@media (hover: hover) { .item .item-checkin:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .item .item-checkin.done:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); } }
.item .item-checkin.done { border-style: solid; background: var(--accent); color: var(--bg); }
.item .item-checkin.done svg { stroke-width: 2.6; }
/* Just checked in (sheets.js): the 半券 / ✓ lands like a stamp, once. */
.sheet .stub.just, .item .item-checkin.just { animation: stamp .45s var(--ease) both; }
.sheet .stub.just ~ .checkin { animation: fade-up .3s var(--ease) .3s both; }
@keyframes stamp { 0% { opacity: 0; scale: 1.25; rotate: -4deg; } 55% { opacity: 1; scale: .96; rotate: 1deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes fade-up { from { opacity: 0; translate: 0 4px; } }
