/* v5.4.3 ARCHITECT - request ownership migrated from app.css */
.request-head{align-items:center}
.request-class-group{display:grid;gap:9px;margin-top:13px}
.request-class-group:first-child{margin-top:0}
.request-class-heading{display:flex;align-items:center;justify-content:space-between;padding:0 2px}
.request-class-heading strong{font-size:13px}
.request-class-heading span{color:var(--muted);font-size:9px}
.request-class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.request-reset-tile span{display:inline;color:var(--muted);font-size:9px;font-weight:850;letter-spacing:0}
.request-reset-tile small{display:none}
.request-reset-tile strong{display:inline;margin:0;color:inherit;font-size:9px;line-height:1}
.request-reset-tile{
  min-width:0;
  min-height:26px;
  height:26px;
  box-sizing:border-box;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-strong);
  color:var(--muted);
  box-shadow:var(--shadow-soft);
  text-align:center;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
@media(max-width:759px){
  .request-head{align-items:flex-start;flex-direction:column}
}
@media(max-width:420px){
  .request-reset-tile{min-width:0;padding:0 9px}.request-reset-tile strong{font-size:9px}
}

/* v5.4.1 communication - canonical */

/* v5.4.3 ARCHITECT - base communication migrated from app.css */
.communication-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:17px;
  margin-top:17px;
}

.communication-grid > .request-composer{
  grid-column:1 / 3;
  grid-row:1;
}

.communication-grid > .request-list-card{
  grid-column:3 / 5;
  grid-row:1;
}

.communication-grid > .assessment-card{
  grid-column:5 / 7;
  grid-row:1;
}

.communication-grid > .chat-card{
  grid-column:1 / 4;
  grid-row:2;
}

.communication-grid > .post-card{
  grid-column:4 / 7;
  grid-row:2;
}

.communication-grid > .echo-card{
  grid-column:1 / -1;
  grid-row:3;
}
.quick-request-grid{position:relative;z-index:1;display:grid;
  align-content:start;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.quick-request-grid button{min-height:96px;padding:14px 10px;border:1px solid var(--line);border-radius:17px;background:var(--surface-strong);box-shadow:var(--shadow-soft);cursor:pointer;transition:.18s ease}

.quick-request-grid button span{display:grid;place-items:center;width:30px;height:30px;margin:0 auto 9px;border-radius:10px;background:rgba(114,87,246,.1);color:var(--purple);font-size:16px;font-weight:900}
.quick-request-grid strong,.quick-request-grid small{display:block;font-weight:600;}.quick-request-grid strong{font-size:12px}.quick-request-grid small{margin-top:3px;color:var(--muted);font-size:9px;font-weight:600;}

.request-list{position:relative;z-index:1;display:grid;gap:8px;max-height:470px;overflow:auto;padding-right:3px;overscroll-behavior:contain}
.request-item{padding:14px;border:1px solid var(--line);border-radius:17px;background:var(--surface-strong);box-shadow:var(--shadow-soft)}
.request-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.request-title{font-size:13px;font-weight:850}.request-detail{margin-top:5px;color:var(--muted);font-size:11px;line-height:1.5;font-weight:600;}.request-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;color:var(--muted);font-size:10px;font-weight:600;}.vote-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:26px;height:26px;padding:0 8px;border:1px solid var(--line);border-radius:999px;cursor:pointer;font-size:8.5px;font-weight:850;line-height:1;white-space:nowrap}.vote-button.is-voted{color:var(--purple);border-color:rgba(114,87,246,.25);background:rgba(114,87,246,.09)}

.chat-window{position:relative;z-index:1;height:370px;overflow:auto;padding:13px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft);scroll-behavior:smooth;overscroll-behavior:contain}
.chat-message{margin-bottom:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-strong);box-shadow:var(--shadow-soft)}
.chat-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:var(--muted);font-size:9px;font-weight:600;}.chat-name{font-weight:900}.chat-body{font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-form{position:relative;z-index:1;display:flex;gap:8px;margin-top:10px}.chat-form input{flex:1;min-width:0;height:44px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-strong);color:var(--text);outline:none}.chat-form input:focus{border-color:rgba(114,87,246,.45);box-shadow:0 0 0 4px rgba(114,87,246,.08)}.chat-form button{display:grid;place-items:center;width:44px;border:0;border-radius:14px;color:#fff;background:linear-gradient(135deg,var(--purple),var(--blue));cursor:pointer}.chat-form svg{width:17px;height:17px}.form-note{position:relative;z-index:1;min-height:15px;margin-top:6px;color:var(--red);font-size:9px;font-weight:600;}

/* v5.4.3 ARCHITECT - responsive communication migrated from app.css */

@media(hover:hover) and (pointer:fine){
  .quick-request-grid button:hover{
    transform:translateY(-3px);
    border-color:rgba(114,87,246,.28);
  }
}

@media(max-width:899px){
  .communication-grid{
    grid-template-columns:1fr;
  }

  .communication-grid > .request-composer,
  .communication-grid > .request-list-card,
  .communication-grid > .assessment-card,
  .communication-grid > .chat-card,
  .communication-grid > .post-card,
  .communication-grid > .echo-card{
    grid-column:1 / -1;
    grid-row:auto;
  }

  .quick-request-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:680px){
  .quick-request-grid{
    grid-template-columns:repeat(3,1fr);
    gap:8px;
  }

  .quick-request-grid button{
    min-height:91px;
  }

  .chat-window{
    height:auto;
    min-height:0;
    max-height:330px;
  }
}

@media(max-width:430px){
  .quick-request-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(min-width:760px){
  .quick-request-grid-four{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

.view[data-view="communication"] .page-heading{
  margin-bottom:18px;
}

.view[data-view="communication"] .communication-subtitle{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

/* assessment board */
.assessment-card{
  grid-column:auto;
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:15px 18px;
  background:var(--surface);
}

.assessment-card .assessment-head{
  margin-bottom:10px;
}

.assessment-class-chip{
  flex:0 0 auto;
  width:auto;
  min-height:28px;
  height:28px;
  padding:0 10px;
  white-space:nowrap;
  cursor:pointer;
}

.assessment-list{
  display:grid;
  flex:1 1 0;
  gap:8px;
  width:100%;
  min-height:0;
  max-height:none;
  padding:4px 7px 25px;
  box-sizing:border-box;
  overflow-y:auto;
  overflow-x:hidden;
  align-content:start;
  -webkit-mask-image:linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - 26px),
    transparent 100%
  );
  mask-image:linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - 26px),
    transparent 100%
  );
}

.assessment-date-group{
  display:grid;
  gap:3px;
  width:100%;
  min-width:0;
}

.assessment-date-heading{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  padding:0 2px;
}

.assessment-date-heading strong{
  order:1;
  flex:0 0 auto;
}

.assessment-date-heading::after{
  content:"";
  order:2;
  flex:1 1 auto;
  height:1px;
  background:var(--line);
}

.assessment-date-heading span{
  order:3;
  flex:0 0 auto;
}

.assessment-date-heading strong{
  font-size:13px;
  font-weight:850;
}

.assessment-date-heading span{
  color:var(--muted);
  font-size:9px;
  font-weight:800;
}

.assessment-date-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
}

.assessment-item{
  width:100%;
  min-width:0;
  min-height:42px;
  box-sizing:border-box;
  padding:6px 8px 6px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-strong);
  box-shadow:0 4px 14px rgba(43,48,67,.055);
}

.assessment-item-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  width:100%;
  min-width:0;
}

.assessment-item-copy{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow:hidden;
}

.assessment-subject{
  flex:0 1 auto;
  max-width:42%;
  min-width:0;
  color:var(--text);
  font-size:11.5px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.assessment-detail{
  flex:1 1 auto;
  min-width:0;
  margin:0;
  color:var(--muted);
  font-size:9.5px;
  font-weight:650;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.assessment-item-tools{
  display:flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
}

.assessment-period,
.assessment-delete{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  height:28px;
  min-height:28px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  font-size:8.5px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}

.assessment-delete{
  color:var(--muted);
  cursor:pointer;
}

.assessment-card .empty-state{
  display:grid;
  place-items:center;
  min-height:96px;
  padding:18px;
  border:0;
  border-radius:14px;
  background:var(--surface-soft);
  color:var(--muted);
  font-size:11px;
  font-weight:750;
  line-height:1.55;
  text-align:center;
}

.assessment-composer-pill{
  display:flex;
  align-items:center;
  gap:6px;
  width:100%;
  box-sizing:border-box;
  margin-top:11px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-strong);
  box-shadow:var(--shadow-soft);
}

.assessment-compose-field,
.assessment-add{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-width:0;
  height:36px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  padding:1px 12px 0;
  font:inherit;
  font-size:10px;
  font-weight:850;
  line-height:1;
  text-align:center;
  vertical-align:middle;
  cursor:pointer;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.assessment-compose-field{
  flex:0 0 auto;
  width:auto;
}

#assessment-date-field,
#assessment-period-subject-field{
  border-color:transparent;
  background:rgba(114,87,246,.10);
  color:var(--purple);
}

#assessment-date-field.has-value,
#assessment-period-subject-field.has-value{
  border:1px solid transparent;
  background:
    linear-gradient(135deg,var(--purple),var(--blue)) padding-box,
    linear-gradient(135deg,var(--purple),var(--blue)) border-box;
  box-shadow:none;
  color:#fff;
  outline:0;
  filter:none;
  transform:none;
  appearance:none;
  -webkit-appearance:none;
}

