/* SNS 주문 페이지 리뉴얼
 * 공통 밝은 블루 테마 + 제공 시안의 2열 주문 레이아웃
 */

body.dashboard-layout {
    --order-brand: #4868d8;
    --order-brand-dark: #3857c6;
    --order-brand-soft: #edf3ff;
    --order-page: #f5f7fb;
    --order-card: #ffffff;
    --order-ink: #20283b;
    --order-muted: #6b7487;
    --order-border: #dfe5ef;
    --order-summary: #1f293d;
    --order-summary-border: rgba(255, 255, 255, 0.11);
    word-break: keep-all;
    overflow-wrap: break-word;
}

body.dashboard-layout .dashboard-content {
    padding-bottom: 3.5rem;
}

body.dashboard-layout .container.order-form {
    width: 100%;
    max-width: 1240px !important;
    margin: 0 auto;
    padding: 0 !important;
    padding-bottom: 0 !important;
}

body.dashboard-layout .order-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: start;
}

body.dashboard-layout .order-main-column {
    min-width: 0;
}

body.dashboard-layout .dashboard-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin: 0 0 1.9rem;
    min-height: 58px;
}

body.dashboard-layout .order-platform-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffd273, #d43b85 45%, #8646c7 78%, #5166d8);
    box-shadow: 0 10px 24px rgba(159, 61, 142, 0.18);
}

body.dashboard-layout .order-platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.dashboard-layout .order-platform-icon span {
    font-size: 1.75rem;
}

body.dashboard-layout .dashboard-header-copy {
    min-width: 0;
}

body.dashboard-layout .dashboard-header .dashboard-title {
    margin: 0;
    color: var(--order-ink);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

body.dashboard-layout .dashboard-header .dashboard-subtitle {
    margin: 0.42rem 0 0;
    color: var(--order-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

body.dashboard-layout .order-section {
    margin: 0 0 1.8rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

body.dashboard-layout .order-section:last-child {
    margin-bottom: 0;
}

body.dashboard-layout .order-section-title,
body.dashboard-layout .order-section-title[style] {
    min-height: 44px;
    margin: 0 0 0.9rem !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--order-ink);
    font-size: 0.98rem !important;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

body.dashboard-layout .order-section-title::before {
    content: attr(data-step);
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.55rem;
    border-radius: 50%;
    color: #ffffff;
    background: var(--order-brand);
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(72, 104, 216, 0.18);
}

body.dashboard-layout .order-section-title > span:first-of-type {
    margin-right: auto;
}

body.dashboard-layout .order-control-icon {
    width: 16px;
    height: 16px;
    flex: none;
}

body.dashboard-layout #advancedSettingsToggle,
body.dashboard-layout .preset-selector,
body.dashboard-layout #deletePresetBtn {
    min-height: 44px;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid var(--order-border) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #505b70 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 7px rgba(41, 58, 98, 0.035);
}

body.dashboard-layout #advancedSettingsToggle:hover,
body.dashboard-layout .preset-selector:hover {
    border-color: #b9c6ec !important;
    background: #f8faff !important;
}

body.dashboard-layout #advancedSettingsToggle:focus-visible,
body.dashboard-layout .preset-selector:focus-visible,
body.dashboard-layout #deletePresetBtn:focus-visible {
    outline: 2px solid var(--order-brand);
    outline-offset: 2px;
}

body.dashboard-layout #deletePresetBtn {
    color: #c23d55 !important;
    border-color: #f0ccd3 !important;
    box-shadow: none;
}

body.dashboard-layout .order-section > .form-group {
    margin: 0;
}

body.dashboard-layout #targetUrl {
    width: 100%;
    min-height: 124px;
    padding: 1rem 1.15rem;
    resize: vertical;
    border: 1px solid var(--order-border);
    border-radius: 16px;
    background: var(--order-card);
    color: var(--order-ink);
    font-size: 0.88rem;
    line-height: 1.7 !important;
    box-shadow: 0 4px 16px rgba(41, 58, 98, 0.035);
}

