:root {
  --work-bg: #080b10;
  --work-panel: rgba(16, 21, 29, 0.94);
  --work-panel-strong: rgba(20, 27, 37, 0.98);
  --work-line: rgba(139, 157, 182, 0.22);
  --work-line-strong: rgba(139, 172, 199, 0.42);
  --work-text: #eef3f6;
  --work-muted: #8a98a8;
  --work-dim: #5e6a78;
  --work-cyan: #58dce5;
  --work-lime: #a7df78;
  --work-coral: #ff806f;
}

.workspace-body {
  min-height: 100vh;
  color: var(--work-text);
  background: var(--work-bg);
}

.account-auth-pending .workspace-header,
.account-auth-pending .workspace-layout {
  opacity: 0;
  pointer-events: none;
}

.workspace-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(calc(100% - 32px), 1240px);
  min-height: 62px;
  margin: 12px auto 0;
  padding: 9px 10px 9px 14px;
  background: rgba(11, 15, 21, 0.9);
  border: 1px solid var(--work-line);
  border-radius: 7px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  animation: workspace-enter 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.workspace-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.workspace-brand img {
  width: 38px;
  height: 38px;
  padding: 5px;
  object-fit: contain;
  background: #101a1f;
  border: 1px solid rgba(88, 220, 229, 0.45);
  border-radius: 6px;
}

.workspace-brand strong,
.workspace-brand small {
  display: block;
}

.workspace-brand strong {
  color: var(--work-text);
  font-size: 16px;
}

.workspace-brand small {
  margin-top: 2px;
  color: var(--work-dim);
  font: 8px/1.3 Consolas, monospace;
}

.header-session {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-right: auto;
  color: var(--work-muted);
  font-size: 10px;
}

.header-session i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--work-lime);
  box-shadow: 0 0 9px rgba(167, 223, 120, 0.72);
  animation: session-pulse 2.2s ease-in-out infinite;
}

.header-session strong {
  min-width: 0;
  overflow: hidden;
  color: var(--work-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-commands {
  display: flex;
  flex: none;
  gap: 6px;
}

.workspace-commands a,
.workspace-commands button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 12px;
  color: #c5d0da;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  background: #151b24;
  border: 1px solid rgba(137, 156, 181, 0.25);
  border-radius: 5px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.workspace-commands a:hover,
.workspace-commands button:hover {
  color: #071012;
  background: var(--work-cyan);
  border-color: var(--work-cyan);
}

.workspace-commands .command-danger:hover {
  color: #170806;
  background: var(--work-coral);
  border-color: var(--work-coral);
}

.workspace-commands [hidden] {
  display: none;
}

.workspace-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  width: min(calc(100% - 32px), 1240px);
  margin: 14px auto 34px;
  animation: workspace-enter 620ms 60ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.identity-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0;
  padding: 18px;
  background:
    linear-gradient(150deg, rgba(22, 31, 40, 0.97), rgba(11, 15, 22, 0.98));
  border: 1px solid var(--work-line);
  border-radius: 7px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 18px 55px rgba(0, 0, 0, 0.2);
}

.identity-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  color: var(--work-dim);
  font: 8px/1.4 Consolas, monospace;
  border-bottom: 1px solid var(--work-line);
}

.identity-signal i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--work-cyan);
  box-shadow: 0 0 10px rgba(88, 220, 229, 0.7);
}

.profile-avatar-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin-top: 20px;
}

.profile-avatar-wrap img {
  width: 82px;
  height: 82px;
  padding: 7px;
  object-fit: cover;
  background: #111a21;
  border: 1px solid rgba(88, 220, 229, 0.42);
  border-radius: 7px;
}

.profile-avatar-wrap > span {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 15px;
  height: 15px;
  border: 3px solid #11171f;
  border-radius: 50%;
  background: var(--work-lime);
}

.profile-title {
  margin-top: 14px;
}

.profile-title h1 {
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.2;
}

.profile-title > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.profile-title span,
.profile-title b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  font: 8px/1 Consolas, monospace;
  border: 1px solid rgba(139, 159, 184, 0.26);
  border-radius: 4px;
}

