/* Shared styles for the rubric graders (website/graders/*.html), loaded after
   ../tokens.css and ../style.css. The markup they style is built by grader-ui.js. */

.drop {
  display: block;
  padding: 28px 20px;
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  background: var(--paper-tint);
  text-align: center;
  cursor: pointer;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { font-family: var(--font-display); font-size: 17px; }
.drop p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }
.drop-actions { margin-top: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.g-btn {
  font: 600 14px var(--font-body);
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.g-btn:hover { border-color: var(--accent); }
.picked { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.picked code, .crit-detail code { font-family: var(--font-mono); font-size: 12.5px; }
.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 24px; }
.std { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; }
.std h2 { margin: 0; font-family: var(--font-display); font-size: 18px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.std .std-title { margin: 2px 0 12px; font-size: 13.5px; color: var(--ink-soft); }
.std ol { list-style: none; margin: 0; padding: 0; }
.std li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule-soft); }
.crit-name { font-weight: 600; }
.crit-detail { font-size: 13.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; align-self: start; text-align: center; }
.chip.met { color: var(--good); background: var(--good-soft); border-color: var(--good-rule); }
.chip.notyet { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-rule); }
.chip.review { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-rule); }
.warnings { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--warn-rule); background: var(--warn-soft); font-size: 14px; }
.warnings ul { margin: 6px 0 0; padding-left: 20px; }
.panel { margin-top: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.panel-head .hint { font-size: 13px; color: var(--ink-mute); }
.feedback-doc { min-height: 6em; padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.feedback-doc:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.feedback-doc p { margin: 8px 0 4px; }
.feedback-doc ul { margin: 0 0 6px; padding-left: 22px; }
.override { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.override button { font: 600 12px var(--font-body); padding: 2px 9px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); cursor: pointer; }
.override button:hover { border-color: var(--accent); }
.override button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.override .by-you { font-size: 12px; color: var(--ink-mute); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.seg button { font: 600 13px var(--font-body); padding: 5px 12px; border: 0; background: var(--paper); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.preview-frame { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; resize: vertical; overflow: hidden; height: 620px; min-height: 240px; }
.preview-frame iframe { display: block; width: 100%; height: 100%; border: 0; margin: 0 auto; }
.preview-frame.phone iframe { width: 390px; max-width: 100%; border-left: 1px solid var(--rule-soft); border-right: 1px solid var(--rule-soft); }
.code-view { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); max-height: 620px; overflow: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-tint); font: 13px/1.6 var(--font-mono); resize: vertical; }
.code-view[hidden], .seg[hidden] { display: none; }
.code-view pre { margin: 0; padding: 10px 0; position: relative; }
.code-view .gutter { padding: 10px 10px 10px 12px; text-align: right; color: var(--ink-mute); user-select: none; border-right: 1px solid var(--rule-soft); background: var(--paper-soft); position: sticky; left: 0; z-index: 1; }
.code-view .gutter .flag { color: var(--bad); font-weight: 600; }
.code-view code { display: block; padding: 0 14px; white-space: pre; tab-size: 2; }
.code-view .mark { position: absolute; left: 0; right: 0; height: 1.6em; background: var(--bad-soft); border-left: 3px solid var(--bad); pointer-events: none; }
.code-view .hljs-tag, .code-view .hljs-selector-tag, .code-view .hljs-keyword { color: var(--tok-kw); }
.code-view .hljs-name { color: var(--tok-kw); font-weight: 600; }
.code-view .hljs-attr, .code-view .hljs-attribute { color: #1d4e89; }
.code-view .hljs-string, .code-view .hljs-number { color: #1e6b2d; }
.code-view .hljs-selector-class, .code-view .hljs-selector-id, .code-view .hljs-selector-pseudo { color: #6a3fa0; font-weight: 600; }
.code-view .hljs-comment, .code-view .hljs-meta { color: var(--tok-com); font-style: italic; }
.status { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.transcript { margin: 0; max-height: 320px; overflow: auto; padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-tint); font: 12.5px/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
