/* THE BEER Admin: task-first navigation, shared colors with the classroom. */
#admin-view { max-width:none; }
#admin-view svg,.hosting-manager svg,.hosting-empty svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0; }
#admin-view .admin-intro-line { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:4px 0 25px;margin-bottom:0;gap:20px; }
#admin-view .admin-intro-line h1 { font-size:clamp(26px,3vw,36px);letter-spacing:-.8px;margin:8px 0 6px;line-height:1.4; }
#admin-view .admin-intro-line p { font-size:14px;margin:0;color:var(--muted); }
.admin-intro-actions { display:flex;gap:12px;align-items:center;flex-wrap:wrap; }
#admin-status-badge { display:flex;align-items:center;gap:6px;color:#276044;border:1px solid #d1e3d6;background:#edf5ee;font-size:12px;padding:8px 11px; }
#admin-status-badge svg { width:16px;height:16px; }
.admin-intro-actions .secondary-button { display:flex;align-items:center;gap:8px;font-size:13px; }
.admin-section-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0 15px; }
.admin-section-heading h2 { font-size:17px;font-weight:600;margin:0;color:#334b40; }
.admin-section-heading>span { font-size:12px;color:var(--muted); }
#admin-view .admin-overview { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0; }
#admin-view .admin-tile { --tile-color:#21634f;--tile-soft:#e9f4ee;display:grid;grid-template-columns:1fr auto;align-content:start;gap:19px 10px;min-height:189px;padding:23px;border:1px solid #dbe5dd;border-radius:20px;background:#fff;box-shadow:var(--surface-shadow);position:relative;overflow:hidden;text-align:left;font-family:var(--font);cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s; }
#admin-view .admin-tile-lessons { --tile-color:#345b9a;--tile-soft:#eaf0fc; }
#admin-view .admin-tile-media { --tile-color:#7556a0;--tile-soft:#f2ecfa; }
#admin-view .admin-tile-icon { display:grid;place-items:center;grid-column:1;grid-row:1;width:45px;height:45px;border-radius:14px;background:var(--tile-soft);color:var(--tile-color); }
#admin-view .admin-tile-icon svg { width:24px;height:24px; }
#admin-view .admin-tile-copy { grid-row:2;grid-column:1 / -1;font-family:var(--font); }
#admin-view .admin-tile-copy strong { display:block;font-size:21px;line-height:1.5;font-weight:600;color:#243d31; }
#admin-view .admin-tile-copy small { display:block;font-size:13px;font-weight:400;margin-top:5px;line-height:1.6;color:#607068; }
#admin-view .admin-tile-arrow { grid-row:1;grid-column:2;align-self:center;color:var(--tile-color);width:22px;height:22px; }
#admin-view .admin-tile:hover { transform:none;background:var(--tile-soft);border-color:var(--tile-color);box-shadow:0 5px 20px #183c2b09; }
#admin-view .admin-tile[aria-pressed=true] { background:var(--tile-soft);border-color:var(--tile-color);box-shadow:inset 0 -3px var(--tile-color); }
#admin-view .admin-tile[aria-pressed=true] .admin-tile-icon { color:#fff;background:var(--tile-color); }
#admin-view .admin-quicklinks { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0 28px; }
#admin-view .admin-quicklinks button { display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:12px 10px;border:1px solid #dce4df;border-radius:13px;background:#ffffffbf;font:500 13px var(--font);color:#4f6659;cursor:pointer;text-align:left; }
#admin-view .admin-quicklinks button:hover,#admin-view .admin-quicklinks button[aria-pressed=true] { background:#edf2eb;border-color:#8daa95;color:var(--forest); }
#admin-view .admin-quicklinks button:first-child svg { color:var(--amber); }
.admin-panel-location { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding-top:20px;border-top:1px solid #dfe6df;font-size:11px;color:#7b857d; }
#admin-current-label { font-weight:600;font-size:13px;color:#4b6255; }
#admin-view .hosting-manager,#admin-view .media-manager,#admin-view .access-manager { margin:0;padding:27px;border-radius:22px;border:1px solid var(--border);background:#fff;box-shadow:var(--surface-shadow); }
#hosting-manager-title,#media-manager-title,#access-title { scroll-margin-top:100px; }
#admin-view .hosting-heading { display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 22px; }
#admin-view .hosting-heading h2 { margin:0 0 5px;font-size:23px;line-height:1.4;letter-spacing:-.4px;font-weight:600; }
#admin-view .hosting-heading p { margin:0;color:var(--muted);font-size:13px;line-height:1.7; }
.hosting-heading-actions { display:flex;gap:9px;flex-shrink:0; }
.hosting-heading-actions button { display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 16px;white-space:nowrap; }
.hosting-manager[data-kind=lessons] .hosting-add { background:#345b9a;border-color:#345b9a; }
.hosting-manager[data-kind=announcements] .hosting-add { background:#8b5a24;border-color:#8b5a24; }
#admin-view .hosting-controls { display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 17px;padding:17px;background:#f6f8f5;border:1px solid #e7ece6;border-radius:15px; }
#admin-view .hosting-manager[data-kind=lessons] .hosting-controls { grid-template-columns:minmax(180px,.8fr) minmax(0,1.4fr); }
.hosting-controls label { display:grid;gap:7px;min-width:0;font-size:12px;font-weight:600;color:#496052; }
#admin-view .hosting-controls input,#admin-view .hosting-controls select { width:100%;min-width:0;min-height:46px;padding:10px 12px;background:#fff;font-size:15px;font-weight:400;color:var(--ink);border:1px solid #cedbd1;border-radius:10px; }
.hosting-status { font-size:12px;color:#65756b;margin:0 0 13px;min-height:20px; }
.hosting-status.is-error { color:#a03541; }
#admin-view .hosting-list { gap:10px; }
#admin-view .hosting-row { display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:14px;padding:17px 18px;border:1px solid #e1e8e1;border-radius:14px;background:#fff; }
#admin-view .hosting-row:hover { border-color:#bfcfc3;background:#fcfdfb; }
.hosting-row-symbol { width:42px;height:42px;display:grid;place-items:center;align-self:start;border-radius:13px;color:#3f7156;background:#edf4ee;font-size:18px;font-weight:600; }
.hosting-manager[data-kind=lessons] .hosting-row-symbol { color:var(--blue);background:#edf2fb; }
.hosting-manager[data-kind=announcements] .hosting-row-symbol { color:var(--amber);background:#faf3e7; }
#admin-view .hosting-row h3 { font-size:16px;line-height:1.5;font-weight:600;margin:0 0 3px;color:#293f32;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
#admin-view .hosting-row p { font-size:12px;line-height:1.6;color:#69766e; }
.hosting-row-badges { display:flex;gap:5px;flex-wrap:wrap;margin-top:9px; }
.hosting-badge { display:inline-flex;align-items:center;max-width:100%;padding:3px 8px;border-radius:6px;background:#f1f3f1;font-size:11px;font-weight:500;line-height:1.5;color:#536459;overflow-wrap:anywhere; }
.hosting-badge.success { background:#eaf4eb;color:#28603d; }
.hosting-badge.muted { background:#f1f1f1;color:#717671; }
.hosting-badge.warning { background:#fff0e7;color:#a1532c; }
.hosting-badge.blue { background:#edf2fc;color:#3d6093; }.hosting-badge.violet { background:#f2ecf9;color:#735698; }
#admin-view .hosting-row>button { min-height:40px;padding:8px 15px;font-size:13px;border-radius:10px; }
.hosting-empty { text-align:center;padding:38px 16px;border:1px dashed #dce5dc;border-radius:15px;background:#fafbf8; }
.hosting-empty>svg { width:32px;height:32px;color:#7c9383;margin-bottom:8px; }
.hosting-empty h3 { font-size:17px;font-weight:600;margin:6px 0; }.hosting-empty p { font-size:13px;color:#6c7b71;margin:0 0 18px; }
.hosting-loading { padding:38px;text-align:center;color:#6b7b71;background:#f7f9f5;border-radius:14px;font-size:14px; }
#admin-view .hosting-list .lesson-pagination { justify-content:center;padding-top:12px;flex-wrap:wrap; }
.admin-back-menu { display:none; }
.admin-media-guide { display:flex;align-items:center;gap:14px;padding:18px 22px;margin:0 0 16px;border:1px solid #e0d9ef;border-radius:17px;background:#f3f0fa;scroll-margin-top:96px; }
.admin-guide-icon { display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;background:#e8e0f4;color:var(--violet);border-radius:12px; }
.admin-media-guide>div { flex:1;min-width:0; }.admin-media-guide strong { font-size:14px;color:#51406b;font-weight:600; }.admin-media-guide p { font-size:12px;line-height:1.6;color:#766787;margin:4px 0 0; }
.admin-media-guide button { display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;padding:10px 13px;border-color:#d1c6e4;color:#665080; }
#admin-view #media-add { background:var(--violet);border-color:var(--violet); }
#admin-view .media-section-heading h2 { font-size:23px; }
#admin-view .media-filter { margin-top:20px; }
#admin-view .media-card { border-color:#e4e2e9; }
.hosting-dialog { max-width:660px; }
.hosting-dialog h2 { margin:0 0 8px;line-height:1.4; }.hosting-editor-note { margin:0 0 24px;font-size:13px;line-height:1.6;color:#6a786e; }
.hosting-dialog .hosting-fields { gap:18px; }.hosting-dialog .hosting-fields label { font-size:14px;line-height:1.6; }
.hosting-dialog .hosting-fields input,.hosting-dialog .hosting-fields select,.hosting-dialog .hosting-fields textarea { padding:12px 13px;font-size:16px;border-color:#cfdad1;min-height:48px; }
.hosting-dialog .hosting-fields input:read-only { background:#f4f6f2;color:#67766b; }
.hosting-dialog .hosting-fields .hosting-checkbox { display:flex;flex-direction:row-reverse;align-items:center;justify-content:flex-end;gap:12px;background:#f4f7f2;border:1px solid #e2e9df;border-radius:12px;padding:13px; }
.hosting-dialog .hosting-fields input[type=checkbox] { width:22px;height:22px;min-height:22px;margin:0;flex-shrink:0; }
.hosting-dialog .hosting-actions { position:sticky;bottom:-28px;padding:18px 0 0;background:#fff;border-top:1px solid #e4e9e1; }
.hosting-error { font-size:14px;line-height:1.7; }.hosting-error:empty { display:none; }
@media(min-width:1280px) { #admin-view { padding-top:4px; } }
@media(max-width:1100px) {
  #admin-view .admin-tile { padding:19px;gap:15px;min-height:185px; }
  #admin-view .admin-tile-copy strong { font-size:19px; }
  #admin-view .admin-tile-copy small { font-size:12px; }
  #admin-view .hosting-heading { align-items:flex-start;flex-wrap:wrap; }
  .hosting-heading-actions { width:100%;justify-content:flex-end; }
}
@media(max-width:700px) {
  #admin-view .admin-intro-line { align-items:flex-start;gap:16px;padding-bottom:20px; }
  #admin-view .admin-intro-line h1 { font-size:28px; }
  .admin-intro-actions { width:100%;justify-content:space-between;gap:8px; }
  .admin-intro-actions .secondary-button { min-height:40px;padding:8px 12px;font-size:12px; }
  .admin-section-heading { margin-top:7px; }.admin-section-heading>span { display:none; }
  #admin-view .admin-overview { display:grid;grid-template-columns:1fr;gap:10px; }
  #admin-view .admin-tile { grid-template-columns:44px minmax(0,1fr) 20px;align-items:center;align-content:center;min-height:95px;padding:16px;gap:13px; }
  #admin-view .admin-tile-icon { grid-area:auto; }.admin-tile-copy { min-width:0; }
  #admin-view .admin-tile-copy { grid-area:auto; }.admin-tile-copy small { line-height:1.5; }
  #admin-view .admin-tile-copy strong { font-size:19px; }
  #admin-view .admin-tile-arrow { grid-area:auto; }
  #admin-view .admin-tile[aria-pressed=true] { box-shadow:inset 3px 0 var(--tile-color); }
  #admin-view .admin-quicklinks { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 22px; }
  #admin-view .admin-quicklinks button { justify-content:flex-start;min-height:48px;padding:10px 12px;font-size:12px;gap:8px; }
  .admin-panel-location>span:last-child { display:none; }.admin-panel-location { padding-top:14px; }
  #admin-view .hosting-manager,#admin-view .media-manager,#admin-view .access-manager { padding:20px 16px;border-radius:18px; }
  #admin-view .hosting-heading h2,#admin-view .media-section-heading h2 { font-size:21px; }
  #admin-view .hosting-heading { gap:15px;margin-bottom:16px; }
  .hosting-heading-actions { display:grid;grid-template-columns:1fr 1.15fr;gap:8px; }
  .hosting-heading-actions button { min-width:0;padding:10px 8px;font-size:13px; }
  .hosting-heading-actions svg { width:17px;height:17px; }
  #admin-view .hosting-controls,#admin-view .hosting-manager[data-kind=lessons] .hosting-controls { grid-template-columns:1fr;padding:12px; }
  #admin-view .hosting-controls input,#admin-view .hosting-controls select { font-size:16px; }
  #admin-view .hosting-row { grid-template-columns:32px minmax(0,1fr);gap:10px;padding:14px 12px; }
  .hosting-row-symbol { width:32px;height:32px;font-size:15px;border-radius:10px; }
  #admin-view .hosting-row>button { grid-column:2;justify-self:start;min-height:40px; }
  #admin-view .hosting-row h3 { font-size:15px; }.hosting-row-badges { margin-top:7px; }
  .admin-back-menu { display:inline-flex;align-items:center;gap:5px;border:0;padding:0;min-height:36px;background:transparent;color:#536e5b;font:500 12px var(--font);margin-bottom:12px;cursor:pointer; }
  .admin-back-menu svg { width:15px;height:15px;transform:rotate(180deg); }
  #hosting-manager-title,#media-manager-title,#access-title { scroll-margin-top:90px; }
  .admin-media-guide { flex-wrap:wrap;padding:16px;gap:10px; }.admin-media-guide button { width:100%; }
  .hosting-dialog { padding:23px 18px; }.hosting-dialog .hosting-actions { bottom:-23px;gap:8px; }.hosting-actions button { flex:1;padding:12px 9px; }
}
@media(prefers-reduced-motion:reduce) { #admin-view .admin-tile { transition:none; } }