.profile-title span {
  color: var(--work-lime);
}

.profile-title b {
  color: var(--work-cyan);
}

.client-download-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.client-download-actions [hidden] {
  display: none;
}

.sidebar-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  margin-top: 0;
  padding: 0 12px;
  color: #071012;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  background: var(--work-cyan);
  border: 1px solid var(--work-cyan);
  border-radius: 5px;
  transition: background 160ms ease, transform 160ms ease;
}

.sidebar-download:hover {
  background: #8ce9ee;
  transform: translateY(-1px);
}

.sidebar-download.lite-download {
  color: #f7fbff;
  background: #283649;
  border-color: #60799c;
}

.sidebar-download.lite-download:hover {
  background: #354966;
}

.sidebar-notice {
  margin-top: 8px;
}

.identity-meta {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--work-line);
}

.identity-meta > div {
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--work-line);
}

.identity-meta dt {
  color: var(--work-dim);
  font-size: 9px;
}

.identity-meta dd {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #cbd4dc;
  font-size: 10px;
  line-height: 1.5;
}

.mono-value {
  font-family: Consolas, monospace;
}

.workspace-main {
  min-width: 0;
  padding: 20px;
  background: rgba(12, 16, 22, 0.88);
  border: 1px solid var(--work-line);
  border-radius: 7px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.workspace-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 3px 4px 18px;
  border-bottom: 1px solid var(--work-line);
}

.workspace-intro p,
.panel-heading small {
  color: var(--work-cyan);
  font: 8px/1.4 Consolas, monospace;
}

.workspace-intro h2 {
  margin-top: 7px;
  font-size: 28px;
  line-height: 1.1;
}

.workspace-intro > span {
  max-width: 310px;
  color: var(--work-muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.workspace-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 16px;
}

.workspace-tabs button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  color: var(--work-muted);
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  background: #111720;
  border: 1px solid var(--work-line);
  border-radius: 5px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.workspace-tabs button small {
  flex: none;
  color: var(--work-dim);
  font: 8px/1 Consolas, monospace;
}

.workspace-tabs button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tabs button:hover {
  color: var(--work-text);
  border-color: var(--work-line-strong);
}

.workspace-tabs button.is-active {
  color: #071012;
  background: var(--work-cyan);
  border-color: var(--work-cyan);
}

.workspace-tabs button.is-active small {
  color: rgba(7, 16, 18, 0.58);
}

.workspace-panel {
  min-height: 480px;
  padding-top: 22px;
}

.workspace-panel[hidden] {
  display: none;
}

.workspace-panel.is-active {
  animation: panel-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px 16px;
}

.panel-heading h3 {
  margin-top: 5px;
  font-size: 21px;
}

.panel-heading p {
  color: var(--work-muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: 10px;
}

.tool-block,
.feedback-records {
  min-width: 0;
  padding: 16px;
  background: var(--work-panel);
  border: 1px solid var(--work-line);
  border-radius: 6px;
}

.tool-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--work-line);
}

.tool-title > span {
  font-size: 12px;
  font-weight: 800;
}

.tool-title > small {
  color: var(--work-dim);
  font: 8px/1 Consolas, monospace;
}

.renewal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(340px, 1.18fr);
  gap: 10px;
}

.renewal-status {
  position: relative;
  overflow: hidden;
}

.renewal-status::after {
  position: absolute;
  z-index: 0;
  top: 46px;
  right: 0;
  left: 0;
  height: 1px;
  content: '';
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(88, 220, 229, 0.36), transparent);
  animation: renewal-scan 4.8s ease-in-out infinite;
}

.renewal-countdown {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  padding: 30px 0 24px;
}

.renewal-countdown small {
  color: var(--work-dim);
  font-size: 9px;
}

.renewal-countdown strong {
  color: var(--work-cyan);
  font-size: 28px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.renewal-countdown span,
.renewal-account-line {
  color: var(--work-muted);
  font-size: 10px;
}

.renewal-account-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--work-line);
}

.renewal-account-line b {
  color: var(--work-text);
}

