/* Design Ready extras — Liquid Sky tokens live in react-prototype.css */

.dr-proto {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 12px;
}
.dr-proto strong { color: #fff; margin-right: 4px; }
.dr-proto a, .dr-proto button {
  color: #e2e8f0;
  text-decoration: none;
  border: 1px solid #475569;
  background: transparent;
  padding: 5px 10px;
  border-radius: 4px;
  font: 500 12px/1 Roboto, sans-serif;
  cursor: pointer;
}
.dr-proto a:hover, .dr-proto button:hover { background: rgba(255,255,255,0.06); }
.dr-proto a.on, .dr-proto button.on {
  background: #1e2533;
  border-color: #03b6fc;
  color: #fff;
}
.dr-proto .sep {
  width: 1px;
  height: 16px;
  background: #334155;
  margin: 0 4px;
}

.rp-crumb { color: #03b6fc; }
.rp-crumb .sep { color: #03b6fc; margin: 0 4px; }

.rp-row {
  grid-template-columns: 36px 24px 22px 1fr 220px 48px 36px;
  min-height: 56px;
}
.rp-cols { grid-template-columns: 36px 24px 22px 1fr 220px 48px 36px; }
.rp-tree-bar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rp-tree-bar .rp-expand { margin-left: 0; }
.rp-chev-slot { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; }
.rp-tree-list { flex: 1; overflow: visible; }
.rp-row:has(.rp-action-menu) { z-index: 6; position: relative; }
.rp-row-act { position: relative; }
.rp-included {
  font-size: 12px;
  letter-spacing: 0.25px;
  color: var(--ls-med);
  line-height: 16px;
  white-space: normal;
}
.rp-action-menu { min-width: 220px; right: 0; top: 36px; z-index: 50; }
.rp-action-menu button:disabled {
  color: var(--ls-dis);
  cursor: default;
}
.rp-row .sub {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--ls-med);
  margin-top: 2px;
}
.rp-row .nm {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}
.rp-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(0, 0, 0, 0.6);
  cursor: grab;
  flex-shrink: 0;
}
.rp-drag svg {
  display: block;
  width: 24px;
  height: 24px;
}
.rp-drag:hover { color: rgba(0, 0, 0, 0.74); }
.rp-drag:active { cursor: grabbing; }
.rp-row.dragging { opacity: 0.4; }
.rp-row.drop-before { box-shadow: inset 0 2px 0 #03b6fc; }
.rp-row.drop-after { box-shadow: inset 0 -2px 0 #03b6fc; }
.rp-row.drop-inside {
  background: #e3f2fd;
  outline: 1px dashed #03b6fc;
  outline-offset: -2px;
}
.rp-hidden-ico { color: var(--ls-dis); font-size: 18px; }
.rp-hidden-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ls-dis);
  border: 1px solid var(--ls-div);
  border-radius: 10px;
  padding: 1px 6px;
}

.rp-bulk.idea2 {
  background: #fff;
  color: var(--ls-high);
  border: 1px solid var(--ls-ink);
}
.rp-bulk.idea2 .ghost {
  color: var(--ls-high);
  border-color: var(--ls-dis);
}
.rp-bulk.idea2 .ghost:hover { background: var(--ls-hover); color: var(--ls-high); }
.rp-select-all {
  margin-left: 8px;
  border: 0;
  background: none;
  color: #03b6fc;
  font: 500 13px Roboto, sans-serif;
  cursor: pointer;
  text-decoration: underline;
}
.rp-select-all:hover { color: #0288d1; }

.rp-picker {
  border: 1px solid var(--ls-div);
  border-radius: 4px;
  padding: 12px;
  background: #fff;
}
.rp-picker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rp-picker-head b { font-size: 14px; font-weight: 500; }
.rp-expand {
  margin-left: auto;
  border: 0;
  background: none;
  color: #03b6fc;
  font: 400 12px/16px Roboto, sans-serif;
  letter-spacing: 0.25px;
  cursor: pointer;
  text-decoration: none;
}
.rp-expand:hover { text-decoration: underline; }
.rp-pick-cols, .rp-pick-row {
  display: grid;
  grid-template-columns: 28px 22px 1fr 132px 40px;
  gap: 4px;
  align-items: center;
}
.rp-pick-cols {
  font-size: 11px;
  color: var(--ls-med);
  padding: 6px 0;
  border-bottom: 1px solid var(--ls-div);
}
.rp-pick-row {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.rp-pick-row:hover { background: var(--ls-hover); }
.rp-pick-row.is-on { background: var(--ls-sel); }
.rp-pick-name { font-size: 14px; color: var(--ls-high); }
.rp-inc-count {
  font-size: 12px;
  letter-spacing: 0.25px;
  color: var(--ls-med);
}
.rp-inc-empty { color: var(--ls-dis); }
.rp-inc-link {
  border: 0;
  background: none;
  padding: 0;
  color: #03b6fc;
  font: 400 12px/16px Roboto, sans-serif;
  letter-spacing: 0.25px;
  cursor: pointer;
  text-align: left;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rp-inc-link:hover { color: #0288d1; }
.rp-chev {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ls-med);
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rp-chev .mdi { font-size: 18px; line-height: 1; }
.rp-apply { width: 100%; margin-top: 12px; }

.dr-alert {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 4px;
  background: #fff8e1;
  border: 1px solid #ed6c02;
}
.dr-alert.multi { background: #e3f2fd; border-color: #0288d1; }
.dr-alert b { font-weight: 500; }
.dr-alert p { margin: 0 0 8px; font-size: 13px; line-height: 20px; color: var(--ls-high); }
.dr-alert .break {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ls-med);
}
.dr-alert .break li { display: flex; align-items: center; gap: 6px; }
.dr-alert .dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.dr-alert .dot.l1 { background: #67d884; }
.dr-alert .dot.l2 { background: #6466d1; }
.dr-alert .dot.l3 { background: #ff62c1; }
.dr-alert .acts { display: flex; flex-wrap: wrap; gap: 8px; }

.rp-upload {
  margin-top: 8px;
  padding: 12px;
  background: #f0f0f0;
  border-radius: 4px;
}
.rp-upload b { display: block; font-size: 13px; font-weight: 500; color: var(--ls-high); }
.rp-upload p { margin: 4px 0 10px; font-size: 12px; color: var(--ls-med); }

.rp-field.error input, .rp-field.error .rp-select-btn {
  border-color: var(--ls-err);
}
.rp-field .err {
  position: absolute;
  left: 16px;
  bottom: -2px;
  font-size: 12px;
  color: var(--ls-err);
}

.rp-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  display: grid;
  place-items: center;
  z-index: 5;
}
.rp-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--ls-div);
  border-top-color: var(--ls-ink);
  border-radius: 50%;
  animation: drspin .7s linear infinite;
}
@keyframes drspin { to { transform: rotate(360deg); } }

.rp-details { position: relative; }
.rp-details-foot {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.rp-details-foot .rp-btn { flex: 1; }

.sf-overlay { background: rgba(0, 0, 0, 0.6); }
.sf-modal {
  width: min(900px, 92vw);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.sf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.sf-modal-head h2 {
  margin: 0;
  font: 600 18px/28px Roboto, sans-serif;
  letter-spacing: -0.44px;
  color: #101828;
}
.sf-head-right { display: flex; align-items: center; gap: 12px; }
.sf-seg {
  display: flex;
  width: 211px;
  height: 30px;
  border: 1px solid #d1d5dc;
  border-radius: 4px;
  overflow: hidden;
}
.sf-seg button {
  flex: 1;
  border: 0;
  background: #fff;
  font: 500 12px/16px Roboto, sans-serif;
  color: rgba(0, 0, 0, 0.87);
  cursor: pointer;
}
.sf-seg button.on { background: #c2c2c2; color: #fff; }
.sf-close {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.sf-close:hover { background: rgba(0, 0, 0, 0.04); }
.sf-modal-body { background: #f3f4f6; padding: 24px; }
.sf-desktop {
  background: #fff;
  border-radius: 8px;
  min-height: 315px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.sf-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
}
.sf-brand {
  font: 900 14px/20px Roboto, sans-serif;
  letter-spacing: 1.25px;
  color: #101828;
  flex-shrink: 0;
}
.sf-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}
.sf-nav-link {
  border: 0;
  background: none;
  padding: 0;
  font: 500 14px/20px Roboto, sans-serif;
  letter-spacing: -0.15px;
  color: #1e2939;
  cursor: pointer;
}
.sf-nav-link.on { color: #006baf; }
.sf-util {
  font: 400 14px/20px Roboto, sans-serif;
  letter-spacing: -0.15px;
  color: #99a1af;
  flex-shrink: 0;
}
.sf-mega {
  display: flex;
  align-items: flex-start;
  min-height: 200px;
  border-top: 1px solid #f3f4f6;
}
.sf-mega-main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px;
}
.sf-kicker {
  margin: 0 0 12px;
  font: 600 10px/14px Roboto, sans-serif;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: #99a1af;
}
.sf-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}
.sf-col { min-width: 140px; }
.sf-l2 {
  font: 600 14px/20px Roboto, sans-serif;
  letter-spacing: -0.15px;
  color: #101828;
  padding: 4px 0;
}
.sf-l3 {
  font: 400 14px/20px Roboto, sans-serif;
  letter-spacing: -0.15px;
  color: #99a1af;
  padding: 4px 0 4px 12px;
}
.sf-feature { padding: 20px 16px; flex-shrink: 0; }
.sf-feature-img {
  width: 161px;
  height: 102px;
  border-radius: 4px;
  background: linear-gradient(156deg, #7fa8c9 6%, #a8c4dc 94%);
}
.sf-feature-cap {
  margin-top: 8px;
  font: 400 14px/20px Roboto, sans-serif;
  letter-spacing: -0.15px;
  color: #155dfc;
}
.sf-feature-cap span + span { color: #2b7fff; }
.sf-muted { color: #99a1af; font-size: 14px; }
.sf-mobile {
  margin: 0 auto;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  min-height: 315px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
.sf-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.sf-mobile-head b {
  font: 900 14px/20px Roboto, sans-serif;
  letter-spacing: 1.25px;
  color: #101828;
}
.sf-mobile-head span { font: 400 14px/20px Roboto, sans-serif; color: #99a1af; }
.sf-mobile-list { padding: 8px 0 16px; }
.sf-m-l1 {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 20px;
  font: 500 14px/20px Roboto, sans-serif;
  color: #1e2939;
  cursor: pointer;
}
.sf-m-l1.on { color: #006baf; }
.sf-m-l2 {
  padding: 6px 20px 4px 32px;
  font: 600 14px/20px Roboto, sans-serif;
  color: #101828;
}
.sf-m-l3 {
  padding: 4px 20px 4px 44px;
  font: 400 14px/20px Roboto, sans-serif;
  color: #99a1af;
}
.rp-switch.sm { width: 36px; height: 20px; }
.rp-switch.sm i { width: 14px; height: 14px; top: 3px; }
.rp-switch.sm.on i { left: 19px; }

.rp-td-status { text-align: center; }
.rp-td-act { text-align: right; position: relative; }
.rp-menu-name-field { width: 280px; max-width: 100%; }
.rp-active-toggle {
  display: flex; align-items: center; gap: 8px; padding-bottom: 12px; font-size: 14px;
}
.rp-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; margin-left: auto; }
.rp-bulk-acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.rp-sort-btn {
  position: static; height: 40px; width: auto; min-width: 140px; padding: 0 12px;
}

/* —— Responsive / mobile —— */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
#app { min-width: 0; }
.rp-body { min-height: calc(100dvh - 64px); min-width: 0; }
.rp-appbar {
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(64px + env(safe-area-inset-top, 0px));
}
.rp-main { min-width: 0; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.rp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rp-crumb { overflow-wrap: anywhere; }
.rp-toast { max-width: calc(100vw - 32px); }

@media (max-width: 1200px) {
  .rp-search { margin-left: 24px; width: min(280px, 28vw); }
  .rp-table th, .rp-table td { padding: 0 20px; }
}

@media (max-width: 1100px) {
  .rp-split { grid-template-columns: 1fr; min-height: 0; }
  .rp-tree { border-right: 0; border-bottom: 1px solid var(--ls-div); }
  .rp-editor-head { align-items: flex-start; }
  .rp-editor-actions.ml-auto { width: 100%; justify-content: flex-end; margin-left: 0; }
  .rp-search { margin-left: 16px; width: 200px; }
}

@media (max-width: 900px) {
  .rp-hdr-label { display: none; }
  .rp-text-btn { padding: 0 8px; min-width: 44px; }
  .rp-profile { padding: 0 8px; }
  .rp-main { padding: 16px 16px 32px; }
  .rp-table th, .rp-table td { padding: 0 16px; }
  .rp-row, .rp-cols { grid-template-columns: 36px 24px 22px minmax(0, 1fr) 48px 36px; }
  .rp-row > .rp-included,
  .rp-cols > span:nth-child(4) { display: none; }
  .rp-pick-row, .rp-pick-cols { grid-template-columns: 28px 22px minmax(0, 1fr) minmax(72px, auto); }
  .rp-pick-row > :nth-child(5),
  .rp-pick-cols > :nth-child(5) { display: none; }
  .rp-picker-head { flex-wrap: wrap; }
  .rp-menu-name-field { width: 100%; max-width: 360px; }
  .rp-tree-bar { flex-wrap: wrap; }
  .sf-modal { width: min(100% - 24px, 900px); }
  .sf-bar { gap: 16px; padding: 12px 16px; }
  .sf-nav { gap: 12px 16px; }
}

@media (max-width: 800px) {
  .rp-rail { display: none; }
  .rp-search { display: none; }
  .rp-icon-extra { display: none; }
  .rp-head { gap: 12px; align-items: flex-start; }
  .rp-head h1, .rp-editor-head h1 { font-size: 22px; line-height: 32px; }
  .rp-foot { flex-wrap: wrap; gap: 8px 12px; justify-content: flex-start; padding: 8px 16px; }
}

@media (max-width: 720px) {
  .rp-table thead { display: none; }
  .rp-table, .rp-table tbody { display: block; width: 100%; }
  .rp-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "name status act"
      "chips chips chips";
    height: auto;
    padding: 12px 16px;
    gap: 8px 12px;
    align-items: center;
    border-bottom: 1px solid var(--ls-div);
  }
  .rp-table td {
    height: auto;
    padding: 0;
    border-bottom: 0;
    font-size: 15px;
    letter-spacing: 0.25px;
  }
  .rp-td-name { grid-area: name; min-width: 0; }
  .rp-td-items { grid-area: chips; min-width: 0; }
  .rp-td-status { grid-area: status; text-align: right; }
  .rp-td-act { grid-area: act; }
  .rp-menu-name { min-height: 44px; display: inline-flex; align-items: center; }
  .rp-kebab { width: 44px; height: 44px; }
  .rp-chips { max-width: 100%; }
  .rp-editor-head h1 { margin-bottom: 4px; width: 100%; }
  .rp-menu-name-field { max-width: none; }
  .rp-editor-actions { width: 100%; }
  .rp-editor-actions .rp-btn { flex: 1; min-width: 0; }
  .rp-row, .rp-cols { grid-template-columns: 36px 24px 22px minmax(0, 1fr) 36px; padding-right: 8px; }
  .rp-row > .rp-level,
  .rp-row > span[style*="rgba(0,0,0,.32)"],
  .rp-cols > span:nth-child(5) { display: none; }
  .rp-bulk { flex-wrap: wrap; margin: 0 12px 8px; }
  .rp-bulk-acts { margin-left: 0; width: 100%; }
  .rp-bulk-acts .rp-btn { flex: 1; }
  .sf-overlay { padding: 0; align-items: stretch; place-items: stretch; }
  .sf-modal { width: 100%; max-height: 100dvh; border-radius: 0; display: flex; flex-direction: column; }
  .sf-modal-head { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .sf-modal-head h2 { font-size: 16px; }
  .sf-seg { width: 100%; max-width: 220px; }
  .sf-modal-body { padding: 12px; overflow: auto; flex: 1; }
  .sf-desktop { min-height: 240px; }
  .rp-details { padding: 16px; }
  .rp-fields .rp-field { width: 100%; }
}

@media (max-width: 480px) {
  .rp-main { padding: 12px 12px 28px; }
  .rp-head { flex-direction: column; align-items: stretch; }
  .rp-head .rp-btn { width: 100%; }
  .rp-brand { width: auto; padding-left: 4px; }
  .rp-brand img { height: 28px; }
  .rp-chip { font-size: 13px; padding: 4px 8px; }
  .rp-empty { padding: 32px 16px; }
  .rp-empty h3 { font-size: 18px; }
  .rp-modal-card { width: calc(100vw - 24px); padding: 16px; }
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 2px solid rgba(0, 0, 0, 0.54);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
}
input[type="checkbox"]:hover {
  border-color: rgba(0, 0, 0, 0.74);
}
input[type="checkbox"]:checked,
input[type="checkbox"]:indeterminate {
  background: #03b6fc;
  border-color: #03b6fc;
}
input[type="checkbox"]:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}
input[type="checkbox"]:indeterminate::after {
  content: "";
  width: 10px;
  height: 2px;
  background: #fff;
  border: 0;
  transform: none;
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid #03b6fc;
  outline-offset: 2px;
}

.rp-empty-icon {
  width: 48px; height: 48px;
  margin: 0 auto 8px;
  color: var(--ls-dis);
  font-size: 40px;
}

.rp-note.collection { background: #eff4f8; }

.dr-screen-tag {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #94a3b8;
  margin-left: auto;
}

@media (max-width: 1100px) {
  .rp-editor-head { align-items: flex-start; }
  .rp-editor-head .ml-auto { width: 100%; justify-content: flex-end; }
}
