/* The workbench retains one DOM and one event model. These rules apply in World only. */
.workbench.world-session {
  --world-ink: #34241b;
  --world-paper: #fff2d1;
  --world-sheet: #fff9e8;
  --world-edge: #87552f;
  --world-gold: #e7aa60;
  --world-green: #245540;
  --world-danger: #852d31;
  color: var(--world-ink);
  background: #faf0db;
}
.world-session :is(#world-business-header, #world-business-nav)[hidden] { display: none; }
.world-session #world-business-header {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .5rem;
  background: repeating-linear-gradient(0deg,#643b29 0 12px,#533021 12px 14px);
}
.world-session #world-business-nav {
  position: fixed;
  z-index: 12;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  inline-size: min(100%,var(--shell-width,1040px));
}
.world-session #world-business-nav .world-nav { position: static; }
.world-session #world-business-nav button[aria-current] {
  background: #dbeaa9;
  box-shadow: inset 0 -3px #98ab61, 0 2px #63391e;
}
.world-session :is(.view, .note-panel, dialog, #teacher-bar) {
  --md-on-surface: var(--world-ink);
  --md-surface: var(--world-sheet);
  --md-surface-container: var(--world-paper);
  --md-primary: var(--world-green);
  --lp-ink: var(--world-ink);
}
.world-session .view:not(#home-view) { padding-block-end: calc(70px + env(safe-area-inset-bottom)); }
.world-session :is(.section-heading, .attendance-header, .edit-header, .profile-heading) {
  padding: .7rem .85rem;
  color: var(--world-ink);
  background: repeating-linear-gradient(#f1bf7b 0 12px,#ecb16a 12px 14px);
  border: 2px solid var(--world-edge);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #ffdb97, 0 3px #593725;
}
.world-session :is(.log-card,.leave-card,.nonsense-card,.profile-card,.note-panel,.history-card,
  .student-card,.attendance-row,.class-card,.insight-panel,.premium-card,.completion,.teacher-account-card,
  .directory-actions,.daily-reminders,#attendance-content,.edit-class-list,#account-settings) {
  background: var(--world-sheet);
  color: var(--world-ink);
  border-color: var(--world-edge);
  border-radius: 7px;
}
.world-session :is(.view,dialog,.note-panel,#teacher-bar,#world-business-header)
  :is(.quick-button,.back-button,.home-shortcut,.primary-button,button[role=tab],[type=submit]) {
  min-block-size: 44px;
  border: 2px solid var(--world-edge);
  border-radius: 6px;
  background: var(--world-paper);
  color: var(--world-ink);
  box-shadow: inset 0 -3px #e9cc97;
}
.world-session #world-business-header button {
  min-block-size: 44px;
  border: 2px solid #714322;
  border-radius: 6px;
  background: var(--world-paper);
  color: var(--world-ink);
}
.world-session :is(.view,dialog,.note-panel) :is(.primary-button,[type=submit]) {
  background: var(--world-green);
  color: #fff8dd;
  box-shadow: inset 0 -3px #163d2e;
}
.world-session :is(button[role=tab][aria-selected=true],.edit-branch-tabs button.active) {
  background-color: #dce9b0;
}
.world-session :is(.view,dialog,.note-panel) :is(select,textarea,input:not([type=checkbox],[type=radio],[type=hidden])) {
  min-block-size: 44px;
  border: 1px solid var(--world-edge);
  border-radius: 5px;
  background-color: var(--world-sheet);
  color: var(--world-ink);
  accent-color: var(--world-green);
}
.world-session :is(.view,dialog,.note-panel) :is(table,progress) {
  accent-color: var(--world-green);
}
.world-session :is(.view,dialog) :is(th,.material-snackbar,.completion) {
  background-color: var(--world-paper);
  color: var(--world-ink);
}
.world-session :is(.view,dialog) [aria-busy=true] { border-color: var(--world-gold); }
.world-session :is(.view,dialog,.note-panel) :is(.hint,.note-empty,[role=status]) { color: var(--world-ink); }
.world-session :is(.view,dialog,.note-panel) .danger-text-button { color: var(--world-danger); }
.world-session :is(.view,dialog,.note-panel,#world-business-nav,#world-business-header) :focus-visible {
  outline: 3px solid #19558d;
  outline-offset: 2px;
}
.workbench.world-session #attendance-view .sticky-finish,
.world-session :is(.sticky-save,.edit-bottom-actions,.fee-bottom) { bottom: calc(66px + env(safe-area-inset-bottom)); }
.workbench.world-login-look .login-card {
  background: #fff2d1;
  border: 3px solid #87552f;
  border-radius: 8px;
  box-shadow: inset 0 0 0 3px #f3cb89,0 4px #593725;
}
.workbench.world-login-look .pin-boxes > * {
  border-radius: 5px;
  border-color: #87552f;
}
.workbench.world-login-look #login-button {
  border: 2px solid #163d2e;
  border-radius: 6px;
  background: #245540;
  color: #fff8dd;
}
@media (max-width: 430px) {
  .world-session :is(.section-heading,.attendance-header,.edit-header) { padding-inline: .6rem; }
  .world-session :is(.view,dialog) :is(.log-context-fields,.student-filter-grid) { gap: .5rem; }
}
.lincoln-world .world-beta-label, .world-session #world-business-header .world-beta-label {
  display:inline-block;
  vertical-align:middle;
  margin-inline-start:.45em;
  padding:.16em .35em;
  border:1px solid #714322;
  border-radius:3px;
  background:#fff2d1;
  font:700 .64rem system-ui,sans-serif;
  letter-spacing:.025em;
}
.workbench #mode-selection {
  max-inline-size: 780px;
  margin-inline:auto;
  padding: clamp(1rem,4vw,2.5rem);
}
#mode-selection[hidden], #mode-selection [hidden] { display:none; }
#mode-selection header { text-align:center; margin-block-end:1.2rem; }
#mode-selection header p { margin:0; color:#436762; }
#mode-selection h1 { margin:.3rem 0; }
#mode-selection .mode-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
#mode-selection .mode-card {
  min-height:230px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:.35rem;
  padding:1rem;
  border-radius:18px;
  text-align:center;
  color:#244b43;
  background:#e4f1e7;
  border:2px solid #bcd8ca;
  cursor:pointer;
}
#mode-selection .mode-card strong { font-size:clamp(1.15rem,3vw,1.5rem); }
#mode-selection .mode-card[hidden] { display:none; }
#mode-selection .mode-card img { object-fit:contain; }
#mode-selection .mode-world {
  color:#37231a;
  background:linear-gradient(#343d2a18,#3f281b47),url("assets/lincoln-world/campus.jpeg") center 43%/cover;
  border:3px solid #81502e;
  border-radius:8px;
  box-shadow:inset 0 0 0 3px #e9b977,0 3px #714322;
}
#mode-selection .mode-world strong { padding:.3rem .55rem; background:#efba76; border:2px solid #81502e; border-radius:5px; }
#mode-selection .mode-world > span { padding:.15rem .5rem; background:#fff2d1; border-radius:4px; }
#mode-selection .mode-card:focus-visible { outline:3px solid #19558d; outline-offset:3px; }
#mode-selection .mode-world .world-beta-label { font-size:.65rem; }
#login-back-to-modes { align-self:start; margin-block-end:.5rem; }
.workbench.world-login-look #login-heading {
  border:2px solid #87552f;
  border-radius:6px;
  padding:.3rem .55rem;
  background:repeating-linear-gradient(#f1bf7b 0 12px,#ecb16a 12px 14px);
}
@media(max-width:560px) {
  #mode-selection .mode-choices { grid-template-columns:1fr; }
  #mode-selection .mode-card { min-height:170px; }
  #mode-selection .mode-card img { width:83px; height:83px; }
}
@media (max-width:600px) {
  .lincoln-world .world-nav {
    flex:none; gap:3px; border-top-width:1px; box-shadow:none;
    padding:2px max(4px,env(safe-area-inset-right)) calc(2px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));
  }
  .lincoln-world .world-nav button { min-height:44px; gap:0; border-width:1px; box-shadow:none; font-size:.71rem; line-height:1.05; }
  .lincoln-world .world-nav img { width:20px; height:20px; }
  #lincoln-world[data-scene="campus"] .world-nav { position:static; margin-top:0; }
  .world-session .view:not(#home-view) { padding-block-end:calc(54px + env(safe-area-inset-bottom)); }
  .workbench.world-session #attendance-view .sticky-finish,
  .world-session :is(.sticky-save,.edit-bottom-actions,.fee-bottom) { bottom:calc(49px + env(safe-area-inset-bottom)); }
}
