:root {
  --zw-topbar: #edf3f8;
  --zw-sidebar: #edf3f8;
  --zw-surface: #ffffff;
  --zw-soft: #f6f7f8;
  --zw-hover: rgba(36, 48, 58, 0.065);
  --zw-active: rgba(36, 48, 58, 0.09);
  --zw-line: #e4e7ea;
  --zw-line-strong: #d7dce0;
  --zw-ink: #25282b;
  --zw-muted: #858c92;
  --zw-danger: #b42318;
  --zw-sidebar-width: 320px;
  --zw-right-width: 286px;
  --zw-radius: 8px;
  --zw-shadow-menu: 0 12px 34px rgba(18, 25, 31, 0.14);
  --zw-shadow-composer: 0 1px 2px rgba(18, 25, 31, 0.04), 0 10px 30px rgba(18, 25, 31, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  color: var(--zw-ink);
  background: var(--zw-surface);
  font-family: "Google Sans", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid #6f83ad;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 430, "GRAD" 0, "opsz" 20;
}

.filework-topbar {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 14px;
  border-bottom: 1px solid #dce4eb;
  color: #8a9197;
  background: var(--zw-topbar);
  user-select: none;
}

.window-controls,
.filework-menu {
  display: flex;
  align-items: center;
}

.window-controls {
  gap: 16px;
}

.filework-menu {
  gap: 22px;
}

.window-controls .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings: "FILL" 0, "wght" 380, "GRAD" 0, "opsz" 20;
}

.filework-menu span {
  font-size: 13px;
  font-weight: 430;
}

.filework-shell,
.workspace,
.filework-app {
  height: calc(100dvh - 40px);
  min-height: 0;
}

.filework-app {
  display: grid;
  grid-template-columns: var(--zw-sidebar-width) minmax(0, 1fr);
  background: var(--zw-surface);
}

.project-sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 8px 0;
  border-right: 1px solid #dce4eb;
  background: var(--zw-sidebar);
}

.sidebar-head,
.sidebar-title-row,
.task-head,
.task-left,
.task-actions,
.task-toolbar,
.file-editor-head,
.environment-head,
.progress-copy,
.plan-topline {
  display: flex;
  align-items: center;
}

.sidebar-head,
.sidebar-title-row,
.task-head,
.file-editor-head,
.environment-head,
.progress-copy,
.plan-topline {
  justify-content: space-between;
}

.sidebar-head {
  min-height: 42px;
  padding: 0 7px 6px 10px;
}

.brand {
  color: #1d2227;
  text-decoration: none;
  font-size: 16px;
  font-weight: 610;
}

.icon-btn,
.text-icon-btn,
.secondary-btn,
.primary-btn,
.file-menu-btn,
.dashboard-card-delete {
  border: 0;
  background: transparent;
}

.icon-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
}

.icon-btn:hover,
.text-icon-btn:hover,
.file-menu-btn:hover,
.dashboard-card-delete:hover {
  background: var(--zw-hover);
}

.icon-btn .material-symbols-rounded {
  font-size: 19px;
}

.sidebar-actions {
  display: grid;
  gap: 2px;
  margin-bottom: 15px;
}

.sidebar-action,
.project-search {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: #343a3f;
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  font-weight: 430;
}

.sidebar-action:hover,
.sidebar-action.active {
  background: var(--zw-hover);
}

.sidebar-action .material-symbols-rounded,
.project-search .material-symbols-rounded {
  font-size: 19px;
}

.project-search:focus-within {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px #d1dae1;
}

.project-search input {
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.project-search input::placeholder {
  color: #6f7880;
}

.sidebar-title-row {
  min-height: 32px;
  padding: 0 9px;
}

.sidebar-title-row h1 {
  color: #899198;
  font-size: 12px;
  font-weight: 510;
}

.sidebar-title-row span {
  color: #899198;
  font-size: 11px;
}

.project-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 86, 95, 0.28) transparent;
}