[data-subscription-state="warning"] .renewal-countdown strong,
[data-subscription-state="warning"][data-meta-remaining] {
  color: #f5c96b;
}

[data-subscription-state="urgent"] .renewal-countdown strong,
[data-subscription-state="urgent"][data-meta-remaining],
[data-subscription-state="expired"] .renewal-countdown strong,
[data-subscription-state="expired"][data-meta-remaining] {
  color: #ff7798;
}

[data-subscription-state="permanent"] .renewal-countdown strong,
[data-subscription-state="permanent"][data-meta-remaining] {
  color: var(--work-lime);
}

.renewal-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.renewal-types span {
  padding: 6px 8px;
  color: var(--work-muted);
  font: 8px/1 Consolas, monospace;
  background: #0b1017;
  border: 1px solid var(--work-line);
  border-radius: 4px;
}

.workspace-form,
.account-form {
  display: grid;
  gap: 13px;
  margin-top: 15px;
}

.workspace-form > label:not(.form-check),
.account-form > label:not(.form-check) {
  display: grid;
  gap: 7px;
  color: #aeb9c5;
  font-size: 10px;
  font-weight: 700;
}

.workspace-form input:not([type="checkbox"]),
.workspace-form textarea,
.account-form input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  color: var(--work-text);
  font: inherit;
  outline: 0;
  background: #0b1017;
  border: 1px solid rgba(139, 158, 183, 0.27);
  border-radius: 5px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.workspace-form textarea {
  height: auto;
  min-height: 122px;
  padding: 10px 11px;
  line-height: 1.6;
  resize: vertical;
}

.workspace-form input:focus,
.workspace-form textarea:focus,
.account-form input:not([type="checkbox"]):focus {
  border-color: var(--work-cyan);
  box-shadow: 0 0 0 3px rgba(88, 220, 229, 0.08);
}

.workspace-form input::placeholder,
.workspace-form textarea::placeholder,
.account-form input::placeholder {
  color: #53606d;
}

.workspace-form .mono-input,
.account-form .mono-input {
  font-family: Consolas, monospace;
}

.file-field {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 10px;
  overflow: hidden;
  color: var(--work-muted);
  text-align: center;
  cursor: pointer;
  background: #0c1219;
  border: 1px dashed rgba(139, 166, 190, 0.36);
  border-radius: 5px;
}

.file-field:hover {
  color: var(--work-cyan);
  border-color: rgba(88, 220, 229, 0.6);
}

.file-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.workspace-submit,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  color: #071012;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  background: var(--work-cyan);
  border: 1px solid var(--work-cyan);
  border-radius: 5px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.workspace-submit:hover,
.form-submit:hover {
  background: #8ce9ee;
  border-color: #8ce9ee;
  transform: translateY(-1px);
}

.workspace-submit:disabled,
.form-submit:disabled,
.sidebar-download:disabled,
.workspace-commands button:disabled {
  color: #65717e;
  cursor: wait;
  background: #151b22;
  border-color: var(--work-line);
  transform: none;
}

.console-notice {
  min-height: 0;
  margin: 0;
  color: var(--work-muted);
  font-size: 10px;
  line-height: 1.5;
}

.console-notice:empty {
  display: none;
}

.console-notice.is-error {
  color: #ff9b8e;
}

.console-notice.is-success {
  color: var(--work-lime);
}

.button-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: account-spin 700ms linear infinite;
}

.avatar-tool [data-avatar-preview] {
  display: block;
  width: 112px;
  height: 112px;
  margin: 18px auto 5px;
  padding: 8px;
  object-fit: cover;
  background: #0d141b;
  border: 1px solid var(--work-line-strong);
  border-radius: 6px;
}

.single-tool {
  max-width: 620px;
}

.compact-form {
  grid-template-columns: 1fr 1fr;
}

.compact-form .workspace-submit,
.compact-form .console-notice {
  grid-column: 1 / -1;
}

.device-current {
  display: grid;
  gap: 6px;
  margin-top: 15px;
  padding: 12px;
  background: #0b1017;
  border: 1px solid var(--work-line);
  border-radius: 5px;
}

