/* The instructor room's bar (assets/instructor-room.js): name, find, ask, tabs across the top, sub-tabs under them.
   Uses the site's color variables for now; the room gets its own looks later. */
.ir-head { margin: 0 0 18px; padding: 14px 0 0; background: var(--black); border-bottom: 1px solid var(--hairline); }
.ir-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; }
.ir-brand small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: var(--gold); }
.ir-brand strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--white); }
.ir-tools { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; min-width: 0; }
.ir-find { position: relative; width: 230px; }
.ir-find input, .ir-ask input { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line, rgba(var(--ink-rgb), .14)); background: rgba(var(--ink-rgb), .05); color: var(--white); font: inherit; font-size: 13.5px; }
.ir-find input:focus, .ir-ask input:focus { outline: none; border-color: var(--gold); }
.ir-find-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; padding: 6px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--menu-bg, #14171F); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.ir-find-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--white); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.ir-find-list button small { margin-left: auto; color: var(--steel); font-size: 11.5px; }
.ir-find-list button:hover, .ir-find-list button.on { background: rgba(var(--gold-rgb), .12); }
.ir-find-list p { margin: 0; padding: 9px 10px; color: var(--steel); font-size: 13px; }
.ir-ask { display: flex; gap: 6px; width: min(380px, 100%); }
.ir-ask button { flex: none; height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: linear-gradient(120deg, var(--gold-dark), var(--gold-light)); color: var(--on-accent, #0A0C11); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }

.ir-tabs { position: relative; display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ir-tabs::-webkit-scrollbar { display: none; }
/* Each tab carries its own color (--tc) when the instructor has given it one; otherwise the theme's accent. */
.ir-tabwrap { --tc: var(--gold); position: relative; display: inline-flex; align-items: center; flex: none; border-bottom: 2px solid transparent; }
.ir-tabwrap.on { border-bottom-color: var(--tc); }
.ir-tabwrap[style*="--tc"] .ir-ic { filter: drop-shadow(0 0 6px var(--tc)); }
.ir-tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 6px 12px 16px; border: 0; background: none; color: var(--steel); font: inherit; font-size: 14.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ir-tab:hover, .ir-tab.on { color: var(--white); }
.ir-tabwrap[style*="--tc"] .ir-tab.on { color: var(--tc); }
.ir-tab .ir-ic { font-size: 15px; }
.ir-tab b { min-width: 20px; padding: 1px 7px; border-radius: 10px; background: var(--tc, var(--gold)); color: #171108; font-size: 11px; font-weight: 700; text-align: center; }
.ir-tabwrap:has(.ir-mm) { margin-right: 10px; }

/* The ⋯ menu buttons sit quietly until you point at their tab, part or card. */
.ir-dots { flex: none; width: 22px; height: 22px; margin-right: 6px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--steel); font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.ir-tabwrap:hover .ir-dots, .ir-subwrap:hover .ir-dots, .ac-card:hover > .ir-cardtools .ir-dots, .ir-dots:focus-visible { opacity: 1; }
.ir-dots:hover { background: rgba(var(--ink-rgb), .1); color: var(--white); }
@media (hover: none) { .ir-dots { opacity: .7; } }
.ir-unhide { flex: none; align-self: center; margin-left: 6px; padding: 5px 11px; border: 1px dashed var(--hairline-strong); border-radius: 999px; background: none; color: var(--steel); font: inherit; font-size: 12px; white-space: nowrap; cursor: pointer; }
.ir-unhide:hover { color: var(--white); border-color: var(--gold); }

.ir-subs { --tc: var(--gold); position: relative; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0 12px; border-top: 1px solid var(--hairline); }
.ir-subs::-webkit-scrollbar { display: none; }
.ir-subwrap { display: inline-flex; align-items: center; flex: none; border-radius: 999px; background: rgba(var(--ink-rgb), .05); border: 1px solid transparent; }
.ir-subwrap:hover { background: rgba(var(--ink-rgb), .09); }
.ir-subwrap > button:first-child { padding: 7px 4px 7px 14px; border: 0; background: none; color: var(--gray); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.ir-subwrap > button:first-child:hover { color: var(--white); }
.ir-subwrap:has(> button.on) { border-color: color-mix(in srgb, var(--tc) 60%, transparent); background: color-mix(in srgb, var(--tc) 13%, transparent); }
.ir-subwrap > button.on { color: var(--tc); }
.ir-subwrap .ir-dots { width: 20px; height: 20px; margin-right: 5px; font-size: 13px; }

/* Dragging. */
.ir-dragging { opacity: .45; }
.ir-over { outline: 2px dashed var(--gold); outline-offset: 2px; border-radius: 10px; }

/* The menu itself. */
.ir-menu { position: absolute; z-index: 400; width: 250px; padding: 10px; border-radius: 12px; border: 1px solid var(--hairline-strong); background: var(--menu-bg, #14171F); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); color: var(--white); font-size: 13px; display: grid; gap: 6px; }
.ir-menu label { display: grid; gap: 4px; color: var(--steel); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.ir-menu input[type=text] { height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--hairline-strong); background: rgba(var(--ink-rgb), .05); color: var(--white); font: inherit; font-size: 13.5px; }
.ir-menu .ir-colorrow { display: flex; gap: 8px; align-items: center; }
.ir-menu input[type=color] { width: 44px; height: 30px; padding: 0; border: 1px solid var(--hairline-strong); border-radius: 6px; background: none; cursor: pointer; }
.ir-menu button { padding: 8px 10px; border: 0; border-radius: 8px; background: rgba(var(--ink-rgb), .05); color: var(--white); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ir-menu button:hover { background: rgba(var(--gold-rgb), .16); }
.ir-menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ir-menu-row button { text-align: center; }
.ir-menu small { color: var(--steel); font-size: 11.5px; line-height: 1.4; }

/* Cards: a grip to drag and a ⋯ menu in the top corner; hidden ones stay out of sight. */
.ir-room .ac-card { position: relative; }
.ir-cardtools { position: absolute; top: 10px; right: 10px; display: flex; gap: 2px; z-index: 2; }
.ir-grip { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--steel); font-size: 11px; letter-spacing: -2px; cursor: grab; opacity: 0; transition: opacity .15s; }
.ac-card:hover > .ir-cardtools .ir-grip { opacity: 1; }
.ir-grip:hover { background: rgba(var(--ink-rgb), .1); color: var(--white); }
.ir-cardtools .ir-dots { margin: 0; }
.ir-card-hidden { display: none !important; }
.ir-cards-unhide { display: block; margin: 14px auto 0; }

/* A theme of the instructor's own: the room's background flows through its colors; the bar sits on it lightly. */
.ir-themed, .ir-bg { min-height: 100vh; background-attachment: fixed !important; }
.ir-themed .ir-head { background: rgba(var(--void-rgb), .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 0 0 14px 14px; padding-left: 16px; padding-right: 16px; }
.ir-light .ir-head { background: rgba(255, 255, 255, .55); }
.ir-lookbtn { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--hairline-strong); background: rgba(var(--ink-rgb), .05); font-size: 16px; cursor: pointer; }
.ir-lookbtn:hover { border-color: var(--gold); }

/* Your room look: swatches, your own blend, tab colors. */
.ir-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 10px; }
.ir-sw { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(var(--ink-rgb), .03); color: var(--gray); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.ir-sw:hover { border-color: var(--hairline-strong); color: var(--white); }
.ir-sw.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); color: var(--white); }
.ir-sw-bg { position: relative; display: block; height: 56px; border-radius: 8px; }
.ir-sw-bg i { position: absolute; right: 8px; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.ir-sw-n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ir-cat { margin: 18px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.ir-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.ir-cc { display: grid; justify-items: center; gap: 4px; font-size: 12px; color: var(--gray); }
.ir-cc.off input[type=color] { opacity: .35; }
.ir-cc input[type=color] { width: 54px; height: 40px; padding: 0; border: 1px solid var(--hairline-strong); border-radius: 8px; background: none; cursor: pointer; }
.ir-angle { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gray); }
.ir-preview { height: 70px; margin-top: 14px; border-radius: 12px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; }
.ir-preview span { padding: 5px 12px; border-radius: 999px; color: #0A0C11; font-size: 12px; font-weight: 700; }
.ir-bgkinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.ir-bgk { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--hairline); border-radius: 12px; background: rgba(var(--ink-rgb), .03); color: var(--gray); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.ir-bgk:hover { border-color: var(--hairline-strong); color: var(--white); }
.ir-bgk.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); color: var(--white); }
.ir-bgk-sw { display: block; height: 52px; border-radius: 8px; }
.ir-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ir-tabcolors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; margin-top: 12px; }
.ir-tabcolor { display: flex; align-items: center; gap: 10px; }
.ir-tabcolor span { flex: 1; font-size: 13.5px; }
.ir-tabcolor input[type=color] { width: 40px; height: 30px; padding: 0; border: 1px solid var(--hairline-strong); border-radius: 6px; background: none; cursor: pointer; }
.ir-tabcolor small { color: var(--steel); font-size: 11.5px; }

/* The management screens sit in the same room width as the grading screens. */
.ir-cr > .ac-main { min-width: 0; }

@media (max-width: 900px) {
  .ir-head { margin: 0 0 14px; padding: 10px 0 0; }
  .ir-brand strong { font-size: 21px; }
  .ir-tools { flex-basis: 100%; }
  .ir-find { flex: 1; width: auto; }
  .ir-ask { flex: 1.4; }
}
@media (max-width: 560px) {
  .ir-tools { flex-wrap: wrap; }
  .ir-find, .ir-ask { flex-basis: 100%; width: 100%; }
  .ir-tab { padding: 10px 12px 11px; font-size: 13.5px; }
}
