.phone-cases-view {
  padding-bottom: 78px;
  color: #182230;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  font-feature-settings: "palt";
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.phone-cases-view button,
.phone-cases-view input,
.phone-cases-view select,
.phone-cases-view textarea {
  font-family: inherit;
}

.phone-cases-view .phone-pane-head strong,
.phone-cases-view .phone-context-title strong,
.phone-cases-view .phone-case-list-top strong {
  font-weight: 700;
  letter-spacing: 0.025em;
}

.phone-cases-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.phone-cases-header,
.phone-pane-head,
.phone-context-title,
.phone-fixed-actions,
.phone-case-list-top,
.phone-history-item > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phone-cases-header {
  min-height: 32px;
  margin-bottom: 4px;
}

.phone-cases-header h2 {
  margin: 0;
  line-height: 1.25;
}

.phone-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-save-button {
  min-width: 72px;
  padding-inline: 18px;
  font-weight: 600;
}

.phone-case-status,
.phone-inline-state,
.phone-case-number,
.phone-context-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.phone-case-status[data-tone="success"] {
  color: #067647;
}

.phone-case-status[data-tone="error"],
.phone-error {
  color: #b42318;
}

.phone-cases-layout {
  display: grid;
  /* 中文注释：左侧 Case 列表收窄，把横向空间优先让给 AI 返信区。 */
  grid-template-columns: minmax(188px, 0.34fr) minmax(420px, 1.38fr) minmax(380px, 1.12fr);
  min-height: calc(100vh - 190px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.phone-case-list-pane,
.phone-ai-pane,
.phone-case-details-pane {
  min-width: 0;
  max-height: calc(100vh - 190px);
}

.phone-case-list-pane,
.phone-ai-pane {
  border-right: 1px solid var(--line);
}

.phone-case-list-pane,
.phone-case-details-pane {
  overflow: auto;
}

.phone-ai-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #f3f5f8;
}

.phone-pane-head {
  position: sticky;
  z-index: 2;
  top: 0;
  min-height: 52px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.phone-list-pane-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-list-collapse-button {
  min-width: 44px;
}

.phone-case-filters {
  display: grid;
  gap: 10px;
  padding: 10px 8px;
}

.phone-case-form {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.phone-case-details-pane {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 6px;
  background: #f8fafc;
}

.phone-case-editor-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

/* 中文注释：新建 Case 时用绿色边框提示当前处于录入模式。 */
.phone-case-editor-section.is-new-case {
  border: 2px solid #17b26a;
  box-shadow: 0 0 0 1px rgba(23, 178, 106, 0.14);
}

.phone-case-editor-section > .phone-pane-head {
  position: static;
  min-height: 38px;
  padding: 6px 8px;
}

.phone-case-list {
  display: grid;
}

.phone-case-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}

.phone-case-list-item:hover,
.phone-case-list-item.is-active {
  background: #f2f4f7;
}

.phone-case-list-item span,
.phone-case-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-case-list-item small {
  color: var(--muted);
  font-size: 0.72rem;
}

.phone-case-list-item em {
  padding: 2px 7px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 0.7rem;
  font-style: normal;
}

.phone-case-list-item em[data-status="voided"] {
  background: #fef3f2;
  color: #b42318;
}

.phone-case-list-item em[data-status="closed"] {
  background: #f2f4f7;
  color: #475467;
}

.phone-case-list-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.phone-case-list-owner {
  min-width: 0;
  overflow: hidden;
  color: #475467;
  font-size: 0.72rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

/* 收起后仍保留明确的展开入口，避免电话工作台失去 Case 列表导航。 */
.phone-cases-layout.is-list-collapsed {
  grid-template-columns: 58px minmax(420px, 1.25fr) minmax(380px, 1.12fr);
}

.phone-cases-layout.is-list-collapsed .phone-case-list-pane {
  overflow: hidden;
}

.phone-cases-layout.is-list-collapsed .phone-case-list-pane > .phone-pane-head {
  justify-content: center;
  padding: 10px 6px;
}

.phone-cases-layout.is-list-collapsed .phone-case-list-pane > .phone-pane-head > strong,
.phone-cases-layout.is-list-collapsed .phone-list-pane-content {
  display: none;
}

.phone-cases-layout.is-list-collapsed .phone-list-pane-actions {
  width: 100%;
  justify-content: center;
}

.phone-cases-layout.is-list-collapsed .phone-list-collapse-button {
  min-width: 42px;
  padding-right: 4px;
  padding-left: 4px;
}

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

.phone-span-2 {
  grid-column: 1 / -1;
}

.phone-inquiry-input {
  min-height: 112px;
  resize: vertical;
}

/* 电话录入强调高信息密度，避免基础字段挤占咨询正文和订单区域。 */
.phone-case-details-pane .phone-case-form {
  gap: 6px;
  padding: 8px;
}

.phone-case-details-pane .field-label {
  gap: 2px;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.phone-case-details-pane .form-control {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
}

.phone-case-details-pane .phone-product-name-input[readonly] {
  background: #f8fafc;
  color: #475467;
  cursor: default;
}

.phone-product-model-field {
  position: relative;
}

.phone-case-details-pane .phone-product-model-input {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.phone-product-options {
  position: absolute;
  z-index: 12;
  top: calc(100% + 3px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 184px;
  overflow: auto;
  border: 1px solid #98a2b3;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.16);
}

.phone-product-options[hidden] {
  display: none;
}

.phone-product-options button {
  display: grid;
  grid-template-columns: minmax(72px, 0.4fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  font-family: inherit;
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: left;
}

.phone-product-options button:hover,
.phone-product-options button:focus-visible {
  background: #eff8ff;
  outline: 0;
}

.phone-product-options button strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.phone-product-options button span {
  overflow: hidden;
  color: #475467;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-product-options-empty {
  padding: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.phone-case-details-pane textarea.form-control {
  padding-top: 6px;
  line-height: 1.45;
}

.phone-match-state {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  font-size: 0.74rem;
  line-height: 1.45;
}

.phone-candidate-list {
  display: grid;
  gap: 6px;
}

.phone-candidate-list button {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.phone-candidate-list span {
  color: var(--muted);
  font-size: 0.76rem;
}

.phone-context-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.phone-context-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.phone-context-column {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.phone-memo-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.phone-memo-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-case-memo-input {
  min-height: 108px;
  resize: vertical;
  font-size: 0.78rem;
  line-height: 1.45;
}

.phone-memo-state {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
}

.phone-context-title {
  font-size: 0.84rem;
}

.phone-history-list {
  display: grid;
  gap: 2px;
  max-height: 112px;
  overflow: auto;
}

.phone-history-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  line-height: 1.25;
}

.phone-history-summary {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.phone-history-summary time {
  flex: 0 0 auto;
}

.phone-history-details {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}

.phone-history-details p {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-history-item time,
.phone-history-meta,
.phone-history-link {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.2;
  white-space: nowrap;
}

.phone-history-link {
  color: #155eef;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-decoration: none;
}

.phone-history-link:hover {
  text-decoration: underline;
}

button.phone-history-link {
  cursor: pointer;
}

.phone-history-detail-trigger {
  flex: 0 0 auto;
}

.phone-load-more {
  justify-self: center;
}

.phone-todo-panel {
  min-width: 0;
  min-height: 0;
}

.phone-todo-panel .todo-compact-list {
  max-height: 112px;
  overflow: auto;
}

.phone-history-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: none;
  background: rgba(16, 24, 40, 0.42);
}

.phone-history-detail-backdrop.open {
  display: block;
}

.phone-history-detail-modal {
  position: fixed;
  z-index: 1061;
  top: 50%;
  left: 50%;
  display: none;
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.28);
  transform: translate(-50%, -50%);
}

.phone-history-detail-modal.open {
  display: flex;
  flex-direction: column;
}

.phone-history-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.phone-history-detail-header strong,
.phone-history-detail-header span {
  display: block;
}

.phone-history-detail-header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.phone-history-detail-body {
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.phone-history-detail-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.phone-history-detail-row > span {
  color: var(--muted);
  font-size: 0.76rem;
}

.phone-history-detail-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  white-space: pre-wrap;
}

.phone-history-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.phone-order-panel,
.phone-ai-draft {
  overflow: auto;
  white-space: pre-wrap;
}

.phone-order-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  padding: 1px 0;
  font-size: 0.78rem;
}

.phone-order-row span {
  color: var(--muted);
}

.phone-order-actions {
  display: flex;
  gap: 6px;
}

.phone-order-actions .btn,
.phone-memo-title .btn {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.phone-order-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  background: rgba(16, 24, 40, 0.42);
}

.phone-order-detail-backdrop.open {
  display: block;
}

.phone-order-detail-modal {
  position: fixed;
  z-index: 1051;
  top: 50%;
  left: 50%;
  display: none;
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.28);
  transform: translate(-50%, -50%);
}

.phone-order-detail-modal.open {
  display: flex;
  flex-direction: column;
}

.phone-order-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.phone-order-detail-header strong,
.phone-order-detail-header span {
  display: block;
}

.phone-order-detail-header span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.phone-order-detail-body {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: auto;
}

.phone-order-detail-section {
  display: grid;
  gap: 8px;
}

.phone-order-detail-grid,
.phone-order-detail-list {
  display: grid;
  gap: 6px;
}

.phone-order-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phone-order-detail-item,
.phone-order-product-item {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.phone-order-detail-item span,
.phone-order-product-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.phone-order-product-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.phone-order-product-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-ai-document-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.phone-ai-model {
  max-width: 180px;
  overflow: hidden;
  padding: 3px 8px;
  border: 1px solid #b2ddff;
  border-radius: 999px;
  background: #eff8ff;
  color: #175cd3;
  font-size: 0.72rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-ai-pane-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-ai-refine-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(16, 24, 40, 0.42);
}

.phone-ai-refine-backdrop.open {
  display: block;
}

.phone-ai-refine-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 8px));
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.phone-ai-refine-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.phone-ai-refine-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.phone-ai-refine-header strong {
  display: block;
  margin-bottom: 4px;
}

.phone-ai-refine-header span {
  color: var(--muted);
  font-size: 0.78rem;
}

.phone-ai-refine-body {
  display: grid;
  gap: 8px;
  padding: 16px;
  overflow: auto;
}

.phone-ai-refine-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}

.phone-cases-view.is-workbench-busy .phone-case-list.is-interaction-locked {
  pointer-events: none;
  opacity: 0.68;
}

.phone-cases-view.is-workbench-busy .phone-header-actions .btn,
.phone-cases-view.is-workbench-busy .phone-fixed-actions .btn {
  cursor: not-allowed;
}

.phone-ai-document {
  position: relative;
  min-height: 0;
  margin: 16px;
  padding: 28px 32px;
  overflow: auto;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

/* 复用 LINE 消息区加载样式，并适配电话正文白纸背景。 */
.phone-ai-document .line-messages-loading {
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.88);
}

.phone-ai-draft {
  min-height: 100%;
  color: #1d2939;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.8;
}

/* 中文注释：新建电话 Case 时显示固定受付指引，AI 草稿生成后由 JS 切换为正文。 */
.phone-intake-guide {
  display: grid;
  gap: 18px;
  max-width: 760px;
  color: #1d2939;
}

.phone-intake-guide[hidden] {
  display: none;
}

.phone-intake-guide-heading {
  padding: 16px 18px;
  border: 1px solid #b9e6d3;
  border-radius: 10px;
  background: #f0fdf4;
}

.phone-intake-guide-eyebrow {
  color: #067647;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.phone-intake-guide h3,
.phone-intake-guide h4,
.phone-intake-guide p {
  margin: 0;
}

.phone-intake-guide h3 {
  margin-top: 4px;
  font-size: 1.04rem;
}

.phone-intake-guide-heading p {
  margin-top: 7px;
  color: #475467;
  font-size: 0.84rem;
  line-height: 1.6;
}

.phone-intake-guide-section {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfcfd;
}

.phone-intake-guide h4 {
  margin-bottom: 10px;
  color: #101828;
  font-size: 0.9rem;
}

.phone-intake-checklist,
.phone-intake-sop {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 1.35rem;
  color: #344054;
  font-size: 0.84rem;
  line-height: 1.55;
}

.phone-intake-checklist {
  list-style: none;
  padding-left: 0;
}

.phone-intake-checklist li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.phone-intake-checklist li::before {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 1px solid #98a2b3;
  border-radius: 3px;
  background: var(--surface);
  content: "";
}

.phone-intake-phrases {
  display: grid;
  gap: 8px;
}

.phone-intake-phrases article {
  padding: 10px 12px;
  border-left: 3px solid #84adff;
  border-radius: 0 6px 6px 0;
  background: #f5f8ff;
}

.phone-intake-phrases strong {
  display: block;
  margin-bottom: 4px;
  color: #1d4ed8;
  font-size: 0.78rem;
}

.phone-intake-phrases p {
  color: #344054;
  font-size: 0.84rem;
  line-height: 1.65;
}

.phone-case-details-pane.is-loading {
  position: relative;
}

.phone-case-details-pane.is-loading::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  content: "";
  pointer-events: none;
}

.phone-case-details-pane.is-loading .phone-case-editor-section,
.phone-case-details-pane.is-loading .phone-context-card {
  opacity: 0.72;
}

.phone-loading-text {
  color: var(--muted);
}

.phone-fixed-actions {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 12px;
  left: max(18px, var(--sidebar-width, 0px));
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.14);
  backdrop-filter: blur(8px);
}

.phone-fixed-actions > div {
  display: flex;
  gap: 8px;
}

.phone-fixed-actions > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 1180px) {
  .phone-cases-layout {
    grid-template-columns: minmax(176px, 0.30fr) minmax(330px, 1fr) minmax(310px, 1.05fr);
  }

  .phone-cases-layout.is-list-collapsed {
    grid-template-columns: 58px minmax(330px, 0.9fr) minmax(310px, 1.05fr);
  }
}

@media (max-width: 900px) {
  .phone-cases-layout,
  .phone-form-grid {
    grid-template-columns: 1fr;
  }

  .phone-case-list-pane,
  .phone-ai-pane,
  .phone-case-details-pane {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .phone-ai-pane {
    min-height: 520px;
  }

  .phone-cases-layout.is-list-collapsed {
    grid-template-columns: 1fr;
  }

  .phone-cases-layout.is-list-collapsed .phone-case-list-pane {
    overflow: auto;
  }

  .phone-cases-layout.is-list-collapsed .phone-case-list-pane > .phone-pane-head {
    justify-content: space-between;
    padding: 10px 12px;
  }

  .phone-cases-layout.is-list-collapsed .phone-case-list-pane > .phone-pane-head > strong {
    display: initial;
  }

  .phone-cases-layout.is-list-collapsed .phone-list-pane-content {
    display: block;
  }

  .phone-cases-layout.is-list-collapsed .phone-list-pane-actions {
    width: auto;
    justify-content: flex-end;
  }

  .phone-span-2 {
    grid-column: auto;
  }

  .phone-fixed-actions {
    right: 10px;
    left: 10px;
    align-items: stretch;
    flex-direction: column;
  }

  .phone-fixed-actions > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .phone-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .phone-context-columns {
    grid-template-columns: 1fr;
  }

  .phone-history-detail-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .phone-history-detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .phone-order-product-item {
    grid-template-columns: 1fr;
  }
}