.device-current span {
  color: var(--work-dim);
  font-size: 9px;
}

.device-current strong {
  overflow-wrap: anywhere;
  color: var(--work-cyan);
  font-size: 10px;
  line-height: 1.5;
}

.mode-notice {
  margin-top: 10px;
  padding: 10px 12px;
  color: #c7e7ac;
  font-size: 10px;
  line-height: 1.5;
  background: rgba(167, 223, 120, 0.07);
  border: 1px solid rgba(167, 223, 120, 0.24);
  border-radius: 5px;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(340px, 1.2fr);
  gap: 10px;
  align-items: start;
}

.feedback-list {
  display: grid;
  gap: 8px;
  max-height: 590px;
  margin-top: 14px;
  padding-right: 4px;
  overflow-y: auto;
}

.feedback-list::-webkit-scrollbar {
  width: 5px;
}

.feedback-list::-webkit-scrollbar-thumb {
  background: #34414e;
  border-radius: 5px;
}

.feedback-item {
  min-width: 0;
  padding: 12px;
  background: #0c1219;
  border: 1px solid var(--work-line);
  border-left: 2px solid var(--work-cyan);
  border-radius: 5px;
}

.feedback-item[data-status="closed"] {
  border-left-color: var(--work-dim);
}

.feedback-item[data-status="read"] {
  border-left-color: var(--work-lime);
}

.feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-head strong {
  color: var(--work-cyan);
  font-size: 10px;
}

.feedback-head time {
  color: var(--work-dim);
  font: 8px/1 Consolas, monospace;
}

.feedback-message,
.feedback-reply {
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: #bcc7d1;
  font-size: 10px;
  line-height: 1.65;
}

.feedback-file {
  display: inline-block;
  margin-top: 9px;
  color: var(--work-muted);
  font: 8px/1.4 Consolas, monospace;
}

.feedback-reply {
  padding: 10px;
  color: #cfe6bc;
  background: rgba(167, 223, 120, 0.055);
  border: 1px solid rgba(167, 223, 120, 0.17);
  border-radius: 4px;
}

.feedback-reply small {
  display: block;
  margin-bottom: 5px;
  color: var(--work-lime);
  font: 8px/1.3 Consolas, monospace;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.feedback-actions button,
.reply-form button {
  min-height: 30px;
  padding: 0 9px;
  color: #bbc6d0;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  background: #151d26;
  border: 1px solid var(--work-line);
  border-radius: 4px;
}

.feedback-actions button:hover,
.reply-form button:hover {
  color: var(--work-cyan);
  border-color: rgba(88, 220, 229, 0.5);
}

.reply-form {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.reply-form[hidden] {
  display: none;
}

.reply-form textarea {
  width: 100%;
  min-height: 72px;
  padding: 9px;
  color: var(--work-text);
  font: inherit;
  font-size: 10px;
  line-height: 1.5;
  resize: vertical;
  outline: 0;
  background: #080d13;
  border: 1px solid var(--work-line);
  border-radius: 4px;
}

.reply-form textarea:focus {
  border-color: var(--work-cyan);
}

.reply-buttons {
  display: flex;
  gap: 6px;
}

.empty-state {
  padding: 28px 12px;
  color: var(--work-dim);
  font-size: 10px;
  text-align: center;
  border: 1px dashed var(--work-line);
  border-radius: 5px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--work-muted);
  font-size: 10px;
  cursor: pointer;
}

.form-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--work-cyan);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-height: 43px;
  margin-top: 20px;
  padding: 3px;
  background: #0a0f16;
  border: 1px solid var(--work-line);
  border-radius: 6px;
}

.auth-tabs button {
  color: var(--work-muted);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  background: transparent;
  border-radius: 4px;
}

.auth-tabs button.is-active {
  color: #071012;
  background: var(--work-cyan);
}

.account-form[hidden] {
  display: none;
}