.assessment-detail-input{
  flex:1 1 180px;
  min-width:0;
  height:36px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  padding:0 13px;
  outline:0;
  font:inherit;
  font-size:10px;
  font-weight:700;
}

.assessment-detail-input::placeholder{
  color:var(--muted);
}

.assessment-detail-input:focus{
  border-color:rgba(82,92,220,.38);
  box-shadow:0 0 0 3px rgba(91,94,230,.09);
}

.assessment-add{
  flex:0 0 36px;
  width:36px;
  padding:1px 0 0;
  border:1px solid transparent;
  background:
    linear-gradient(135deg,var(--purple),var(--blue)) padding-box,
    linear-gradient(135deg,var(--purple),var(--blue)) border-box;
  box-shadow:none;
  color:#fff;
  font-size:20px;
  line-height:1;
  outline:0;
  filter:none;
  transform:none;
  appearance:none;
  -webkit-appearance:none;
}

.assessment-add:disabled{
  opacity:.38;
  cursor:default;
}

/* assessment signal-style picker */
.assessment-picker-panel{
  width:min(560px,calc(100vw - 24px));
  height:auto;
  min-height:0;
  max-height:min(82dvh,760px);
  overflow:hidden;
}

.assessment-picker-body{
  flex:0 0 auto;
  min-height:0;
  padding:14px 18px 8px;
  overflow:auto;
}

.assessment-picker-actions{
  display:block;
  flex:0 0 auto;
  padding:8px 18px 18px;
  border-top:0;
}

.assessment-picker-actions #assessment-picker-apply{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:46px;
  height:46px;
  margin:0;
  padding:0 16px;
  border:0;
  border-radius:15px;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  box-shadow:0 6px 18px rgba(74,82,210,.16);
  color:#fff;
  font-size:14px;
  font-weight:900;
  line-height:1;
}

.assessment-picker-actions #assessment-picker-apply:disabled{
  opacity:.38;
  cursor:default;
}

.assessment-calendar-controls{
  display:grid;
  grid-template-columns:38px minmax(74px,1fr) 38px;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}

.assessment-calendar-controls strong{
  min-width:74px;
  text-align:center;
  font-size:12px;
  font-weight:850;
  line-height:1;
}

.assessment-calendar-controls button{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface-strong);
  color:var(--text);
  font-size:22px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
}

.assessment-calendar-controls button svg{
  display:block;
  width:18px;
  height:18px;
  margin:0;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.assessment-calendar-weekdays,
.assessment-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px;
}

.assessment-calendar-weekdays{
  margin-bottom:7px;
}

.assessment-calendar-weekdays span{
  display:grid;
  place-items:center;
  min-height:24px;
  color:var(--muted);
  font-size:9px;
  font-weight:850;
}

.assessment-calendar-grid button{
  aspect-ratio:1;
  min-width:0;
  border:1px solid transparent;
  border-radius:13px;
  background:var(--surface-strong);
  color:var(--text);
  font:inherit;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.assessment-calendar-grid button.is-today{
  border-color:var(--purple);
}

.assessment-calendar-grid button.is-selected{
  color:#fff;
  border:1px solid transparent;
  background:
    linear-gradient(135deg,var(--purple),var(--blue)) padding-box,
    linear-gradient(135deg,var(--purple),var(--blue)) border-box;
  box-shadow:none;
  outline:0;
  filter:none;
  transform:none;
  appearance:none;
  -webkit-appearance:none;
}

.assessment-calendar-grid button:disabled{
  opacity:.3;
  cursor:default;
}

.assessment-selected-dates{
  min-height:38px;
  margin-top:14px;
  padding:10px 12px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-strong);
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  line-height:1.5;
}

.assessment-period-subject-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 138px;
  gap:10px;
  align-items:end;
}

.assessment-period-pane,
.assessment-subject-pane{
  display:flex;
  flex-direction:column;
  align-self:end;
  min-width:0;
  gap:0;
  padding-left:0;
  border-left:0;
}

.assessment-period-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.assessment-subject-pane{
    align-self:end;
    min-width:0;
    gap:0;
    padding-left:0;
    border-left:0;
}

.assessment-subject-pane > strong{
  display:none;
}

#assessment-subject-input{
  width:100%;
  min-width:0;
  height:48px;
  min-height:48px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-strong);
  color:var(--text);
  padding:0 13px;
  outline:0;
  font:inherit;
  font-size:12px;
  font-weight:750;
}

#assessment-subject-input:focus{
  border-color:rgba(82,92,220,.38);
  box-shadow:0 0 0 3px rgba(91,94,230,.09);
}

.assessment-period-grid button{
  min-height:48px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-strong);
  color:var(--text);
  font:inherit;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.assessment-period-grid button.is-selected{
  color:#fff;
  border:1px solid transparent;
  background:
    linear-gradient(135deg,var(--purple),var(--blue)) padding-box,
    linear-gradient(135deg,var(--purple),var(--blue)) border-box;
  box-shadow:none;
  outline:0;
  filter:none;
  transform:none;
  appearance:none;
  -webkit-appearance:none;
}


/* mobile request and assessment */
@media(max-width:759px){
  .communication-grid{
    gap:10px;
  }

  .request-composer{
    margin-bottom:0;
    padding-left:19px;
    padding-right:19px;
    padding-bottom:19px;
  }

  .request-list-card{
    height:auto;
    min-height:0;
    margin-bottom:0;
    padding:19px;
    align-self:start;
  }

  .request-list-card .section-head{
    margin-bottom:8px;
  }

  .request-list-card .request-list{
    display:grid;
    flex:none;
    box-sizing:border-box;
    width:100%;
    height:auto;
    min-height:0;
    max-height:none;
    margin:0;
    padding:0;
    overflow:visible;
    align-content:start;
  }

  .request-list-card .empty-state,
  .assessment-card .empty-state{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:42px;
    height:42px;
    margin:0;
    padding:0 14px;
    box-sizing:border-box;
    border-radius:999px;
    color:var(--text);
    font-size:11px;
    font-weight:850;
    line-height:1;
    text-align:center;
  }

  .request-list-card .request-class-group{
    display:grid;
    gap:4px;
    box-sizing:border-box;
    width:100%;
    margin:0;
    padding:0;
    overflow:visible;
  }

  .request-list-card .request-class-grid{
    box-sizing:border-box;
    width:100%;
    margin:0;
    padding:0;
    overflow:visible;
  }

  .request-list-card .request-class-grid{
    grid-template-columns:1fr;
    gap:6px;
  }

  .request-list-card .request-class-heading{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:7px;
    width:100%;
    margin:0 0 2px;
    padding:0;
  }

  .request-list-card .request-class-heading strong{
    order:1;
    flex:0 0 auto;
  }

  .request-list-card .request-class-heading::after{
    content:"";
    order:2;
    flex:1 1 auto;
    min-width:14px;
    height:1px;
    background:var(--line);
  }

  .request-list-card .request-class-heading span{
    order:3;
    flex:0 0 auto;
  }

  .request-list-card .request-item{
    display:block;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    min-height:42px;
    margin:0;
    padding:7px 9px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--surface-strong);
    box-shadow:0 4px 14px rgba(43,48,67,.055);
    overflow:hidden;
  }

  .request-list-card .request-main{
    display:flex;
    align-items:center;
    gap:7px;
    width:100%;
    min-width:0;
  }

  .request-list-card .request-title{
    flex:0 1 auto;
    min-width:0;
    margin:0;
    font-size:11px;
    font-weight:850;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .request-list-card .request-time{
    flex:0 0 auto;
    color:var(--muted);
    font-size:8.5px;
    font-weight:750;
    line-height:1;
    white-space:nowrap;
  }

  .request-list-card .request-actions{
    display:flex;
    align-items:center;
    gap:5px;
    flex:0 0 auto;
    margin-left:auto;
  }


  .request-list-card .request-detail{
    min-width:0;
    margin:4px 0 0;
    color:var(--muted);
    font-size:8.5px;
    line-height:1.25;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .request-composer .quick-request-grid-four,
  .request-list-card .request-list{
    margin-bottom:0;
    padding-bottom:0;
  }

  .request-composer .form-note:empty,
  .chat-card .form-note:empty,
  .assessment-card .form-note:empty{
    display:none;
    margin:0;
    min-height:0;
  }

  .assessment-card{
    height:auto;
    min-height:0;
    padding:19px;
  }

  .assessment-card .assessment-head{
    margin-bottom:8px;
  }

  .assessment-list{
    flex:none;
    width:100%;
    height:auto;
    min-height:auto;
    max-height:none;
    padding:0;
    overflow:visible;
    -webkit-mask-image:none;
    mask-image:none;
  }

  .assessment-date-grid{
    grid-template-columns:1fr;
    gap:8px;
  }

  .assessment-item{
    min-height:42px;
    padding:6px 8px 6px 12px;
}

  .assessment-composer-pill{
    display:flex;
    gap:5px;
    margin-top:8px;
    border-radius:999px;
    padding:6px;
  }

  .assessment-compose-field{
    flex:0 0 auto;
    width:auto;
    padding-left:9px;
    padding-right:9px;
  }

  .assessment-detail-input{
    flex:1 1 auto;
    min-width:0;
    padding-left:10px;
    padding-right:10px;
  }

  .assessment-add{
    flex:0 0 36px;
    width:36px;
    height:36px;
    min-height:36px;
  }

  .assessment-picker-panel{
    width:min(calc(100vw - 24px),560px);
    max-width:none;
    height:auto;
    min-height:0;
    max-height:calc(100dvh - 28px);
}

  .assessment-picker-body{
    flex:0 0 auto;
    min-height:0;
    padding:12px 14px 6px;
    overflow:auto;
}

  .assessment-calendar-weekdays,
  .assessment-calendar-grid{
    gap:4px;
  }

  .assessment-calendar-grid button{
    border-radius:11px;
  }

  .assessment-period-subject-layout{
    grid-template-columns:minmax(0,1fr) 125px;
    gap:8px;
    align-items:end;
}

  .assessment-subject-pane{
    padding-left:8px;
  }

  #assessment-subject-input{
    width:100%;
    min-width:0;
    height:48px;
    min-height:48px;
    padding:0 11px;
    border-radius:14px;
    font-size:11px;
}

  .assessment-period-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}