body.dashboard-layout #targetUrl:focus {
    border-color: var(--order-brand);
    box-shadow: 0 0 0 3px rgba(72, 104, 216, 0.11);
}

body.dashboard-layout #targetUrl + .help-text {
    margin: 0.7rem 0.35rem 0 !important;
    color: var(--order-muted) !important;
    font-size: 0.78rem !important;
    line-height: 1.55;
}

body.dashboard-layout #urlCount {
    margin-top: 0.7rem !important;
    padding: 0.65rem 0.8rem !important;
    border: 1px solid #cedaf8 !important;
    border-radius: 10px !important;
    background: var(--order-brand-soft) !important;
    color: #40547f;
}

body.dashboard-layout #advancedSettingsPanel > div {
    background: #f8faff !important;
    border: 1px solid #dbe4fa !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

body.dashboard-layout #advancedSettingsPanel .form-label,
body.dashboard-layout #advancedSettingsPanel strong,
body.dashboard-layout #advancedSettingsPanel [style*="color: #60a5fa"],
body.dashboard-layout #advancedSettingsPanel [style*="color: #a78bfa"] {
    color: var(--order-brand) !important;
}

body.dashboard-layout #advancedSettingsPanel .help-text,
body.dashboard-layout #advancedSettingsPanel p {
    color: var(--order-muted) !important;
}

body.dashboard-layout input[type="checkbox"] {
    accent-color: var(--order-brand);
}

body.dashboard-layout .service-items-grid {
    display: block;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--order-border);
    border-radius: 18px;
    background: var(--order-card);
    box-shadow: 0 6px 20px rgba(41, 58, 98, 0.045);
}

body.dashboard-layout .service-item-row,
body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc),
body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px 104px;
    grid-template-rows: auto;
    gap: 1rem;
    align-items: center;
    min-height: 72px;
    margin: 0;
    padding: 0.8rem 1.15rem;
    border: 0;
    border-bottom: 1px solid #e8ecf3;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    transition: background-color .18s ease, box-shadow .18s ease;
}

body.dashboard-layout .service-item-row:last-child {
    border-bottom: 0;
}

body.dashboard-layout .service-item-row:hover,
body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc):hover,
body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc:hover {
    z-index: 1;
    border-color: #e8ecf3;
    background: #f9fbff;
    box-shadow: none;
    transform: none;
}

body.dashboard-layout .service-item-row:focus-within,
body.dashboard-layout .service-item-row.has-quantity,
body.dashboard-layout .service-item-row:has(input[type="number"]:not(:placeholder-shown)) {
    border-color: #e8ecf3;
    background: #f0f5ff;
    box-shadow: inset 3px 0 var(--order-brand);
}

body.dashboard-layout .service-item-info,
body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .service-item-info {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
}

body.dashboard-layout .service-item-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--order-brand-soft);
    border: 1px solid #dce5fb;
}

body.dashboard-layout .service-item-icon img {
    width: 22px;
    height: 22px;
    display: block;
}

body.dashboard-layout .service-item-copy {
    min-width: 0;
}

body.dashboard-layout .service-item-name-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

body.dashboard-layout .service-item-info h4,
body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .service-item-info h4,
body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc .service-item-info h4 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--order-ink);
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -0.012em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dashboard-layout .service-status {
    flex: none;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: #fff3e5;
    color: #b56a18;
    font-size: 0.64rem;
    font-weight: 800;
}