.account-ribbons {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.account-ribbons::before,
.account-ribbons::after,
.account-ribbons i {
  position: absolute;
  display: block;
  height: 8px;
  content: "";
  transform: rotate(-27deg);
  transform-origin: left center;
}

.account-ribbons::before {
  bottom: 3%;
  left: -12%;
  width: 60%;
  background: rgba(88, 220, 229, 0.3);
  box-shadow: 0 26px rgba(167, 223, 120, 0.17), 0 52px rgba(88, 220, 229, 0.1);
  animation: ribbon-drift-left 11s ease-in-out infinite alternate;
}

.account-ribbons::after {
  right: -18%;
  bottom: 9%;
  width: 55%;
  background: rgba(255, 128, 111, 0.28);
  box-shadow: 0 29px rgba(88, 220, 229, 0.2), 0 58px rgba(255, 128, 111, 0.1);
  animation: ribbon-drift-right 13s ease-in-out infinite alternate;
}

.account-ribbons i:nth-child(1) {
  bottom: 18%;
  left: -10%;
  width: 38%;
  height: 1px;
  background: rgba(255, 128, 111, 0.5);
}

@keyframes workspace-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes session-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

@keyframes renewal-scan {
  0%, 100% { opacity: 0; transform: translateY(0); }
  45%, 55% { opacity: 1; }
  50% { transform: translateY(225px); }
}

@keyframes ribbon-drift-left {
  from { translate: -2% 4%; }
  to { translate: 4% -3%; }
}

@keyframes ribbon-drift-right {
  from { translate: 3% 2%; }
  to { translate: -4% -4%; }
}

@media (max-width: 980px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .identity-panel {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 100px minmax(180px, 0.75fr) minmax(300px, 1.25fr);
    gap: 0 18px;
    align-items: start;
  }

  .identity-signal {
    grid-column: 1 / -1;
  }

  .profile-avatar-wrap {
    grid-column: 1;
    grid-row: 2 / 5;
  }

  .profile-title {
    grid-column: 2;
    grid-row: 2;
  }

  .client-download-actions,
  .sidebar-notice {
    grid-column: 2;
  }

  .identity-meta {
    grid-column: 3;
    grid-row: 2 / 6;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    margin-top: 20px;
  }
}

@media (max-width: 760px) {
  .workspace-header {
    position: relative;
    top: auto;
    flex-wrap: wrap;
    width: min(calc(100% - 20px), 620px);
    margin-top: 10px;
  }

  .workspace-brand {
    min-width: 0;
    margin-right: auto;
  }

  .header-session {
    margin-right: 0;
  }

  .workspace-commands {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
  }

  .workspace-commands a,
  .workspace-commands button {
    min-width: 0;
    padding: 0 7px;
  }

  .workspace-layout {
    width: min(calc(100% - 20px), 620px);
    margin-top: 10px;
  }

  .identity-panel {
    display: block;
  }

  .profile-avatar-wrap {
    margin-top: 18px;
  }

  .identity-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .workspace-main {
    padding: 14px;
  }

  .workspace-intro {
    display: block;
  }

  .workspace-intro > span {
    display: block;
    margin-top: 9px;
    text-align: left;
  }

  .workspace-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .tool-grid,
  .renewal-layout,
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    display: block;
  }

  .panel-heading p {
    margin-top: 8px;
    text-align: left;
  }

  .compact-form {
    grid-template-columns: 1fr;
  }

  .compact-form .workspace-submit,
  .compact-form .console-notice {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .workspace-header,
  .workspace-layout {
    width: calc(100% - 16px);
  }

  .header-session span {
    display: none;
  }

  .workspace-commands {
    grid-template-columns: 1fr 1fr;
  }

  .identity-meta {
    grid-template-columns: 1fr;
  }

  .workspace-tabs button {
    padding: 0 9px;
  }

  .workspace-panel {
    min-height: 0;
  }

  .tool-block,
  .feedback-records {
    padding: 13px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .workspace-header,
  .workspace-layout,
  .workspace-panel.is-active,
  .header-session i,
  .renewal-status::after,
  .account-ribbons::before,
  .account-ribbons::after,
  .button-spinner {
    animation: none;
  }

  .workspace-commands a,
  .workspace-commands button,
  .workspace-tabs button,
  .workspace-submit,
  .form-submit,
  .sidebar-download {
    transition: none;
  }
}