@media(min-width:1024px){
  .communication-grid{
    margin-top:12px;
    display:grid;
    grid-template-columns:
      repeat(6,minmax(0,1fr));
    gap:14px;
    align-items:stretch;
  }

  .communication-grid > .request-composer{
    min-width:0;
    min-height:clamp(390px,34vw,500px);
    height:auto;
    align-self:stretch;
    padding:14px 16px;
    background:var(--surface);
  }

  .communication-grid > .request-list-card,
  .communication-grid > .assessment-card{
    min-width:0;
    min-height:clamp(390px,34vw,500px);
    height:auto;
    padding:14px 16px;
    background:var(--surface);
  }

  .request-list-card,
  .chat-card{
    display:flex;
    flex-direction:column;
  }

  .request-list-card{
    overflow:hidden;
  }

  .request-composer .request-head{
    margin-bottom:6px;
  }

  .request-list-card .section-head,
  .chat-card .section-head{
    margin-bottom:10px;
  }

  .request-composer .quick-request-grid-four{
    grid-template-columns:1fr;
    gap:7px;
  }

  .request-composer .quick-request-grid-four button{
    min-height:57px;
    padding:6px 10px;
    border-radius:14px;
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:11px;
    row-gap:1px;
    align-items:center;
    justify-items:start;
    text-align:left;
  }

  .request-composer .quick-request-grid-four button > span{
    width:36px;
    height:36px;
    margin:0;
    grid-column:1;
    grid-row:1 / 3;
    align-self:center;
    justify-self:start;
  }

  .request-composer .quick-request-grid-four button .request-icon svg{
    width:20px;
    height:20px;
  }

  .request-composer .quick-request-grid-four button > strong{
    grid-column:2;
    font-size:12.5px;
    text-align:left;
    justify-self:start;
  }

  .request-list-card .request-list{
    display:grid;
    flex:1 1 0;
    width:100%;
    min-height:0;
    max-height:none;
    box-sizing:border-box;
    padding:4px 7px 25px;
    overflow-y:auto;
    overflow-x:hidden;
    align-content:start;
    grid-auto-rows:max-content;
    -webkit-mask-image:linear-gradient(
      to bottom,
      #000 0%,
      #000 calc(100% - 26px),
      transparent 100%
    );
    mask-image:linear-gradient(
      to bottom,
      #000 0%,
      #000 calc(100% - 26px),
      transparent 100%
    );
  }

  .request-list-card .request-class-group{
    display:grid;
    grid-template-rows:auto auto;
    align-content:start;
    width:100%;
    height:auto;
    min-height:0;
    margin:0;
    padding:0;
  }

  .request-list-card .request-class-heading{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:7px;
    width:100%;
    margin:0 0 3px;
    padding:0;
  }

  .request-list-card .request-class-heading strong{
    order:1;
    flex:0 0 auto;
  }

  .request-list-card .request-class-heading::after{
    content:"";
    order:2;
    flex:1 1 auto;
    height:1px;
    background:var(--line);
  }

  .request-list-card .request-class-heading span{
    order:3;
    flex:0 0 auto;
  }

  .request-list-card .request-class-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:7px;
    width:100%;
    margin:0;
    padding:0;
  }

  .request-list-card .request-item{
    display:block;
    min-width:0;
    min-height:44px;
    padding:6px 10px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--surface-strong);
    box-shadow:0 4px 14px rgba(43,48,67,.055);
    overflow:hidden;
  }

  .request-list-card .request-main{
    display:flex;
    align-items:center;
    gap:7px;
    width:100%;
    min-width:0;
  }

  .request-list-card .request-title{
    flex:0 1 auto;
    min-width:0;
    font-size:11px;
    font-weight:850;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .request-list-card .request-time{
    flex:0 0 auto;
    color:var(--muted);
    font-size:8.5px;
    font-weight:750;
    line-height:1;
    white-space:nowrap;
  }

  .request-list-card .request-actions{
    display:flex;
    align-items:center;
    gap:5px;
    flex:0 0 auto;
    margin-left:auto;
  }

  .request-list-card .vote-button{
    min-width:94px;
    margin:0;
  }

  .request-list-card .request-detail{
    min-width:0;
    margin:4px 0 0;
    color:var(--muted);
    font-size:8.5px;
    line-height:1.25;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .chat-card .chat-window{
    flex:1 1 auto;
    min-height:270px;
    height:auto;
    max-height:none;
    padding:10px;
  }

  .chat-card .chat-form{
    flex:0 0 auto;
    margin-top:7px;
    gap:7px;
  }

  .chat-card .form-note{
    flex:0 0 auto;
  }

  .request-composer .request-head{
    position:relative;
    align-items:flex-start;
  }

  .request-composer .request-head > div:first-child{
    width:auto;
    flex:1 1 auto;
    min-width:0;
  }

  .request-composer .v411-class-chip,
  .request-composer #v411-role-display{
    flex:0 0 auto;
    margin-left:auto;
  }

  .request-composer .form-note:empty,
  .chat-card .form-note:empty,
  .assessment-card .form-note:empty{
    display:none;
    min-height:0;
    margin:0;
    padding:0;
  }

  .request-list-card .request-reset-tile{
    min-width:0;
    padding:0 9px;
    border-radius:999px;
  }

  .chat-card .chat-form input{
    height:40px;
  }

  .chat-card .chat-form button{
    width:40px;
  }

}

@media(min-width:1100px){
  .communication-grid{
    grid-template-columns:
      repeat(6,minmax(0,1fr));
    gap:14px;
  }

  .communication-grid > .request-composer{
    min-height:clamp(350px,calc(50vw - 230px),410px);
    height:auto;
    align-self:stretch;
    padding:15px 18px;
  }

  .communication-grid > .request-list-card,
  .communication-grid > .assessment-card{
    min-height:clamp(350px,calc(50vw - 230px),410px);
    height:auto;
    padding:15px 18px;
  }

  .request-composer .quick-request-grid-four{
    gap:9px;
  }

  .request-composer .quick-request-grid-four button{
    min-height:68px;
    padding:6px 10px;
    border-radius:15px;
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:12px;
    row-gap:1px;
    align-items:center;
    justify-items:start;
    text-align:left;
  }

  .request-composer .quick-request-grid-four button > span{
    width:38px;
    height:38px;
    margin:0;
    grid-column:1;
    grid-row:1 / 3;
    align-self:center;
    justify-self:start;
  }

  .request-composer .quick-request-grid-four button .request-icon svg{
    width:21px;
    height:21px;
  }

  .request-composer .quick-request-grid-four button > strong{
    grid-column:2;
    font-size:13px;
    text-align:left;
    justify-self:start;
  }

  .request-composer .quick-request-grid-four button > small{
    grid-column:2;
    margin-top:1px;
    font-size:9.5px;
    font-weight:600;
    text-align:left;
    justify-self:start;
  }

  .request-list-card .request-class-grid{
    gap:7px;
  }

  .request-list-card .request-item{
    min-height:44px;
    padding:6px 10px;

  border-radius:999px;
}

  .request-list-card .request-title{
    font-size:11px;
}

  .request-list-card .request-detail{
    margin-top:4px;
    font-size:8.5px;
}

  .request-list-card .request-meta{
    margin-top:5px;
    font-size:8.5px;
  }

  .request-list-card .vote-button{
    min-width:100px;
    margin:0;
  }

  .chat-card .chat-window{
    min-height:290px;
  }
}


@media(min-width:1024px){
  .communication-grid > .chat-card{
    grid-column:1 / 4;
    min-height:clamp(320px,28vw,410px);
    height:auto;
    padding:15px 18px;
    background:var(--surface);
  }
}

/* v5.4.3 ARCHITECT - quick request migrated from v411-fun.css */

/* v5.1 canonical mobile quick request base */
@media(max-width:759px){
  .quick-request-grid,
  .quick-request-grid-four{
    gap:10px;
  }

  .quick-request-grid button{
    min-height:84px;
    padding:12px 8px;
  }

  .quick-request-grid button span{
    margin-bottom:7px;
  }

}

/* v5.1 canonical quick request icons */
.quick-request-grid .request-icon{
  display:grid;
  place-items:center;
  flex:none;
}