.project-group {
  display: grid;
  gap: 1px;
  margin-bottom: 7px;
}

.project-item {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border-radius: 7px;
  color: #32383d;
  background: transparent;
}

.project-item:hover,
.project-item.active,
.project-child-item:hover,
.project-child-item.active {
  background: var(--zw-active);
}

.project-open-btn {
  min-width: 0;
  min-height: 36px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.project-open-btn .material-symbols-rounded {
  font-size: 19px;
}

.project-item-menu-btn {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #666f76;
  background: transparent;
  opacity: 0;
}

.project-item-menu-btn .material-symbols-rounded {
  font-size: 17px;
}

.project-item:hover .project-item-menu-btn,
.project-item.active .project-item-menu-btn,
.project-item-menu-btn:focus-visible {
  opacity: 1;
}

.project-item-menu-btn:hover {
  background: rgba(36, 48, 58, 0.08);
}

.project-open-btn strong {
  display: block;
  overflow: hidden;
  color: #30363b;
  font-size: 13px;
  font-weight: 470;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-child-list {
  display: grid;
  gap: 1px;
  padding-left: 39px;
}

.project-child-item {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: #4b5359;
  background: transparent;
  text-align: left;
}

.project-child-item span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-child-item.muted {
  color: #899198;
}

.empty-list {
  padding: 10px 9px;
  color: #7f878d;
  font-size: 12px;
  line-height: 1.45;
}

.filework-account-card {
  width: calc(100% + 16px);
  min-height: 62px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  margin-left: -8px;
  padding: 7px 12px;
  border: 0;
  border-top: 1px solid #dce4eb;
  color: #2f353a;
  background: rgba(255, 255, 255, 0.26);
  text-align: left;
}

.filework-account-card:hover {
  background: rgba(255, 255, 255, 0.58);
}

.filework-account-avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b49254;
  font-size: 11px;
  font-weight: 540;
}

.filework-account-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.filework-account-copy strong,
.filework-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filework-account-copy strong {
  font-size: 13px;
  font-weight: 470;
}

.filework-account-copy small {
  color: #8a9298;
  font-size: 11px;
}

.account-chevron {
  color: #798187;
  font-size: 17px;
}

.status-message {
  min-height: 0;
  padding: 7px 8px;
  color: #747d84;
  font-size: 11px;
  line-height: 1.35;
}

.status-message:empty {
  display: none;
}

.work-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(560px, 920px) var(--zw-right-width);
  justify-content: center;
  gap: 28px;
  padding: 14px 24px 16px;
  overflow: hidden;
  background: #fff;
}

.empty-state,
.folder-workspace {
  min-width: 0;
  min-height: 0;
  grid-column: 1;
  grid-row: 1;
}

.empty-state {
  overflow-y: auto;
  padding: 44px 0 24px;
}

.project-dashboard {
  width: 100%;
  display: grid;
  gap: 24px;
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px 18px;
  border-bottom: 1px solid #eceef0;
}

.dashboard-kicker {
  margin-bottom: 4px;
  color: #8a9298;
  font-size: 11px;
  font-weight: 520;
}

.dashboard-head h2 {
  margin-bottom: 7px;
  color: #202428;
  font-size: 26px;
  font-weight: 500;
}

.dashboard-head p {
  max-width: 560px;
  color: #777f86;
  font-size: 13px;
  line-height: 1.55;
}

.secondary-btn,
.text-icon-btn {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #dfe3e6;
  border-radius: 7px;
  color: #343a3f;
  background: #fff;
  font-size: 12px;
  font-weight: 480;
}

.secondary-btn:hover {
  background: #f6f7f8;
}