body.dashboard-layout .service-description,
body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc .service-description {
    display: block;
    margin: 0.1rem 0 0;
    overflow: hidden;
    color: #7c8597;
    font-size: 0.73rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

body.dashboard-layout .service-item-meta {
    margin: 0.1rem 0 0 !important;
    color: #7c8597 !important;
    font-size: 0.72rem !important;
    line-height: 1.4;
}

/* '수량만 입력' 안내: 좁은 수량 칸이 아니라 서비스 설명 아래 한 줄로 */
body.dashboard-layout .service-item-hint {
    display: inline-block;
    margin: 0.3rem 0 0;
    padding: 0.18rem 0.5rem;
    max-width: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: #f1eefe;
    color: #5b4bb0;
    font-size: 0.7rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dashboard-layout .service-item-hint strong {
    font-weight: 800;
}

body.dashboard-layout .service-item-price,
body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .service-item-price,
body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc .service-item-price {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    display: block;
    text-align: right;
}

body.dashboard-layout .service-item-price .price-line {
    display: block;
}

body.dashboard-layout .service-item-price .unit-price,
body.dashboard-layout .service-item-price .total-price-label {
    display: none;
}

body.dashboard-layout .service-item-price .total-price,
body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .service-item-price .total-price,
body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc .service-item-price .total-price {
    color: #7f8797;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

body.dashboard-layout .service-item-row.has-quantity .service-item-price .total-price,
body.dashboard-layout .service-item-row:focus-within .service-item-price .total-price {
    color: var(--order-brand);
}

body.dashboard-layout .service-item-row:not(.custom-comment-layout) > div:last-child {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

body.dashboard-layout .service-item-row .quantity-input,
body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .quantity-input,
body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc .quantity-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d5dce8;
    border-radius: 11px;
    background: #fafbfe;
    color: var(--order-ink);
    font-size: 0.84rem;
    font-weight: 750;
    text-align: center;
}

body.dashboard-layout .service-item-row .quantity-input:focus {
    border-color: var(--order-brand);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(72, 104, 216, 0.1);
}

body.dashboard-layout .quantity-warning.active {
    margin-top: 0.35rem;
    color: #c23d55;
    font-size: 0.68rem;
    line-height: 1.4;
}

body.dashboard-layout .quick-fill-buttons {
    display: none;
}

/* 일시중지 항목: 흐리게 하는 대신 행 전체를 회색 톤 + 좌측 표시 바로 상태를 드러낸다.
   기본 행 규칙이 :not() 2개로 특이도가 높아, 여기서도 같은 형태로 맞춰야 이긴다. */
body.dashboard-layout .service-item-row.inactive,
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout):not(.show-desc),
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout).show-desc,
body.dashboard-layout .service-item-row.inactive:hover,
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout):not(.show-desc):hover,
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout).show-desc:hover {
    filter: none;
    opacity: 1;
    background: #eceff4;
    box-shadow: inset 3px 0 #b7bfcd;
}

body.dashboard-layout .service-item-row.inactive .service-item-info h4,
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout):not(.show-desc) .service-item-info h4,
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout).show-desc .service-item-info h4 {
    color: #7b8496;
}

body.dashboard-layout .service-item-row.inactive .service-description,
body.dashboard-layout .service-item-row.inactive .service-item-meta {
    color: #98a1b2 !important;
}

body.dashboard-layout .service-item-row.inactive .service-item-icon {
    background: #e4e7ee;
    border-color: #d5d9e2;
}

body.dashboard-layout .service-item-row.inactive .service-item-icon img {
    filter: grayscale(1);
    opacity: 0.5;
}

body.dashboard-layout .service-item-row.inactive .service-item-price .total-price,
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout):not(.show-desc) .service-item-price .total-price,
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout).show-desc .service-item-price .total-price {
    color: #a6adbb;
}

body.dashboard-layout .service-item-row.inactive .quantity-input,
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout):not(.show-desc) .quantity-input,
body.dashboard-layout .service-item-row.inactive:not(.custom-comment-layout).show-desc .quantity-input {
    border-color: #d8dce5;
    background: #e4e8ef;
    color: #a6adbb;
}

body.dashboard-layout .service-item-row.inactive .service-status {
    background: #dfe3ea;
    color: #5f6a7d;
}

body.dashboard-layout .service-item-row.inactive::before {
    display: none !important;
    content: none !important;
}

body.dashboard-layout .service-item-row.custom-comment-layout {
    display: block;
    padding: 1rem 1.15rem;
}

body.dashboard-layout .service-item-row.custom-comment-layout .service-item-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 1rem;
    align-items: center;
}