.quick-request-grid .request-icon svg{
  display:block;
  width:19px;
  height:19px;
  margin:0;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* v5.1 canonical mobile quick request row */
@media(max-width:759px){
  .quick-request-grid-four{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    row-gap:10px;
    column-gap:10px;
  }

  .quick-request-grid-four button{
    display:grid;
    grid-template-columns:46px minmax(0,1fr);
    grid-template-rows:min-content min-content;
    align-items:center;
    justify-items:start;
    width:100%;
    min-width:0;
    height:auto;
    min-height:auto;
    padding:10px 12px;
    column-gap:10px;
    row-gap:1px;
    border-radius:15px;
    text-align:left;
  }

  .quick-request-grid-four button .request-icon{
    display:grid;
    grid-column:1;
    grid-row:1 / 3;
    place-items:center;
    width:46px;
    height:46px;
    margin:0;
    border-radius:9px;
    background:rgba(114,87,246,.065);
    color:var(--purple);
  }

  .quick-request-grid-four button .request-icon svg{
    width:22px;
    height:22px;
  }

  .quick-request-grid-four [data-request-type="aircon"] .request-icon svg{
    stroke-width:1.55;
  }

  .quick-request-grid-four button > strong{
    display:block;
    grid-column:2;
    grid-row:1;
    align-self:end;
    width:auto;
    height:auto;
    min-height:0;
    margin:0;
    padding:0;
    overflow:visible;
    font-size:13px;
    line-height:1.2;
    text-align:left;
    text-overflow:clip;
    white-space:nowrap;
  }

  .quick-request-grid-four button > small{
    display:block;
    grid-column:2;
    grid-row:2;
    align-self:start;
    width:auto;
    height:auto;
    min-height:0;
    margin:2px 0 0;
    overflow:visible;
    color:var(--muted);
    font-size:10px;
    line-height:1.2;
    text-align:left;
    text-overflow:clip;
    white-space:nowrap;font-weight:600;}
}

/* v5.4.3 ARCHITECT - ECHO UI migrated from v415-echo.css */
.chat-card .chat-form[hidden]{
  display:none;
}
.echo-post{
  position:relative;
}
.echo-post > .chat-meta{
  align-items:center;
  padding-right:42px;
}
.echo-post .echo-close{
  position:absolute;
  top:10px;
  right:10px;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border-radius:10px;
}
.echo-post .echo-close svg{
  width:15px;
  height:15px;
}


/* v5.5 PIVOT - meal reaction */

/* v5.5.3 SWOOSH | INSIDE visual system
   Reuses DUKBAP LIVE card, surface, typography and control tokens.
   Keep INSIDE-specific rules here; do not add overrides at file end. */

#inside-gallery-card,
#inside-profile-dialog{
  --inside-tint:rgba(114,87,246,.09);
  --inside-tint-hover:rgba(114,87,246,.16);
  --inside-accent-ink:var(--purple);
  --inside-compose-bg:rgba(114,87,246,.14);
}

html[data-theme="dark"] #inside-gallery-card,
html[data-theme="dark"] #inside-profile-dialog{
  --inside-tint:rgba(114,87,246,.20);
  --inside-tint-hover:rgba(114,87,246,.28);
  --inside-accent-ink:#baa9ff;
  --inside-compose-bg:rgba(114,87,246,.24);
}

/* Outer gallery and the usual DUKBAP LIVE section header */
#inside-gallery-card{
  display:block;
  width:100%;
  min-width:0;
  margin:0 0 18px;
}
#inside-gallery-card[hidden]{display:none!important}
#inside-gallery-card .inside-gallery-keyname{color:var(--purple)}
#inside-gallery-card > .section-head{
  align-items:flex-start;
  gap:12px;
  margin-bottom:13px;
}
#inside-gallery-card > .section-head > div{min-width:0;flex:1 1 auto}
#inside-gallery-card > .section-head h2{font-size:19px}
#inside-gallery-card > .section-head p:not(.section-eyebrow){
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  line-height:1.5;
}
#inside-gallery-card .inside-profile-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:26px;
  height:26px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-strong);
  color:var(--muted);
  box-shadow:var(--shadow-soft);
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
#inside-gallery-card > .section-head > .inside-profile-trigger{
  margin:0 0 0 auto;
  align-self:flex-start;
  margin-top:-5px;
  line-height:1;
}
@media(hover:hover) and (pointer:fine){
  #inside-gallery-card .inside-profile-trigger:hover{
    border-color:var(--line);
    background:var(--surface-soft);
    color:var(--muted);
    filter:brightness(.97);
    box-shadow:var(--shadow-soft);
  }
}

/* Editor collapses into the existing bottom toolbar, without moving content. */
#inside-gallery-card .inside-gallery-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  gap:14px;
  min-width:0;
}
#inside-gallery-card .inside-gallery-editor{display:none}
#inside-gallery-card.inside-compose-open .inside-gallery-editor{display:block}
#inside-gallery-card.inside-compose-open .inside-gallery-layout{
  grid-template-columns:minmax(0,2fr) minmax(0,1fr);
  align-items:start;
}
#inside-gallery-card.inside-compose-open .inside-gallery-board{
  grid-template-columns:minmax(0,1fr);
}
#inside-gallery-card.inside-compose-open .inside-gallery-viewer{
  display:none!important;
}
#inside-gallery-card .inside-gallery-pane{
  min-width:0;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface-soft);
}
#inside-gallery-card .inside-gallery-pane h3{
  margin:0 0 13px;
  color:var(--text);
  font-size:14px;
  font-weight:900;
  line-height:1.4;
}
#inside-gallery-card .inside-gallery-posts.request-list-card{
  display:block;
  grid-column:auto;
  grid-row:auto;
  width:auto;
  height:auto;
  min-height:0;
  background:var(--surface-soft);
  border-color:var(--line);
  box-shadow:var(--v410-card-shadow);
}
#inside-gallery-card .inside-gallery-list.request-list{
  display:block;
  width:100%;
  max-height:none;
  overflow:hidden;
  min-width:0;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-strong);
  box-shadow:0 3px 12px rgba(43,48,67,.05);
  -webkit-mask-image:none;
  mask-image:none;
}
/* The general request-list fading mask should not fade a single post. */
#inside-gallery-card .inside-gallery-list.inside-list-single{
  -webkit-mask-image:none;
  mask-image:none;
}
#inside-gallery-card .inside-gallery-list .empty-state{
  min-height:44px;
  margin:0;
  padding:10px 86px 10px 12px;
  background:var(--surface-strong);
}

/* Compose form matches post composer, chat and standard controls. */
#inside-gallery-card .inside-gallery-editor fieldset{
  display:grid;
  gap:9px;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}
#inside-gallery-card .inside-gallery-editor label{
  color:var(--text);
  font-size:11px;
  font-weight:850;
}
#inside-gallery-card .inside-gallery-editor input:not([type="file"]),
#inside-gallery-card .inside-gallery-editor textarea,
#inside-gallery-card .inside-comment-form textarea{
  display:block;
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-strong);
  color:var(--text);
  font:inherit;
  font-size:12px;
  line-height:1.55;
  outline:none;
}
#inside-gallery-card .inside-gallery-editor input:not([type="file"]){
  height:44px;
  padding:0 14px;
}
#inside-gallery-card .inside-gallery-editor textarea{
  min-height:160px;
  padding:12px 14px;
  resize:vertical;
}
#inside-gallery-card .inside-gallery-editor :is(input,textarea):focus-visible,
#inside-gallery-card .inside-comment-form textarea:focus-visible,
#inside-profile-dialog #inside-nickname:focus-visible{
  border-color:rgba(114,87,246,.42);
  box-shadow:0 0 0 3px rgba(114,87,246,.10);
}
#inside-gallery-card .inside-gallery-filebox{
  min-width:0;
  padding:12px;
  border:1px dashed var(--line-strong);
  border-radius:14px;
  background:var(--surface-strong);
}
#inside-gallery-card .inside-gallery-filebox input{
  max-width:100%;
  color:var(--muted);
  font-size:11px;
}
#inside-gallery-card .inside-gallery-filebox input::file-selector-button,
#inside-profile-dialog .inside-avatar-control input::file-selector-button{
  min-height:34px;
  margin-right:10px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface-soft);
  color:var(--text);
  font:inherit;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
}
#inside-gallery-card .inside-gallery-preview{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(80px,1fr));
  gap:8px;
}
#inside-gallery-card .inside-gallery-preview[hidden]{display:none!important}
#inside-gallery-card .inside-gallery-preview img{
  width:100%;
  aspect-ratio:1;
  border-radius:12px;
  object-fit:cover;
}
#inside-gallery-card .inside-gallery-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin-top:7px;
}
#inside-gallery-card .inside-gallery-actions .form-note{
  flex:1 1 175px;
  min-width:0;
  margin:0;
}
/* Floating compose pill stays in the bottom-right of the post list. */
#inside-gallery-card .inside-bottom-toolbar{
  position:absolute;
  right:3px;
  bottom:3px;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:0;
}
#inside-gallery-card .inside-bottom-toolbar .inside-compose-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:34px;
  margin:0;
  padding:0 15px;
  border:0;
  border-radius:999px;
  background:var(--inside-compose-bg);
  color:var(--inside-accent-ink);
  box-shadow:0 4px 12px rgba(114,87,246,.09);
  font:inherit;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
}
@media(hover:hover) and (pointer:fine){
  #inside-gallery-card .inside-compose-toggle:hover{
    border:0;
    background:var(--inside-tint-hover);
  }
}