.secondary-btn.compact {
  min-height: 32px;
  padding: 0 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.dashboard-card {
  position: relative;
  min-width: 0;
  min-height: 104px;
  border: 1px solid #e4e7ea;
  border-radius: 8px;
  background: #fff;
}

.dashboard-card:hover {
  border-color: #cfd5da;
  background: #fafafa;
}

.dashboard-card-open {
  width: 100%;
  min-height: 102px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 8px 10px;
  padding: 14px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.dashboard-project-icon {
  grid-row: 1;
  color: #59636b;
  font-size: 22px;
}

.dashboard-project-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-project-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-project-copy span,
.dashboard-card small {
  color: #838b91;
  font-size: 11px;
}

.dashboard-card small {
  grid-column: 2;
}

.dashboard-card-delete {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #777f85;
  opacity: 0;
}

.dashboard-card:hover .dashboard-card-delete,
.dashboard-card:focus-within .dashboard-card-delete {
  opacity: 1;
}

.dashboard-card-delete:hover {
  color: var(--zw-danger);
}

.dashboard-card-delete .material-symbols-rounded {
  font-size: 17px;
}

.dashboard-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed #ccd2d7;
  border-radius: 8px;
  color: #7e868c;
  text-align: center;
  font-size: 13px;
}

.folder-workspace {
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
}

.task-head {
  min-width: 0;
  gap: 16px;
  border-bottom: 1px solid #eceef0;
}

.task-left,
.task-actions {
  min-width: 0;
  gap: 8px;
}

.task-title {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.task-title span {
  overflow: hidden;
  color: #7f878d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-title strong {
  font-size: 14px;
  font-weight: 520;
}

.text-icon-btn {
  border-color: transparent;
  font-size: 12px;
}

.text-icon-btn .material-symbols-rounded {
  font-size: 18px;
}

.folder-workspace-body,
.filework-main-column {
  min-height: 0;
  min-width: 0;
}

.folder-workspace-body {
  padding-top: 10px;
}

.filework-main-column {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.project-editor {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--zw-line);
  border-radius: var(--zw-radius);
  background: #fff;
}

.file-sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 8px;
  overflow: hidden;
  border-right: 1px solid var(--zw-line);
  background: #fafafa;
}

.file-sidebar-head {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 2px;
}

.compact-icon-btn {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.compact-icon-btn .material-symbols-rounded {
  font-size: 16px;
}

.section-title,
.file-editor-head span {
  color: #80888e;
  font-size: 11px;
  font-weight: 500;
}

.file-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(76, 84, 91, 0.25) transparent;
}

.tree-folder-row,
.file-row {
  --indent: calc(var(--depth, 0) * 13px);
  width: 100%;
  min-height: 34px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  color: #41484e;
  background: transparent;
  text-align: left;
}

.tree-folder-row {
  display: grid;
  grid-template-columns: 16px 19px minmax(0, 1fr) auto;
  gap: 5px;
  padding: 0 7px 0 calc(5px + var(--indent));
}

.file-row {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto 16px 26px;
  gap: 5px;
  padding: 3px 3px 3px calc(9px + var(--indent));
  cursor: pointer;
}

.tree-folder-row:hover,
.file-row:hover,
.file-row.active {
  background: #eeeeef;
}

.tree-folder-row .material-symbols-rounded,
.file-row > .material-symbols-rounded:first-child {
  font-size: 17px;
}

.tree-chevron {
  color: #757d83;
  font-size: 15px !important;
}

.tree-name,
.file-main {
  min-width: 0;
}

.tree-name,
.file-main strong {
  overflow: hidden;
  font-size: 12px;
  font-style: normal;
  font-weight: 460;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-main {
  display: grid;
  gap: 1px;
}

.file-main small,
.file-row em,
.tree-folder-row em {
  overflow: hidden;
  color: #8b9298;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-marker {
  color: #747c82;
  font-size: 13px;
}

.pin-marker[hidden] {
  display: block !important;
  visibility: hidden;
}

.file-menu-btn {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  color: #596169;
  opacity: 0;
}

.file-row:hover .file-menu-btn,
.file-row.active .file-menu-btn,
.file-menu-btn[aria-expanded="true"] {
  opacity: 1;
}

.file-menu-btn .material-symbols-rounded {
  font-size: 16px;
}

.file-editor {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  padding: 0 12px 12px;
  background: #fff;
}

.file-editor-head {
  min-width: 0;
  gap: 12px;
}

.file-editor-head > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.file-editor-head strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 510;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-content {
  width: 100%;
  height: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: 0;
  color: #363d43;
  background: #fff;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.62;
  tab-size: 2;
}

.selected-file-content:disabled {
  color: #8a9298;
}

.changed-files-panel {
  padding: 10px 12px;
  border-top: 1px solid #eceef0;
  border-bottom: 1px solid #eceef0;
  background: #fff;
}

.changed-files-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.changed-files-list p {
  color: #4b5359;
  font-size: 12px;
  line-height: 1.5;
}

.changed-files-usage {
  color: #848c92;
  font-size: 10px;
}

.changed-file-pills {
  display: grid;
  gap: 4px;
}

.changed-file-pill {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid #e7e9eb;
  border-radius: 7px;
  color: #3e454a;
  background: #fff;
  text-align: left;
}

.changed-file-pill:hover {
  background: #f7f7f8;
}

.changed-file-pill .material-symbols-rounded {
  font-size: 17px;
}

.changed-file-pill strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 480;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.changed-file-pill em {
  color: #178343;
  font-size: 10px;
  font-style: normal;
}

.task-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(42px, auto) auto;
  gap: 4px 10px;
  padding: 8px 9px;
  border: 1px solid #dadee2;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--zw-shadow-composer);
}

.task-card textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 42px;
  max-height: 132px;
  resize: none;
  padding: 8px 10px 3px;
  border: 0;
  outline: 0;
  color: #31373c;
  background: transparent;
  font-size: 13px;
  line-height: 1.45;
}

