.final-form {
  display: grid;
  gap: 9px;
  margin-top: 15px;
  padding: 14px;
  border: 1px solid #cfe2d8;
  border-radius: 10px;
  background: #f1f7f4;
}

.member-link-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.member-link-form label {
  display: grid;
  gap: 6px;
  color: #777c76;
  font-size: 10px;
  font-weight: 700;
}
.member-link-form input {
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  box-sizing: border-box;
}
.member-link-form button { justify-self: start; font-size: 10px; }
.member-add-version { border-color: #d7a18d; color: #a95d46; }
.member-link-message { min-height: 15px; color: #3d765f; font-size: 10px; }
.member-version-history { display: grid; gap: 10px; margin-top: 14px; }
.member-version-history h4 { margin: 0; color: #777c76; font-size: 11px; }
.member-version-form { display: grid; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fbfaf8; }
.member-version-form header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.member-version-form header b { font-size: 11px; color: #30332e; }
.member-version-form header a { font-size: 10px; color: #a95d46; }
.member-version-form label span { color: #92958e; font-size: 10px; font-weight: 400; }
.member-version-form input { width: 100%; min-height: 34px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; }
.member-version-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.member-version-actions a { color: #a95d46; font-size: 10px; font-weight: 700; }
.version-delete { margin-left: auto; border: 0; background: transparent; color: #a95d46; font-size: 10px; cursor: pointer; }
.final-form h3 {
  margin: 0;
  color: #326f59;
  font:
    600 13px "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
}
.final-form input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cddfd6;
  border-radius: 7px;
  background: #fff;
  font-size: 8px;
}

/* V2 typography: system fonts render Vietnamese reliably without a webfont. */
html,
body,
button,
input,
select,
textarea {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* V8: official 03A STT Presents modern editorial identity. */
.brand {
  min-height: 53px;
  padding: 0 3px 18px;
}
.brand .stt-brand-logo {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
}
.brand .stt-brand-mark {
  display: none;
}
.login-brand .stt-brand-logo {
  display: block;
  width: 330px;
  height: auto;
  max-width: 100%;
}
.brand > span,
.login-brand > span,
.brand b,
.login-brand b,
.topbar h1,
.stats article > div > b,
.panel h2,
.project-name > i,
.empty-row b,
.drawer h2,
.modal h2,
.modal h3,
.feedback-form h3 {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* V3: Vietnamese dates, editor assignment and compact status controls. */
.form-grid .form-wide {
  grid-column: 1 / -1;
}
.date-field,
.assignee-field {
  position: relative;
  display: block;
  width: 100%;
}
.date-field [data-date-display] {
  width: 100%;
  padding-right: 39px;
}
.date-field .date-native {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.date-trigger {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 29px;
  height: 29px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #677069;
  font-size: 15px;
}
.date-trigger:hover {
  background: #f1efe9;
  color: #d36c4e;
}
.assignee-label {
  position: relative;
}
.field-hint {
  margin-top: 1px;
  color: #969b94;
  font-size: 7px;
  font-weight: 500;
}
.status.status-picker {
  min-width: 102px;
  height: 27px;
  padding: 0 18px 0 9px;
  border: 0;
  outline: 0;
  cursor: pointer;
  appearance: auto;
  font-size: 8px;
  font-weight: 750;
}
.status.pending,
.status-picker.pending {
  background: #eef0ee;
  color: #686e69;
}
.status.waiting_review,
.status-picker.waiting_review {
  background: #e7f0f5;
  color: #426982;
}
.task-update.task-update-simple {
  grid-template-columns: minmax(0, 1fr) 105px;
}
.task-update .task-assignee-edit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  color: #777c76;
  font-size: 8px;
}
.task-update .task-assignee-edit input {
  width: 100%;
}
.schedule-form {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e7e3db;
  border-radius: 10px;
  background: #fbfaf7;
}
.schedule-form h3 {
  margin: 0;
  color: #424742;
  font-size: 13px;
}
.schedule-form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.schedule-form label {
  display: grid;
  gap: 6px;
  color: #777c76;
  font-size: 8px;
  font-weight: 700;
}
.schedule-form [data-date-display] {
  height: 36px;
  padding-left: 9px;
  border: 1px solid #e3dfd7;
  border-radius: 7px;
  background: #fff;
  font-size: 9px;
}
.capacity > small {
  display: block;
  margin-top: 9px;
}

/* V4: clear modal backdrops, persistent job ordering and production calendar. */
.overlay[hidden],
#calendar-view[hidden],
#project-panel[hidden],
#calendar-month-panel[hidden],
#calendar-week-panel[hidden],
#calendar-agenda[hidden] {
  display: none !important;
  pointer-events: none;
}
body.overlay-open {
  overflow: hidden;
}
.sortable-project.dragging {
  opacity: 0.42;
}
.sortable-project.drag-target td {
  box-shadow: inset 0 2px 0 #dd7657;
}
.sort-handle {
  width: 17px;
  height: 29px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a19e98;
  cursor: grab;
  font-size: 16px;
}
.sort-handle:active {
  cursor: grabbing;
}
.project-order {
  margin-right: 6px;
  color: #bf6f54;
  font-size: 9px;
  font-weight: 800;
}
.project-panel > header {
  padding: 19px 20px 16px;
}
.project-panel > header h2 {
  font-size: 16px;
}
.project-panel > header p {
  margin-top: 6px;
  color: #767a74;
  font-size: 9px;
}
.project-panel th {
  height: 39px;
  color: #777c75;
  font-size: 8px;
  letter-spacing: 0.055em;
}
.project-panel td {
  height: 77px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 9px;
}
.project-panel .project-name > i {
  width: 42px;
  height: 42px;
}
.project-panel .project-name b,
.project-panel .assignee b {
  color: #2d312d;
  font-size: 10px;
}
.project-panel .project-name small,
.project-panel .assignee small {
  margin-top: 5px;
  color: #757a74;
  font-size: 8px;
}
.project-panel .type-badge,
.project-panel .feedback-count {
  font-size: 8px;
}
.priority-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff0e9;
  color: #bd583b;
  font-size: 7px;
  font-weight: 750;
}
.schedule-cell {
  gap: 5px;
}
.project-panel .schedule-cell b {
  color: #343934;
  font-size: 10px;
  font-weight: 750;
}
.project-panel .schedule-cell small {
  margin: 0;
  color: #777c75;
  font-size: 8px;
  font-weight: 600;
}
.project-panel .schedule-cell.overdue b,
.project-panel .schedule-cell.overdue small {
  color: #b74438;
}
.project-panel .schedule-cell.deadline-today b,
.project-panel .schedule-cell.deadline-today small,
.project-panel .schedule-cell.due-soon b,
.project-panel .schedule-cell.due-soon small {
  color: #bb613c;
}
.project-panel .schedule-cell.done small {
  color: #3c7b5f;
}
.project-panel .status.status-picker {
  min-width: 105px;
  height: 30px;
  font-size: 9px;
}
.project-panel .status:not(.status-picker) {
  min-width: 77px;
  height: 25px;
  font-size: 8px;
}
.order-controls {
  display: grid;
  gap: 2px;
}
.order-controls button {
  width: 24px;
  height: 20px;
  padding: 0;
  border: 1px solid #ece8df;
  border-radius: 5px;
  background: #fff;
  color: #696d67;
  font-size: 11px;
}
.order-controls button:hover:not(:disabled) {
  border-color: #d9795c;
  color: #bd5d40;
}
.order-controls button:disabled {
  cursor: default;
  opacity: 0.32;
}
.calendar-view {
  padding: 20px;
  border: 1px solid #e8e4dc;
  border-radius: 14px;
  background: #fff;
}
.calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.calendar-heading > div > small,
.calendar-agenda > header > small {
  color: #ad6250;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.calendar-heading h2 {
  margin: 6px 0 0;
  color: #282d29;
  font-size: 20px;
  font-weight: 700;
  text-transform: capitalize;
}
.calendar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calendar-mode {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e7e3db;
  border-radius: 9px;
  background: #faf9f6;
}
.calendar-mode button {
  height: 27px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #767a73;
  font-size: 9px;
  font-weight: 700;
}
.calendar-mode button.active {
  background: #fff;
  color: #30342f;
  box-shadow: 0 1px 4px #26231d16;
}
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.calendar-nav,
.calendar-today {
  height: 32px;
  border: 1px solid #e7e3db;
  border-radius: 8px;
  background: #fff;
  color: #555b55;
}
.calendar-nav {
  width: 32px;
  font-size: 19px;
}
.calendar-today {
  padding: 0 12px;
  font-size: 9px;
  font-weight: 700;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #747972;
  font-size: 9px;
}
.calendar-legend span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.calendar-legend .shoot::before {
  background: #67895d;
}
.calendar-legend .deadline::before {
  background: #d17052;
}
.calendar-legend .delivery::before {
  background: #6783ac;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 19px 0 15px;
}
.calendar-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.calendar-summary-item {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 7px;
  background: #f2f0eb;
  color: #696d66;
  font-size: 8px;
  font-weight: 700;
}
.calendar-summary-item.overdue {
  background: #fbe9e7;
  color: #a83f37;
}
.calendar-summary-item.due-soon {
  background: #fff0e5;
  color: #a96035;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(210px, 0.8fr);
  gap: 13px;
}
.calendar-layout.week-layout {
  grid-template-columns: 1fr;
}
.calendar-month {
  overflow: hidden;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-bottom: 1px solid #ece9e2;
  background: #faf9f6;
  color: #80837d;
  font-size: 8px;
  font-weight: 700;
}
.calendar-day {
  min-height: 101px;
  padding: 7px 6px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #efede8;
  border-bottom: 1px solid #efede8;
  background: #fff;
  text-align: left;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}
.calendar-day.outside {
  background: #fcfbf9;
  color: #aaa;
}
.calendar-day.selected {
  background: #fff6f1;
  box-shadow: inset 0 0 0 1px #df8164;
}
.calendar-date {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #424741;
  font-size: 9px;
  font-weight: 700;
}
.calendar-day.today .calendar-date {
  border-radius: 50%;
  background: #df7655;
  color: #fff;
}
.calendar-preview {
  display: grid;
  gap: 3px;
  margin-top: 4px;
}
.calendar-chip {
  display: block;
  overflow: hidden;
  padding: 4px 5px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-chip b {
  font-size: inherit;
}
.calendar-chip.shoot {
  background: #e9f1e6;
  color: #55704d;
}
.calendar-chip.deadline {
  background: #fae9e3;
  color: #ae563d;
}
.calendar-chip.delivery {
  background: #e9eef6;
  color: #536d92;
}
.calendar-more {
  overflow: hidden;
  color: #8e918b;
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-agenda {
  padding: 15px;
}
.calendar-agenda > header h3 {
  margin: 8px 0 0;
  font-size: 17px;
}
.calendar-agenda > header p {
  margin: 6px 0 0;
  color: #8e918b;
  font-size: 8px;
  line-height: 1.5;
}
.calendar-events {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.calendar-event {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #ece9e2;
  border-left: 3px solid #73866d;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
.calendar-event.deadline {
  border-left-color: #d17052;
}
.calendar-event.delivery {
  border-left-color: #6783ac;
}
.calendar-event:hover {
  background: #fcfaf7;
}
.calendar-event.done {
  opacity: 0.65;
}
.calendar-event-kind {
  color: #a85a45;
  font-size: 8px;
  font-weight: 750;
}
.calendar-event > b {
  font-size: 10px;
}
.calendar-event > span:not(.calendar-event-kind),
.calendar-event > small {
  color: #777b75;
  font-size: 8px;
}
.calendar-event > em {
  color: #3f805f;
  font-size: 8px;
  font-style: normal;
}
.calendar-event > .calendar-event-status.overdue {
  color: #b74438;
  font-weight: 700;
}
.calendar-event > .calendar-event-status.deadline-today,
.calendar-event > .calendar-event-status.due-soon {
  color: #bb613c;
  font-weight: 700;
}
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(125px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.week-column {
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #e8e5df;
  border-radius: 10px;
  background: #fcfbf9;
}
.week-column.today {
  border-color: #dfa18d;
}
.week-column.selected {
  box-shadow: inset 0 0 0 1px #e5b6a6;
}
.week-day-heading {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px 10px 11px;
  border: 0;
  border-bottom: 1px solid #eae7e0;
  background: #fff;
  text-align: left;
}
.week-day-heading > small {
  color: #7d817a;
  font-size: 8px;
  font-weight: 650;
}
.week-day-heading > b {
  color: #343934;
  font-size: 16px;
}
.week-column.today .week-day-heading > b {
  color: #bf5a3d;
}
.week-day-heading > span {
  color: #858982;
  font-size: 8px;
}
.week-day-events {
  display: grid;
  gap: 8px;
  padding: 8px;
}
.week-no-event {
  padding: 10px 2px;
  color: #a1a49d;
  font-size: 8px;
  text-align: center;
}
.week-event {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 10px 8px;
  overflow: hidden;
  border: 1px solid #dce7d8;
  border-top: 3px solid #67895d;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}
.week-event.deadline {
  border-color: #efddd6;
  border-top-color: #d17052;
}
.week-event.delivery {
  border-color: #e0e5ed;
  border-top-color: #6783ac;
}
.week-event-type {
  color: #777b75;
  font-size: 8px;
  font-weight: 700;
}
.week-event > b {
  color: #343934;
  font-size: 10px;
  line-height: 1.35;
}
.week-event-title,
.week-event > small {
  color: #71766f;
  font-size: 8px;
  line-height: 1.4;
}
.week-event > em {
  color: #687069;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}
.week-event.overdue > em {
  color: #b74438;
}
.week-event.deadline-today > em,
.week-event.due-soon > em {
  color: #bb613c;
}
.calendar-empty {
  padding: 30px 5px;
  color: #92958f;
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
}

/* Login and registration */
.login-body {
  min-height: 100vh;
  background: #1b201d;
}
.login-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 30px clamp(22px, 5vw, 72px) 22px;
  background:
    radial-gradient(circle at 18% 20%, #35433b 0, transparent 30%),
    radial-gradient(circle at 88% 80%, #362c27 0, transparent 28%), #1b201d;
  color: #fff;
}
.login-brand {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}
.login-brand > span {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  font-size: 18px;
  font-weight: 800;
}
.login-brand b {
  font-size: 14px;
  font-weight: 800;
}
.login-brand small {
  margin-top: 3px;
  font-size: 7px;
}
.auth-shell {
  width: min(1080px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 445px);
  align-items: center;
  gap: clamp(52px, 8vw, 120px);
  padding: 32px 0;
}
.auth-copy > small {
  color: #f09374;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.auth-copy h1 {
  margin: 16px 0 18px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.auth-copy > p {
  max-width: 560px;
  margin: 0;
  color: #bdc4bf;
  font-size: 14px;
  line-height: 1.75;
}
.auth-copy .login-points {
  justify-content: flex-start;
  gap: 22px;
  margin-top: 30px;
  padding-top: 22px;
  color: #aeb7b1;
  font-size: 11px;
}
.auth-card {
  width: 100%;
  padding: 28px;
  border: 1px solid #ffffff1c;
  border-radius: 20px;
  background: #ffffff0d;
  box-shadow: 0 28px 90px #080a094f;
  backdrop-filter: blur(18px);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 23px;
  padding: 4px;
  border-radius: 11px;
  background: #11151280;
}
.auth-tabs button {
  height: 39px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #909993;
  font-size: 12px;
  font-weight: 700;
}
.auth-tabs button.active {
  background: #f3f0e9;
  color: #232825;
  box-shadow: 0 6px 18px #0000002e;
}
.auth-form[hidden] {
  display: none !important;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form > div h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.3;
}
.auth-form > div p {
  margin: 5px 0 0;
  color: #9da6a0;
  font-size: 11px;
  line-height: 1.55;
}
.auth-form > label {
  display: grid;
  gap: 7px;
  color: #cbd1cd;
  font-size: 11px;
  font-weight: 650;
}
.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #ffffff21;
  border-radius: 9px;
  outline: 0;
  background: #10141185;
  color: #fff;
  font-size: 12px;
  transition: 0.18s ease;
}
.auth-form input::placeholder {
  color: #737c76;
}
.auth-form input:focus {
  border-color: #ed8665;
  box-shadow: 0 0 0 3px #e8795724;
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 58px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  height: 29px;
  padding: 0 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d8ddd9;
  font-size: 10px;
  font-weight: 700;
}
.password-toggle:hover {
  background: #ffffff0e;
}
.auth-submit {
  height: 45px;
  margin-top: 2px;
  border: 0;
  border-radius: 9px;
  background: #e47453;
  color: #fff;
  box-shadow: 0 10px 25px #d85d3933;
  font-size: 12px;
  font-weight: 800;
}
.auth-submit:hover {
  background: #ef7f5d;
}
.auth-divider {
  position: relative;
  height: 20px;
  margin: 15px 0 10px;
  text-align: center;
}
.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ffffff14;
}
.auth-divider span {
  position: relative;
  padding: 0 10px;
  background: #292e2b;
  color: #7f8882;
  font-size: 9px;
}
.auth-card .google-login {
  height: 44px;
  border: 1px solid #ffffff1c;
  background: #fff;
  font-size: 11px;
}
.google-pending {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border: 1px solid #ffffff16;
  border-radius: 9px;
  background: #ffffff08;
  color: #b5bcb7;
}
.google-pending > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font:
    800 12px Arial,
    sans-serif;
  font-style: normal;
}
.google-pending > span {
  display: flex;
  flex-direction: column;
}
.google-pending b {
  font-size: 10px;
}
.google-pending small {
  margin-top: 3px;
  color: #7d8680;
  font-size: 8px;
}
.auth-security {
  margin: 14px 0 0;
  color: #7f8982;
  font-size: 8px;
  text-align: center;
}
.auth-card .login-alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-color: #ee7a5a66;
  background: #e36f4e1c;
  color: #ffc1af;
  font-size: 10px;
  line-height: 1.45;
}
.login-page > footer {
  width: min(1080px, 100%);
  margin: 0 auto;
  color: #68716b;
  font-size: 8px;
}

.account-assignee {
  display: grid;
  gap: 7px;
  width: 100%;
}
.account-assignee select,
.account-assignee input {
  width: 100%;
  min-width: 0;
}
.manual-assignee-input[hidden] {
  display: none !important;
}
.field-hint {
  display: block;
  margin-top: 5px;
  color: #827d75;
  font-size: 9px;
  line-height: 1.45;
}
.mine-tag {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #e9f3ed;
  color: #397252;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.my-project td:first-child {
  box-shadow: inset 3px 0 0 #86a28e;
}
.notification-modal {
  width: min(690px, 96vw);
  max-height: min(88vh, 820px);
  overflow-y: auto;
}
.project-delete-modal {
  width: min(430px, calc(100vw - 32px));
  padding: 28px;
}
.project-delete-modal h2 {
  margin-top: 9px;
}
.project-delete-copy,
.project-delete-warning {
  color: #6c6a65;
  font-size: 11px;
  line-height: 1.6;
}
.project-delete-copy {
  margin: 16px 0 7px;
}
.project-delete-target {
  display: block;
  padding: 11px 12px;
  border: 1px solid #ece3dc;
  border-radius: 9px;
  background: #fbf7f3;
  color: #343934;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.project-delete-warning {
  margin: 13px 0 0;
  color: #8a6659;
  font-size: 10px;
}
.project-delete-error {
  margin: 13px 0 0;
  padding: 10px 11px;
  border: 1px solid #edc8bc;
  border-radius: 8px;
  background: #fff5f1;
  color: #a74631;
  font-size: 10px;
  line-height: 1.5;
}
.project-delete-modal > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.project-delete-submit {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #b6533a;
  border-radius: 8px;
  background: #b6533a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.project-delete-submit:hover {
  background: #9f4732;
}
.project-delete-submit:disabled,
.project-delete-modal .secondary:disabled,
.project-delete-modal .close:disabled {
  opacity: .58;
  cursor: not-allowed;
}
.notification-description {
  margin: 7px 0 16px;
  color: #6c6a65;
  font-size: 11px;
  line-height: 1.6;
}
.notification-enabled {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid #e8e5df;
  border-radius: 9px;
  background: #fbfaf8;
  font-size: 11px;
  font-weight: 700;
}
.notification-enabled input {
  width: 15px;
  height: 15px;
  margin: 0;
}
.notification-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 38px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 9px;
  background: #f5f3ef;
  color: #5d5a54;
  font-size: 10px;
}
.notification-status small {
  display: block;
  margin-top: 4px;
  color: #b74839;
  line-height: 1.5;
}
.mail-indicator {
  width: 8px;
  height: 8px;
  margin-top: 2px;
  border-radius: 50%;
  background: #b8b3aa;
}
.mail-indicator.enabled {
  background: #4f9467;
}
.notification-modal form footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.notification-history {
  margin-top: 15px;
  border-top: 1px solid #ece9e3;
}
.notification-history h3 {
  margin: 14px 0 5px;
  font-size: 12px;
}
.mail-history-empty {
  margin: 13px 0 0;
  color: #858079;
  font-size: 10px;
}
.mail-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0ede8;
}
.mail-entry span {
  min-width: 0;
}
.mail-entry b,
.mail-entry small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-entry b {
  font-size: 10px;
}
.mail-entry small {
  margin-top: 3px;
  color: #78736c;
  font-size: 9px;
}
.mail-entry em {
  flex: 0 0 auto;
  color: #467c59;
  font-size: 9px;
  font-style: normal;
}
.mail-entry.failed em {
  color: #ba4c3d;
}

@media (max-width: 900px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-day {
    min-height: 82px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 30px;
  }
  .auth-copy h1 {
    font-size: clamp(34px, 8vw, 48px);
  }
  .auth-copy > p {
    font-size: 12px;
  }
}

@media (max-width: 820px) {
  .brand {
    justify-content: center;
    min-height: 51px;
    padding: 0 0 19px;
  }
  .brand .stt-brand-logo {
    display: none;
  }
  .brand .stt-brand-mark {
    display: block;
    width: 43px;
    height: 43px;
  }
}

@media (max-width: 640px) {
  .calendar-view {
    padding: 13px;
  }
  .calendar-heading h2 {
    font-size: 15px;
  }
  .calendar-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .calendar-actions {
    width: 100%;
    justify-content: space-between;
  }
  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .calendar-day {
    min-height: 64px;
    padding: 4px 2px;
  }
  .calendar-weekdays span {
    font-size: 7px;
  }
  .calendar-chip {
    padding: 2px;
    font-size: 6px;
  }
  .login-page {
    padding: 22px 18px 18px;
  }
  .auth-shell {
    padding: 28px 0;
  }
  .auth-copy h1 {
    margin: 12px 0 13px;
    font-size: 34px;
  }
  .auth-copy .login-points {
    display: none;
  }
  .auth-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .login-page > footer {
    text-align: center;
  }
}

/* V9: per-job reminders, feedback rounds, QC queue, Gmail setup and team access. */
.quality-view {
  display: grid;
  gap: 14px;
}
.quality-view[hidden] {
  display: none;
}
.quality-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 2px 2px;
}
.quality-heading small {
  color: #b9684e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.quality-heading h2 {
  margin: 6px 0 3px;
  font:
    700 22px "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.quality-heading p {
  margin: 0;
  color: #858981;
  font-size: 9px;
}
.quality-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.quality-stats article {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.quality-stats b {
  font:
    500 22px Georgia,
    serif;
}
.quality-stats small {
  color: #747972;
  font-size: 9px;
}
.quality-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8a35e;
}
.quality-dot.revision {
  background: #c86850;
}
.quality-dot.working {
  background: #7f8b82;
}
.quality-dot.approved {
  background: #57916e;
}
.quality-queue {
  display: grid;
  gap: 10px;
}
.quality-card {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid #d4a057;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: 0.15s ease;
}
.quality-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px #1820190d;
}
.quality-card.revision {
  border-left-color: #bd5e48;
}
.quality-card.completed {
  border-left-color: #57916e;
}
.quality-card > header,
.quality-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.quality-state,
.quality-deadline {
  color: #8e6937;
  font-size: 8px;
  font-weight: 800;
}
.quality-card.revision .quality-state,
.quality-deadline.overdue {
  color: #b54f3e;
}
.quality-card.completed .quality-state {
  color: #397559;
}
.quality-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 12px 0;
}
.quality-card-main small,
.quality-card-main p {
  color: #858a83;
  font-size: 8px;
}
.quality-card-main h3 {
  margin: 4px 0 6px;
  font-size: 13px;
}
.quality-card-main p {
  margin: 0;
}
.quality-card-main > strong {
  color: #26322c;
  font:
    500 26px Georgia,
    serif;
}
.quality-card-main > strong small {
  color: #93978f;
  font-size: 9px;
}
.quality-card-foot {
  justify-content: flex-start;
  padding-top: 10px;
  border-top: 1px solid #efede8;
  color: #7d827b;
  font-size: 8px;
}
.quality-card-foot a {
  color: #b3563e;
  font-weight: 800;
  text-decoration: none;
}
.quality-product-links {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}
.quality-view .quality-card-foot {
  flex-wrap: wrap;
}
.quality-product-links small {
  width: 100%;
  color: #8b928a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.quality-product-link {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid #e4c9bd;
  border-radius: 7px;
  background: #fffaf7;
  color: #a95d46 !important;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.quality-card-foot button {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid #dedad2;
  border-radius: 7px;
  background: #faf9f6;
  font-size: 8px;
  font-weight: 800;
}
.quality-loading,
.quality-empty {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px dashed #d9d5cd;
  border-radius: 12px;
  color: #898d86;
  font-size: 9px;
}

/* QC readability: keep the compact card design, but match the app's normal
   reading size. Scope every rule to QC so the work-list tabs are unchanged. */
.quality-view .quality-heading small {
  font-size: 10px;
}
.quality-view .quality-heading p {
  font-size: 11px;
}
.quality-view .quality-stats small {
  font-size: 11px;
}
.quality-view .quality-state,
.quality-view .quality-deadline {
  font-size: 10px;
}
.quality-view .quality-card-main small,
.quality-view .quality-card-main p {
  font-size: 12px;
}
.quality-view .quality-card-main h3 {
  font-size: 14px;
  line-height: 1.2;
}
.quality-view .quality-card-main p b {
  font-size: 13px;
}
.quality-view .quality-card-main small {
  color: #3f4942;
  font-size: 16px;
  font-weight: 700;
}
.quality-view .quality-card-main p {
  color: #566159;
  font-size: 14px;
}
.quality-view .quality-card-foot {
  font-size: 11px;
}
.quality-view .quality-card-foot button {
  font-size: 11px;
}
.quality-view .quality-loading,
.quality-view .quality-empty {
  font-size: 11px;
}
.quality-view .quality-card-copy {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.quality-view .quality-client,
.quality-view .quality-project,
.quality-view .quality-work {
  display: grid;
  gap: 2px;
}
.quality-view .quality-client > span,
.quality-view .quality-project > span,
.quality-view .quality-work > span {
  color: #929991;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.quality-view .quality-client > b {
  color: #9b5a43;
  font-size: 16px;
}
.quality-view .quality-project > b {
  color: #3d6f63;
  font-size: 15px;
}
.quality-view .quality-work {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
}
.quality-view .quality-work > span {
  flex-basis: 100%;
}
.quality-view .quality-work h3 {
  margin: 0;
  color: #303a34;
  font-size: 14px;
}
.quality-view .quality-work > em {
  color: #806d43;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.quality-view .quality-card-copy > p {
  margin: 0;
  color: #707970;
  font-size: 11px;
  grid-column: 1 / -1;
  padding-top: 3px;
  border-top: 1px solid #f0eee9;
}
.personal-deadlines-view {
  display: grid;
  gap: 18px;
}
.personal-deadlines-view[hidden] { display: none; }
.personal-deadlines-heading small {
  color: #b9684e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.personal-deadlines-heading h2 { margin: 6px 0 3px; font: 600 22px Georgia, serif; }
.personal-deadlines-heading p { margin: 0; color: #858981; font-size: 11px; }
.personal-deadline-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) 170px 170px;
  align-items: end;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.personal-deadline-form label { display: grid; gap: 7px; color: #737a73; font-size: 10px; font-weight: 800; }
.personal-deadline-form input { height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #faf9f6; }
.personal-deadline-form .personal-note-field { grid-column: 1 / 3; }
.personal-deadline-form > button { grid-column: 3 / 5; }
.personal-deadline-list { display: grid; gap: 9px; }
.personal-deadline-list article { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border: 1px solid var(--line); border-left: 3px solid #b9684e; border-radius: 11px; background: #fff; }
.personal-job-main { display: grid; grid-template-columns: 1fr 1.5fr 170px 170px; align-items: center; gap: 14px; width: 100%; }
.personal-job-main > div { display: grid; gap: 4px; }
.personal-job-main small { color: #929991; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.personal-job-client b { color: #9b5a43; font-size: 14px; }
.personal-job-project b { color: #3d6f63; font-size: 14px; }
.personal-job-date time { color: #806d43; font-size: 11px; font-weight: 800; }
.personal-job-main p { grid-column: 1 / -1; margin: 0; color: #707970; font-size: 11px; }
.personal-deadline-list article button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #faf9f6; color: #9b6b5b; font-size: 18px; }
.personal-deadline-empty { padding: 35px; border: 1px dashed #d9d5cd; border-radius: 12px; color: #898d86; text-align: center; font-size: 11px; }
.drawer-error { display: grid; gap: 10px; place-items: center; min-height: 220px; padding: 30px; color: #6f766f; text-align: center; }
.drawer-error b { color: #a84f3b; font-size: 16px; }
.drawer-error p { margin: 0; font-size: 12px; }
@media (max-width: 980px) { .personal-deadline-form { grid-template-columns: 1fr 1fr; } .personal-deadline-form .personal-note-field { grid-column: 1 / -1; } .personal-deadline-form > button { grid-column: 1 / -1; } .personal-job-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .personal-deadline-form { grid-template-columns: 1fr; } .personal-deadline-form .personal-note-field,.personal-deadline-form > button { grid-column: auto; } .personal-job-main { grid-template-columns: 1fr; } }

/* Keep the mobile workspace actions readable without changing desktop layout. */
@media (max-width: 760px) {
  main .topbar {
    gap: 12px;
    margin-bottom: 16px;
  }

  main .topbar > div:first-child {
    width: 100%;
  }

  main .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    grid-template-areas:
      "search search search"
      "create bell refresh";
    align-items: center;
    width: 100%;
    gap: 8px;
  }

  main .top-actions .search {
    grid-area: search;
    width: 100%;
    min-width: 0;
    height: 44px;
  }

  main .top-actions .search input {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 12px;
  }

  main .top-actions #new-project {
    grid-area: create;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 44px;
    padding-inline: 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  main .top-actions .notification-bell,
  main .top-actions #refresh {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  main .top-actions .notification-bell {
    grid-area: bell;
  }

  main .top-actions #refresh {
    grid-area: refresh;
  }
}

/* Main workspace readability: enlarge the dense right-hand content only. */
main .topbar > div > small { font-size: 11px; }
main .stats label { font-size: 9px; }
main .stats article em { font-size: 9px; }
main th { font-size: 8px; }
main td { font-size: 10px; }
main .project-name b, main .assignee b { font-size: 10px; }
main .project-name small, main .assignee small { font-size: 8px; }
main .type-badge, main .feedback-count, main .status { font-size: 8px; }
main td time b { font-size: 9px; }
main td time small { font-size: 8px; }
main .row-open { font-size: 18px; }

/* Job drawer readability, scoped to the right-hand detail panel. */
.drawer .eyebrow { font-size: 10px; }
.drawer h2 { font-size: 28px; }
.drawer-sub { font-size: 12px; line-height: 1.5; }
.drawer-tabs button { height: 34px; padding-inline: 13px; font-size: 11px; }
.task-card { padding: 18px; }
.task-type { height: 24px; padding-inline: 9px; font-size: 9px; }
.task-card h3 { margin: 14px 0; font-size: 16px; line-height: 1.3; }
.task-meta { gap: 12px; }
.task-meta small { font-size: 9px; }
.task-meta b { margin-top: 5px; font-size: 12px; }
.task-card > a { margin-top: 14px; font-size: 11px; }
.completion b { font-size: 11px; }
.completion small { font-size: 9px; }
.drawer .empty-mini { font-size: 11px; }

@media (max-width: 820px) {
  .quality-view .quality-card-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .quality-view .quality-card-main > strong {
    justify-self: end;
  }
}

@media (max-width: 620px) {
  .quality-view .quality-card-copy {
    grid-template-columns: 1fr;
  }
  .quality-view .quality-card-copy > p {
    grid-column: auto;
  }
}

.task-reminder-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #edf5f0;
  color: #3e7558;
  font-size: 7px;
}
.task-reminder-summary.disabled {
  background: #f2f0ec;
  color: #89867f;
}
.task-update .job-reminder {
  grid-column: 1 / -1;
  padding: 10px;
  border: 1px solid #e7e3dc;
  border-radius: 9px;
  background: #fbfaf7;
}
.job-reminder summary {
  color: #b2553e;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.job-reminder-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin: 10px 0 8px;
}
.job-reminder-grid label {
  display: flex !important;
  align-items: stretch !important;
  flex-direction: column !important;
  gap: 5px !important;
  color: #757a74;
  font-size: 7px;
}
.job-reminder-grid .check-label {
  justify-content: center;
  flex-direction: row !important;
}
.reminder-now {
  width: auto;
}
.reminder-message {
  display: inline-block;
  margin-left: 8px;
  color: #40755a;
  font-size: 7px;
}

.feedback-round {
  margin-bottom: 13px;
  padding: 12px;
  border: 1px solid #e8e4dc;
  border-radius: 11px;
  background: #fbfaf7;
}
.feedback-round > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.feedback-round > header small {
  color: #b45b43;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.feedback-round > header h3 {
  margin: 3px 0 0;
  font-size: 11px;
}
.feedback-round > header > b {
  padding: 5px 7px;
  border-radius: 999px;
  background: #f2e8e2;
  color: #a5503b;
  font-size: 7px;
}
.feedback-round .feedback-card:last-child {
  margin-bottom: 0;
}
.feedback-reopen {
  color: #9b6a3b !important;
}
.drawer .feedback-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #efebe4;
}
.drawer .feedback-card-actions:empty {
  display: none;
}
.drawer .feedback-card-actions button {
  min-height: 36px;
  flex: 0 1 auto;
  white-space: nowrap;
}
.drawer .feedback-card-actions .feedback-delete-action {
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  margin-left: auto;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #858c84;
  background: transparent;
}
.drawer .feedback-card-actions .feedback-delete-action:hover,
.drawer .feedback-card-actions .feedback-delete-action:focus-visible {
  border-color: #edc9bd;
  color: #b34f38;
  background: #fff7f4;
}
.drawer .feedback-card-actions .feedback-delete-action:focus-visible {
  outline: 2px solid #d8785e;
  outline-offset: 2px;
}
.drawer .feedback-card-actions .feedback-delete-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
@media (max-width: 430px) {
  .drawer .feedback-card-actions {
    gap: 10px;
  }
  .drawer .feedback-card-actions button:not(.feedback-delete-action) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.feedback-form > .feedback-round-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.feedback-form > #feedback-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0;
}
.feedback-item {
  display: grid;
  grid-template-columns: 24px 64px 120px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 6px;
}
.feedback-number {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-top: 5px;
  border-radius: 50%;
  background: #eee9e1;
  color: #765f53;
  font-size: 8px;
  font-weight: 800;
}
.feedback-item textarea {
  height: 54px;
  margin: 0;
}
.feedback-item > button {
  width: 24px;
  height: 24px;
  margin-top: 5px;
  border: 0;
  border-radius: 50%;
  background: #f0e8e3;
  color: #a44f3c;
}
.feedback-form-note {
  margin: 8px 0 0;
  color: #858179;
  font-size: 7px;
}
.quality-history {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.quality-history article {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 11px;
  padding: 11px;
  border: 1px solid #dbe9df;
  border-radius: 10px;
  background: #f4faf6;
}
.quality-history article.revision {
  border-color: #edd9d2;
  background: #fdf7f5;
}
.quality-history strong {
  color: #3e7558;
  font:
    500 22px Georgia,
    serif;
}
.quality-history .revision strong {
  color: #ac513f;
}
.quality-history strong small,
.quality-history span small {
  color: #8a8e87;
  font-size: 7px;
}
.quality-history span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 8px;
}
.quality-history p {
  margin: 4px 0 0;
  color: #626760;
  line-height: 1.5;
}

.team-note {
  margin: 7px 0 0;
  color: #777b75;
  font-size: 9px;
  line-height: 1.5;
}
.team-list article.team-member {
  grid-template-columns: 30px minmax(0, 1fr) auto 70px 78px;
}
.team-member.disabled {
  opacity: 0.62;
}
.team-list .member-disabled {
  background: #eeeae5;
  color: #827d76;
}
.member-actions {
  text-align: right;
}
.member-actions button {
  padding: 6px 8px;
  border: 1px solid #e3ded6;
  border-radius: 7px;
  background: #fff;
  font-size: 7px;
  font-weight: 800;
}
.member-remove {
  color: #b34f3c;
}
.member-restore {
  color: #377559;
}
.member-protected {
  color: #9a968e;
  font-size: 6px;
}

.gmail-setup {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 7px 9px;
  margin: 0 0 15px;
  padding: 12px;
  border: 1px solid #e5e1da;
  border-radius: 10px;
  background: #faf9f6;
}
.gmail-step {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b9684e;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}
.gmail-setup p {
  align-self: center;
  margin: 0;
  color: #666a64;
  font-size: 9px;
  line-height: 1.45;
}
.gmail-setup a {
  color: #b2553e;
  font-weight: 800;
}
.smtp-advanced {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e8e4dc;
  border-radius: 9px;
}
.smtp-advanced summary {
  color: #777b75;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.smtp-advanced .form-grid {
  margin-top: 12px;
}
.mail-test-target {
  margin: 10px 0 0;
  color: #777b75;
  font-size: 8px;
}

@media (max-width: 720px) {
  .quality-stats,
  .job-reminder-grid,
  .feedback-form > .feedback-round-head {
    grid-template-columns: 1fr !important;
  }
  .feedback-item {
    grid-template-columns: 24px 70px 1fr 24px;
  }
  .feedback-item textarea {
    grid-column: 2 / -1;
  }
  .team-list article.team-member {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }
  .team-member > i,
  .member-actions {
    grid-column: 2 / -1;
    text-align: left;
  }
}

/* V13 · Refined STT Presents login */
.login-page-v13 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px clamp(24px, 6vw, 86px) 24px;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(91, 117, 101, 0.3),
      transparent 31%
    ),
    radial-gradient(circle at 88% 82%, rgba(136, 78, 57, 0.2), transparent 30%),
    linear-gradient(135deg, #18201c 0%, #111613 54%, #171816 100%);
}
.login-page-v13::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(to right, #000, transparent 64%);
}
.login-page-v13::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-190px, -10vw, -80px);
  bottom: clamp(-210px, -13vw, -110px);
  width: 520px;
  height: 520px;
  border: 1px solid rgba(232, 139, 105, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(232, 139, 105, 0.025),
    0 0 0 160px rgba(232, 139, 105, 0.018);
  pointer-events: none;
}
.login-page-v13 .login-brand {
  width: min(1180px, 100%);
}
.login-page-v13 .login-brand .stt-brand-logo {
  width: 184px;
  height: auto;
}
.login-page-v13 .auth-shell {
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(410px, 458px);
  gap: clamp(70px, 9vw, 138px);
  padding: 46px 0 54px;
}
.login-page-v13 .auth-copy {
  max-width: 660px;
}
.login-page-v13 .auth-copy > small {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #df8769;
  font-size: 10px;
  letter-spacing: 0.21em;
}
.login-page-v13 .auth-copy > small::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.login-page-v13 .auth-copy h1 {
  max-width: 650px;
  margin: 21px 0 23px;
  color: #f7f4ed;
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.login-page-v13 .auth-copy h1 span {
  color: #d7d0c3;
  font-weight: 460;
}
.login-page-v13 .auth-copy > p {
  max-width: 570px;
  color: #aeb8b1;
  font-size: 15px;
  line-height: 1.78;
}
.login-page-v13 .auth-copy .login-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 35px;
  padding-top: 0;
  border: 0;
}
.login-page-v13 .login-points span {
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: flex-end;
  padding: 15px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #c2cac4;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}
.login-page-v13 .login-points span::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #df7655;
  box-shadow: 0 0 0 4px rgba(223, 118, 85, 0.12);
}
.login-page-v13 .auth-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: #f4f0e9;
  color: #262b27;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  backdrop-filter: none;
}
.login-page-v13 .auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 54px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #df7655;
}
.login-page-v13 .auth-tabs {
  margin-bottom: 27px;
  padding: 4px;
  border: 1px solid #ddd8cf;
  border-radius: 12px;
  background: #e9e4dc;
}
.login-page-v13 .auth-tabs button {
  color: #777d77;
}
.login-page-v13 .auth-tabs button.active {
  background: #fff;
  color: #222723;
  box-shadow: 0 4px 14px rgba(50, 44, 38, 0.1);
}
.login-page-v13 .auth-form {
  gap: 15px;
}
.login-page-v13 .auth-form > div h2 {
  color: #242824;
  font-size: 25px;
  letter-spacing: -0.025em;
}
.login-page-v13 .auth-form > div p {
  color: #777d77;
  font-size: 11px;
}
.login-page-v13 .auth-form > label {
  color: #535953;
  font-size: 10px;
  letter-spacing: 0.01em;
}
.login-page-v13 .auth-form input {
  height: 47px;
  border: 1px solid #d7d2c9;
  border-radius: 10px;
  background: #fff;
  color: #252a26;
}
.login-page-v13 .auth-form input::placeholder {
  color: #a2a49f;
}
.login-page-v13 .auth-form input:focus {
  border-color: #d66e4e;
  box-shadow: 0 0 0 3px rgba(214, 110, 78, 0.13);
}
.login-page-v13 .password-toggle {
  color: #575e58;
}
.login-page-v13 .password-toggle:hover {
  background: #f1ede6;
}
.login-page-v13 .auth-submit {
  height: 48px;
  margin-top: 3px;
  border-radius: 10px;
  background: #d96f4f;
  box-shadow: 0 12px 27px rgba(199, 82, 48, 0.24);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.login-page-v13 .auth-submit:hover {
  transform: translateY(-1px);
  background: #e47a58;
  box-shadow: 0 15px 30px rgba(199, 82, 48, 0.28);
}
.login-page-v13 .auth-divider::before {
  background: #d9d4cc;
}
.login-page-v13 .auth-divider span {
  background: #f4f0e9;
  color: #969991;
}
.login-page-v13 .auth-card .google-login,
.login-page-v13 .google-pending {
  min-height: 47px;
  border: 1px solid #d6d1c8;
  border-radius: 10px;
  background: #fff;
  color: #343934;
  box-shadow: none;
}
.login-page-v13 .google-pending small {
  color: #858a84;
}
.login-page-v13 .auth-security {
  color: #858a84;
}
.login-page-v13 .auth-card .login-alert {
  border-color: rgba(218, 103, 71, 0.35);
  background: rgba(227, 111, 78, 0.1);
  color: #9f4934;
}
.login-page-v13 > footer {
  width: min(1180px, 100%);
  color: #667069;
  letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  .login-page-v13 .auth-shell {
    max-width: 560px;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 50px;
  }
  .login-page-v13 .auth-copy h1 {
    font-size: clamp(42px, 8vw, 58px);
  }
}
@media (max-width: 640px) {
  .login-page-v13 {
    padding: 22px 17px 18px;
  }
  .login-page-v13 .login-brand .stt-brand-logo {
    width: 160px;
  }
  .login-page-v13 .auth-shell {
    gap: 29px;
    padding: 36px 0 30px;
  }
  .login-page-v13 .auth-copy > small {
    font-size: 8px;
  }
  .login-page-v13 .auth-copy h1 {
    margin: 16px 0;
    font-size: 39px;
  }
  .login-page-v13 .auth-copy > p {
    font-size: 12px;
  }
  .login-page-v13 .auth-copy .login-points {
    display: none;
  }
  .login-page-v13 .auth-card {
    padding: 25px 20px 22px;
    border-radius: 18px;
  }
  .login-page-v13 .auth-card::before {
    left: 20px;
  }
}