/* Posts: compact row list + a single split reader, matching existing cards. */
#inside-gallery-card .inside-gallery-board{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
  align-items:start;
  min-width:0;
}
#inside-gallery-card .inside-gallery-board.has-selection{
  grid-template-columns:minmax(0,2fr) minmax(0,1fr);
}
#inside-gallery-card .inside-gallery-sidebar{
  position:relative;
  min-width:0;
  min-height:110px;
  padding-bottom:50px;
}
#inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-sidebar{
  display:flex;
  flex-direction:column;
  max-height:min(68vh,680px);
  overflow:hidden;
}
#inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-list.request-list{
  flex:1 1 auto;
  min-height:0;
  max-height:calc(min(68vh,680px) - 50px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
#inside-gallery-card .inside-gallery-item.request-item{
  display:block;
  width:100%;
  min-width:0;
  min-height:0;
  margin:0;
  padding:0;
  border:0;
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  color:var(--text);
  box-shadow:none;
  overflow:hidden;
}
#inside-gallery-card .inside-gallery-item.request-item:last-child{border-bottom:0}
#inside-gallery-card .inside-gallery-item.is-selected{background:var(--inside-tint)}
#inside-gallery-card .inside-gallery-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  width:100%;
  min-height:43px;
  margin:0;
  padding:5px 10px;
  border:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  text-align:left;
  cursor:pointer;
}
#inside-gallery-card .inside-gallery-row:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:-2px;
}
@media(hover:hover) and (pointer:fine){
  #inside-gallery-card .inside-gallery-row:hover{background:var(--inside-tint)}
}
#inside-gallery-card .inside-list-content{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow:hidden;
}
#inside-gallery-card .inside-list-title{
  display:block;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#inside-gallery-card .inside-list-date{
  flex:0 0 auto;
  align-self:center;
  color:var(--muted);
  font-size:9px;
  font-weight:750;
  font-variant-numeric:tabular-nums;
  line-height:1.2;
  white-space:nowrap;
}
#inside-gallery-card .inside-author-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  min-width:0;
  padding:4px 11px 4px 4px;
  border:1px solid rgba(114,87,246,.14);
  border-radius:999px;
  background:var(--inside-tint);
  color:var(--inside-accent-ink);
  font-size:10px;
  font-weight:850;
}
#inside-gallery-card .inside-author-pill img,
#inside-gallery-card .inside-author-fallback{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:50%;
  object-fit:cover;
}
#inside-gallery-card .inside-author-fallback{
  background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;
  font-size:11px;
  font-weight:900;
}
#inside-gallery-card .inside-author-fallback[hidden]{display:none!important}
#inside-gallery-card .inside-author-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#inside-gallery-card .inside-author-compact{
  flex:0 1 auto;
  gap:6px;
  min-width:0;
  max-width:54%;
  min-height:30px;
  padding:2px 9px 2px 3px;
  border:1px solid rgba(114,87,246,.14);
  background:var(--inside-tint);
  color:var(--inside-accent-ink);
  font-size:10px;
  font-weight:800;
}
#inside-gallery-card .inside-author-compact img,
#inside-gallery-card .inside-author-compact .inside-author-fallback{
  flex:0 0 24px;
  width:24px;
  height:24px;
  font-size:9px;
}
#inside-gallery-card .inside-gallery-viewer{
  min-width:0;
  padding:17px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-strong);
  color:var(--text);
  box-shadow:var(--v410-card-shadow);
  scroll-margin-top:16px;
}
#inside-gallery-card .inside-gallery-viewer[hidden]{display:none!important}
#inside-gallery-card .inside-gallery-viewer:focus{outline:none}
#inside-gallery-card .inside-viewer-head{
  display:flex;
  align-items:center;
  gap:7px;
  width:100%;
  min-width:0;
  min-height:32px;
}
#inside-gallery-card .inside-viewer-heading{
  display:flex;
  align-items:center;
  flex:1 1 auto;
  gap:8px;
  min-width:0;
}
#inside-gallery-card .inside-viewer-heading .inside-author-pill{
  flex:0 1 auto;
  max-width:48%;
  min-width:0;
}
#inside-gallery-card .inside-gallery-pane .inside-viewer-title{
  flex:1 1 auto;
  min-width:0;
  margin:0;
  overflow:hidden;
  color:var(--text);
  font-size:12px;
  font-weight:850;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#inside-gallery-card .inside-viewer-controls{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  margin-left:auto;
  min-width:0;
}
#inside-gallery-card .inside-viewer-controls .inside-list-date{
  flex:0 0 auto;
  margin:0 2px 0 0;
  white-space:nowrap;
}
#inside-gallery-card .inside-viewer-moderate{
  display:flex;
  align-items:center;
  gap:4px;
}
#inside-gallery-card .inside-viewer-moderate button{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  min-height:25px;
  height:25px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-soft);
  color:var(--muted);
  font:inherit;
  font-size:9px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
}
#inside-gallery-card .inside-viewer-moderate button:last-child{
  color:var(--red);
  background:rgba(239,71,111,.08);
  border-color:rgba(239,71,111,.22);
}
#inside-gallery-card .inside-viewer-close,
#inside-profile-dialog .inside-profile-close{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  padding:0;
  border:1px solid var(--line);
  background:var(--surface-soft);
  color:var(--muted);
  cursor:pointer;
}
#inside-gallery-card .inside-viewer-close{
  position:static;
  transform:none;
  width:27px;
  height:27px;
  min-height:27px;
  border-radius:10px;
}
#inside-gallery-card .inside-viewer-close svg,
#inside-profile-dialog .inside-profile-close svg{
  display:block;
  width:16px;
  height:16px;
  margin:0;
  flex:0 0 auto;
  stroke:currentColor;
  stroke-width:2;
  fill:none;
  stroke-linecap:round;
}
#inside-gallery-card .inside-viewer-close:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:2px;
}
@media(max-width:430px){
  #inside-gallery-card .inside-viewer-head.is-owner{flex-wrap:wrap}
  #inside-gallery-card .inside-viewer-head.is-owner .inside-viewer-heading{flex-basis:100%}
  #inside-gallery-card .inside-viewer-head.is-owner .inside-viewer-controls{width:100%}
  #inside-gallery-card .inside-viewer-head:not(.is-owner) .inside-viewer-heading .inside-author-pill{max-width:52%}
  #inside-gallery-card .inside-viewer-moderate button{padding:0 6px;font-size:8px}
}
#inside-gallery-card .inside-gallery-detail{
  min-width:0;
  margin-top:11px;
  padding-top:11px;
  border-top:1px solid var(--line);
}
#inside-gallery-card .inside-gallery-body{
  margin:0;
  color:var(--text);
  font-size:12px;
  font-weight:550;
  line-height:1.7;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
#inside-gallery-card .inside-gallery-photos{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
#inside-gallery-card .inside-gallery-photos img{
  display:block;
  width:100%;
  height:auto;
  max-height:340px;
  border-radius:12px;
  object-fit:contain;
}
@media(max-width:899px){
  #inside-gallery-card .inside-gallery-board.has-selection{
    grid-template-columns:minmax(0,1fr);
  }
  #inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-sidebar{
    display:block;
    max-height:none;
    padding-bottom:50px;
    overflow:visible;
  }
  #inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-list.request-list{
    max-height:none;
    overflow:visible;
  }
}
@media(max-width:430px){
  #inside-gallery-card .inside-gallery-row{min-height:45px;padding:5px 9px}
  #inside-gallery-card .inside-gallery-viewer{padding:14px}
  #inside-gallery-card .inside-gallery-pane .inside-viewer-title{font-size:11px}
  #inside-gallery-card .inside-gallery-photos{grid-template-columns:1fr}
}

/* Reactions and comments follow existing chip, list and form styles. */
#inside-gallery-card .inside-feedback{
  min-width:0;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