.task-card textarea::placeholder {
  color: #8b9298;
}

.task-toolbar {
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 6px;
}

.task-toolbar label {
  display: grid;
}

.task-toolbar label > span {
  display: none;
}

.task-toolbar select {
  min-width: 116px;
  height: 32px;
  padding: 0 30px 0 10px;
  border: 1px solid #e0e3e6;
  border-radius: 7px;
  outline: 0;
  color: #525a60;
  background: #fff;
  font-size: 11px;
}

.task-toolbar select:hover {
  background: #f7f7f8;
}

.primary-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 9px;
  color: #fff;
  background: var(--z-action-gradient, linear-gradient(135deg, #a85f6d, #7863a8 52%, #4f6fbd));
  box-shadow: var(--z-action-shadow, 0 7px 17px rgba(94, 80, 145, 0.2));
  font-size: 11px;
  font-weight: 520;
}

.primary-btn:hover:not(:disabled) {
  filter: brightness(1.04);
}

.primary-btn:disabled {
  cursor: default;
  opacity: 0.42;
  box-shadow: none;
}

.primary-btn .material-symbols-rounded {
  font-size: 18px;
}

.run-estimate {
  grid-column: 1 / -1;
  padding: 2px 9px;
  color: #7d858b;
  font-size: 10px;
}

.environment-panel {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  padding-top: 50px;
}

.environment-card {
  max-height: calc(100dvh - 126px);
  overflow-y: auto;
  padding: 15px;
  border: 1px solid #e5e8ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(18, 25, 31, 0.07);
}

.environment-head {
  margin-bottom: 15px;
  color: #959ca1;
  font-size: 12px;
}

.environment-list {
  display: grid;
  gap: 13px;
}

.environment-list > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.environment-list .material-symbols-rounded {
  color: #646d74;
  font-size: 18px;
}

.environment-list strong {
  color: #495158;
  font-size: 12px;
  font-weight: 520;
}

.environment-divider {
  height: 1px;
  margin: 16px 0;
  background: #eceef0;
}

.environment-sources {
  display: grid;
  gap: 12px;
  color: #969da2;
  font-size: 11px;
}

.environment-sources small {
  font-size: 11px;
}

.plan-panel {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #eceef0;
}

.plan-topline {
  gap: 8px;
  margin-bottom: 10px;
  color: #6f777e;
  font-size: 11px;
}

.plan-topline strong {
  color: #30373c;
  font-weight: 500;
}

.plan-steps {
  display: grid;
  gap: 9px;
  list-style: none;
}

.plan-steps li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  color: #5f676e;
  font-size: 10px;
  line-height: 1.4;
}