body.dashboard-layout .service-item-row.custom-comment-layout .service-item-info {
    grid-column: 1;
}

body.dashboard-layout .service-item-row.custom-comment-layout .service-item-price {
    grid-column: 2;
}

body.dashboard-layout .service-item-row.custom-comment-layout .service-item-input-full {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e8ecf3;
}

body.dashboard-layout .service-item-row.custom-comment-layout textarea {
    min-height: 180px;
    border-color: #d8dfeb;
    border-radius: 12px;
    background: #fafbfe;
    color: var(--order-ink);
}

body.dashboard-layout .mobile-desc-toggle {
    color: var(--order-brand);
}

body.dashboard-layout .order-summary {
    position: sticky !important;
    inset: auto !important;
    top: 1.9rem !important;
    z-index: 10;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: var(--order-summary);
    color: #f8faff;
    box-shadow: 0 18px 44px rgba(31, 41, 61, 0.16);
    backdrop-filter: none;
}

body.dashboard-layout .order-summary-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.45rem;
    display: block;
}

body.dashboard-layout .order-summary h2 {
    margin: 0;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

body.dashboard-layout .summary-items {
    max-height: clamp(240px, calc(100vh - 420px), 460px);
    margin-top: 1rem;
    padding-right: 0.55rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

body.dashboard-layout .summary-items::-webkit-scrollbar {
    width: 6px;
}

body.dashboard-layout .summary-items::-webkit-scrollbar-button {
    display: none;
    height: 0;
}

body.dashboard-layout .summary-items::-webkit-scrollbar-track {
    background: transparent;
}

body.dashboard-layout .summary-items::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

body.dashboard-layout .summary-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.dashboard-layout .summary-empty {
    margin: 0;
    padding: 1.25rem 0.2rem;
    color: #9ca7bb;
    font-size: 0.76rem;
    line-height: 1.55;
    text-align: center;
}

body.dashboard-layout .summary-service {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0;
}

body.dashboard-layout .summary-service + .summary-service {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

body.dashboard-layout .summary-service-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

body.dashboard-layout .summary-service-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

body.dashboard-layout .summary-service-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.08rem;
}

body.dashboard-layout .summary-service-copy strong {
    overflow: hidden;
    color: #f7f9ff;
    font-size: 0.76rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dashboard-layout .summary-service-copy small {
    color: #9ca7bb;
    font-size: 0.66rem;
    line-height: 1.4;
}

body.dashboard-layout .summary-service-total {
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

body.dashboard-layout .summary-divider {
    height: 1px;
    margin: 1rem 0;
    background: var(--order-summary-border);
}

body.dashboard-layout .summary-overview {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

body.dashboard-layout .summary-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

body.dashboard-layout .summary-label {
    color: #aab3c3;
    font-size: 0.68rem;
    line-height: 1.45;
}

body.dashboard-layout .summary-item .summary-value,
body.dashboard-layout #totalOrders {
    color: #f7f9ff !important;
    font-size: 0.8rem;
    font-weight: 750;
}

body.dashboard-layout .summary-total {
    margin-top: 1.1rem;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

body.dashboard-layout .summary-total .summary-label {
    white-space: nowrap;
}

body.dashboard-layout .summary-total .summary-value {
    color: #8fa8ff;
    font-size: 1.65rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.035em;
    text-align: right;
}

/* 예상 금액(최소~최대)은 한 줄로 여유 있게 */
body.dashboard-layout .summary-total.is-range {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

body.dashboard-layout .summary-total.is-range .summary-value {
    width: 100%;
    font-size: 1.3rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    word-spacing: 0.12em;
    white-space: nowrap;
}

body.dashboard-layout .order-summary-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

body.dashboard-layout .order-summary-buttons .btn-order {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #5b7ce5, #4868d8);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 9px 22px rgba(72, 104, 216, 0.28);
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.dashboard-layout .order-summary-buttons .btn-order:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(72, 104, 216, 0.34);
}

body.dashboard-layout .order-summary-buttons .btn-order:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

body.dashboard-layout .order-summary-buttons .btn-order:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.dashboard-layout .order-summary-buttons .btn-order-preset {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #dbe3f5;
    box-shadow: none;
}

body.dashboard-layout .order-summary-buttons .btn-order-preset:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

body.dashboard-layout .order-summary-buttons .btn-order-preset .order-control-icon {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

body.dashboard-layout .summary-note {
    margin: 0.9rem 0 0;
    color: #929db0;
    font-size: 0.68rem;
    line-height: 1.5;
    text-align: center;
}

body.dashboard-layout .price-notice {
    border-color: #f0d49d;
    background: #fff8e8;
    color: #9c641d;
}

body.dashboard-layout #presetSaveModal {
    background: rgba(31, 41, 61, 0.55) !important;
    backdrop-filter: blur(4px);
}

body.dashboard-layout #presetSaveModal > div > div {
    border: 1px solid var(--order-border) !important;
    background: #ffffff !important;
    box-shadow: 0 24px 60px rgba(31, 41, 61, 0.2) !important;
}

body.dashboard-layout #presetSaveModal h3 {
    color: var(--order-brand) !important;
}

@media (max-width: 1220px) {
    body.dashboard-layout .order-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    body.dashboard-layout .order-summary {
        position: static !important;
    }

    body.dashboard-layout .order-summary-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 1rem 1.5rem;
        align-items: end;
    }

    body.dashboard-layout .order-summary h2,
    body.dashboard-layout .summary-items,
    body.dashboard-layout .summary-divider,
    body.dashboard-layout .summary-note {
        grid-column: 1 / -1;
    }

    body.dashboard-layout .summary-items {
        max-height: 220px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 1.25rem;
    }

    body.dashboard-layout .summary-overview,
    body.dashboard-layout .summary-total {
        grid-column: 1;
        margin: 0;
    }

    body.dashboard-layout .order-summary-buttons {
        grid-column: 2;
        grid-row: 4 / span 2;
        width: 230px;
        margin: 0;
    }
}

@media (max-width: 768px) {
    body.dashboard-layout .dashboard-content {
        padding: 0.75rem 0.75rem calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.dashboard-layout .dashboard-header {
        align-items: center;
        gap: 0.7rem;
        min-height: 48px;
        margin-bottom: 0.9rem;
        padding-right: 3.25rem;
    }

    body.dashboard-layout .order-platform-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }

    body.dashboard-layout .dashboard-header .dashboard-title {
        font-size: 1.3rem;
    }

    body.dashboard-layout .dashboard-header .dashboard-subtitle {
        display: block;
        margin-top: 0.18rem;
        font-size: 0.7rem;
    }

    body.dashboard-layout .order-section {
        margin-bottom: 1rem;
        padding: 0 !important;
    }

    body.dashboard-layout .order-section-title,
    body.dashboard-layout .order-section-title[style] {
        min-height: 44px;
        margin-bottom: 0.45rem !important;
        flex-wrap: nowrap;
        row-gap: 0 !important;
    }

    body.dashboard-layout .order-section-title > div {
        width: auto;
        margin-left: auto;
        flex-wrap: nowrap;
    }

    body.dashboard-layout .order-section-title > span:first-of-type {
        white-space: nowrap;
    }

    body.dashboard-layout .preset-selector {
        max-width: 7rem !important;
    }

    body.dashboard-layout .order-section-title > label {
        margin-left: auto !important;
    }

    body.dashboard-layout #targetUrl {
        height: 44px;
        min-height: 44px;
        padding: 0.65rem 0.8rem;
        overflow-y: auto;
        resize: none !important;
        border-radius: 11px;
        line-height: 1.45 !important;
    }

    body.dashboard-layout #targetUrl + .help-text {
        display: none;
    }

    body.dashboard-layout .service-items-grid {
        border-radius: 15px;
    }

    body.dashboard-layout .service-item-row,
    body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc),
    body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc {
        grid-template-columns: minmax(0, 1fr) 84px;
        grid-template-rows: auto auto;
        gap: 0 0.55rem;
        min-height: 62px;
        padding: 0.5rem 0.65rem;
        border-radius: 0;
        border-width: 0 0 1px;
    }

    body.dashboard-layout .service-item-info,
    body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .service-item-info {
        grid-column: 1;
        grid-row: 1;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 0.5rem;
    }

    body.dashboard-layout .service-item-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    body.dashboard-layout .service-item-icon img {
        width: 18px;
        height: 18px;
    }

    body.dashboard-layout .service-item-info h4,
    body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .service-item-info h4 {
        font-size: 0.79rem;
    }

    body.dashboard-layout .service-description {
        display: none;
    }

    body.dashboard-layout .service-item-row.show-desc .service-description {
        display: block;
        margin-top: 0.3rem;
        white-space: normal !important;
    }

    body.dashboard-layout .service-item-meta {
        display: none;
    }

    body.dashboard-layout .service-item-hint {
        margin-top: 0.25rem;
        padding: 0.14rem 0.42rem;
        font-size: 0.64rem;
    }

    body.dashboard-layout .service-item-row:not(.custom-comment-layout) > div:last-child {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    body.dashboard-layout .service-item-row .quantity-input,
    body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .quantity-input,
    body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc .quantity-input {
        height: 44px;
        padding: 0.42rem 0.5rem;
        font-size: 0.76rem;
    }

    body.dashboard-layout .service-item-price,
    body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .service-item-price,
    body.dashboard-layout .service-item-row:not(.custom-comment-layout).show-desc .service-item-price {
        grid-column: 1;
        grid-row: 2;
        margin-left: 42px;
        text-align: left;
    }

    body.dashboard-layout .service-item-price .total-price,
    body.dashboard-layout .service-item-row:not(.custom-comment-layout):not(.show-desc) .service-item-price .total-price {
        font-size: 0.72rem;
    }

    body.dashboard-layout .service-item-row.custom-comment-layout {
        display: block;
    }

    body.dashboard-layout .service-item-row.custom-comment-layout .service-item-header {
        grid-template-columns: minmax(0, 1fr) 80px;
    }

    body.dashboard-layout .order-summary-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 0.5rem !important;
        align-items: center;
        padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    }

    body.dashboard-layout .order-summary {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        z-index: 1200;
        width: 100%;
        padding: 0 !important;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 28px rgba(31, 41, 61, 0.2);
    }

    body.dashboard-layout .order-summary h2,
    body.dashboard-layout .summary-items,
    body.dashboard-layout .summary-divider,
    body.dashboard-layout .summary-overview,
    body.dashboard-layout .summary-note,
    body.dashboard-layout .order-summary-buttons .btn-order-preset {
        display: none;
    }

    body.dashboard-layout .summary-total {
        grid-column: 1;
        width: 100%;
        height: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0 0.75rem !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between;
        gap: 0.5rem !important;
        overflow: hidden;
        border-radius: 10px;
        background: #f3f6ff;
    }

    body.dashboard-layout .summary-total .summary-label {
        color: #505b70;
        font-weight: 700;
    }

    body.dashboard-layout .summary-total .summary-value {
        min-width: 0;
        overflow: hidden;
        color: var(--order-brand-dark) !important;
        font-size: 0.9rem !important;
        line-height: 1;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.dashboard-layout .order-summary-buttons {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        margin: 0;
    }

    body.dashboard-layout .order-summary-buttons .btn-order {
        width: 96px;
        min-width: 96px !important;
        height: 44px;
        min-height: 44px;
        padding: 0 0.75rem !important;
        border-radius: 10px !important;
    }

    body.dashboard-layout #userModeToggle {
        bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 360px) {
    body.dashboard-layout .order-section-title,
    body.dashboard-layout .order-section-title[style] {
        flex-wrap: wrap;
    }

    body.dashboard-layout .order-section-title > div {
        width: 100%;
        margin-left: 2.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.dashboard-layout .service-item-row,
    body.dashboard-layout .btn-order {
        transition: none;
    }
}