#inside-gallery-card .inside-feedback-actions{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  width:100%;
}
#inside-gallery-card .inside-votes{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  flex-wrap:nowrap;
  gap:5px;
}
#inside-gallery-card .inside-vote{
  flex:0 0 auto;
  min-height:34px;
  height:34px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-soft);
  color:var(--text);
  font:inherit;
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
  cursor:pointer;
}
#inside-gallery-card .inside-vote.is-selected{
  border-color:rgba(114,87,246,.32);
  background:var(--inside-tint);
  color:var(--inside-accent-ink);
}
#inside-gallery-card .inside-comments{
  display:grid;
  gap:8px;
  min-width:0;
  margin-top:10px;
}
#inside-gallery-card .inside-comments:empty{display:none}
#inside-gallery-card .inside-comment{
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-soft);
  overflow-wrap:anywhere;
}
#inside-gallery-card .inside-comment strong{
  color:var(--text);
  font-size:11px;
  font-weight:850;
}
#inside-gallery-card .inside-comment p{
  margin:5px 0 0;
  color:var(--text);
  font-size:11px;
  line-height:1.6;
  white-space:pre-wrap;
}
#inside-gallery-card .inside-feedback-note{
  color:var(--muted);
  font-size:10px;
  font-weight:650;
  line-height:1.5;
  margin:5px 0 0;
}
#inside-gallery-card .inside-feedback-note:empty{display:none}
#inside-gallery-card .inside-comment-form{
  position:relative;
  flex:1 1 auto;
  min-width:0;
  margin:0;
}
#inside-gallery-card .inside-comment-form .inside-comment-input{
  display:block;
  width:100%;
  height:34px;
  min-height:34px;
  padding:0 58px 0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  outline:none;
  background:var(--surface-strong);
  color:var(--text);
  font:inherit;
  font-size:10px;
}
#inside-gallery-card .inside-comment-form .inside-comment-input:focus-visible{
  border-color:rgba(114,87,246,.42);
  box-shadow:0 0 0 3px rgba(114,87,246,.10);
}
#inside-gallery-card .inside-comment-form .inside-comment-submit{
  position:absolute;
  top:4px;
  right:4px;
  display:grid;
  place-items:center;
  min-width:0;
  min-height:26px;
  height:26px;
  padding:0 10px;
  border:0;
  border-radius:999px;
  background:var(--inside-compose-bg);
  color:var(--inside-accent-ink);
  font:inherit;
  font-size:10px;
  font-weight:850;
  line-height:1;
  cursor:pointer;
}
#inside-gallery-card .inside-comment-submit:disabled{
  opacity:.55;
  cursor:wait;
}
@media(max-width:430px){
  #inside-gallery-card .inside-feedback-actions{gap:6px}
  #inside-gallery-card .inside-vote{padding:0 7px;font-size:8px}
  #inside-gallery-card .inside-comment-form .inside-comment-input{
    padding-left:9px;
    padding-right:49px;
    font-size:9px;
  }
  #inside-gallery-card .inside-comment-form .inside-comment-submit{
    right:3px;
    padding:0 8px;
    font-size:9px;
  }
}

/* Admin controls: keep the existing access checks and collapse behavior. */
#inside-gallery-card .inside-admin-details{
  margin-top:13px;
  padding:0;
  border:0;
}
#inside-gallery-card .inside-admin-details[hidden],
#inside-gallery-card .inside-gallery-admin[hidden],
#inside-gallery-card .inside-admin-actions[hidden]{display:none!important}
#inside-gallery-card .inside-admin-details > summary{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  min-height:34px;
  margin:0 0 0 auto;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-strong);
  color:var(--muted);
  font-size:10px;
  font-weight:850;
  list-style:none;
  cursor:pointer;
}
#inside-gallery-card .inside-admin-details > summary::-webkit-details-marker{display:none}
#inside-gallery-card .inside-admin-details > summary::after{
  content:"";
  display:block;
  width:6px;
  height:6px;
  margin-top:-3px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
}
#inside-gallery-card .inside-admin-details[open] > summary::after{
  margin-top:3px;
  transform:rotate(225deg);
}
#inside-gallery-card .inside-gallery-admin{
  margin-top:10px;
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--surface-soft);
  box-shadow:var(--v410-card-shadow);
}
#inside-gallery-card .inside-gallery-admin > h4{display:none}
#inside-gallery-card .inside-gallery-admin > p{
  color:var(--muted);
  font-size:11px;
}
#inside-gallery-card .inside-admin-row{
  display:grid;
  gap:9px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
  color:var(--text);
  font-size:11px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
#inside-gallery-card .inside-admin-row:last-child{border-bottom:0}
#inside-gallery-card .inside-admin-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;
}
#inside-gallery-card .inside-admin-actions button{
  min-height:32px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-soft);
  color:var(--text);
  font:inherit;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
}
#inside-gallery-card .inside-admin-actions button:nth-child(2){
  border-color:rgba(239,71,111,.22);
  background:rgba(239,71,111,.10);
  color:var(--red);
}
@media(hover:hover) and (pointer:fine){
  #inside-gallery-card .inside-admin-actions button:hover,
  #inside-gallery-card .inside-admin-details > summary:hover{
    border-color:rgba(114,87,246,.35);
    background:var(--inside-tint);
  }
}

/* Profile dialog uses the same modal geometry as SIGNAL. */
#inside-profile-dialog{
  box-sizing:border-box;
  width:min(440px,calc(100vw - 24px));
  max-width:none;
  max-height:calc(100dvh - 48px);
  margin:auto;
  padding:0;
  border:1px solid var(--line);
  border-radius:25px;
  background:var(--surface-strong);
  color:var(--text);
  box-shadow:var(--shadow);
  overflow:auto;
  overscroll-behavior:contain;
}
#inside-profile-dialog::backdrop{
  background:var(--v410-modal-backdrop);
  backdrop-filter:blur(var(--v410-modal-blur));
  -webkit-backdrop-filter:blur(var(--v410-modal-blur));
}
#inside-profile-dialog[open] .inside-profile-dialog-shell{
  animation:v410-modal-in .24s cubic-bezier(.2,.8,.2,1) both;
}
#inside-profile-dialog .inside-profile-dialog-shell{min-width:0}
#inside-profile-dialog .inside-profile-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:20px 20px 16px;
  border-bottom:1px solid var(--line);
}
#inside-profile-dialog .inside-profile-dialog-head > div{flex:1 1 auto;min-width:0}
#inside-profile-dialog .inside-profile-dialog-head h3{
  margin:0 0 6px;
  color:var(--text);
  font-size:20px;
  font-weight:900;
  letter-spacing:-.5px;
}
#inside-profile-dialog .inside-profile-dialog-head p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  line-height:1.55;
}
#inside-profile-dialog .inside-profile-close{
  width:36px;
  height:36px;
  min-height:36px;
  border-radius:12px;
  box-shadow:var(--shadow-soft);
}
#inside-profile-dialog .inside-gallery-profile{
  margin:0;
  padding:18px 20px 22px;
  min-width:0;
}
#inside-profile-dialog #inside-profile-name[hidden]{display:none!important}
#inside-profile-dialog #inside-nickname-form{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:16px;
  min-width:0;
}
#inside-profile-dialog .inside-profile-avatar-row{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
  padding:2px 0 3px;
}
#inside-profile-dialog .inside-avatar-preview{
  display:grid;
  place-items:center;
  flex:0 0 76px;
  width:76px;
  height:76px;
  overflow:hidden;
  border:2px solid var(--line);
  border-radius:50%;
  background:var(--surface-soft);
  color:var(--muted);
}
#inside-profile-dialog .inside-avatar-preview img{
  display:block;
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
}
#inside-profile-dialog .inside-avatar-preview [hidden]{display:none!important}
#inside-profile-dialog .inside-avatar-preview-fallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  border-radius:50%;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;
  font-size:26px;
  font-weight:850;
}
#inside-profile-dialog .inside-profile-avatar-tools{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:0;
}
#inside-profile-dialog .inside-profile-label,
#inside-profile-dialog .inside-profile-nickname-field label{
  color:var(--text);
  font-size:11px;
  font-weight:850;
}
#inside-profile-dialog .inside-avatar-control{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-soft);
  color:var(--text);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
#inside-profile-dialog .inside-avatar-file{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
#inside-profile-dialog .inside-avatar-control:hover{
  background:var(--inside-tint);
}
#inside-profile-dialog .inside-avatar-control:has(+ .inside-avatar-file:focus-visible){
  outline:2px solid var(--purple);
  outline-offset:2px;
}
#inside-profile-dialog .inside-profile-avatar-tools small{
  color:var(--muted);
  font-size:9px;
  line-height:1.4;
}
#inside-profile-dialog .inside-profile-nickname-field{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}
#inside-profile-dialog .inside-profile-nickname-field input{
  width:100%;
  min-width:0;
  height:43px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface-strong);
  color:var(--text);
  outline:0;
  font:inherit;
  font-size:12px;
}
#inside-profile-dialog .inside-profile-nickname-field input:focus-visible{
  border-color:rgba(114,87,246,.50);
  box-shadow:0 0 0 3px var(--inside-tint);
}
#inside-profile-dialog .inside-realname-control{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0;
  color:var(--text);
  font-size:11px;
  font-weight:750;
  cursor:pointer;
}
#inside-profile-dialog .inside-realname-control input{
  flex:0 0 auto;
  width:17px;
  height:17px;
  accent-color:var(--purple);
}
#inside-profile-dialog .inside-profile-note{
  min-height:16px;
  margin:0;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
}
#inside-profile-dialog .inside-profile-note:empty{min-height:0}
#inside-profile-dialog .inside-profile-save.primary-small{
  display:grid;
  place-items:center;
  width:100%;
  min-width:0;
  min-height:44px;
  height:44px;
  margin:0;
  padding:0 12px;
  border:0;
  border-radius:13px;
  color:#fff;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  box-shadow:0 7px 16px rgba(114,87,246,.18);
  font:inherit;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}
#inside-profile-dialog .inside-profile-save:disabled{opacity:.65;cursor:wait}
@media(max-width:899px){
  #inside-gallery-card.inside-compose-open .inside-gallery-layout{
    grid-template-columns:minmax(0,1fr);
  }
}
@media(max-width:690px){
  #inside-gallery-card .inside-gallery-pane{padding:14px}
  #inside-gallery-card .inside-gallery-editor textarea{min-height:145px}
}
@media(max-width:430px){
  #inside-gallery-card > .section-head{align-items:flex-start}
  #inside-gallery-card .inside-profile-trigger{max-width:100%}
  #inside-gallery-card .inside-gallery-photos{grid-template-columns:1fr}
  #inside-profile-dialog .inside-profile-dialog-head{padding:18px 17px 14px}
  #inside-profile-dialog .inside-gallery-profile{padding:17px}
}
@media(prefers-reduced-motion:reduce){
  #inside-profile-dialog[open] .inside-profile-dialog-shell{animation:none}
}