.plan-steps li > span {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d9dde0;
  border-radius: 50%;
  color: #777f85;
  font-size: 9px;
}

.progress-panel {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.progress-copy {
  gap: 8px;
  color: #7d858b;
  font-size: 9px;
}

.progress-copy strong {
  color: #4a5258;
  font-weight: 500;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #eceef0;
}

.progress-track span {
  display: block;
  width: 3%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a85f6d, #7863a8 52%, #4f6fbd);
  transition: width 300ms ease;
}

.context-menu {
  position: fixed;
  z-index: 1000;
  width: 178px;
  display: grid;
  gap: 2px;
  padding: 5px;
  border: 1px solid #dde1e4;
  border-radius: 9px;
  background: #fff;
  box-shadow: var(--zw-shadow-menu);
}

.context-menu button {
  min-height: 34px;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #41484e;
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.context-menu button:hover {
  background: #f0f1f2;
}

.context-menu button.danger {
  color: var(--zw-danger);
}

.context-menu .material-symbols-rounded {
  font-size: 17px;
}

#taskPlanBtn:not([hidden]) {
  display: none;
}

.zexirwork-dialog-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 29, 33, 0.22);
  backdrop-filter: blur(2px);
}

.zexirwork-dialog {
  width: min(410px, 100%);
  overflow: hidden;
  padding: 17px;
  border: 1px solid #dfe3e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 64px rgba(18, 25, 31, 0.2);
}

.zexirwork-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.zexirwork-dialog h2 {
  color: #252a2e;
  font-size: 16px;
  font-weight: 540;
}

.zexirwork-dialog > p {
  margin-bottom: 16px;
  color: #717980;
  font-size: 12px;
  line-height: 1.5;
}

.zexirwork-dialog-field {
  display: grid;
  gap: 7px;
}

.zexirwork-dialog-field span {
  color: #545c62;
  font-size: 11px;
  font-weight: 500;
}

.zexirwork-dialog-field input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #d8dde1;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  font-size: 13px;
}

.zexirwork-dialog-field input:focus {
  border-color: #8d9bae;
  box-shadow: 0 0 0 3px rgba(111, 131, 173, 0.12);
}

.zexirwork-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 18px;
}

.dialog-confirm-btn {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #24292d;
  font-size: 12px;
  font-weight: 510;
}

.dialog-confirm-btn:hover {
  background: #111416;
}

.dialog-confirm-btn.danger {
  background: #b42318;
}

.dialog-confirm-btn.danger:hover {
  background: #961d14;
}

