:root {
  font-family: Inter, "Segoe UI", "Malgun Gothic", sans-serif;
  color: #202b3e;
  background: #f4f6fa;
  font-synthesis: none;
  --accent: #6154d9;
  --muted: #748097;
  --line: #e6eaf1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--accent);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b8afff;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 19px;
}
small,
.muted {
  color: var(--muted);
}
.brand {
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  background: var(--accent);
  color: white;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 25px;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.danger {
  color: #b43a4d;
}
.btn:hover {
  filter: brightness(0.97);
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: #242b47;
  color: white;
  padding: 9vw 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  width: 440px;
  height: 440px;
  border: 65px solid #ffffff06;
  border-radius: 50%;
  position: absolute;
  right: -170px;
  bottom: -100px;
}
.login-art .brand {
  margin-bottom: 70px;
}
.login-art h1 {
  font-size: 44px;
  line-height: 1.4;
  letter-spacing: -2px;
}
.login-art p {
  color: #b7bfd7;
  line-height: 1.9;
  margin-top: 24px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #a99eff;
  margin-bottom: 17px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}
.login-card {
  width: 360px;
}
.login-card h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.login-card form {
  margin-top: 35px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dce1ea;
  border-radius: 8px;
  background: #fff;
  color: #26334b;
  font-size: 14px;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}
.login-card .btn {
  width: 100%;
  padding: 14px;
}
.error {
  color: #b52b46;
  background: #fff1f3;
  padding: 11px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.login-note {
  margin-top: 25px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}
.sidebar .brand {
  margin: 0 12px 32px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: #98a1b2;
  padding: 23px 13px 12px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 9px;
  text-align: left;
  color: #647087;
  font-size: 14px;
  margin-bottom: 4px;
}
.nav-item.active {
  background: #f0edff;
  color: #5e4fd2;
  font-weight: 700;
}
.nav-icon {
  width: 20px;
  text-align: center;
}
.nav-count {
  margin-left: auto;
  background: white;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #eeeaff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.profile-name {
  font-size: 13px;
  font-weight: 700;
}
.profile small {
  font-size: 11px;
  display: block;
  margin-top: 4px;
}
.topbar {
  height: 77px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 12px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.secure {
  font-size: 11px;
  color: #488271;
  background: #edf7f1;
  border-radius: 20px;
  padding: 7px 10px;
}
.main {
  padding: 35px 38px 60px;
  max-width: 1500px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.6;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 30px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric small {
  font-size: 12px;
}
.metric strong {
  display: block;
  font-size: 28px;
  margin-top: 10px;
  letter-spacing: -1px;
}
.metric-icon {
  color: #8073dd;
  background: #f2efff;
  border-radius: 12px;
  padding: 12px;
  font-size: 21px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 15px;
}
.section-title {
  font-size: 15px;
  font-weight: 750;
}
.search {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 13px;
  width: 240px;
  font-size: 12px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
  min-height: 215px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #242b4710;
}
.project-symbol {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #efecff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 20px;
}
.project-card h3 {
  font-size: 16px;
  line-height: 1.5;
}
.project-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-project-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.my-project-choice {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.my-project-choice select {
  max-width: 100%;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: white;
  font: inherit;
}
.project-view-switch {
  display: inline-flex;
}
.project-view-switch .btn {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 0;
}
.project-view-switch .btn:first-child {
  border-radius: 8px 0 0 8px;
}
.project-view-switch .btn:last-child {
  border-left: 0;
  border-radius: 0 8px 8px 0;
}
.project-view-switch .btn[aria-pressed="true"] {
  color: var(--accent);
  background: #f1eefe;
}
#my-project-activity-status, #public-project-activity-status {
  margin: 0 0 10px;
  font-size: 12px;
}
.my-project-section + .my-project-section,
.public-project-section + .public-project-section {
  margin-top: 24px;
}
.my-project-section > h2,
.public-project-section > h2 {
  margin: 0 0 10px;
  font-size: 15px;
}
.my-project-section-status {
  margin: 0 0 14px;
  font-size: 13px;
}
.my-project-card-with-star {
  position: relative;
}
.my-project-card-with-star .project-card {
  width: 100%;
  height: 100%;
  padding-right: 44px;
}
.my-project-star {
  flex: 0 0 34px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: white;
  font-size: 21px;
  line-height: 1;
}
.my-project-star[aria-pressed="true"], .my-project-star:hover {
  color: var(--accent);
  background: #f1eefe;
}
.my-project-star:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.my-project-star:disabled {
  opacity: .65;
  cursor: progress;
}
.my-project-card-with-star .my-project-star {
  position: absolute;
  top: 10px;
  right: 10px;
}
.my-project-row-with-star {
  display: flex;
  align-items: center;
  padding-right: 9px;
  background: white;
}
.my-project-row-with-star > .my-project-row {
  flex: 1;
  min-width: 0;
}
.my-project-row-with-star + .my-project-row-with-star {
  border-top: 1px solid var(--line);
}
.my-project-rows {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.my-project-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: white;
}
.my-project-row + .my-project-row {
  border-top: 1px solid var(--line);
}
.my-project-row:hover {
  background: #faf8ff;
}
.my-project-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.my-project-row .project-symbol {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 9px;
  font-size: 18px;
}
.my-project-row-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.my-project-row-title > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-project-row-title small, .my-project-row-meta {
  color: var(--muted);
  font-size: 12px;
}
.my-project-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 740px) {
  .my-project-view .page-head {
    display: grid;
    gap: 12px;
  }
  .my-project-row-meta {
    max-width: 145px;
  }
  .my-project-members {
    display: none;
  }
}
.card-footer {
  border-top: 1px solid #f0f2f6;
  margin-top: auto;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  color: #8b94a4;
  font-size: 11px;
}
.role {
  color: #6d5cc9;
  background: #f1eefe;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
}
.empty {
  padding: 60px 24px;
  text-align: center;
  background: white;
  border: 1px dashed #d8dce7;
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.8;
  grid-column: 1/-1;
}
.empty strong {
  display: block;
  color: #47536a;
  font-size: 16px;
  margin-bottom: 8px;
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #dee3ed;
  margin-bottom: 23px;
}
.tab {
  padding: 13px 2px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
}
.post-meta small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.post-meta .btn {
  margin-left: auto;
  padding: 6px 10px;
  font-size: 11px;
}
.post h3 {
  font-size: 17px;
  margin-bottom: 14px;
}
.post-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.85;
  color: #4f5c71;
}
.task-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  background: #fafbfe;
  color: #8790a3;
  padding: 15px;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 17px 15px;
  border-top: 1px solid #eef0f6;
  white-space: nowrap;
}
td.title-cell {
  width: 40%;
  white-space: normal;
  min-width: 220px;
}
.task-title {
  text-align: left;
  font-weight: 650;
  line-height: 1.7;
}
.task-title:hover {
  color: var(--accent);
}
.child-label {
  font-size: 10px;
  color: #8c7ccf;
  display: block;
}
.badge {
  font-size: 10px;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
  background: #edf0f7;
  color: #78849a;
}
.badge.progress {
  background: #eaf1ff;
  color: #4679cb;
}
.badge.complete {
  background: #e8f6ef;
  color: #3b9271;
}
.badge.feedback {
  background: #fff3df;
  color: #bc8a25;
}
.badge.hold {
  background: #f4eafa;
  color: #9b61b9;
}
.priority-urgent {
  color: #d75a6a;
}
.priority-high {
  color: #bd872c;
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 16px;
}
.board-col {
  background: #eceff5;
  border-radius: 12px;
  padding: 13px;
  min-height: 260px;
}
.board-col h3 {
  font-size: 12px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.board-task {
  background: #fff;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 9px;
  margin-bottom: 10px;
  display: block;
  width: 100%;
  text-align: left;
}
.board-task strong {
  font-size: 13px;
  line-height: 1.7;
  display: block;
  margin: 9px 0;
}
.board-task small {
  font-size: 11px;
}
.board-task select {
  margin-top: 13px;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.member-row .role {
  margin-left: auto;
}
.member-row .btn {
  font-size: 11px;
  padding: 6px 9px;
}
.hint {
  background: #f0eefc;
  border-radius: 9px;
  padding: 14px;
  font-size: 12px;
  color: #72649d;
  line-height: 1.8;
  margin-bottom: 20px;
}
.footnote {
  font-size: 11px;
  color: #9ba3b1;
  margin-top: 28px;
}
dialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(620px, calc(100% - 32px));
  max-height: 90vh;
  box-shadow: 0 20px 100px #17213e40;
}
dialog::backdrop {
  background: #17213e66;
  backdrop-filter: blur(2px);
}
.modal-head {
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  font-size: 18px;
}
.modal-body {
  padding: 24px 26px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.close {
  font-size: 23px;
  color: #8a93a3;
}
.load-more {
  margin: 20px auto;
  display: block;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #263149;
  color: white;
  padding: 13px 23px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 6px 30px #15203925;
  z-index: 99;
  display: none;
}
#toast.visible {
  display: block;
}
.mobile-brand {
  display: none;
}
@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .shell {
    grid-template-columns: 210px 1fr;
  }
}
@media (max-width: 740px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 13px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 8px 14px;
    font-size: 23px;
  }
  .sidebar .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
    padding: 9px;
    font-size: 12px;
    margin: 0;
  }
  .side-label,
  .side-bottom,
  .nav-count {
    display: none;
  }
  .topbar {
    height: 55px;
    padding: 0 18px;
  }
  .main {
    padding: 24px 17px;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 15px 12px;
  }
  .metric-icon {
    display: none;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric small {
    font-size: 10px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head .btn {
    font-size: 11px;
    padding: 10px;
  }
  .search {
    width: 160px;
  }
  .login {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-form {
    min-height: 100vh;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 18px;
  }
  .secure {
    font-size: 10px;
  }
}

/* FLOW reference layout: compact left rail, lavender dashboard, white widgets, organization drawer. */
:root {
  --accent: #6846ed;
  --line: #e4dfea;
  --muted: #82798b;
  color: #29232f;
  background: #ebe3ef;
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
}
body {
  background: #ebe3ef;
}
[hidden] {
  display: none !important;
}
.flow-top {
  height: 42px;
  position: fixed;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf8fc;
  border-bottom: 1px solid #e3dce8;
  padding: 0 24px;
  z-index: 20;
  gap: 20px;
}
.flow-word {
  font-weight: 850;
  color: #6846ed;
  font-size: 19px;
  min-width: 200px;
}
.flow-word small {
  font-size: 9px;
  letter-spacing: 1.1px;
  margin-left: 7px;
  color: #9a8daf;
}
.top-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-controls > button {
  font-size: 24px;
  padding: 0 5px;
}
.top-controls form {
  width: 340px;
  border: 1px solid #cbb4ff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  height: 30px;
  background: white;
  padding: 0 10px;
  color: #9e8cbe;
  gap: 8px;
}
.top-controls input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  background: transparent;
  font-size: 11px;
  text-align: center;
}
.top-controls form button {
  color: #9a8baa;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.top-actions > button {
  font-size: 21px;
  padding: 0;
}
.top-profile {
  display: flex;
  align-items: center;
  gap: 7px;
}
.top-profile span:not(.avatar) {
  font-size: 11px;
}
.top-profile .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
  border-radius: 9px;
}
.flow-side {
  width: 230px;
  position: fixed;
  top: 42px;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior-y: contain;
  background: #faf8fc;
  border-right: 1px solid #e4dce9;
  z-index: 15;
  padding: 15px 7px 0;
}
.flow-side > * {
  flex-shrink: 0;
}
.company-logo {
  height: 65px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  border-radius: 4px;
}
.company-logo strong {
  font-size: 28px;
  letter-spacing: -2px;
}
.company-logo strong span {
  color: #6c43e9;
  font-size: 12px;
  margin-left: 3px;
}
.company-logo small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #9c92a6;
}
.new-project {
  background: #17121e;
  color: #fff;
  min-height: 41px;
  font-weight: 700;
  border-radius: 5px;
  margin-bottom: 17px;
  font-size: 13px;
}
.flow-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  min-height: 31px;
  padding: 6px 13px;
  border-radius: 3px;
  width: 100%;
  font-size: 12px;
  line-height: 1.5;
  color: #272131;
  overflow: hidden;
}
.flow-nav > span {
  font-size: 16px;
  width: 17px;
  color: #3b2f50;
  flex-shrink: 0;
}
.flow-nav small {
  margin-left: auto;
  color: #ff4c61;
  font-size: 10px;
}
.flow-nav.selected {
  color: #7144ff;
  background: #ece4f9;
}
.flow-nav.selected > span {
  color: #7144ff;
}
.flow-nav:hover {
  background: #eee8f4;
}
.side-scroll {
  margin-top: 13px;
  padding-bottom: 18px;
}
.flow-section-title {
  font-size: 12px;
  font-weight: 750;
  border-top: 1px solid #e3dce9;
  margin-top: 10px;
  padding: 14px 13px 10px;
  display: flex;
  justify-content: space-between;
}
.flow-section-title button {
  font-size: 18px;
  color: #f65c72;
  line-height: 16px;
}
.recent-item {
  display: flex;
  gap: 9px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  width: 100%;
  padding: 7px 13px;
  text-align: left;
}
.recent-item span {
  color: #ff4f64;
  font-size: 17px;
  flex-shrink: 0;
}
.sidebar-empty {
  font-size: 10px;
  color: #a296ad;
  padding: 8px 13px;
  line-height: 1.7;
}
.flow-side-footer {
  margin-top: auto;
  border-top: 1px solid #e4dce9;
  padding: 5px 0;
  background: #faf8fc;
}
.flow-content {
  margin-left: 230px;
  padding-top: 42px;
  min-height: 100vh;
}
.flow-notice {
  background: white;
  border-bottom: 1px solid #e9e2ed;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 12px;
}
.flow-notice > span {
  font-size: 28px;
  color: #6f46ef;
}
.flow-notice .btn {
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 20px;
}
.flow-main {
  padding: 28px 28px 70px;
  max-width: 1180px;
  margin: 0 auto;
}
.dashboard-greeting {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 35px;
}
.dashboard-greeting h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
  line-height: 1.5;
}
.dashboard-greeting p {
  font-size: 13px;
  margin-top: 12px;
  color: #655a70;
}
.dashboard-greeting > small {
  font-size: 11px;
  white-space: nowrap;
  margin-top: 5px;
}
.quick-links {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin: 28px 18px 44px;
}
.quick-links button {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.quick-links button > span {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  background: #6749dd;
  color: #e1d7ff;
  border-radius: 15px;
  font-size: 28px;
  box-shadow: 0 2px 0 #fff4 inset;
}
.workspace-banner {
  min-height: 86px;
  border-radius: 14px;
  border: 1px solid white;
  background: linear-gradient(100deg, #e7ebfc, #f2eafa);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 30px;
  box-shadow: 0 3px 10px #39214418;
  margin-bottom: 30px;
}
.workspace-banner > span {
  background: #6949df;
  color: #c5b9fc;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 35px;
}
.workspace-banner strong {
  font-size: 16px;
}
.workspace-banner p {
  font-size: 12px;
  margin-top: 7px;
}
.workspace-banner button {
  margin-left: auto;
  font-size: 11px;
  padding: 8px 13px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
}
.dashboard-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 10px #39214415;
  padding: 24px 28px;
  min-height: 230px;
  overflow: hidden;
}
.dashboard-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 15px;
}
.dashboard-card h2 {
  font-size: 16px;
}
.dashboard-card header button {
  font-size: 10px;
  color: #9b8ba6;
}
.dashboard-projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 25px;
}
.dashboard-project {
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
}
.dashboard-project > span {
  color: #ff475d;
  font-size: 25px;
  flex-shrink: 0;
}
.dashboard-people {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.dashboard-people > .dashboard-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 62px;
}
.dashboard-person {
  text-align: center;
  border-radius: 8px;
}
.dashboard-person:hover,
.dashboard-person:focus-visible {
  background: #f3eefb;
}
.dashboard-people .avatar {
  background: #d5eef7;
  color: #6aacc7;
  border-radius: 50%;
  width: 38px;
  height: 38px;
}
.dashboard-people strong {
  font-size: 11px;
}
.dashboard-people small {
  font-size: 10px;
}
.dashboard-task {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #f0ebf3;
  text-align: left;
  font-size: 12px;
}
.dashboard-task > span:not(.badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-task small {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
}
.dashboard-card .empty {
  border: 0;
  padding: 30px 10px;
  font-size: 11px;
}
.dashboard-card .empty strong {
  font-size: 12px;
  font-weight: 500;
}
.org-panel {
  position: fixed;
  right: 0;
  top: 42px;
  bottom: 0;
  background: white;
  width: 370px;
  border-left: 1px solid #d9d3df;
  z-index: 25;
  box-shadow: -5px 0 15px #3921440a;
  overflow: auto;
  padding: 20px;
}
.org-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
}
.org-panel h2 {
  font-size: 15px;
}
.org-panel header button {
  font-size: 24px;
  color: #999;
}
.org-company {
  font-size: 12px;
  display: block;
  margin-bottom: 12px;
}
.org-panel .search {
  width: 100%;
  border-radius: 4px;
  font-size: 11px;
  margin-bottom: 20px;
}
.org-tree {
  min-height: 150px;
  max-height: 48vh;
  overflow: auto;
  font-size: 12px;
}
.org-tree details {
  margin: 8px 0;
}
.org-tree summary {
  cursor: pointer;
  color: #82798b;
  line-height: 2.2;
}
.org-tree summary button {
  padding: 0 4px;
  text-align: left;
  font-size: 12px;
}
.org-tree summary button small {
  font-size: 11px;
}
.org-tree .org-selected {
  background: #efe8ff;
  color: #7046f5;
  font-weight: 700;
}
.org-children {
  padding-left: 17px;
  border-left: 1px solid #e1dce5;
  margin-left: 5px;
}
.org-unassigned {
  display: block;
  font-size: 12px;
  margin: 12px 0;
  padding: 5px;
}
.org-people {
  border-top: 1px solid #e3dde8;
  padding: 18px 0;
  margin-top: 20px;
}
.org-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.org-person .avatar {
  border-radius: 50%;
  background: #eee5f4;
}
.org-person strong {
  font-size: 12px;
}
.org-person small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #a094a8;
}
.department-chip {
  background: #efe8fa;
  border: 1px solid #ddd1ef;
  border-radius: 7px;
  padding: 8px 12px;
  margin: 4px;
  font-size: 12px;
}
.org-panel .muted {
  font-size: 12px;
}
.project-description {
  font-size: 13px;
  color: #7e708c;
  margin-bottom: 15px;
}
.page-head h1 {
  font-size: 23px;
}
.page-head p {
  color: #81728c;
}
.panel {
  border-color: #e8e1ec;
  box-shadow: 0 1px 5px #39214405;
}
.entity-heading {
  font-size: 17px;
  font-weight: 750;
  text-align: left;
  margin-bottom: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
button.entity-heading:hover {
  color: #7046ec;
}
.result-excerpt {
  font-size: 12px;
  line-height: 1.8;
  color: #8c7d98;
  white-space: pre-wrap;
  max-height: 130px;
  overflow: hidden;
  margin: 10px 0;
}
.notification-row {
  display: flex;
  width: 100%;
  text-align: left;
  gap: 14px;
}
.notification-row strong {
  font-size: 14px;
}
.notification-row p {
  font-size: 12px;
  margin: 7px 0;
}
.notification-dot {
  width: 8px;
  height: 8px;
  background: #ff5069;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.notification-dot.read {
  background: #d5cadf;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.detail-actions .btn {
  font-size: 11px;
  padding: 7px 11px;
}
.formatted {
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  margin: 15px 0;
  color: #52485d;
  white-space: normal;
}
.formatted p {
  margin: 5px 0;
}
.formatted h3 {
  font-size: 17px;
  margin: 16px 0 8px;
}
.formatted code {
  background: #f3eef9;
  padding: 2px 5px;
  border-radius: 4px;
  color: #5b3e8e;
}
.table-scroll {
  overflow-x: auto;
  margin: 14px 0;
}
.formatted table {
  border: 1px solid #ddd3e8;
}
.formatted th,
.formatted td {
  border: 1px solid #ddd3e8;
  padding: 8px 12px;
  white-space: normal;
}
.file-link {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px;
  border: 1px solid #e6dded;
  border-radius: 6px;
  margin: 8px 0;
  font-size: 12px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.file-link small {
  white-space: nowrap;
  font-size: 10px;
}
.comment {
  padding: 18px 0;
  border-bottom: 1px solid #ece5f0;
}
.comment strong {
  font-size: 12px;
}
.comment small {
  font-size: 10px;
}
.comment-actions {
  display: flex;
  gap: 8px;
}
.comment-actions .btn {
  font-size: 10px;
  padding: 5px 8px;
}
.replies {
  padding-left: 22px;
  border-left: 2px solid #e9dff5;
}
.folder-check {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  font-size: 12px;
}
.gantt-scroll {
  overflow: auto;
  background: white;
  border: 1px solid #ddd3e8;
  border-radius: 10px;
}
.gantt {
  table-layout: fixed;
  min-width: 1350px;
}
.gantt th,
.gantt td {
  width: 34px;
  min-width: 34px;
  padding: 8px 3px;
  text-align: center;
  font-size: 10px;
  border: 1px solid #ece5f3;
}
.gantt th:first-child,
.gantt td:first-child {
  width: 240px;
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
  text-align: left;
  padding: 10px 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gantt-bar {
  background: #d5c4ff;
  color: #6b45d5;
}
.gantt-bar.complete {
  background: #cceede;
}
.org-panel:focus-within {
  outline: none;
}
hr {
  border: 0;
  border-top: 1px solid #ece5f1;
  margin: 24px 0;
}
dialog .modal-body h3 {
  font-size: 14px;
  margin: 18px 0 10px;
}
dialog .modal-actions {
  flex-wrap: wrap;
}
#org-page-search {
  margin-bottom: 20px;
}
.flow-main > .panel > h3 {
  margin: 12px 0;
}
.top-actions button:hover {
  color: #7144e9;
}
.flow-nav:focus-visible,
.recent-item:focus-visible {
  outline: 2px solid #9b7de9;
  outline-offset: -2px;
}
@media (min-width: 1600px) {
  .flow-main {
    padding-top: 26px;
    max-width: 1220px;
  }
}
@media (max-width: 1100px) {
  .flow-side {
    width: 210px;
  }
  .flow-content {
    margin-left: 210px;
  }
  .flow-word {
    min-width: 170px;
  }
  .top-controls form {
    width: 260px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-card {
    padding: 20px;
  }
  .dashboard-projects {
    grid-template-columns: 1fr;
  }
  .flow-main {
    padding: 25px 20px;
  }
  .top-profile span:not(.avatar) {
    display: none;
  }
}
@media (max-width: 780px) {
  .flow-top {
    padding: 0 12px;
  }
  .flow-word {
    min-width: auto;
    font-size: 17px;
  }
  .flow-word small {
    display: none;
  }
  .top-controls {
    gap: 4px;
  }
  .top-controls form {
    width: 180px;
  }
  .top-controls input {
    font-size: 10px;
  }
  .top-actions {
    gap: 8px;
  }
  .flow-side {
    width: 180px;
  }
  .flow-content {
    margin-left: 180px;
  }
  .flow-nav {
    font-size: 11px;
    padding-left: 9px;
    gap: 7px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-greeting {
    display: block;
  }
  .dashboard-greeting h1 {
    font-size: 22px;
  }
  .dashboard-greeting small {
    display: block;
    margin-top: 15px;
  }
  .quick-links {
    margin: 25px 0;
  }
  .quick-links button {
    font-size: 10px;
  }
  .quick-links button > span {
    width: 37px;
    height: 37px;
    font-size: 23px;
  }
  .workspace-banner {
    padding: 15px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .workspace-banner strong {
    font-size: 13px;
  }
  .workspace-banner p {
    font-size: 11px;
  }
  .workspace-banner > span {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
  .flow-notice {
    font-size: 10px;
    padding: 0 12px;
    gap: 6px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .org-panel {
    width: min(370px, calc(100vw - 20px));
  }
}
@media (max-width: 520px) {
  .flow-top {
    gap: 5px;
  }
  .top-controls > button {
    display: none;
  }
  .top-controls form {
    width: 155px;
  }
  .top-actions > button {
    font-size: 18px;
  }
  .top-actions .top-profile {
    display: none;
  }
  .flow-side {
    width: 150px;
  }
  .flow-content {
    margin-left: 150px;
  }
  .company-logo {
    height: 50px;
  }
  .company-logo strong {
    font-size: 23px;
  }
  .flow-nav {
    font-size: 10px;
    padding: 7px 5px;
    gap: 5px;
  }
  .flow-nav > span {
    font-size: 14px;
    width: 15px;
  }
  .flow-section-title {
    font-size: 10px;
    padding: 12px 5px;
  }
  .new-project {
    font-size: 11px;
  }
  .flow-main {
    padding: 23px 12px;
  }
  .flow-notice {
    display: none;
  }
  .dashboard-card {
    padding: 17px 13px;
  }
  .dashboard-card h2 {
    font-size: 14px;
  }
  .dashboard-card header button {
    font-size: 9px;
  }
  .dashboard-greeting h1 {
    font-size: 19px;
  }
  .dashboard-projects {
    gap: 11px;
  }
  .dashboard-project {
    font-size: 10px;
  }
  .dashboard-task {
    font-size: 10px;
  }
  .dashboard-task small {
    display: none;
  }
  .workspace-banner button {
    margin-left: 0;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 20px;
  }
  .tabs {
    gap: 13px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .tab {
    font-size: 11px;
  }
  .sidebar-empty {
    font-size: 9px;
    padding-left: 5px;
  }
}
.flow-nav svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.sidebar-toggle,
.sidebar-backdrop {
  display: none;
}
@media (max-width: 780px) {
  .sidebar-toggle {
    display: block;
    flex-shrink: 0;
    width: 30px;
    height: 32px;
    font-size: 20px;
    color: #6540dc;
  }
  .flow-top {
    gap: 7px;
  }
  .flow-side {
    width: 230px;
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    z-index: 31;
    box-shadow: 6px 0 20px #2a164b22;
  }
  .flow-app.sidebar-open .flow-side {
    transform: translateX(0);
  }
  .flow-content {
    margin-left: 0;
  }
  .flow-app.sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 42px 0 0;
    background: #24153566;
    z-index: 30;
  }
  .flow-nav {
    font-size: 12px;
    min-height: 38px;
    padding: 8px 13px;
  }
  .flow-section-title {
    font-size: 12px;
    padding: 14px 13px 10px;
  }
  .flow-main {
    padding: 24px 18px 45px;
  }
  .dashboard-greeting h1 {
    font-size: 24px;
  }
  .dashboard-projects {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-card {
    padding: 23px;
  }
  .dashboard-card h2 {
    font-size: 16px;
  }
  .dashboard-project {
    font-size: 11px;
  }
  .dashboard-task {
    font-size: 12px;
  }
  .dashboard-task small {
    display: block;
  }
  .company-logo {
    height: 65px;
  }
  .company-logo strong {
    font-size: 28px;
  }
  .workspace-banner {
    gap: 15px;
  }
  .top-actions {
    gap: 8px;
  }
}
@media (max-width: 420px) {
  .flow-main {
    padding: 23px 14px 45px;
  }
  .dashboard-projects {
    grid-template-columns: 1fr;
  }
  .top-controls form {
    width: 150px;
  }
  .dashboard-greeting h1 {
    font-size: 22px;
  }
  .dashboard-card {
    padding: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flow-side {
    transition: none;
  }
}
/* Project workspace and independent detail panel, based on the supplied FLOW screens. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.flow-content:has(.project-main) {
  background: #fcfcfd;
}
.flow-content:has(.project-main) > .flow-notice {
  display: none;
}
.flow-main.project-main {
  max-width: none;
  padding: 0 0 80px;
  min-height: calc(100vh - 42px);
}
.project-workspace {
  width: 100%;
}
.project-heading {
  position: sticky;
  top: 42px;
  z-index: 12;
  background: white;
}
.project-top {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: white;
  padding: 12px 30px;
  min-height: 76px;
}
.project-identity {
  display: flex;
  gap: 20px;
  align-items: center;
  min-width: 0;
}
.project-color {
  display: block;
  width: 50px;
  height: 50px;
  background: #ff343d;
  border-radius: 12px;
  flex-shrink: 0;
}
.project-identity h1 {
  font-size: 20px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  letter-spacing: -0.5px;
}
.project-identity small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #9a94a1;
}
.project-lock {
  font-size: 13px;
  color: #aaa;
  font-weight: 400;
}
.project-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.project-header-actions .btn {
  font-size: 10px;
  padding: 7px 10px;
}
.member-pill {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 25px;
  padding: 3px 8px;
  font-size: 11px;
  color: #867c94;
}
.member-pill .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
  margin-right: -6px;
  border: 2px solid white;
  border-radius: 50%;
}
.member-pill > span:last-child {
  margin-left: 12px;
}
.project-invite {
  background: #ff343d;
  color: white;
  border-radius: 5px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 650;
}
.project-tabs {
  position: relative;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 0 29px;
  height: 43px;
  overflow: auto;
}
.project-tab {
  font-size: 12px;
  font-weight: 650;
  color: #999;
  padding: 10px 14px 11px;
  min-height: 43px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.project-tab span {
  margin-right: 5px;
}
.project-tab.active {
  color: #333;
  border-bottom-color: #333;
}
.project-layout {
  max-width: 1174px;
  display: grid;
  grid-template-columns: minmax(0, 674px) minmax(250px, 325px);
  gap: clamp(25px, 6.5vw, 120px);
  margin: 25px auto 0;
  padding: 0 16px;
}
.project-layout #project-content {
  min-width: 0;
}
.project-participants {
  align-self: start;
  position: sticky;
  top: calc(62px + var(--project-header-height, 119px));
}
.project-participants h2 {
  font-size: 14px;
  margin: 0 0 14px;
}
.project-participants h2 > span {
  color: #999;
}
.participants-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  overflow: hidden;
  max-height: calc(100vh - 112px - var(--project-header-height, 119px));
  display: flex;
  flex-direction: column;
}
.participant-group {
  padding: 0 20px;
  overflow: visible;
}
.participants-scroll {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  overscroll-behavior: contain;
}
.participant-group h3 {
  font-size: 11px;
  margin: 20px 0 0;
}
.participant-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.participant-person .avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #dff3fb;
  color: #5aa9c3;
}
.participant-person > div {
  min-width: 0;
}
.participant-person strong {
  font-size: 11px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.participant-person strong small {
  font-size: 10px;
  font-weight: 400;
}
.participant-person p {
  font-size: 10px;
  margin-top: 5px;
  color: #999;
}
.participants-box footer {
  display: flex;
  border-top: 1px solid #ddd;
  flex-shrink: 0;
  background: #fafafa;
  margin-top: 0;
}
.participants-box footer button {
  width: 50%;
  font-size: 10px;
  padding: 14px 4px;
}
.participants-box footer button + button {
  border-left: 1px solid #ddd;
}
.project-agent-status {
  flex-shrink: 0;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px 0;
}
.project-agent-status > span {
  font-size: 25px;
  color: #aaa;
}
.project-agent-status strong {
  font-size: 11px;
  display: block;
}
.project-agent-status small {
  font-size: 9px;
  color: #999;
  display: block;
  margin-top: 5px;
}
.project-agent-status .btn {
  font-size: 9px;
  margin-left: auto;
  padding: 5px 8px;
}
.feed-composer {
  border: 1px solid #999;
  border-radius: 6px;
  background: white;
  margin-bottom: 22px;
  overflow: hidden;
}
.feed-composer > div {
  display: flex;
  border-bottom: 1px solid #ddd;
}
.feed-composer > div button {
  flex: 1;
  padding: 16px 4px;
  font-size: 12px;
}
.feed-composer button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.composer-prompt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  width: 100%;
  font-size: 12px;
  color: #777;
  min-height: 53px;
}
.composer-prompt span {
  color: #bbb;
  letter-spacing: 10px;
}
.feed-updates {
  background: #fff5f5;
  border: 1px solid #ff6c76;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 18px 0 26px;
}
.feed-updates h3 {
  font-size: 12px;
  margin: 0 0 14px;
}
.feed-updates h3 small {
  background: #ff343d;
  color: white;
  padding: 3px 7px;
  border-radius: 20px;
}
.feed-update {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}
.feed-update .avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
}
.feed-update > div {
  flex: 1;
  min-width: 0;
}
.feed-update strong {
  font-size: 11px;
}
.feed-update small {
  font-size: 10px;
  color: #aaa;
  margin-left: 8px;
}
.feed-update p {
  font-size: 11px;
  margin: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.feed-update > div > span {
  font-size: 10px;
  color: #9c7375;
}
.feed-update .btn {
  border-color: #ff9ca3;
  color: #f86b74;
  font-size: 9px;
  padding: 5px 8px;
}
.feed-list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
  font-size: 12px;
}
.project-feed-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.project-feed-actions > span {
  color: var(--muted);
  font-size: 10px;
}
.project-feed-view[hidden] {
  display: none;
}
.project-feed-rows {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.project-feed-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: white;
}
.project-feed-row + .project-feed-row {
  border-top: 1px solid var(--line);
}
.project-feed-row:hover {
  background: #faf8ff;
}
.project-feed-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.project-feed-row-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.project-feed-row-title > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-feed-row-title small {
  color: var(--muted);
  font-size: 11px;
}
.project-feed-row-title time {
  margin-left: 4px;
}
@media (max-width: 520px) {
  .project-feed-actions > span {
    display: none;
  }
}
.flow-feed-card {
  background: white;
  border: 1px solid #d5d5d9;
  border-radius: 10px;
  box-shadow: 0 3px 12px #33333307;
  margin-bottom: 22px;
  overflow: hidden;
}
.flow-feed-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 25px 0;
}
.feed-author {
  display: flex;
  gap: 10px;
  align-items: center;
}
.feed-author .avatar {
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.feed-author strong {
  font-size: 11px;
}
.feed-author small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #aaa;
}
.feed-author time {
  margin-left: 8px;
}
.card-menu {
  font-size: 23px;
  color: #888;
  align-self: flex-start;
}
.feed-card-body {
  padding: 12px 28px 0;
}
.feed-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 7px 0 10px;
  margin-bottom: 14px;
}
.feed-title .entity-heading {
  font-size: 16px;
  margin: 0;
}
.task-kind-label {
  flex-shrink: 0;
  color: #999;
  border: 1px solid #ddd;
  font-size: 10px;
  border-radius: 3px;
  padding: 5px 9px;
  margin-top: 3px;
}
.task-summary {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: start;
  gap: 20px 20px;
  margin: 22px 0 34px;
  font-size: 12px;
}
.task-summary dt {
  color: #888;
  padding-top: 6px;
}
.task-summary dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
}
.task-status-select {
  border: 0;
  padding: 7px 18px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  color: #1984b3;
  background: #d5f3ff;
  cursor: pointer;
}
.task-status-select.complete {
  color: #5c4bcc;
  background: #dad3f5;
}
.task-status-select.progress {
  color: #2574cc;
  background: #dbeaff;
}
.task-status-select.feedback {
  color: #ac7c27;
  background: #fff1d1;
}
.task-status-select.hold {
  color: #967799;
  background: #f1e3f6;
}
.assignee-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eee;
  padding: 1px 8px 1px 0;
  font-size: 11px;
  border-radius: 3px;
}
.assignee-chip .avatar {
  border-radius: 50%;
  width: 27px;
  height: 27px;
  font-size: 10px;
}
.additional-fields {
  font-size: 12px;
  font-weight: 650;
  padding: 10px 0;
  margin: 5px 0 12px;
  color: #444;
}
.feed-body {
  max-height: 265px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.85;
  margin-top: 12px;
}
.feed-body.expanded {
  max-height: none;
}
.body-more {
  border: 1px solid #bbb;
  border-radius: 18px;
  padding: 5px 14px;
  margin: 12px 0;
  font-size: 10px;
}
.feed-attachments {
  margin: 17px 0 25px;
}
.attachment-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #393245;
  padding: 10px;
  font-size: 11px;
  margin: 12px 0;
  background: white;
  min-width: 0;
}
.attachment-card > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.attachment-card strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
}
.attachment-card small {
  font-size: 10px;
  color: #999;
  display: block;
  margin-top: 6px;
}
.file-type {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #f34b3d;
  color: white;
  border-radius: 9px;
  font-size: 9px;
  flex-shrink: 0;
}
.download-icon {
  border: 1px solid #ddd;
  color: #aaa;
  border-radius: 4px;
  padding: 6px 9px;
  margin-left: auto;
}
.feed-image-link {
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  margin: 5px 0;
}
.feed-image-link img {
  display: block;
  max-width: 300px;
  max-height: 220px;
  object-fit: contain;
}
.feed-subtasks {
  margin: 26px 0 45px;
}
.feed-subtasks h3,
.panel-subtasks h3 {
  font-size: 12px;
  color: #665c6b;
  margin-bottom: 15px;
}
.subtask-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eee;
  padding: 9px 12px;
  width: 100%;
  margin: 8px 0;
  text-align: left;
}
.subtask-line strong {
  font-size: 11px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subtask-line small {
  font-size: 10px;
  color: #aaa;
}
.subtask-line .avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: 10px;
}
.is-complete strong,
.completed-title {
  text-decoration: line-through;
  color: #999;
}
.feed-subtasks > .btn {
  font-size: 10px;
  padding: 5px 9px;
}
.feed-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 15px 0 20px;
  font-size: 10px;
  color: #777;
}
.feed-comments-area {
  border-top: 1px solid #ddd;
  background: #fafafa;
  padding: 15px 25px;
}
.feed-comment-preview {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.feed-comment-preview .avatar {
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.feed-comment-preview strong {
  font-size: 11px;
}
.feed-comment-preview small {
  color: #aaa;
  font-size: 9px;
  margin-left: 9px;
}
.feed-comment-preview p {
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.feed-inline-comment {
  display: flex;
  gap: 10px;
  align-items: center;
}
.feed-inline-comment .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.feed-inline-comment label {
  flex: 1;
  min-width: 0;
}
.feed-inline-comment textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #ddd;
  border-radius: 5px;
  min-height: 40px;
  padding: 11px;
  font-size: 11px;
  background: white;
}
.feed-inline-comment button {
  font-size: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.utility-title {
  font-size: 16px;
  margin: 5px 0 20px;
}
.project-file-row {
  padding: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 12px 0;
}
.project-file-row small {
  font-size: 10px;
  color: #999;
}
.project-file-row > .btn {
  font-size: 10px;
  float: right;
  padding: 5px 8px;
}
.insight-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding: 12px 4px;
  font-size: 12px;
}
.project-calendar {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
}
.project-calendar h2 {
  font-size: 16px;
  margin: 5px 0 22px;
}
.project-calendar h2 small {
  font-size: 10px;
  color: #aaa;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid #eee;
}
.calendar-grid > strong {
  padding: 10px 0;
  text-align: center;
  font-size: 10px;
  border-bottom: 1px solid #eee;
}
.calendar-day {
  min-height: 90px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 7px;
  min-width: 0;
}
.calendar-day > span {
  font-size: 11px;
  color: #999;
}
.calendar-task {
  display: block;
  background: #eee6ff;
  color: #6846bc;
  border-radius: 3px;
  padding: 4px 3px;
  font-size: 9px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 5px 0;
}
.calendar-task.complete {
  background: #e5f5ec;
  color: #549a77;
}
dialog.entity-drawer[open] {
  position: fixed;
  inset: 42px 0 0 auto;
  width: min(680px, 100vw);
  height: calc(100vh - 42px);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #d5d5d5;
  border-radius: 0;
  box-shadow: -4px 0 20px #33333313;
  z-index: 60;
  overflow: hidden;
}
dialog.entity-drawer #modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.entity-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #ddd;
  padding: 12px 20px;
  min-height: 44px;
  flex-shrink: 0;
  background: white;
}
.entity-panel-header > div {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #888;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-project-color {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: #ff343d;
  border-radius: 3px;
  flex-shrink: 0;
}
.entity-drawer .modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.entity-scroll {
  padding: 22px 30px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  background: white;
}
.entity-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.entity-author .avatar {
  border-radius: 50%;
}
.entity-author small {
  display: block;
  font-size: 10px;
  color: #aaa;
  margin-top: 6px;
}
.entity-author-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  margin-inline-start: auto;
}
.entity-author-actions > .btn {
  font-size: 10px;
  padding: 5px 9px;
}
.entity-title-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 24px 0 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.entity-title {
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.panel-task-fields {
  margin: 24px 0 40px;
  grid-template-columns: 90px 1fr;
  gap: 23px 20px;
}
.panel-task-fields progress {
  width: 130px;
  height: 6px;
  accent-color: #5843cc;
}
.panel-task-fields dd > span {
  font-size: 10px;
  color: #6350d5;
}
.entity-body {
  font-size: 12px;
  line-height: 1.9;
}
.panel-subtasks {
  margin: 40px 0 55px;
}
.panel-subtasks > .btn {
  font-size: 10px;
  padding: 5px 8px;
  margin-top: 10px;
}
.panel-attachments {
  margin: 25px 0;
}
.attachment-upload {
  font-size: 11px;
  color: #888;
  padding: 10px 0;
}
.attachment-upload summary {
  cursor: pointer;
}
.attachment-upload .field {
  font-size: 11px;
  margin: 12px 0;
}
.panel-comments {
  padding: 5px 0 10px;
  border-top: 1px solid #eee;
}
.panel-comments h3 {
  font-size: 12px;
}
.entity-comment-compose {
  background: #fafafa;
  border-top: 1px solid #ddd;
  padding: 13px 25px;
  flex-shrink: 0;
}
.entity-comment-compose > label {
  display: block;
}
.entity-comment-compose textarea {
  font: inherit;
  width: 100%;
  resize: vertical;
  min-height: 43px;
  max-height: 120px;
  padding: 12px;
  font-size: 11px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
}
.entity-comment-compose > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.entity-comment-compose select {
  font-size: 10px;
  border: 1px solid #ddd;
  padding: 5px;
  background: white;
  border-radius: 4px;
  max-width: 200px;
}
.entity-comment-compose .btn {
  font-size: 10px;
  padding: 7px 12px;
}
.ai-launcher-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 2px);
}
.ai-launcher-dock[hidden],
.ai-launcher-reset[hidden] {
  display: none;
}
.ai-launcher-reset {
  min-height: 34px;
  border: 1px solid #d7cdef;
  border-radius: 18px;
  padding: 5px 9px;
  background: #fff;
  color: #4c3392;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.ai-launcher-reset:hover {
  background: #f6f0ff;
}
.ai-launcher-reset:focus-visible {
  outline: 2px solid #6e54ad;
  outline-offset: 2px;
}
.ai-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  min-height: 32px;
  border: 1px solid #ffffffa0;
  border-radius: 20px;
  padding: 5px 8px;
  background: linear-gradient(140deg, #7849ff, #532fdb);
  color: white;
  box-shadow: 0 3px 11px #6043c54a;
  line-height: 1.1;
  white-space: nowrap;
}
.ai-launcher > span {
  font-size: 15px;
}
.ai-launcher strong {
  font-size: 9px;
}
.modal-ai-launcher-dock {
  z-index: 1000;
}
body:has(dialog[open]:not(.entity-drawer)) > .ai-launcher-dock {
  visibility: hidden;
}
.agent-window {
  background: #f7f4fc;
}
.agent-window-header {
  height: 58px;
  background: white;
  border-bottom: 1px solid #e6e0ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.agent-window-header strong {
  color: #6846ed;
  font-size: 18px;
}
.agent-window-header > span {
  font-size: 11px;
  color: #8b8098;
}
.agent-window-main {
  padding: 22px 18px;
}
.agent-window-main h1 {
  font-size: 21px;
}
.agent-window-main .page-head p {
  font-size: 12px;
  line-height: 1.8;
}
.agent-window-main .panel {
  padding: 18px;
}
.agent-window-main textarea {
  min-height: 150px;
}
.agent-window #agent-answer {
  margin-top: 20px;
}
.agent-window .ai-launcher-dock {
  display: none;
}
@media (max-width: 1300px) {
  .project-top {
    padding: 18px 22px;
  }
  .project-identity {
    gap: 14px;
  }
  .project-identity h1 {
    font-size: 18px;
  }
  .project-header-actions .btn {
    padding: 6px;
  }
  .project-layout {
    gap: 25px;
    padding: 0 24px;
  }
  .project-header-actions {
    gap: 6px;
  }
  .project-color {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 1100px) {
  .project-layout {
    display: block;
    max-width: 720px;
  }
  .project-participants {
    display: none;
  }
  .project-header-actions .btn[data-tab="fields"] {
    display: none;
  }
  .project-header-actions .member-pill {
    display: flex;
  }
  .project-top {
    min-height: 95px;
  }
  .project-identity h1 {
    font-size: 17px;
  }
  .project-invite {
    padding: 8px 10px;
  }
  .project-tabs {
    padding: 0 16px;
    gap: 0;
  }
  .project-tab {
    padding: 10px 12px;
  }
}
@media (max-width: 780px) {
  .project-top {
    padding: 13px 16px;
    min-height: 94px;
    align-items: flex-start;
    gap: 12px;
  }
  .project-identity {
    gap: 10px;
  }
  .project-color {
    width: 35px;
    height: 35px;
    border-radius: 9px;
  }
  .project-identity h1 {
    font-size: 16px;
  }
  .project-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 150px;
  }
  .project-header-actions .btn {
    font-size: 9px;
  }
  .project-invite {
    font-size: 10px;
    padding: 7px 9px;
  }
  .member-pill .avatar {
    width: 21px;
    height: 21px;
  }
  .project-tabs {
    height: 43px;
    padding-left: 8px;
  }
  .project-tab {
    font-size: 11px;
    padding: 12px 10px;
  }
  .project-layout {
    padding: 0 13px;
    margin-top: 18px;
  }
  .feed-card-body {
    padding: 12px 17px 0;
  }
  .flow-feed-card > header {
    padding: 14px 17px 0;
  }
  .feed-comments-area {
    padding: 15px;
  }
  .task-summary {
    grid-template-columns: 62px 1fr;
    gap: 16px 8px;
  }
  .composer-prompt {
    padding: 17px;
    font-size: 11px;
  }
  .feed-composer > div button {
    font-size: 10px;
    padding: 13px 2px;
  }
  .feed-updates {
    padding: 12px;
  }
  .feed-update small {
    display: block;
    margin: 4px 0;
  }
  .entity-scroll {
    padding: 20px;
  }
  .entity-comment-compose {
    padding: 12px 18px;
  }
  .ai-launcher-dock {
    right: 14px;
    bottom: 14px;
  }
  .entity-comment-compose > div {
    padding-right: 80px;
  }
  .calendar-day {
    min-height: 70px;
    padding: 4px;
  }
  .calendar-task {
    font-size: 8px;
  }
  .project-calendar {
    padding: 10px;
  }
}
.entity-comment-compose {
  padding-right: 145px;
}
.modal-footer {
  padding-right: 145px;
}

/* Company-provided original logo; preserve aspect ratio on all viewports. */
.company-logo img {
  display: block;
  width: min(180px, calc(100% - 24px));
  height: auto;
  object-fit: contain;
}
.login-art .company-login-logo {
  display: inline-flex;
  background: #fff;
  border-radius: 6px;
  padding: 12px 18px;
}
.company-login-logo img {
  display: block;
  width: min(228px, 100%);
  height: auto;
  object-fit: contain;
}

/* Reference UI review: field expansion stays inline and title remains visible in the drawer. */
.task-extra-fields {
  padding: 0 0 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 18px;
}
.task-extra-fields .task-summary {
  margin: 8px 0 16px;
}
.task-extra-fields dd {
  overflow-wrap: anywhere;
}
.entity-drawer .entity-title-row {
  position: sticky;
  top: -22px;
  background: white;
  z-index: 2;
  padding-top: 12px;
  box-shadow: 0 1px 0 #eee;
}
.entity-parent-link {
  font: inherit;
  color: #6653b6;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: underline;
}
.feed-body,
.entity-body {
  font-size: 13px;
}
.feed-author strong,
.participant-person strong,
.feed-comment-preview strong {
  font-size: 12px;
}
.feed-comment-preview p {
  font-size: 12px;
}
@media (min-width: 1301px) {
  .project-tabs {
    height: 43px;
  }
  .project-tab {
    font-size: 13px;
  }
}

/* Equal-height dashboard cards with separate keyboard-accessible scroll regions. */
.dashboard-grid {
  align-items: stretch;
}
.dashboard-card {
  height: 340px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.dashboard-card > header {
  flex-shrink: 0;
  margin-bottom: 20px;
}
.dashboard-panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.dashboard-panel-scroll:focus-visible {
  outline: 2px solid #7950ed;
  outline-offset: 3px;
  border-radius: 4px;
}
.dashboard-loaded {
  font-size: 11px;
  color: #8c8199;
  margin: 12px 0 6px;
}
.dashboard-more {
  margin: 0 0 8px;
}
.flow-app:has(.project-main) .new-project {
  background: #6440fb;
}
@media (max-width: 780px) {
  .dashboard-card {
    height: 300px;
    min-height: 0;
  }
}
.dashboard-panel-scroll {
  scrollbar-width: thin;
  scrollbar-color: #b5a8c6 #f0ebf5;
}
.dashboard-panel-scroll::-webkit-scrollbar {
  width: 8px;
}
.dashboard-panel-scroll::-webkit-scrollbar-track {
  background: #f0ebf5;
  border-radius: 8px;
}
.dashboard-panel-scroll::-webkit-scrollbar-thumb {
  background: #b5a8c6;
  border-radius: 8px;
  border: 2px solid #f0ebf5;
}
/* FLOW reference: new-project dialog, without changing authorization defaults. */
dialog.project-create-dialog {
  width: 680px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  border-radius: 8px;
}
.project-create-dialog .modal-head {
  padding: 25px 36px 0;
  border: 0;
  align-items: flex-start;
}
.project-create-dialog .modal-head h2 {
  font-size: 25px;
  line-height: 1.5;
}
.project-create-dialog .modal-body {
  padding: 0 36px 32px;
}
#project-create-form {
  position: relative;
  padding-top: 45px;
}
.project-template {
  position: absolute;
  right: 24px;
  top: -25px;
}
.project-template button {
  font-size: 12px;
  color: #7441ff;
}
.project-template button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.project-create-title,
.project-create-description {
  display: block;
  width: 100%;
  font: inherit;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 18px 20px;
  background: white;
}
.project-create-title {
  font-size: 17px;
  box-shadow: 0 2px 5px #0002;
  border-color: #aaa;
  height: 60px;
}
.project-create-description {
  font-size: 13px;
  margin-top: 10px;
  height: 60px;
  resize: vertical;
  min-height: 60px;
  max-height: 180px;
}
.home-tab-setting {
  border: 0;
  padding: 0;
  margin: 14px 0 16px;
  min-width: 0;
}
.home-tab-setting legend {
  font-size: 14px;
  font-weight: 650;
  padding: 0;
  margin-bottom: 24px;
}
.home-tab-setting > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
}
.home-tab-setting label {
  position: relative;
  cursor: pointer;
  min-width: 0;
}
.home-tab-setting input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.home-tab-setting span {
  display: block;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 13px;
}
.home-tab-setting input:checked + span {
  border-color: #7950ff;
  background: #f5f2ff;
  color: #754aff;
}
.home-tab-setting input:focus-visible + span {
  outline: 2px solid #7950ff;
  outline-offset: 2px;
}
.project-switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  min-height: 56px;
  cursor: pointer;
}
.project-switch-row input {
  position: absolute;
  right: 0;
  opacity: 0;
  width: 50px;
  height: 25px;
}
.project-switch-row i {
  display: block;
  width: 50px;
  height: 23px;
  border-radius: 20px;
  background: #ccc;
  position: relative;
  flex-shrink: 0;
  pointer-events: none;
}
.project-switch-row i:after {
  content: "";
  width: 19px;
  height: 19px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px #0002;
}
.project-switch-row input:checked + i {
  background: #6440ff;
}
.project-switch-row input:checked + i:after {
  left: 29px;
}
.project-switch-row input:disabled + i {
  opacity: 0.5;
}
.project-switch-row input:focus-visible + i {
  outline: 2px solid #7950ff;
  outline-offset: 3px;
}
.help-marker {
  display: inline-grid;
  place-items: center;
  border: 1px solid #ccc;
  background: #f3f3f3;
  border-radius: 50%;
  font-size: 10px;
  width: 14px;
  height: 14px;
  color: #888;
}
.project-public-note {
  font-size: 11px;
  line-height: 1.8;
  color: #736482;
  padding: 10px 0;
}
.project-extra-settings {
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.project-extra-settings summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  list-style: none;
}
.project-extra-settings summary::-webkit-details-marker {
  display: none;
}
.project-extra-settings summary > span {
  color: #888;
  text-decoration: underline;
}
.project-extra-settings > p {
  background: #f8f8f8;
  padding: 20px;
  line-height: 1.9;
  color: #777;
}
.project-create-actions {
  margin-top: 40px;
}
.project-create-actions .btn {
  border-radius: 3px;
  font-size: 13px;
  padding: 12px 16px;
}
.project-create-actions .btn:disabled {
  background: #999;
  border-color: #999;
  opacity: 1;
}
.join-request-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.join-request-row > div {
  flex: 1;
  min-width: 0;
}
.join-request-row small {
  display: block;
  margin-top: 5px;
  color: #888;
}
.join-entry p {
  margin: 20px 0;
  line-height: 1.8;
}
.join-entry h2 {
  font-size: 21px;
}
.join-entry button {
  margin: 5px;
}
.join-management h3 {
  margin: 20px 0 10px;
}
@media (max-width: 600px) {
  .project-create-dialog .modal-head {
    padding: 20px 20px 0;
  }
  .project-create-dialog .modal-body {
    padding: 0 20px 25px;
  }
  .project-create-dialog .modal-head h2 {
    font-size: 22px;
  }
  .project-template {
    position: static;
    margin-bottom: 20px;
  }
  #project-create-form {
    padding-top: 20px;
  }
  .home-tab-setting > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-tab-setting span {
    padding: 14px;
  }
  .project-switch-row {
    font-size: 12px;
  }
  .project-create-actions {
    margin-top: 25px;
  }
}
.project-extra-body {
  background: #f8f8f8;
  padding: 30px 40px 25px;
  color: #777;
}
.project-extra-body section + section {
  margin-top: 36px;
}
.project-extra-body h3 {
  font-size: 14px;
  margin-bottom: 14px;
}
.project-permission-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.project-permission-row select {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  color: #292929;
  width: 100%;
  opacity: 1;
}
.project-permission-notice {
  color: #ff5263;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 15px;
}
.project-extra-body .project-switch-row {
  border: 0;
  padding: 13px 0;
}
.project-extra-settings .extra-settings-open {
  display: none;
}
.project-extra-settings[open] .extra-settings-open {
  display: inline;
}
.project-extra-settings[open] .extra-settings-closed {
  display: none;
}
.permission-pending-note {
  font-size: 11px;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #8b6f9e;
}
@media (max-width: 600px) {
  .project-extra-body {
    padding: 22px 15px;
  }
  .project-permission-row {
    grid-template-columns: 85px minmax(0, 1fr);
    font-size: 11px;
  }
  .project-permission-row select {
    padding: 10px 7px;
  }
}
.legacy-policy-note {
  display: block;
  background: #f0ebfa;
  border: 1px solid #ded1f5;
  border-radius: 5px;
  padding: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.9;
  color: #5e4a76;
}
.legacy-policy-note input {
  vertical-align: middle;
  margin-right: 5px;
}
.legacy-policy-note small {
  font-size: 11px;
}
.agent-context-panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.agent-context-panel > p {
  font-size: 12px;
  line-height: 1.8;
  color: #82768c;
  margin: 12px 0;
}
.agent-context-summary {
  padding: 15px;
  background: #f4f0fb;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 12px;
  line-height: 1.9;
}
.agent-context-summary small {
  color: #82768c;
}
.agent-context-source {
  border: 1px solid #e9e2f1;
  border-radius: 6px;
  padding: 14px;
  margin: 12px 0;
}
.agent-context-source > small {
  color: #94849f;
  font-size: 10px;
}
.agent-context-source h3 {
  font-size: 13px;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.context-source-status {
  font-size: 11px;
  color: #82768c;
  margin: 8px 0;
}
.agent-context-source pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow: auto;
  font: inherit;
  font-size: 12px;
  padding: 10px;
  background: #faf9fc;
}
.agent-context-source details {
  font-size: 12px;
  margin: 12px 0;
}
.agent-context-source .btn {
  font-size: 11px;
}
.agent-context-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}
.agent-context-pagination .btn {
  max-width: 100%;
  white-space: normal;
}
#agent-project-help {
  font-size: 10px;
  color: #95889f;
  line-height: 1.8;
  margin-top: 5px;
}
#agent-form select[multiple] {
  min-height: 135px;
}

.agent-search-filters { display:grid; grid-template-columns: minmax(180px,2fr) minmax(140px,1fr) minmax(140px,1fr); gap:12px; align-items:end; }
.agent-search-filters .field { min-width:0; }
.agent-search-filters input { width:100%; min-width:0; }
.agent-search-filters .btn { justify-self:start; }
@media(max-width:700px) { .agent-search-filters { grid-template-columns:1fr; } }

[data-extraction-result] { margin-top:12px; overflow-wrap:anywhere; }
.extracted-block { border-top:1px solid var(--line,#ddd); padding:12px 0; }
.extracted-block pre { white-space:pre-wrap; word-break:break-word; max-height:280px; overflow:auto; font:inherit; }
.extraction-controls { display:flex; flex-wrap:wrap; gap:8px; }
.extraction-summary { font-size:13px; }
/* FLOW reference workspace: independent scrolling, stable table header and detail selection. */
.flow-work-main{padding:28px 30px!important;background:#fff!important;min-width:0}
.flow-work-view,.flow-personal-view{display:flex;flex-direction:column;min-width:0;height:calc(100dvh - 115px);color:#303238}
.flow-work-view h1,.flow-personal-view h1{font-size:21px;margin:0 0 34px;font-weight:700}
.flow-work-view h1 span,.personal-heading>strong span{color:#929aa5}
.flow-workbar{display:flex;justify-content:space-between;gap:12px;position:relative;flex-wrap:wrap}
.work-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.work-tools button,.work-tools select{min-height:34px;border:1px solid #d8d8de;background:#fff;border-radius:4px;padding:5px 11px;color:#40424c}
.work-tools button[data-pop]{border-color:#8060ff;background:#f6f2ff}
.work-tools select[data-setting=scope]{min-width:240px}.work-divider{height:26px;border-left:1px solid #ddd;margin:0 5px}
.work-tools label{white-space:nowrap;font-size:13px}.work-tools input{vertical-align:middle}
.work-popover{position:absolute;z-index:30;top:42px;left:0;width:290px;max-width:calc(100vw - 40px);padding:18px;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 6px 24px #0002;display:grid;gap:12px}
.work-popover label{display:flex;align-items:center;gap:8px;font-size:13px}.work-popover select,.work-popover input[type=date]{min-width:0;flex:1;padding:6px;border:1px solid #ddd;border-radius:4px}.work-popover fieldset{border:1px solid #eee;display:flex;flex-wrap:wrap;gap:10px}.work-popover strong{font-size:14px}
.work-editor{position:relative}.work-editor .assignment{position:fixed;top:180px;left:50%;transform:translateX(-50%)}
.work-chips{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-height:48px}.work-chips button{background:#f5f5f5;border:1px solid #ddd;border-radius:3px;padding:4px 9px;font-size:12px}.work-chips input{border:1px solid #ddd;padding:6px}
.flow-board-scroll{flex:1;min-height:180px;min-width:0;overflow:auto;border-top:1px solid #ddd;scrollbar-gutter:stable;isolation:isolate}
.flow-task-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:13px}
.flow-task-table th,.flow-task-table td{box-sizing:border-box;border-bottom:1px solid #e9e9ed;padding:0 9px;height:41px;background:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flow-task-table th{position:sticky;top:0;z-index:8;border-right:1px solid #ddd;text-align:center;background:#fff;font-weight:600}
.flow-task-table th button{border:0;background:none;color:inherit;font:inherit}.flow-task-table .work-pin{position:sticky;z-index:3;background:#fff}.flow-task-table th.work-pin{z-index:10}.flow-task-table .work-first{border-right:1px solid #ddd}
.flow-task-table tr.selected td{background:#eee9ff}.flow-task-table tr.selected .work-first{outline:1px solid #8050ff;outline-offset:-1px}
.work-title{display:flex;align-items:center;gap:5px;min-width:0}.work-title button[data-open]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:0;background:none;padding:5px 0;text-align:left;color:inherit;flex:1}.tree-space{width:16px;flex-shrink:0}.work-title button[data-child],.work-band button[data-fold]{border:1px solid #bbb;border-radius:4px;font-size:12px;line-height:14px;width:16px;height:16px;padding:0;background:white;color:#666;flex-shrink:0}
.work-band{display:flex;align-items:center;gap:9px;position:sticky;left:8px;width:max-content;max-width:calc(100vw - 320px);overflow:hidden}.work-project td{height:49px}.work-project strong{font-size:16px;overflow:hidden;text-overflow:ellipsis}.work-project .work-band button[data-fold]{border:0;background:#8552ff;border-radius:50%;color:white;width:20px;height:20px}.work-jump{border:0;background:none;color:#888;font-size:12px;white-space:nowrap}.work-group td{background:#faf9fb;font-weight:600}.work-add button{border:0;background:none;color:#7855e6;padding:10px 0}
.flow-task-table td input[type=date]{width:100%;min-width:0;border:0;background:transparent;font:inherit;color:inherit}.flow-task-table td select{max-width:100%;border:0;font:inherit;background:transparent}.flow-task-table td button[data-assignee]{border:0;background:none;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}.flow-task-table td button:disabled{opacity:1;cursor:default}
.work-status{display:inline-block;border-radius:3px;padding:4px 7px;font-size:12px!important}.work-status.request{background:#a9e8fc!important;color:#009fd4}.work-status.progress{background:#cbe7b3!important;color:#4c8c0c}.work-status.feedback{background:#ffe4a3!important;color:#ad7800}.work-status.completed{background:#d0c7ef!important;color:#5540bb}.work-status.hold{background:#e7e7e7!important;color:#777}
.work-progress{display:flex;align-items:center;gap:5px}.work-progress progress{width:46px;height:6px;accent-color:#6550d5}.work-coverage{font-size:11px;color:#9299a6;margin:8px 0}
.flow-task-table th.work-calendar{padding:0;height:41px;overflow:hidden;text-align:left}.work-months{display:flex;height:20px}.work-months span{flex-shrink:0;border-bottom:1px solid #ddd;border-right:1px solid #ddd;font-size:12px;padding-left:8px;box-sizing:border-box}.work-days{height:20px;position:relative}.work-days span{position:absolute;text-align:center;font-size:10px;height:20px;border-right:1px solid #e6e4eb;box-sizing:border-box;color:#888;padding-top:3px}.work-days .today{background:#8000db;color:white}
.flow-task-table td.work-lane{position:relative;padding:0;background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--day-width) - 1px),#efedf3 calc(var(--day-width) - 1px),#efedf3 var(--day-width));overflow:hidden}.work-today-line{position:absolute;top:0;bottom:0;border-left:1px solid #8700ff;pointer-events:none;z-index:2}.work-bar{position:absolute;top:10px;height:21px;border:0;border-radius:4px;background:#b9a9ef;color:#3f2b82;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;z-index:1}.work-bar.marker{min-width:8px}.work-bar.completed{background:#c6baf0}.work-bar.progress{background:#b7db96}
.personal-searchbar{display:flex;align-items:center;border:1px solid #ddd;border-radius:4px;width:355px;max-width:100%;height:35px;padding:0 10px;gap:8px;margin-bottom:12px}.personal-searchbar input{border:0;outline:0;min-width:0;flex:1;background:none}.personal-searchbar button{border:0;border-left:1px solid #ddd;background:none;color:#888;font-size:12px;padding-left:10px}.personal-heading{position:relative;border-top:1px solid #ddd;display:flex;align-items:center;justify-content:space-between;padding:20px 0;font-size:14px;gap:12px}.personal-heading>div{display:flex;align-items:center;gap:16px;font-size:12px}.personal-heading button{border:0;background:none;color:#777}.personal-results{overflow:auto;flex:1;min-height:180px;scrollbar-gutter:stable}.personal-row{width:100%;border:0;border-bottom:1px solid #eee;background:white;display:grid;grid-template-columns:90px minmax(140px,1fr) 90px 150px;align-items:center;gap:12px;text-align:left;min-height:62px;padding:10px;border-radius:5px;color:#242a34;font-size:13px}.personal-row:hover{background:#faf8ff}.personal-row.selected{background:#eee9ff;outline:1px solid #8050ff;outline-offset:-1px;color:#7145ff}.personal-kind{display:flex;gap:16px;align-items:center;color:#8560ff}.personal-kind b{font-weight:400;color:#333}.personal-text{min-width:0}.personal-text strong{display:inline-block;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;vertical-align:middle}.personal-text>span{display:block;color:#9a9fa7;font-size:12px;margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.personal-text small{color:#999;margin-left:6px}.personal-author,.personal-row time{color:#9299a4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.personal-row time{text-align:right}.mention-target{outline:1px solid #8050ff;background:#f2edff;scroll-margin-top:30px}
.flow-work-view.compact .flow-task-table td{height:32px}
@media(max-width:700px){.flow-work-main{padding:20px 12px!important}.flow-work-view,.flow-personal-view{height:calc(100dvh - 100px)}.flow-work-view h1,.flow-personal-view h1{margin-bottom:20px}.work-tools select[data-setting=scope]{min-width:180px}.work-band{max-width:calc(100vw - 50px)}.personal-row{grid-template-columns:55px minmax(130px,1fr);gap:8px}.personal-row time,.personal-author{display:none}.personal-kind{gap:5px}.personal-heading{flex-wrap:wrap}}
.own-profile{display:grid;grid-template-columns:200px minmax(0,1fr);gap:32px}.profile-photo{width:150px;height:150px;object-fit:cover;border-radius:24px}.own-profile dl{display:grid;gap:12px}.own-profile dd{margin:0;padding-bottom:16px;border-bottom:1px solid #eee}.own-profile dt{font-weight:600}.own-profile form{display:grid;gap:12px}.own-profile input{max-width:100%}@media(max-width:600px){.own-profile{grid-template-columns:1fr}.own-profile aside{max-width:240px}}
.work-status.complete{background:#d0c7ef!important;color:#5540bb}.work-bar.complete{background:#c6baf0}.work-task:has(.work-status.complete) .work-title button[data-open]{text-decoration:line-through;color:#999}
.org-panel{display:flex;flex-direction:column;overflow:hidden}.org-panel[hidden]{display:none}.org-panel header,.org-panel>.search,.org-panel>.org-company{flex-shrink:0}#org-content{display:grid;grid-template-rows:minmax(130px,2fr) minmax(100px,1fr);flex:1;min-height:0;gap:12px}#org-content>.org-tree{max-height:none;min-height:0;overflow:auto;scrollbar-gutter:stable}#org-content>.org-people{min-height:0;overflow:auto;scrollbar-gutter:stable;margin:0;padding:12px 0}
.flow-notification-panel{position:fixed;right:0;top:42px;bottom:0;width:400px;max-width:100vw;z-index:28;background:#fff;border-left:1px solid #ddd;box-shadow:-5px 0 15px #0001;display:flex;flex-direction:column;padding:20px;box-sizing:border-box}.flow-notification-panel header{display:flex;align-items:center;justify-content:space-between}.flow-notification-panel h2{font-size:17px}.flow-notification-panel button{border:0;background:transparent;text-align:left}.flow-notification-panel header button{font-size:25px;color:#999}.notice-tabs{display:flex;border-bottom:1px solid #ddd;gap:16px;padding:8px 0}.notice-tabs button{font-size:12px;padding:8px 0;color:#999}.notice-tabs .selected{border-bottom:3px solid #444;color:#333;font-weight:700}.notice-tabs button:last-child{margin-left:auto}.notice-filters{display:flex;gap:6px;padding:15px 0}.notice-filters button{border:1px solid #ddd;border-radius:20px;padding:5px 10px;font-size:11px}.notice-filters .selected{background:#7b60d2;color:white}.notice-search{display:flex;border:1px solid #ddd;padding:6px;gap:6px;border-radius:4px}.notice-search input{border:0;min-width:0;flex:1;background:none}.notice-count{font-size:11px;color:#999;margin:8px 0}.notice-items{overflow:auto;flex:1;min-height:0;scrollbar-gutter:stable}.notice-row{display:flex!important;gap:10px;width:100%;padding:12px 10px;border-bottom:1px solid #eee!important}.notice-row.unread{background:#eee9ff!important}.notice-row>.avatar{flex-shrink:0}.notice-row>span:last-child{min-width:0}.notice-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.notice-row small,.notice-row time,.notice-row>span>span{display:block;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.notice-row small{color:#8c8995}.notice-row>span>span{color:#7a5dcc}.notice-row time{color:#999;margin-top:5px}
.flow-main.flow-work-main{max-width:none;margin:0}.flow-task-table .work-months{width:max-content}.flow-task-table .work-calendar .work-days{width:100%}@media(max-width:520px){.top-actions .top-profile{display:flex;min-width:28px;width:28px;padding:0}.top-actions .top-profile>span:not(.avatar){display:none}.top-controls form{width:120px}.top-profile .avatar{width:26px;height:26px}}
.flow-task-table .work-project td,.flow-task-table .work-group td,.flow-task-table .work-add td{overflow:visible}.flow-task-table .work-band{left:8px}.flow-task-table td input[type=date]{padding:0;font-size:11px}.flow-task-table td.work-lane{background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--day-width) - 1px),#efedf3 calc(var(--day-width) - 1px),#efedf3 var(--day-width)),repeating-linear-gradient(to right,transparent 0,transparent calc(var(--day-width)*5),#f5f1fc calc(var(--day-width)*5),#f5f1fc calc(var(--day-width)*7))}
.admin-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);height:100dvh;background:white;color:#242831}.admin-navigation{background:#4d5159;color:#d2d6df;display:flex;flex-direction:column;min-height:0}.admin-brand{font-size:34px;font-weight:700;padding:22px 28px;background:#3b3e43;color:white}.admin-brand small{font-size:12px}.admin-navigation nav{overflow:auto;flex:1;padding:14px 28px;scrollbar-gutter:stable}.admin-navigation section{margin-bottom:25px}.admin-navigation h2{color:white;font-size:15px}.admin-navigation nav button{display:block;color:#c2cad8;font-size:13px;padding:6px 3px;text-align:left}.admin-navigation nav button.selected{color:#7aabff;font-weight:700}.admin-navigation footer{padding:15px 25px}.admin-navigation footer button{width:100%;background:white;padding:8px}.admin-main{overflow:auto;min-width:0;padding:28px 30px}.admin-main h1{font-size:21px;border-bottom:1px solid #ddd;padding-bottom:20px;margin:0 0 24px}.admin-guide{background:#f8f8fb;padding:20px;margin-bottom:25px;line-height:1.8;font-size:13px}.admin-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0}.admin-toolbar>input{border:1px solid #ddd;padding:8px}.admin-toolbar .primary{margin-left:auto}.admin-table-scroll{overflow:auto}.admin-table-scroll table{min-width:650px;border-collapse:collapse}.admin-table-scroll th,.admin-table-scroll td{border:1px solid #ddd;padding:12px;text-align:center;white-space:normal;overflow-wrap:anywhere}.admin-table-scroll th{background:#f9f9fb;color:#30343c}.admin-table-scroll .btn{font-size:11px}.admin-information h3{font-size:14px;margin-top:30px}.admin-information img{width:280px;max-width:100%;border:1px solid #eee;padding:10px}.admin-information p{border-bottom:1px solid #eee;padding-bottom:20px}@media(max-width:650px){.admin-workspace{grid-template-columns:160px minmax(0,1fr)}.admin-navigation nav{padding:10px 12px}.admin-brand{font-size:24px;padding:20px 12px}.admin-main{padding:20px 15px}}
.chat-panel{position:fixed;right:0;top:42px;bottom:0;width:410px;max-width:100vw;background:#fff;border-left:1px solid #ddd;box-shadow:-5px 0 15px #0001;z-index:29;display:flex;flex-direction:column;padding:18px;box-sizing:border-box}.chat-panel header{display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-panel h2{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-panel header button{font-size:25px;color:#999}.chat-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid #ddd;padding:10px 0;margin-bottom:10px}.chat-tabs button{font-size:12px;padding:8px}.chat-tabs .selected{font-weight:700;border-bottom:3px solid #333}.chat-tabs [data-chat=create]{margin-left:auto;background:#714aff;color:white;border-radius:5px}.chat-search{display:flex;gap:8px;border:1px solid #ddd;border-radius:4px;padding:8px}.chat-search input{border:0;min-width:0;flex:1;background:none;font-size:12px}.chat-filters{display:flex;gap:8px;padding:12px 0}.chat-filters button{border:1px solid #ddd;border-radius:20px;font-size:12px;padding:6px 12px}.chat-filters .selected{background:#7961ca;color:white}.chat-room-list{overflow:auto;flex:1;min-height:0;scrollbar-gutter:stable}.chat-room-row{display:flex;width:100%;gap:10px;align-items:center;text-align:left;border-bottom:1px solid #eee;padding:15px 0}.chat-avatar{display:inline-flex;align-items:center;justify-content:center;background:#ece6ff;color:#7650da;border-radius:50%;width:38px;height:38px;flex-shrink:0;font-weight:700}.chat-room-row>span:nth-child(2){flex:1;min-width:0}.chat-room-row strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.chat-room-row small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#999;font-size:12px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.chat-room-row>span:last-child:not(:nth-child(2)){max-width:75px;text-align:right}.chat-room-row time{font-size:9px;color:#aaa}.chat-room-row b{display:block;margin:5px 0 0 auto;background:#ff3b48;color:white;border-radius:12px;padding:2px 5px;width:max-content;font-size:10px}.chat-conversation-tools{display:flex;justify-content:space-between;align-items:center;font-size:12px;border-bottom:1px solid #eee;padding-bottom:10px}.chat-history{flex:1;min-height:0;overflow:auto;background:#f8f7fc;padding:10px;scrollbar-gutter:stable}.chat-message{max-width:90%;width:max-content;margin:10px 0}.chat-message.mine{margin-left:auto}.chat-message strong{font-size:11px;color:#777}.chat-message p{background:white;border:1px solid #e9e4f2;border-radius:10px;padding:9px 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;margin:4px 0}.chat-message.mine p{background:#eee7ff}.chat-message small{font-size:9px;color:#999}.chat-compose{display:grid;gap:8px;padding-top:10px}.chat-compose textarea{width:100%;resize:vertical;min-height:65px;max-height:170px;border:1px solid #ddd;border-radius:5px;padding:10px}.chat-compose small{font-size:10px;color:#999}.chat-compose button{justify-self:end}.chat-create-form{display:flex;flex-wrap:wrap;gap:10px;min-height:0;overflow:auto}.chat-create-form>.field,.chat-create-form>p{width:100%}.chat-create-form>.field input{width:100%}.chat-select-people{max-height:48vh;width:100%;overflow:auto;border:1px solid #eee;padding:10px}.chat-select-people label{display:block;padding:8px;font-size:12px}.chat-select-people small{color:#999;margin-left:5px}@media(max-width:520px){.top-actions{gap:3px}.top-controls form{width:100px}.chat-panel{padding:12px;width:100vw}}
/* Keep the always-visible personal AI launcher clear of chat controls. */
.chat-compose{padding-bottom:70px}.chat-room-list{padding-bottom:72px}
.comment-attachments {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.comment-attachments ul {
  margin: 0;
  padding-inline-start: 20px;
}
.comment-attachments a {
  color: var(--accent, #5c36d9);
  text-decoration: underline;
}
.comment-attachments > .btn {
  margin-block-start: 6px;
}
.feed-comment-fields {
  flex: 1;
  min-width: 0;
}
.feed-comment-fields .comment-compose-attachment {
  margin-block-start: 4px;
}
.comment-compose-attachment {
  font-size: 12px;
  min-width: 0;
}
.comment-compose-attachment summary {
  cursor: pointer;
}
.comment-compose-attachment input {
  display: block;
  max-width: 100%;
  margin-block: 4px;
}
.comment-compose-attachment small {
  display: block;
}

/* Admin destination actions: readable, distinct navigation buttons. */
.admin-navigation footer{display:flex;flex-direction:column;gap:10px;padding:16px 20px;border-top:1px solid #ffffff18;background:#444851}
.admin-navigation footer #admin-drive{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;box-sizing:border-box;padding:11px 14px;border:1px solid #ffffff24;border-radius:12px;font-size:13px;font-weight:700;letter-spacing:-.2px;color:#fff;line-height:1.4;box-shadow:0 4px 10px #16132728;transition:filter .16s ease,transform .16s ease,box-shadow .16s ease;cursor:pointer}
.admin-navigation footer #admin-drive{background:linear-gradient(120deg,#7854ef,#5533c9)}
.admin-navigation footer #admin-drive:hover:hover{filter:brightness(1.1);transform:translateY(-1px);box-shadow:0 6px 14px #14122440}
.admin-navigation footer #admin-drive:active:active{transform:translateY(0);filter:brightness(.96)}
.admin-navigation footer #admin-drive:focus-visible:focus-visible{outline:3px solid #bceeff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.admin-navigation footer #admin-drive{transition:none;transform:none}}
/* Distinct vector icons for workspace utilities. */
.top-actions #drive-launcher,.top-actions #chat-toggle,.top-actions #org-toggle,.top-actions #notifications-toggle{display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;height:34px;border-radius:10px;background:transparent;transition:background .16s ease,color .16s ease;flex-shrink:0}
.top-action-icon{display:block;width:21px;height:21px;pointer-events:none;flex-shrink:0}
.top-actions #drive-launcher{color:#6951d8}.top-actions #chat-toggle{color:#07847b}.top-actions #org-toggle{color:#2875bd}.top-actions #notifications-toggle{color:#b66a09}
.top-actions #drive-launcher:hover{background:#ede8ff}.top-actions #chat-toggle:hover{background:#ddf5ef}.top-actions #org-toggle:hover{background:#e3efff}.top-actions #notifications-toggle:hover{background:#fff0d9}
.top-actions #drive-launcher:focus-visible,.top-actions #chat-toggle:focus-visible,.top-actions #org-toggle:focus-visible,.top-actions #notifications-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:700px){.top-actions #drive-launcher,.top-actions #chat-toggle,.top-actions #org-toggle,.top-actions #notifications-toggle{width:27px;min-width:27px;height:32px}.top-action-icon{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){.top-actions #drive-launcher,.top-actions #chat-toggle,.top-actions #org-toggle,.top-actions #notifications-toggle{transition:none}}

.chat-file-compose{padding:12px 18px;border-top:1px solid #e8e4f2;display:flex;flex-direction:column;gap:8px;flex-shrink:0}.chat-file-compose label{font-size:12px}.chat-file-compose input{max-width:100%;min-width:0;box-sizing:border-box}.chat-file-compose small{font-size:11px;color:#767080}.chat-file-compose>div{display:flex;gap:8px;justify-content:flex-end}.chat-file-card{padding:10px;border:1px solid #ddd9ec;border-radius:10px;margin:6px 0;display:flex;flex-direction:column;gap:5px;max-width:100%;overflow-wrap:anywhere}.chat-file-card img{max-width:100%;max-height:220px;object-fit:contain}.chat-file-card a{color:#6043dc}.chat-file-card small{display:block}.chat-file-compose .btn{white-space:normal}

.chat-panel:has(.chat-file-compose) .chat-compose{padding-bottom:0}.chat-file-compose{padding-bottom:70px}

.mention-composer { position: relative; min-width: 0; width: 100%; }
.mention-suggestions:not([hidden]) { position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 5; display: grid; width: max-content; min-width: min(180px, 100%); max-width: 100%; max-height: 200px; overflow-y: auto; background: white; border: 1px solid #ddd5ee; border-radius: 8px; box-shadow: 0 6px 18px #21123b25; padding: 4px; }
.mention-suggestions button { justify-self: stretch; text-align: left; white-space: normal; overflow-wrap: anywhere; padding: 6px 9px; border: 0; border-radius: 4px; background: transparent; color: #382463; cursor: pointer; }
.mention-suggestions button.is-active, .mention-suggestions button:hover { background: #eee8ff; }
.formatted strong.comment-mention, .feed-comment-preview p strong.comment-mention {
  color: #2454c7;
  font-weight: 700;
}

/* Compact workspace spacing without scaling text or hiding overflowed content. */
.flow-notice { height: 42px; }
.flow-main { padding-top: 18px; padding-bottom: 28px; }
.flow-main .page-head { margin-bottom: 14px; }
.flow-side .company-logo { height: 54px; margin-bottom: 10px; }
.flow-side .new-project { margin-bottom: 9px; }
.flow-side .flow-nav { padding-block: 5px; min-height: 32px; }
.side-scroll { margin-top: 5px; padding-bottom: 8px; }
.flow-side .flow-section-title { margin-top: 5px; padding-block: 8px; }
.flow-side .recent-item { padding-block: 5px; }
.dashboard-greeting { margin-bottom: 12px; }
.dashboard-greeting p { margin-top: 5px; }
.quick-links { margin-block: 10px 14px; }
.quick-links button { gap: 5px; }
.quick-links button > span { width: 38px; height: 38px; font-size: 23px; }
.workspace-banner { min-height: 56px; margin-bottom: 12px; padding: 8px 16px; gap: 12px; }
.workspace-banner > span { width: 38px; height: 38px; border-radius: 10px; font-size: 22px; flex-shrink: 0; }
.workspace-banner p { margin-top: 3px; }
.dashboard-card { height: clamp(165px, calc((100dvh - 365px) / 2), 245px); padding: 14px 18px; }
.flow-main.flow-work-main { padding-bottom: 0; }
.flow-main.project-main { padding-bottom: 24px; }
.project-top { min-height: 64px; padding-block: 8px; }
.project-card { min-height: 165px; padding: 16px; }
.project-grid { gap: 12px; }
.dashboard-card > header { margin-bottom: 8px; }
.dashboard-panel-scroll { overflow-y: auto; }
.dashboard-project, .dashboard-task { min-height: 36px; padding-block: 5px; }
.org-panel, .chat-panel { padding: 12px 14px; }
.org-panel header, .org-panel .search, .org-company { margin-bottom: 8px; }
.org-panel .search, .chat-search input { font-size: 13px; }
#org-content {
  grid-template-rows: minmax(0, var(--org-tree-size, 56%)) 16px minmax(0, 1fr);
  gap: 0;
}
#org-content > .org-tree, #org-content > .org-people {
  overscroll-behavior: contain;
}
#org-content > .org-people {
  border-top: 0;
  padding: 0 0 64px;
}
.org-splitter {
  display: grid;
  place-items: center;
  border-block: 1px solid #e3dde8;
  background: #f8f6fb;
  cursor: row-resize;
  touch-action: none;
  user-select: none;
}
.org-splitter::after {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: #8d78ad;
}
.org-splitter:hover,
.org-splitter:focus-visible {
  background: #eee7fa;
}
.org-splitter:focus-visible {
  outline: 2px solid #6943d1;
  outline-offset: -2px;
}
.org-team {
  display: block;
  margin-block: 4px;
  padding: 4px 8px;
  text-align: start;
  font-size: 12px;
}
.org-member-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding-block: 8px;
  background: white;
  font-size: 13px;
}
.org-member-heading span { color: #756b80; }
.org-person > .person-chat-action:disabled {
  color: #665873;
  background: #f6f4f8;
  border-color: #e1dbe6;
}
.comment-bubble-icon {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: 0.98em;
  height: 0.75em;
  margin-inline-end: 0.25em;
  border: 1px solid currentColor;
  border-radius: 2px;
  vertical-align: -0.02em;
}
.comment-bubble-icon::after {
  position: absolute;
  inset-inline-start: 0.16em;
  top: 100%;
  width: 0.23em;
  height: 0.18em;
  border-inline-start: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  transform: skewY(-31deg);
  transform-origin: top left;
  content: "";
}
#directory-view { padding: 12px 16px; }
#directory-view > .org-tree { min-height: 0; max-height: 28vh; }
#directory-view > .org-people { margin-top: 5px; padding-block: 4px; }
.org-unassigned { margin-block: 3px; }
.org-person { gap: 9px; padding: 5px 0; }
.org-person > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.org-person strong { font-size: 13px; }
.org-person small { font-size: 12px; margin-top: 2px; color: #756b80; }
.org-person .avatar, .chat-room-row .chat-avatar { width: 30px; height: 30px; }
.chat-tabs { padding-block: 4px; margin-bottom: 6px; }
.chat-room-row { padding-block: 7px; }
.chat-room-row strong { font-size: 13px; }
.chat-room-row small { margin-top: 2px; color: #696273; }
.person-chat-action { flex: 0 0 auto; border: 1px solid #dbd0f8; border-radius: 6px; padding: 4px 9px; color: #5231a6; background: #f6f1ff; font-size: 12px; line-height: 1.5; }
.person-chat-action:hover, .chat-contact-row:hover .person-chat-action { background: #eae0ff; }
@media (min-width: 780px) {
  .flow-content:has(> .flow-main > #directory-view) {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
  }
  .flow-content:has(> .flow-main > #directory-view) > .flow-notice { flex: none; }
  .flow-main:has(> #directory-view) {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: 0;
  }
  .flow-main:has(> #directory-view) > :is(.page-head, #org-page-search) { flex: none; }
  #directory-view {
    display: grid;
    flex: 1;
    min-height: 120px;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 14px;
  }
  #directory-view > :is(.org-tree, .org-people) {
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
  #directory-view > .org-tree { max-height: none; }
  #directory-view > .org-people {
    border-top: 0;
    border-left: 1px solid #e3dde8;
    margin-top: 0;
    padding-left: 14px;
  }
}
@media (max-width: 780px) {
  .dashboard-card { height: 180px; }
  .flow-side .flow-nav { min-height: 38px; }
}

.entra-login { display: block; margin-top: 12px; text-align: center; text-decoration: none; }

.admin-language {
  display: grid;
  gap: 6px;
  padding: 12px clamp(12px, 2vw, 24px);
  color: #fff;
  font-size: 13px;
}
.admin-language select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #bfc5d0;
  border-radius: 6px;
  padding: 4px 8px;
  background: #fff;
  color: #242831;
}

.flow-top .admin-language {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: inherit;
  white-space: nowrap;
}
.flow-top .admin-language select {
  width: auto;
  min-height: 28px;
}
@media (max-width: 680px) {
  .flow-top .admin-language span { position: absolute; clip-path: inset(50%); }
}

/* Company and product identity on the login screen. */
.login-art .company-login-logo {
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  min-height: 96px;
  padding: 18px 28px;
  border-radius: 18px;
  box-shadow: 0 14px 36px #10162f24;
}
.company-login-logo img { flex: 0 1 228px; min-width: 0; }
.login-product {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  padding-left: clamp(18px, 2vw, 32px);
  border-left: 1px solid #e7e5f4;
  line-height: 1.15;
}
.login-product strong {
  font-family: system-ui, 'Malgun Gothic', sans-serif;
  font-size: clamp(34px, 3.2vw, 58px);
  font-weight: 850;
  letter-spacing: -.05em;
  color: #6440db;
}
@supports (-webkit-background-clip: text) {
  .login-product strong {
    background: linear-gradient(115deg, #783ae5 12%, #4e52df 58%, #087bc1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.login-product small {
  margin-top: 7px;
  color: #665d91;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .16em;
  white-space: nowrap;
}

/* Dashboard layout preferences */
#main[data-dashboard-theme]:not([data-dashboard-theme="default"]) {
  background: var(--dashboard-tint);
  border-radius: 18px;
}
[data-dashboard-theme="sky"] { --dashboard-tint: #eaf2fc; }
[data-dashboard-theme="mint"] { --dashboard-tint: #e6f2ed; }
[data-dashboard-theme="sand"] { --dashboard-tint: #f6eee1; }
.dashboard-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  flex: 0 0 auto;
}
.dashboard-header-actions > small {
  color: #545e71;
  font-size: 11px;
}
.dashboard-settings-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}
.dashboard-settings-group > legend {
  margin-bottom: 8px;
  font-weight: 700;
}
.dashboard-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dashboard-theme-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.dashboard-theme-swatch {
  width: 15px;
  height: 15px;
  border: 1px solid #8490a0;
  border-radius: 4px;
  background: var(--dashboard-tint, #f4f0fa);
}
.dashboard-widget-options {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dashboard-widget-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.dashboard-widget-option > label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.dashboard-widget-order {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}
.dashboard-widget-order > .btn {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}
@media (max-width: 540px) {
  .dashboard-greeting {
    flex-wrap: wrap;
    gap: 8px;
  }
  .dashboard-header-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }
}

.admin-toolbar select {
  margin-inline-start: 6px;
  padding: 7px 9px;
  border: 1px solid #d9d5df;
  border-radius: 4px;
  background: white;
}
.admin-download { text-decoration: none; }
.admin-row-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.admin-member-count {
  min-width: 42px;
  color: #5231a6;
}
.admin-dept-roster {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-dept-roster li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid #ece8ef;
}

.admin-project-title {
  color: #5336aa;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.admin-project-summary > section { margin-block: 16px; }
.admin-project-summary fieldset {
  min-inline-size: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.admin-project-manager-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block: 8px;
}
.admin-project-manager-add select { max-width: 100%; }
.admin-project-people { max-height: 240px; }
.admin-project-people table { min-width: 380px; width: 100%; }
.admin-project-people th, .admin-project-people td { padding: 7px; }
.admin-project-people small { display: block; overflow-wrap: anywhere; }
.admin-project-people td .btn { margin-inline-start: 6px; }
#admin-project-archive { margin-block-start: 14px; }

.admin-controls { max-width: 100%; }
.admin-controls fieldset { margin: 0; border: 0; padding: 0; display: grid; gap: 14px; justify-items: start; }
.admin-control-switch { display: flex; gap: 8px; align-items: baseline; }
.admin-control-number { width: min(100%, 360px); }
.admin-controls-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.admin-controls-table { max-width: 100%; overflow: auto; }
.admin-controls-table td { white-space: pre-wrap; overflow-wrap: anywhere; }
#ieum-watermark { position: fixed; inset: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: center; text-align: center; color: #302348; opacity: .14; font-size: clamp(10px,1.2vw,18px); pointer-events: none; z-index: 9999; overflow: hidden; user-select: none; }
#ieum-watermark span { transform: rotate(-22deg); overflow-wrap: anywhere; }
@media print { .hide-protected-print body { visibility: hidden !important; } }

.dashboard-card-actions { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dashboard-card-actions form { margin: 0; }
.dashboard-card-actions input { width: clamp(55px, 9vw, 125px); min-width: 0; font: inherit; padding: 3px 7px; border: 1px solid #ded7e9; border-radius: 5px; }
.dashboard-card-actions button { flex: none; }
.dashboard-card header { flex-wrap: wrap; }
.dashboard-file { color: inherit; text-decoration: none; }
.dashboard-task .top-action-icon { width: 15px; height: 15px; flex: none; }


/* Keep the reading, subtask, and discussion surfaces distinct in project views. */
.flow-feed-card,
.entity-drawer {
  --post-text: #231e2f;
  --post-muted: #61596e;
  --post-border: #d7d0e3;
  --subtask-border: #afcfc6;
  --discussion-border: #cbbde7;
}

.flow-feed-card { border-color: #cfc5dc; }
.flow-feed-card > header { padding-bottom: 10px; }
.feed-title,
.entity-drawer .entity-title-row { border-bottom-color: var(--post-border); }
.feed-title .entity-heading,
.entity-drawer .entity-title { font-weight: 750; }
.feed-title .completed-title,
.entity-drawer .completed-title { color: var(--post-muted); }
.flow-feed-card .task-kind-label,
.entity-drawer .task-kind-label {
  border-color: var(--post-border);
  background: #f4f0f8;
  color: #4d3767;
  font-weight: 700;
}

.flow-feed-card .feed-body,
.entity-drawer .entity-body,
.post > .formatted {
  padding: 14px 16px;
  border: 1px solid #d7d0e3;
  border-inline-start: 3px solid #9484af;
  border-radius: 7px;
  background: #fbfafc;
  color: #231e2f;
  overflow-wrap: anywhere;
}
:is(.feed-body, .entity-body, .post > .formatted):empty { display: none; }
.flow-feed-card .task-extra-fields,
.entity-drawer .panel-task-fields,
.entity-drawer .task-extra-fields {
  padding: 12px 15px;
  border: 1px solid var(--post-border);
  border-radius: 7px;
  background: #f8f5fb;
}
.entity-drawer .panel-task-fields { margin: 18px 0 12px; }
.flow-feed-card .task-summary dt,
.entity-drawer .task-summary dt { color: var(--post-muted); font-weight: 650; }
.flow-feed-card .task-summary dd,
.entity-drawer .task-summary dd { font-variant-numeric: tabular-nums; }

.flow-feed-card .feed-subtasks,
.entity-drawer .panel-subtasks {
  container-type: inline-size;
  margin: 22px 0;
  padding: 12px;
  background: #f2f9f7;
  border: 1px solid var(--subtask-border);
  border-inline-start: 3px solid #4e897a;
  border-radius: 8px;
}
.flow-feed-card .feed-subtasks h3,
.entity-drawer .panel-subtasks h3,
.entity-drawer .panel-comments h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 750;
}
.flow-feed-card .feed-subtasks h3,
.entity-drawer .panel-subtasks h3 { color: #19473d; }
.feed-subtasks h3 span,
.panel-subtasks h3 span {
  margin-inline-start: 4px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #dfefe9;
}
:is(.feed-subtasks, .panel-subtasks) .subtask-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  border-color: #c2dad3;
  border-radius: 6px;
  background: #fff;
}
:is(.feed-subtasks, .panel-subtasks) .subtask-line:hover { background: #eaf5f1; }
:is(.feed-subtasks, .panel-subtasks) .subtask-line strong { font-size: 12px; font-weight: 650; }
:is(.feed-subtasks, .panel-subtasks) .subtask-line.is-complete strong,
:is(.feed-subtasks, .panel-subtasks) .subtask-line small {
  color: #536761;
  font-variant-numeric: tabular-nums;
}
:is(.feed-subtasks, .panel-subtasks) .subtask-line small { white-space: nowrap; }

.flow-feed-card .feed-comments-area {
  border-top: 2px solid var(--discussion-border);
  background: #f6f2fc;
}
.entity-drawer .panel-comments {
  padding: 14px;
  border: 1px solid var(--discussion-border);
  border-inline-start: 3px solid #8a70b7;
  border-radius: 8px;
  background: #f6f2fc;
}
.entity-drawer .panel-comments h3 { color: #412c66; }
.flow-feed-card .feed-comment-preview,
:is(.entity-drawer .panel-comments, .flow-feed-card .feed-comments-area) .comment {
  padding: 11px 12px;
  border: 1px solid #dcd2ed;
  border-radius: 6px;
  background: #fff;
}
.flow-feed-card .feed-comment-preview { margin-bottom: 12px; }
.flow-feed-card .feed-comment-preview .avatar { flex-shrink: 0; }
.flow-feed-card .feed-comment-preview > div { min-width: 0; }
:is(.entity-drawer .panel-comments, .flow-feed-card .feed-comments-area) .comment + .comment { margin-top: 9px; }
:is(.entity-drawer .panel-comments, .flow-feed-card .feed-comments-area) .comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
:is(.feed-comment-preview, [data-comment-rows] .comment-meta) strong {
  font-weight: 750;
  color: var(--post-text);
}
:is(.feed-comment-preview, [data-comment-rows] .comment-meta) small,
:is(.feed-author, .entity-author) small { color: var(--post-muted); }
:is(.entity-drawer .panel-comments, .flow-feed-card .feed-comments-area) .comment-body {
  margin: 6px 0 8px;
  font-size: 13px;
  color: var(--post-text);
  overflow-wrap: anywhere;
}
:is(.entity-drawer .panel-comments, .flow-feed-card .feed-comments-area) .replies {
  margin: 9px 0 0 6px;
  padding: 0 0 0 10px;
  border-inline-start: 2px solid #b8a4d8;
}
:is(.entity-drawer .panel-comments, .flow-feed-card .feed-comments-area) .replies:empty { display: none; }
:is(.entity-drawer .panel-comments, .flow-feed-card .feed-comments-area) .comment-reply { background: #faf7fd; }
.entity-drawer .entity-comment-compose { border-top-color: var(--discussion-border); }

@container (max-width: 340px) {
  :is(.feed-subtasks, .panel-subtasks) .subtask-line {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 3px 7px;
  }
  :is(.feed-subtasks, .panel-subtasks) .subtask-line small { grid-column: 2; }
  :is(.feed-subtasks, .panel-subtasks) .subtask-line .avatar { grid-area: 1 / 3 / 3; }
}

.work-date-field {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
.work-date-field input[type="date"] { min-width: 0; }
.work-date-field .work-weekday { color: #514265; font-size: 11px; font-weight: 650; }


.comment-list-controls:has(button:not([hidden])) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}
.comment-list-controls > .btn,
[data-newer-comments] {
  color: #4a3275;
  background: #fff;
  border-color: #c4b4df;
  font-weight: 650;
}
[data-newer-comments]:not([hidden]) { margin-top: 10px; }
[data-comment-rows]:not([hidden]) + .feed-inline-comment,
[data-feed-discussion]:has([data-comment-rows]:not([hidden])) + .feed-inline-comment { margin-top: 12px; }
.comment-editor {
  margin-top: 9px;
  padding: 8px;
  border: 1px solid #dcd2ed;
  border-radius: 6px;
  background: #fcfaff;
}
.comment-editor textarea { width: 100%; resize: vertical; }
.comment-editor [data-edit-error],
[data-comment-error] { color: #a2253b; }


.feed-title .feed-title-static {
  cursor: default;
  overflow-wrap: anywhere;
}

.feed-subtask-actions:has(button:not([hidden])) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.feed-subtask-actions > .btn { font-size: 11px; padding: 5px 9px; }

.subtask-assignee {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: min(26vw, 140px);
  color: #36594f;
  font-size: 11px;
  min-width: 0;
}
.subtask-assignee .avatar { flex-shrink: 0; }
.subtask-assignee > span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.subtask-line:focus-visible { outline: 2px solid #4f776b; outline-offset: 2px; }

@container (max-width: 340px) {
  :is(.feed-subtasks, .panel-subtasks) .subtask-line .subtask-assignee { grid-area: 1 / 3 / 3; }
  .subtask-assignee { max-width: 72px; }
}

dialog.entity-drawer .task-drawer-body {
  display: block;
  padding: clamp(14px, 3vw, 28px);
  overflow-y: auto;
}
dialog.entity-drawer:has(.task-drawer-body)::backdrop { background: #21163126; }
.task-drawer-parent {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #c2dad3;
  background: #f2f9f7;
  overflow-wrap: anywhere;
}
.task-drawer-parent > span { color: #47655d; font-size: 11px; }


fieldset[data-task-assignees] {
  display: block;
  min-width: 0;
  max-height: none;
  overflow: visible;
}
.task-assignee-list {
  display: grid;
  gap: 5px;
  max-height: min(240px, 32vh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: 4px 8px 4px 4px;
}
.task-assignee-list > label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.task-assignee-list label > span { overflow-wrap: anywhere; }
.task-assignee-list small { color: #625a70; }
.task-assignee-list input { flex-shrink: 0; }
.task-assignee-list:focus-visible { outline: 2px solid #6e54ad; outline-offset: 2px; }

.ai-launcher { cursor: grab; touch-action: none; user-select: none; }
.ai-launcher.ai-launcher-dragging { cursor: grabbing; }
.ai-launcher-dock:has(.ai-launcher-dragging) .ai-launcher-reset { visibility: hidden; }
.ai-launcher-dock.ai-launcher-moved {
  left: var(--ai-launcher-left);
  top: var(--ai-launcher-top);
  right: auto;
  bottom: auto;
}
body:has(dialog[open] .modal-ai-launcher-dock) > .ai-launcher-dock { visibility: hidden; }

.flow-side .mobile-language { display: none; }

@media (max-width: 780px) {
  :root {
    --workspace-top: calc(96px + env(safe-area-inset-top, 0px));
    --phone-left: max(12px, env(safe-area-inset-left, 0px));
    --phone-right: max(12px, env(safe-area-inset-right, 0px));
    --phone-bottom: env(safe-area-inset-bottom, 0px);
  }

  .flow-top {
    display: grid;
    grid-template: 46px 42px / 40px minmax(0, 1fr) auto;
    align-content: end;
    gap: 0 3px;
    height: var(--workspace-top);
    padding: 0 max(8px, env(safe-area-inset-right, 0px)) 6px max(8px, env(safe-area-inset-left, 0px));
  }
  .sidebar-toggle { width: 40px; height: 44px; border-radius: 8px; }
  .flow-word { font-size: 16px; white-space: nowrap; }
  .flow-top .admin-language { display: none; }
  .flow-side .mobile-language { display: grid; padding: 8px 13px; color: inherit; }
  .flow-top .top-actions { grid-area: 1 / 3; gap: 0; justify-content: flex-end; }
  .flow-top .top-actions > button,
  .flow-top .top-actions > :is(#drive-launcher, #chat-toggle, #org-toggle, #notifications-toggle) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 9.5vw, 44px);
    min-width: clamp(36px, 9.5vw, 44px);
    height: 44px;
    border-radius: 8px;
  }
  .flow-top .top-action-icon { width: 21px; height: 21px; }
  .top-controls { grid-area: 2 / 1 / 3 / -1; min-width: 0; width: 100%; }
  .top-controls > button { display: none; }
  .top-controls #global-search {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 6px 0 12px;
  }
  .top-controls #global-search input { font-size: 16px; text-align: start; }
  .top-controls #global-search input::placeholder { font-size: 13px; }
  .top-controls #global-search button { flex: 0 0 42px; min-height: 40px; }

  .flow-side {
    top: var(--workspace-top);
    width: min(280px, calc(100% - 48px));
    padding: 12px 8px calc(8px + var(--phone-bottom)) max(8px, env(safe-area-inset-left, 0px));
    visibility: hidden;
  }
  .flow-app.sidebar-open .flow-side { visibility: visible; }
  .flow-app.sidebar-open .sidebar-backdrop { inset-block-start: var(--workspace-top); }
  .flow-app.sidebar-open .flow-content { pointer-events: none; }
  .flow-side .flow-nav, .flow-side .new-project, .flow-side .recent-item { min-height: 44px; font-size: 13px; }
  .flow-content { margin: 0; padding-top: var(--workspace-top); min-height: 100dvh; }
  .flow-content > .flow-notice { display: none; }
  .flow-main, .flow-main.project-main {
    min-width: 0;
    padding-inline: var(--phone-left) var(--phone-right);
    padding-bottom: calc(64px + var(--phone-bottom));
  }
  .flow-main .page-head { flex-wrap: wrap; gap: 12px; }
  .flow-main .page-head > * { min-width: 0; }
  .flow-main .page-head h1 { font-size: 22px; overflow-wrap: anywhere; }
  .flow-main :is(.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select),
  :is(.login-card, dialog, .admin-main, .drive-main) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }

  .dashboard-card { height: 235px; padding: 14px; }
  .dashboard-card-actions input { width: min(28vw, 115px); font-size: 16px; }
  .dashboard-project, .dashboard-task { min-height: 44px; }
  .quick-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 14px;
    margin-block: 12px 16px;
    padding: 4px 3px 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #9e8bb9 #f0eaf6;
  }
  .quick-links button {
    flex: 1 0 auto;
    white-space: nowrap;
    font-size: 12px;
    min-height: 44px;
  }
  .quick-links::-webkit-scrollbar { height: 6px; }
  .quick-links::-webkit-scrollbar-track { background: #f0eaf6; border-radius: 8px; }
  .quick-links::-webkit-scrollbar-thumb { background: #9e8bb9; border-radius: 8px; }
  .workspace-banner > div { min-width: 0; overflow-wrap: anywhere; }

  .my-project-controls { justify-content: flex-start; margin: 0; width: 100%; }
  .my-project-choice { min-width: 0; }
  .my-project-choice select, .project-view-switch .btn { min-height: 44px; }
  .my-project-choice select { font-size: 16px; }
  .my-project-star { width: 44px; height: 44px; flex-basis: 44px; }
  .my-project-card-with-star .project-card { padding-right: 62px; }
  .project-card h3 { overflow-wrap: anywhere; }
  .my-project-row-title > strong, .project-feed-row-title > strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
  .my-project-row, .project-feed-row { min-height: 62px; }

  .flow-main.project-main { padding-inline: 0; }
  .project-workspace .project-heading { top: var(--workspace-top); }
  .project-top { min-height: 0; padding: 10px var(--phone-right) 8px var(--phone-left); }
  .project-identity, .project-identity > div { min-width: 0; }
  .project-identity h1 { overflow-wrap: anywhere; }
  .project-header-actions { max-width: none; justify-content: flex-start; }
  .project-header-actions :is(.btn, .member-pill, .project-invite) {
    min-height: 40px;
    font-size: 12px;
    padding: 6px 9px;
  }
  .project-tabs {
    height: auto;
    min-height: 45px;
    padding-inline: var(--phone-left) var(--phone-right);
    overflow-x: auto;
  }
  .project-tab { flex: none; min-height: 44px; font-size: 13px; padding-inline: 12px; }
  .project-layout { padding-inline: var(--phone-left) var(--phone-right); }
  .feed-list-heading { flex-wrap: wrap; gap: 6px; }
  .project-feed-actions { flex-wrap: wrap; }
  .flow-feed-card > header, .feed-card-body { padding-inline: 13px; }
  .feed-comments-area { padding: 12px; }
  .feed-composer > div button { min-height: 44px; font-size: 12px; }
  .composer-prompt { font-size: 13px; }
  .feed-actions, .detail-actions, .entity-author-actions { flex-wrap: wrap; }
  .feed-author > div, .entity-author > div, .feed-title .entity-heading, .entity-title { min-width: 0; overflow-wrap: anywhere; }
  .feed-title .entity-heading, .entity-title { font-size: 17px; }
  .flow-feed-card .feed-body, .entity-drawer .entity-body { font-size: 14px; line-height: 1.65; }
  .formatted :is(img, video) { max-width: 100%; height: auto; }
  .formatted :is(pre, table) { display: block; max-width: 100%; overflow-x: auto; }
  .task-summary { grid-template-columns: 66px minmax(0, 1fr); gap: 12px 8px; }
  .task-summary dd { min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
  .task-summary progress { max-width: 100%; }
  .task-status-select { max-width: 100%; min-height: 38px; }
  .feed-inline-comment { min-width: 0; }
  .feed-comment-fields { min-width: 0; }
  :is(.feed-inline-comment, .entity-comment-compose, .comment-editor, .chat-compose) textarea {
    font-size: 16px;
  }
  .feed-inline-comment textarea { min-height: 44px; }
  .feed-inline-comment .btn, .comment-list-controls .btn, .comment-editor .btn { min-height: 40px; }
  :is(.feed-subtasks, .panel-subtasks) .subtask-line { min-height: 44px; }

  dialog { max-height: calc(100dvh - 20px - var(--phone-bottom)); }
  dialog :is(.entity-panel-header, .modal-head) .close {
    min-width: 44px;
    min-height: 44px;
    flex: none;
  }
  dialog.entity-drawer[open] {
    inset: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
  }
  .entity-panel-header, dialog.entity-drawer .modal-head {
    padding: calc(4px + env(safe-area-inset-top, 0px)) var(--phone-right) 4px var(--phone-left);
  }
  .entity-scroll, dialog.entity-drawer .task-drawer-body {
    padding: 14px var(--phone-right) 20px var(--phone-left);
    overscroll-behavior: contain;
  }
  .entity-comment-compose {
    padding: 8px var(--phone-right) calc(8px + var(--phone-bottom)) var(--phone-left);
  }
  .entity-comment-compose > div { padding-right: 0; }
  .entity-comment-compose > div > .btn { min-height: 44px; font-size: 13px; }
  .entity-comment-compose textarea { min-height: 44px; }
  .modal-footer { padding-right: 0; }
  .task-assignee-list > label { align-items: center; min-height: 38px; }
  .mention-suggestions button { min-height: 40px; }

  :is(.org-panel, .chat-panel, .flow-notification-panel) {
    top: var(--workspace-top);
    inset-inline: 0;
    width: auto;
    max-width: none;
    border-inline-start: 0;
    padding: 10px var(--phone-right) calc(10px + var(--phone-bottom)) var(--phone-left);
    overscroll-behavior: contain;
  }
  :is(.org-panel, .chat-panel, .flow-notification-panel) header > button { min-width: 44px; min-height: 44px; }
  :is(.org-panel .search, #org-page-search, .chat-search input, .notice-search input) { font-size: 16px; }
  .chat-tabs button, .chat-filters button, .notice-filters button { min-height: 40px; }
  .chat-tabs, .chat-filters, .notice-filters { flex-wrap: wrap; }
  .chat-file-compose { padding: 10px 0; }
  .chat-room-row, .notice-row, .org-person { min-height: 44px; }
  .person-chat-action { min-height: 38px; }
  #org-content > .org-people { padding-bottom: 4px; }
  #directory-view { display: block; padding-inline: 12px; }
  #directory-view > .org-tree { max-height: min(38dvh, 320px); }
  .org-team { min-height: 42px; }

  .ai-launcher-dock {
    right: var(--phone-right);
    bottom: calc(10px + var(--phone-bottom));
  }
  body:has(dialog.entity-drawer[open], .flow-app.sidebar-open, #org-panel:not([hidden]), #chat-panel:not([hidden]), #notification-panel)
    > .ai-launcher-dock,
  dialog[open] .modal-ai-launcher-dock { visibility: hidden; }
  #toast { width: max-content; max-width: calc(100% - 24px); bottom: calc(22px + var(--phone-bottom)); }

  .flow-main.flow-work-main { padding: 14px var(--phone-right) 0 var(--phone-left) !important; }
  .flow-work-view, .flow-personal-view { height: calc(100dvh - var(--workspace-top) - 16px - var(--phone-bottom)); }
  .flow-work-view h1, .flow-personal-view h1 { margin-bottom: 14px; }
  .work-tools { max-width: 100%; }
  .work-tools button, .work-tools select { min-height: 40px; }
  .work-tools select[data-setting="scope"] { min-width: min(148px, 100%); max-width: 100%; }
  .work-divider { display: none; }
  .work-chips { min-height: 0; padding-block: 6px; }
  .work-popover { top: 100%; }
  .work-band { max-width: calc(100vw - 44px); }
  .flow-board-scroll { overscroll-behavior: contain; }
  .flow-task-table .work-pin { position: static; left: auto !important; }
  .flow-task-table th.work-pin { position: sticky; }
  .flow-work-view > [data-action="more"], .flow-personal-view > .btn { min-height: 40px; }
  .personal-searchbar { height: 44px; }
  .personal-searchbar input, .work-chips input { font-size: 16px; }
  .flow-personal-view .personal-row { grid-template-columns: 50px minmax(0, 1fr); }
  .flow-personal-view :is(.personal-row time, .personal-author) { display: none; }

  .flow-app .ref-project-view {
    height: max(300px, calc(100dvh - var(--workspace-top) - var(--project-header-height, 140px)));
    min-width: 0;
  }
  .flow-app :is(.ref-toolbar, .ref-search) { flex-wrap: wrap; }
  .flow-app .ref-search input { max-width: 100%; font-size: 16px; }
  .flow-app .ref-scroll { min-width: 0; }
  .flow-app .project-member-popover {
    inset-block-start: calc(var(--workspace-top) + 4px);
    max-height: calc(100dvh - var(--workspace-top) - 12px - var(--phone-bottom));
  }

  .login-form { padding-inline: var(--phone-left) var(--phone-right); }
  .login-card .entra-login { min-height: 44px; }
}

@media (max-width: 540px) {
  .dashboard-projects { grid-template-columns: minmax(0, 1fr); }
  .my-project-row { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 9px; padding: 10px; }
  .my-project-row .project-symbol { grid-row: span 2; }
  .my-project-row-meta { grid-column: 2; justify-content: flex-start; }
  .project-top { flex-direction: column; align-items: stretch; gap: 6px; }
  .project-top .project-header-actions { align-self: flex-start; }
  .project-feed-row { grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; }
  .project-feed-row > :nth-child(3) { grid-column: 2; justify-self: start; }
  .project-feed-row-title small { white-space: normal; }
  .flow-feed-card .task-extra-fields, .entity-drawer :is(.panel-task-fields, .task-extra-fields) { padding: 10px; }
  .feed-inline-comment .avatar { display: none; }
  .entity-drawer .panel-comments { padding: 10px; }
  .task-drawer-body .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 650px) {
  .admin-workspace, #root .drive-admin {
    height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-workspace { grid-template-rows: auto minmax(0, 1fr); }
  .admin-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .admin-brand { font-size: 22px; padding: 8px var(--phone-left); background: transparent; }
  .admin-navigation .admin-language { padding: 4px var(--phone-right) 4px 4px; }
  .admin-navigation :is(nav, footer), #root .drive-navigation nav {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 var(--phone-right) 4px var(--phone-left);
    overflow-x: auto;
    scrollbar-gutter: auto;
  }
  .admin-navigation section, #root .drive-navigation section {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
  }
  .admin-navigation section h2, #root .drive-navigation section h2 { margin: 0 4px 0 0; font-size: 12px; }
  .admin-navigation nav button, #root .drive-navigation nav button { width: auto; min-height: 42px; padding: 6px 8px; }
  .admin-navigation footer { padding-block: 3px; }
  .admin-navigation footer button { width: auto; min-height: 40px; }
  .admin-main, #root .drive-main {
    padding: 14px var(--phone-right) calc(62px + var(--phone-bottom)) var(--phone-left);
  }
  .admin-toolbar > * { max-width: 100%; }
  #root .drive-admin { grid-template-rows: auto auto minmax(0, 1fr); }
  #root .drive-header { gap: 6px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  #root .drive-header > strong { font-size: 20px; }
  #root .drive-return { margin-block: 3px; min-height: 40px; }
}