/* INSIDE V3.3: list card without double wrapper */
/* Remove only the outer post-list panel's visual box. */
#inside-gallery-card .inside-gallery-posts.request-list-card{
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}
#inside-gallery-card .inside-gallery-sidebar{
  position:relative;
  min-height:0;
  padding:0;
}
/* The unified list is now the single visible card. */
#inside-gallery-card .inside-gallery-list.request-list{
  width:100%;
  min-height:0;
  padding:0;
  border-radius:var(--radius-lg);
  background:var(--surface-strong);
  box-shadow:0 5px 18px rgba(43,48,67,.075);
  -webkit-mask-image:none;
  mask-image:none;
}
#inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-sidebar{
  padding:0;
}
#inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-list.request-list{
  min-height:0;
  max-height:min(68vh,680px);
  overflow-y:auto;
  padding-bottom:34px;
}
/* Float a smaller compose pill over the list's bottom-right padding. */
#inside-gallery-card .inside-bottom-toolbar{
  position:absolute;
  right:8px;
  bottom:6px;
  z-index:5;
  padding:0;
  pointer-events:none;
}
#inside-gallery-card .inside-bottom-toolbar .inside-compose-toggle{
  min-width:0;
  min-height:28px;
  height:28px;
  padding:0 10px;
  border:0;
  border-radius:999px;
  background:var(--inside-compose-bg);
  color:var(--inside-accent-ink);
  box-shadow:0 3px 9px rgba(114,87,246,.08);
  font-size:9px;
  line-height:1;
  pointer-events:auto;
}
@media(max-width:430px){
  #inside-gallery-card .inside-gallery-board:not(.has-selection) .inside-gallery-list.request-list{min-height:0}
  #inside-gallery-card .inside-bottom-toolbar{right:8px;bottom:8px}
  #inside-gallery-card .inside-bottom-toolbar .inside-compose-toggle{min-height:26px;height:26px;padding:0 9px}
}

/* INSIDE V3.6: compact list, 2:1 editor, attachment menu */
#inside-gallery-card .inside-gallery-board:not(.has-selection) .inside-gallery-sidebar{
  padding-bottom:0;
}
#inside-gallery-card .inside-gallery-sidebar > .inside-gallery-list.request-list{
  min-height:0;
}
#inside-gallery-card .inside-gallery-item:last-child .inside-gallery-row{
  padding-right:83px;
}
#inside-gallery-card .inside-gallery-editor .inside-field-sr{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
#inside-gallery-card .inside-compose-title-line{
  display:flex;
  position:relative;
  min-width:0;
  align-items:center;
}
#inside-gallery-card .inside-compose-title-line #inside-title{
  width:100%;
  height:43px;
  padding:0 54px 0 16px;
  border-radius:999px;
}
#inside-gallery-card .inside-attach-trigger{
  position:absolute;
  right:5px;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  min-width:33px;
  min-height:33px;
  padding:0;
  border:0;
  border-radius:50%;
  background:var(--inside-compose-bg);
  color:var(--inside-accent-ink);
  font:inherit;
  font-size:20px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
}
#inside-gallery-card .inside-attach-trigger:hover{
  background:var(--inside-tint-hover);
}
#inside-gallery-card .inside-attach-trigger:focus-visible,
#inside-gallery-card .inside-attach-menu button:focus-visible{
  outline:2px solid var(--purple);
  outline-offset:2px;
}
#inside-gallery-card .inside-attach-menu{
  position:absolute;
  top:calc(100% + 7px);
  right:0;
  z-index:20;
  display:grid;
  gap:3px;
  width:137px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-strong);
  box-shadow:var(--shadow-soft);
}
#inside-gallery-card .inside-attach-menu[hidden]{display:none!important}
#inside-gallery-card .inside-attach-menu button{
  width:100%;
  min-height:35px;
  padding:0 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:11px;
  text-align:left;
  cursor:pointer;
}
#inside-gallery-card .inside-attach-menu button:hover{background:var(--surface-soft)}
#inside-gallery-card .inside-gallery-editor .inside-attach-input{display:none!important}
#inside-gallery-card .inside-gallery-editor #inside-body{
  min-height:195px;
  border-radius:22px;
  padding:15px 17px;
}
#inside-gallery-card .inside-gallery-preview video{
  display:block;
  width:100%;
  aspect-ratio:1;
  border-radius:12px;
  background:#111;
  object-fit:contain;
}
@media(max-width:899px){
  #inside-gallery-card.inside-compose-open .inside-gallery-layout{
    grid-template-columns:minmax(0,1fr);
  }
}
@media(max-width:430px){
  #inside-gallery-card .inside-compose-title-line #inside-title{height:41px}
  #inside-gallery-card .inside-gallery-editor #inside-body{min-height:145px}
  #inside-gallery-card .inside-bottom-toolbar{right:8px;bottom:6px}
}


/* INSIDE V3.7: unified header actions, tight reader, inline media */
#inside-gallery-card > .section-head{position:relative;z-index:25;}
#inside-gallery-card.inside-admin-open{overflow:visible;}
#inside-gallery-card > .section-head > .inside-header-tools{
  flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;
  gap:6px;min-width:0;margin-left:auto;
}
#inside-gallery-card .inside-bottom-toolbar{
  position:static;display:flex;align-items:center;gap:6px;
  right:auto;bottom:auto;padding:0;z-index:6;pointer-events:auto;
}
#inside-gallery-card .inside-bottom-toolbar .inside-compose-toggle{
  position:static;display:inline-flex;align-items:center;gap:5px;
  min-height:29px;height:29px;padding:0 11px;font-size:10px;
  pointer-events:auto;white-space:nowrap;
}
#inside-gallery-card .inside-compose-toggle svg{
  display:block;width:13px;height:13px;fill:none;
  stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