@media (max-width: 1180px) {
  :root {
    --zw-sidebar-width: 292px;
  }

  .work-panel {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 20px;
  }

  .environment-panel {
    display: none;
  }

  .environment-panel:has(.plan-panel:not([hidden])) {
    position: fixed;
    z-index: 40;
    top: 102px;
    right: 18px;
    width: 276px;
    display: block;
    padding: 0;
  }

  .environment-panel:has(.plan-panel:not([hidden])) .environment-head,
  .environment-panel:has(.plan-panel:not([hidden])) .environment-list,
  .environment-panel:has(.plan-panel:not([hidden])) .environment-divider,
  .environment-panel:has(.plan-panel:not([hidden])) .environment-sources {
    display: none;
  }

  .environment-panel:has(.plan-panel:not([hidden])) .plan-panel {
    margin: 0;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --zw-sidebar-width: 260px;
  }

  .filework-menu {
    display: none;
  }

  .work-panel {
    padding: 10px 12px 12px;
  }

  .project-editor {
    grid-template-columns: 205px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  html,
  body {
    overflow: hidden;
  }

  .filework-topbar {
    display: none;
  }

  .window-controls {
    gap: 14px;
  }

  .window-controls .material-symbols-rounded:nth-child(2),
  .window-controls .material-symbols-rounded:nth-child(3) {
    display: none;
  }

  .filework-shell,
  .workspace,
  .filework-app {
    height: 100dvh;
  }

  .filework-app {
    display: block;
  }

  .project-sidebar {
    display: none;
  }

  .work-panel {
    width: 100%;
    height: 100%;
    display: block;
    padding: 7px 8px 8px;
    overflow: hidden;
  }

  .empty-state,
  .folder-workspace {
    height: 100%;
  }

  .empty-state {
    overflow-y: auto;
    padding: 18px 3px;
  }

  .dashboard-head {
    align-items: flex-start;
    padding: 0 3px 14px;
  }

  .dashboard-head h2 {
    font-size: 22px;
  }

  .dashboard-head p {
    font-size: 12px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .folder-workspace {
    grid-template-rows: 44px minmax(0, 1fr);
  }

  .task-head {
    padding: 0 2px;
  }

  .text-icon-btn span:last-child {
    display: none;
  }

  #taskPlanBtn:not([hidden]) {
    display: inline-grid;
  }

  .text-icon-btn {
    width: 32px;
    min-height: 32px;
    padding: 0;
  }

  .folder-workspace-body {
    padding-top: 7px;
  }

  .filework-main-column {
    gap: 7px;
  }

  .project-editor {
    grid-template-columns: 1fr;
    grid-template-rows: 142px minmax(0, 1fr);
  }

  .file-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--zw-line);
    padding: 8px 7px;
  }

  .file-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(155px, 190px);
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .file-list .tree-folder-row {
    display: none;
  }

  .file-row {
    min-height: 36px;
    grid-template-columns: 18px minmax(0, 1fr) 24px;
    padding: 3px 5px;
  }

  .file-row > em,
  .file-row .pin-marker {
    display: none !important;
  }

  .file-menu-btn {
    opacity: 1;
  }

  .file-editor {
    grid-template-rows: 44px minmax(0, 1fr);
    padding: 0 9px 9px;
  }

  .file-editor-head span {
    display: none;
  }

  .selected-file-content {
    font-size: 11px;
  }

  .task-card {
    border-radius: 14px;
    padding: 6px 7px;
  }

  .task-card textarea {
    min-height: 38px;
    padding: 7px 7px 2px;
    font-size: 12px;
  }

  .task-toolbar {
    justify-content: stretch;
  }

  .task-toolbar label {
    min-width: 0;
    flex: 1;
  }

  .task-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .primary-btn {
    width: 36px;
    padding: 0;
  }

  #runAiBtnLabel {
    display: none;
  }

  .changed-files-panel {
    max-height: 112px;
    overflow-y: auto;
  }

  .environment-panel:has(.plan-panel:not([hidden])) {
    display: none;
  }

  .environment-panel.mobile-plan-open:has(.plan-panel:not([hidden])) {
    position: fixed;
    z-index: 60;
    top: 52px;
    right: 8px;
    width: min(310px, calc(100vw - 16px));
    display: block;
    padding: 0;
  }

  .environment-panel.mobile-plan-open .environment-card {
    max-height: calc(100dvh - 62px);
    box-shadow: 0 18px 48px rgba(18, 25, 31, 0.2);
  }

  .environment-panel.mobile-plan-open .environment-head,
  .environment-panel.mobile-plan-open .environment-list,
  .environment-panel.mobile-plan-open .environment-divider,
  .environment-panel.mobile-plan-open .environment-sources {
    display: none;
  }

  .environment-panel.mobile-plan-open .plan-panel {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .zexirwork-dialog-backdrop {
    align-items: end;
    padding: 8px;
  }

  .zexirwork-dialog {
    width: 100%;
    padding: 16px;
    border-radius: 12px 12px 8px 8px;
  }
}
