/* ==========================================================================
   Practice canvas — the widget under test on every category page.
   Deliberately plain: layout/reset only. No color, font-family, or brand
   tokens here (see ARCHITECTURE-SPINE AD-2) — this must not read as
   "styled by the site," it must read as ordinary, realistic markup.
   ========================================================================== */

.practice-canvas {
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.practice-canvas * { box-sizing: border-box; }

.practice-canvas h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  margin: 0 0 12px;
}

.practice-canvas p { margin: 0 0 12px; }

.practice-canvas label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.practice-canvas input[type="text"],
.practice-canvas input[type="email"],
.practice-canvas input[type="password"],
.practice-canvas input[type="search"],
.practice-canvas input[type="file"],
.practice-canvas select,
.practice-canvas textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 6px 8px;
  border: 1px solid #999;
  border-radius: 2px;
  background: #fff;
  color: #1a1a1a;
}

.practice-canvas button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 6px 14px;
  border: 1px solid #999;
  border-radius: 2px;
  background: #f0f0f0;
  color: #1a1a1a;
  cursor: pointer;
}

.practice-canvas button:hover { background: #e4e4e4; }

.pc-field { margin-bottom: 14px; max-width: 340px; }

.pc-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }

.pc-error {
  color: #b00020;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.pc-field[data-invalid="true"] .pc-error { display: block; }
.pc-field[data-invalid="true"] input { border-color: #b00020; }

.pc-table { border-collapse: collapse; width: 100%; }
.pc-table th, .pc-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
}
.pc-table th {
  background: #f4f4f4;
  cursor: pointer;
  user-select: none;
}
.pc-table th[aria-sort]:after { content: " " attr(data-sort-indicator); }

.pc-list { list-style: none; margin: 0; padding: 0; }

.pc-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #323232;
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
}

.pc-drag-item {
  border: 1px solid #999;
  background: #f0f0f0;
  padding: 8px 12px;
  margin-bottom: 8px;
  cursor: grab;
  width: 160px;
}

.pc-drag-item[aria-grabbed="true"] { opacity: 0.5; }

.pc-drop-zone {
  border: 2px dashed #999;
  min-height: 60px;
  padding: 10px;
  margin-top: 10px;
  width: 200px;
}

.pc-drop-zone.pc-drop-zone--over { border-color: #333; background: #eee; }

.pc-scroll-box {
  border: 1px solid #999;
  height: 160px;
  overflow-y: auto;
  padding: 10px;
}

.pc-menu {
  position: absolute;
  background: #fff;
  border: 1px solid #999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 4px 0;
  min-width: 160px;
  display: none;
  z-index: 100;
}

.pc-menu[data-open="true"] { display: block; }

.pc-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 6px 14px;
}

.pc-menu button:hover, .pc-menu button:focus { background: #eee; }

.pc-calendar { width: 260px; }
.pc-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.pc-calendar__day {
  padding: 6px 0;
  border: 1px solid transparent;
  background: none;
  font-size: 12px;
  cursor: pointer;
}
.pc-calendar__day:hover { background: #eee; }
.pc-calendar__day[aria-pressed="true"] { background: #333; color: #fff; }

.pc-tooltip-trigger { border-bottom: 1px dotted #666; cursor: help; }
.pc-tooltip {
  position: absolute;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
  display: none;
}
.pc-tooltip[data-open="true"] { display: block; }

.pc-login-box {
  border: 1px solid #999;
  padding: 16px;
  margin-bottom: 16px;
  max-width: 280px;
}

.pc-card {
  border: 1px solid #999;
  background: #fff;
  padding: 16px;
  margin-bottom: 10px;
}

.pc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.pc-modal-overlay[data-open="true"] { display: flex; }

.pc-modal {
  background: #fff;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 20px;
  max-width: 320px;
  width: 90%;
  position: relative;
}

.pc-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
}

.pc-mobile-only { display: none; }
.pc-desktop-only { display: block; }
@media (max-width: 480px) {
  .pc-mobile-only { display: block; }
  .pc-desktop-only { display: none; }
}