#inside-gallery-card .inside-admin-details{position:relative;margin:0;padding:0;min-width:0;}
#inside-gallery-card .inside-admin-details > summary{
  min-height:29px;height:29px;padding:0 11px;margin:0;font-size:10px;
  background:var(--surface-strong);
}
#inside-gallery-card .inside-admin-details > .inside-gallery-admin{
  position:absolute;z-index:12;right:0;top:calc(100% + 8px);
  width:min(345px,calc(100vw - 44px));max-height:min(55vh,440px);
  overflow-y:auto;margin:0;box-shadow:var(--shadow);
  background:var(--bg);border:1px solid var(--line-strong);
}
/* Reader header: smaller author pill, shorter title and rounded close. */
#inside-gallery-card .inside-viewer-head{min-height:27px;gap:5px;}
#inside-gallery-card .inside-viewer-heading{gap:6px;}
#inside-gallery-card .inside-viewer-heading .inside-author-pill{
  max-width:44%;min-height:26px;height:26px;padding:2px 8px 2px 3px;
  font-size:9px;line-height:1.1;gap:5px;
}
#inside-gallery-card .inside-viewer-heading .inside-author-pill img,
#inside-gallery-card .inside-viewer-heading .inside-author-fallback{
  width:20px;height:20px;flex:0 0 20px;font-size:9px;
}
#inside-gallery-card .inside-gallery-pane .inside-viewer-title{
  font-size:11px;line-height:1.25;
}
#inside-gallery-card .inside-viewer-controls{gap:4px;}
#inside-gallery-card .inside-viewer-moderate button{
  min-height:23px;height:23px;padding:0 7px;font-size:8px;
}
#inside-gallery-card .inside-viewer-close{
  width:26px;height:26px;min-height:26px;min-width:26px;
  padding:0;border-radius:50%;aspect-ratio:1/1;
}
#inside-gallery-card .inside-viewer-close svg{width:14px;height:14px;}
#inside-gallery-card .inside-gallery-detail{margin-top:8px;padding-top:9px;}
/* Reader content includes images, rather than a separate gallery row. */
#inside-gallery-card .inside-rich-body{display:block;min-width:0;}
#inside-gallery-card .inside-rich-body .inside-body-text{
  margin:0 0 7px;white-space:pre-wrap;overflow-wrap:anywhere;
}
#inside-gallery-card .inside-rich-body .inside-inline-image{
  display:inline-block;vertical-align:top;max-width:100%;width:auto;
  max-height:280px;margin:5px 7px 5px 0;border-radius:12px;
  object-fit:contain;
}
/* Compact reaction/comment controls. */
#inside-gallery-card .inside-feedback{margin-top:9px;padding-top:8px;}
#inside-gallery-card .inside-feedback-actions{gap:6px;}
#inside-gallery-card .inside-votes{gap:4px;}
#inside-gallery-card .inside-vote{
  min-height:29px;height:29px;padding:0 9px;font-size:9px;
}
#inside-gallery-card .inside-comment-form .inside-comment-input{
  min-height:29px;height:29px;padding:0 51px 0 10px;font-size:10px;
}
#inside-gallery-card .inside-comment-form .inside-comment-submit{
  top:3px;right:3px;min-height:23px;height:23px;padding:0 9px;
}
#inside-gallery-card .inside-comments{gap:6px;margin-top:7px;}
#inside-gallery-card .inside-comment{padding:7px 9px;border-radius:11px;}
#inside-gallery-card .inside-comment p{margin-top:3px;line-height:1.45;}
/* Input + attach + publish share a single title row. */
#inside-gallery-card .inside-compose-title-line{display:flex;align-items:center;gap:7px;}
#inside-gallery-card .inside-compose-title-line #inside-title{
  flex:1 1 auto;width:0;min-width:0;padding:0 14px;height:40px;
}
#inside-gallery-card .inside-compose-title-actions{
  position:relative;display:flex;align-items:center;flex:0 0 auto;gap:6px;
}
#inside-gallery-card .inside-attach-trigger{
  position:static;transform:none;flex:0 0 32px;width:32px;height:32px;
  min-width:32px;min-height:32px;display:grid;place-items:center;
  padding:0;line-height:0;border-radius:50%;
}
#inside-gallery-card .inside-attach-trigger svg{
  display:block;width:18px;height:18px;margin:0;fill:none;
  stroke:currentColor;stroke-width:2;stroke-linecap:round;
}
#inside-gallery-card .inside-compose-title-actions button[type="submit"]{
  flex:0 0 auto;min-height:33px;height:33px;padding:0 11px;
  border-radius:999px;font-size:10px;white-space:nowrap;
}
#inside-gallery-card .inside-attach-menu{right:0;top:calc(100% + 7px);}
/* Text and selected media live in the same rounded body box. */
#inside-gallery-card .inside-compose-bodybox{
  min-width:0;min-height:178px;padding:8px 10px;
  border:1px solid var(--line);border-radius:22px;
  background:var(--surface-strong);
}
#inside-gallery-card .inside-compose-bodybox:focus-within{
  border-color:rgba(114,87,246,.42);box-shadow:0 0 0 3px rgba(114,87,246,.1);
}
#inside-gallery-card .inside-gallery-editor #inside-body{
  display:block;min-height:140px;width:100%;padding:6px;
  border:0;border-radius:0;background:transparent;box-shadow:none;resize:vertical;
}
#inside-gallery-card .inside-gallery-editor #inside-body:focus-visible{
  border:0;outline:none;box-shadow:none;
}
#inside-gallery-card .inside-compose-bodybox .inside-gallery-preview{
  display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px;
  width:100%;margin:0;padding:4px 0 0;
}
#inside-gallery-card .inside-compose-bodybox .inside-gallery-preview img,
#inside-gallery-card .inside-compose-bodybox .inside-gallery-preview video{
  flex:0 0 auto;width:86px;height:86px;max-width:100%;aspect-ratio:1;
  margin:0;object-fit:cover;border-radius:11px;
}
#inside-gallery-card .inside-gallery-actions{margin-top:0;}
@media(max-width:430px){
  #inside-gallery-card .inside-bottom-toolbar .inside-compose-toggle{
    min-height:27px;height:27px;padding:0 9px;
  }
  #inside-gallery-card .inside-admin-details > summary{
    min-height:27px;height:27px;padding:0 9px;
  }
  #inside-gallery-card .inside-viewer-head.is-owner{gap:4px;}
  #inside-gallery-card .inside-viewer-heading .inside-author-pill{max-width:51%;}
  #inside-gallery-card .inside-viewer-moderate button{padding:0 5px;font-size:8px;}
  #inside-gallery-card .inside-compose-title-line{gap:4px;}
  #inside-gallery-card .inside-compose-title-line #inside-title{height:38px;padding:0 10px;font-size:10px;}
  #inside-gallery-card .inside-compose-title-actions{gap:4px;}
  #inside-gallery-card .inside-compose-title-actions button[type="submit"]{padding:0 8px;font-size:9px;}
  #inside-gallery-card .inside-compose-bodybox{min-height:155px;}
  #inside-gallery-card .inside-gallery-editor #inside-body{min-height:124px;}
  #inside-gallery-card .inside-feedback-actions{gap:4px;}
  #inside-gallery-card .inside-vote{padding:0 7px;font-size:8px;}
  #inside-gallery-card .inside-comment-form .inside-comment-input{font-size:9px;}
}


/* INSIDE V3.8: compact list, inline photos and header actions */
#inside-gallery-card .inside-gallery-item:last-child .inside-gallery-row{padding-right:10px}
#inside-gallery-card .inside-gallery-row{grid-template-columns:minmax(0,1fr) max-content}
#inside-gallery-card .inside-list-date{justify-self:end;text-align:right;margin-left:auto}
#inside-gallery-card .inside-gallery-list.request-list{border-radius:12px}
#inside-gallery-card .inside-bottom-toolbar{flex-direction:row}
#inside-gallery-card .inside-admin-details{order:0}
#inside-gallery-card .inside-compose-toggle{order:1}
#inside-gallery-card.inside-compose-open .inside-compose-toggle{
  min-height:33px;height:33px;padding:0 11px;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  color:#fff;border:0;box-shadow:0 7px 16px rgba(114,87,246,.18);
}
#inside-gallery-card.inside-compose-open .inside-compose-toggle:hover{filter:brightness(.95)}
#inside-gallery-card .inside-attach-menu [data-attach="images"] small{
  display:block;color:var(--muted);font-size:9px;line-height:1.4;font-weight:500;
}
#inside-gallery-card #inside-compose-note:empty{display:none}
#inside-gallery-card .inside-gallery-editor #inside-body[hidden]{display:none!important}
#inside-gallery-card .inside-gallery-editor #inside-rich-editor{
  display:block;min-height:148px;width:100%;padding:5px 6px;
  border:0;background:transparent;color:var(--text);
  outline:0;font:inherit;font-size:12px;line-height:1.6;
  white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;
}
#inside-gallery-card #inside-rich-editor:empty:before{
  content:attr(data-placeholder);color:var(--muted);pointer-events:none;
}
#inside-gallery-card #inside-rich-editor .inside-editor-photo{
  display:inline-block;vertical-align:middle;max-width:100%;width:auto;
  max-height:190px;margin:4px 5px 4px 0;border-radius:10px;
  object-fit:contain;user-select:all;
}
#inside-gallery-card .inside-rich-body{
  white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;
}
#inside-gallery-card .inside-rich-body .inside-inline-image{
  display:inline-block;vertical-align:middle;max-width:100%;width:auto;
  max-height:300px;margin:4px 6px 4px 0;border-radius:10px;
  object-fit:contain;
}
@media(max-width:430px){
  #inside-gallery-card .inside-gallery-item:last-child .inside-gallery-row{padding-right:9px}
  #inside-gallery-card .inside-gallery-editor #inside-rich-editor{min-height:125px;font-size:11px}
}


/* INSIDE V3.9: compact right list and neutral controls */

#inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-sidebar{
  min-height:0;
  height:auto;
  padding-bottom:0;
}

#inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-list.request-list{
  flex:0 1 auto;
  min-height:0;
  padding-bottom:0;
  max-height:min(68vh,680px);
  overflow-y:auto;
}

#inside-gallery-card .inside-viewer-close{
  width:29px;
  height:29px;
  min-width:29px;
  min-height:29px;
  border-radius:50%;
}

#inside-gallery-card .inside-bottom-toolbar .inside-compose-toggle,
#inside-gallery-card.inside-compose-open .inside-bottom-toolbar .inside-compose-toggle{
  min-height:29px;
  height:29px;
  padding:0 11px;
  background:var(--surface-soft);
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  box-shadow:none;
  filter:none;
}

@media(hover:hover) and (pointer:fine){
  #inside-gallery-card .inside-bottom-toolbar .inside-compose-toggle:hover,
  #inside-gallery-card.inside-compose-open .inside-bottom-toolbar .inside-compose-toggle:hover{
    background:var(--surface-soft);
    color:var(--text);
    filter:brightness(.96);
  }
}

@media(max-width:899px){
  #inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-sidebar{
    max-height:none;
    overflow:visible;
  }
  #inside-gallery-card .inside-gallery-board.has-selection .inside-gallery-list.request-list{
    max-height:none;
    overflow:visible;
  }
}

/* INSIDE NATIVE MOBILE PICKER v2 */

#inside-gallery-card .inside-attach-menu .inside-native-pick {
  position:relative;
  display:flex;
  align-items:center;
  box-sizing:border-box;
  width:100%;
  min-height:38px;
  padding:0 10px;
  border-radius:10px;
  color:var(--text);
  background:transparent;
  font:inherit;
  font-size:11px;
  cursor:pointer;
  overflow:hidden;
}

#inside-gallery-card .inside-attach-menu .inside-native-pick:hover,
#inside-gallery-card .inside-attach-menu .inside-native-pick:focus-within {
  background:var(--surface-soft);
}

#inside-gallery-card .inside-gallery-editor
.inside-attach-menu .inside-native-pick input[type=file] {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  z-index:2;
  clip:auto!important;
  clip-path:none!important;
  overflow:visible!important;
  border:0!important;
  cursor:pointer;
  font-size:16px!important;
}

#inside-profile-dialog .inside-native-avatar {
  position:relative;
  overflow:hidden;
}

#inside-profile-dialog .inside-native-avatar .inside-avatar-file {
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  z-index:2;
  clip:auto!important;
  clip-path:none!important;
  overflow:visible!important;
  border:0!important;
  cursor:pointer;
  font-size:16px!important;
}
