/* Ride checklist + day planner ("mark rides you've ridden" /
   "My plan for today") — sample rollout on the Disneyland wait-times
   page. Loaded only by pages trialing the feature; class prefix iic-
   keeps it clear of the shared styles. Every button rule declares its
   own text color: an earlier build omitted it on .iic-btn and the
   labels rendered white-on-white in some browsers. */

.iic-bar {
  border: 1px solid var(--border, #d7dee8);
  border-radius: 12px;
  background: #f2f8f3;
  padding: 0.8rem 0.9rem;
  margin: 0 0 1rem;
}
.iic-bar__main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.iic-bar__title { font-weight: 700; }
.iic-bar__count { font-weight: 600; color: #166534; }
.iic-bar__track {
  flex: 1 1 120px;
  min-width: 100px;
  height: 8px;
  border-radius: 999px;
  background: #dce8de;
  overflow: hidden;
}
.iic-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: #16a34a;
  border-radius: 999px;
  transition: width 0.25s ease;
}
.iic-bar__actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.iic-btn {
  border: 1px solid #b9c8bd;
  background: #fff;
  color: #15202b;
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.iic-btn[aria-pressed="true"] {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.iic-bar__hint { margin: 0.55rem 0 0; font-size: 0.82rem; color: #5b6b5f; }

/* Keep the check box, ride name and Plan pill centered on one line:
   no wrap — the name text wraps inside its own shrinking box, so the
   Plan pill stays to the right of the title instead of dropping to a
   line of its own. */
.wait-name { display: inline-flex; align-items: center; flex-wrap: nowrap; }
.wait-name .iic-check, .wait-name .iic-planbtn { flex: 0 0 auto; }

.iic-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  padding: 0;
  border-radius: 6px;
  border: 2px solid #9fb0bd;
  background: #fff;
  color: transparent;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  vertical-align: -6px;
}
.iic-check.iic-on {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
li.wait-row.iic-ridden .wait-name {
  text-decoration: line-through;
  opacity: 0.55;
}

/* — Day planner — */

.iic-panel {
  border: 1px solid var(--border, #d7dee8);
  border-radius: 12px;
  background: #f2f8f3;
  padding: 0.8rem 0.9rem;
  margin: 0 0 1rem;
}
.iic-planbtn {
  margin-left: 0.55rem;
  border: 1px solid #b9c8bd;
  background: #fff;
  color: #166534;
  border-radius: 999px;
  padding: 0.14rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: 2px;
}
.iic-planbtn.iic-planned {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.iic-plan-list { margin-top: 0.35rem; }
.iic-plan-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e2eee4;
}
.iic-plan-row:last-child { border-bottom: none; }
.iic-plan-row .iic-check { flex: 0 0 auto; margin-right: 0; vertical-align: 0; }
.iic-plan-name { flex: 1 1 auto; min-width: 0; }
.iic-plan-row.iic-ridden .iic-plan-name {
  text-decoration: line-through;
  opacity: 0.55;
}
.iic-plan-status {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.iic-plan-status--wait { color: #166534; }
.iic-plan-status--down { color: #b91c1c; }
.iic-plan-status--muted { color: #5b6b5f; font-weight: 600; }
.iic-plan-x {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #b9c8bd;
  border-radius: 999px;
  background: #fff;
  color: #5b6b5f;
  font-size: 0.78rem;
  line-height: 1;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .iic-bar { background: #14231a; }
  :root:not([data-theme="light"]) .iic-bar__count { color: #4ade80; }
  :root:not([data-theme="light"]) .iic-bar__track { background: #23402e; }
  :root:not([data-theme="light"]) .iic-bar__hint { color: #9db3a4; }
  :root:not([data-theme="light"]) .iic-btn { background: #1c1c1e; border-color: #3f5546; color: #e8f0ea; }
  :root:not([data-theme="light"]) .iic-btn[aria-pressed="true"] { background: #16a34a; border-color: #16a34a; color: #fff; }
  :root:not([data-theme="light"]) .iic-check { background: #fff; border-color: #9fb0bd; }
  :root:not([data-theme="light"]) .iic-check.iic-on { background: #16a34a; border-color: #16a34a; color: #fff; }
  :root:not([data-theme="light"]) .iic-panel { background: #14231a; }
  :root:not([data-theme="light"]) .iic-planbtn { background: #1c1c1e; border-color: #3f5546; color: #4ade80; }
  :root:not([data-theme="light"]) .iic-planbtn.iic-planned { background: #16a34a; border-color: #16a34a; color: #fff; }
  :root:not([data-theme="light"]) .iic-plan-row { border-bottom-color: #23402e; }
  :root:not([data-theme="light"]) .iic-plan-status--wait { color: #4ade80; }
  :root:not([data-theme="light"]) .iic-plan-status--down { color: #f87171; }
  :root:not([data-theme="light"]) .iic-plan-status--muted { color: #9db3a4; }
  :root:not([data-theme="light"]) .iic-plan-x { background: #1c1c1e; border-color: #3f5546; color: #9db3a4; }
}
:root[data-theme="dark"] .iic-bar { background: #14231a; }
:root[data-theme="dark"] .iic-bar__count { color: #4ade80; }
:root[data-theme="dark"] .iic-bar__track { background: #23402e; }
:root[data-theme="dark"] .iic-bar__hint { color: #9db3a4; }
:root[data-theme="dark"] .iic-btn { background: #1c1c1e; border-color: #3f5546; color: #e8f0ea; }
:root[data-theme="dark"] .iic-btn[aria-pressed="true"] { background: #16a34a; border-color: #16a34a; color: #fff; }
:root[data-theme="dark"] .iic-check { background: #fff; border-color: #9fb0bd; }
:root[data-theme="dark"] .iic-check.iic-on { background: #16a34a; border-color: #16a34a; color: #fff; }
:root[data-theme="dark"] .iic-panel { background: #14231a; }
:root[data-theme="dark"] .iic-planbtn { background: #1c1c1e; border-color: #3f5546; color: #4ade80; }
:root[data-theme="dark"] .iic-planbtn.iic-planned { background: #16a34a; border-color: #16a34a; color: #fff; }
:root[data-theme="dark"] .iic-plan-row { border-bottom-color: #23402e; }
:root[data-theme="dark"] .iic-plan-status--wait { color: #4ade80; }
:root[data-theme="dark"] .iic-plan-status--down { color: #f87171; }
:root[data-theme="dark"] .iic-plan-status--muted { color: #9db3a4; }
:root[data-theme="dark"] .iic-plan-x { background: #1c1c1e; border-color: #3f5546; color: #9db3a4; }
