/**
 * FDS Dashboard — Editorial tasarım dili
 */

:root {
    --fds-red: #dc2626;
    --fds-red-dark: #991b1b;
    --fds-red-soft: #fef2f2;
    --fds-ink: #0d0c22;
    --fds-ink-soft: #2a2940;
    --fds-muted: #6b7280;
    --fds-line: #e5e7eb;
    --fds-bg: #fafafa;
}

/* Ana grid */
.fds-dash {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 70vh;
    max-width: 1280px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid var(--fds-line);
}

/* Sidebar */
.fds-dash-side {
    background: #fafafa;
    border-right: 1px solid var(--fds-line);
    padding: 32px 0;
    display: flex;
    flex-direction: column;
}
.fds-dash-brand {
    padding: 0 28px 24px;
    border-bottom: 1px solid var(--fds-line);
    margin-bottom: 24px;
}
.fds-dash-brand-eyebrow {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--fds-red);
    margin-bottom: 14px;
}
.fds-dash-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.01em;
    line-height: 1.3;
}
.fds-dash-user-role {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fds-muted);
    margin-top: 4px;
}

.fds-dash-firm-switcher,
.fds-dash-firm-current {
    padding: 0 28px 20px;
}
.fds-dash-switch-label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fds-muted);
    margin-bottom: 8px;
}
.fds-dash-firm-switcher select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--fds-line);
    border-radius: 2px;
    font-size: .9rem;
    background: #fff;
    color: var(--fds-ink);
    cursor: pointer;
}
.fds-dash-firm-current strong {
    font-size: .95rem;
    color: var(--fds-ink);
    font-weight: 600;
    display: block;
}

.fds-dash-nav {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    flex: 1;
}
.fds-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 2px 0;
    color: var(--fds-ink-soft);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    border-radius: 2px;
    border-left: 2px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    position: relative;
}
.fds-dash-nav-item:hover {
    background: #fff;
    color: var(--fds-ink);
}
.fds-dash-nav-item.is-active {
    background: #fff;
    color: var(--fds-red);
    border-left-color: var(--fds-red);
    font-weight: 600;
}
.fds-dash-nav-icon {
    display: inline-flex;
    color: currentColor;
    opacity: .75;
}
.fds-dash-nav-item.is-active .fds-dash-nav-icon { opacity: 1; }
.fds-dash-nav-label { flex: 1; }
.fds-dash-nav-badge {
    background: var(--fds-red);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: .04em;
}

.fds-dash-side-footer {
    margin-top: auto;
    padding: 24px 28px 0;
    border-top: 1px solid var(--fds-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fds-dash-side-link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--fds-muted);
    text-decoration: none;
    transition: color .15s ease;
}
.fds-dash-side-link:hover { color: var(--fds-ink); }
.fds-dash-side-logout { color: var(--fds-red); }

/* Main */
.fds-dash-main {
    padding: 40px 48px;
    min-width: 0;
}

.fds-dash-page-head {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fds-line);
    position: relative;
}
.fds-dash-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--fds-red);
    margin-bottom: 14px;
}
.fds-dash-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--fds-red);
}
.fds-dash-page-head h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.02em;
    margin: 0 0 10px;
    line-height: 1.2;
}
.fds-dash-page-head p {
    color: var(--fds-muted);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}
.fds-dash-head-action {
    position: absolute;
    top: 0;
    right: 0;
}
.fds-dash-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--fds-ink);
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid var(--fds-ink);
    border-radius: 2px;
    transition: background .15s ease, border-color .15s ease;
}
.fds-dash-btn-primary:hover {
    background: var(--fds-red);
    border-color: var(--fds-red);
    color: #fff;
}

/* Sections */
.fds-dash-section { margin-bottom: 48px; }
.fds-dash-section-head {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.fds-dash-section-head h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.01em;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fds-ink);
    display: inline-block;
}

/* Stats */
.fds-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--fds-line);
    border: 1px solid var(--fds-line);
    margin-bottom: 40px;
}
.fds-dash-stat {
    background: #fff;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: background .2s ease;
}
.fds-dash-stat:hover { background: #fafafa; }
.fds-dash-stat-primary {
    background: var(--fds-ink);
    color: #fff;
    position: relative;
}
.fds-dash-stat-primary::after {
    content: "→";
    position: absolute;
    top: 22px;
    right: 22px;
    opacity: .5;
    transition: transform .2s ease, opacity .2s ease;
}
.fds-dash-stat-primary:hover {
    background: var(--fds-red);
}
.fds-dash-stat-primary:hover::after {
    transform: translateX(4px);
    opacity: 1;
}
.fds-dash-stat-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fds-muted);
}
.fds-dash-stat-primary .fds-dash-stat-label { color: rgba(255,255,255,.6); }
.fds-dash-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.fds-dash-stat-primary .fds-dash-stat-value { color: #fff; font-size: 2rem; }
.fds-dash-stat-sub {
    font-size: .82rem;
    color: var(--fds-muted);
}
.fds-dash-stat-primary .fds-dash-stat-sub { color: rgba(255,255,255,.65); }

/* Quick actions */
.fds-dash-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--fds-line);
    border: 1px solid var(--fds-line);
}
.fds-dash-action-card {
    background: #fff;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background .2s ease;
    position: relative;
}
.fds-dash-action-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--fds-red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s ease;
}
.fds-dash-action-card:hover { background: #fafafa; }
.fds-dash-action-card:hover::before { transform: scaleY(1); }
.fds-dash-action-icon {
    display: inline-flex;
    color: var(--fds-red);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fds-red);
    width: fit-content;
}
.fds-dash-action-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.01em;
}
.fds-dash-action-desc {
    font-size: .88rem;
    color: var(--fds-muted);
    line-height: 1.5;
}

/* Placeholder */
.fds-dash-placeholder {
    padding: 40px 30px;
    text-align: center;
    background: #fafafa;
    border: 1px dashed var(--fds-line);
    color: var(--fds-muted);
}
.fds-dash-placeholder p { margin: 0; font-size: .95rem; line-height: 1.6; }

/* Badge grid (dashboard) */
.fds-dash-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--fds-line);
    border: 1px solid var(--fds-line);
}
.fds-dash-badge-card {
    background: #fff;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
    transition: background .2s ease;
}
.fds-dash-badge-card:hover { background: #fafafa; }
.fds-dash-badge-icon {
    font-size: 1.75rem;
    margin-bottom: 4px;
}
.fds-dash-badge-name {
    font-weight: 700;
    color: var(--fds-ink);
    font-size: .95rem;
}
.fds-dash-badge-meta {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fds-muted);
}

/* Table */
.fds-dash-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--fds-line);
}
.fds-dash-table th {
    text-align: left;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--fds-line);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fds-muted);
}
.fds-dash-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--fds-line);
    font-size: .92rem;
    color: var(--fds-ink);
}
.fds-dash-table tr:last-child td { border-bottom: 0; }

.fds-dash-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.fds-dash-status-pending  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.fds-dash-status-approved { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.fds-dash-status-rejected { background: var(--fds-red-soft); color: var(--fds-red-dark); border: 1px solid #fecaca; }

/* Login required */
.fds-dash-login-required {
    max-width: 520px;
    margin: 80px auto;
    text-align: center;
    padding: 50px 30px;
    background: #fff;
    border: 1px solid var(--fds-line);
    border-radius: 4px;
}
.fds-dash-login-required h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.015em;
    margin: 0 0 14px;
}
.fds-dash-login-required p {
    color: var(--fds-muted);
    line-height: 1.6;
    margin: 0 0 22px;
}
.fds-dash-login-required .fds-dash-eyebrow {
    justify-content: center;
    margin-bottom: 16px;
    display: inline-flex;
}
.fds-dash-login-required .fds-dash-btn,
.fds-dash-btn {
    display: inline-block;
    padding: 13px 26px;
    background: var(--fds-ink);
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background .15s ease;
}
.fds-dash-login-required .fds-dash-btn:hover,
.fds-dash-btn:hover { background: var(--fds-red); color: #fff; }

/* ============ PROFİL FORMU ============ */
.fds-profile-form-wrap { max-width: 900px; }
.fds-profile-form { display: flex; flex-direction: column; gap: 40px; }

.fds-form-section {
    border-top: 1px solid var(--fds-line);
    padding-top: 28px;
}
.fds-form-section:first-child {
    border-top: 0;
    padding-top: 0;
}
.fds-form-section-head {
    margin-bottom: 24px;
}
.fds-form-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--fds-red);
    margin-bottom: 10px;
}
.fds-form-section-eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: var(--fds-red);
}
.fds-form-section-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.015em;
    margin: 0 0 6px;
    border: 0;
    padding: 0;
    display: block;
}
.fds-form-section-head p {
    color: var(--fds-muted);
    font-size: .92rem;
    margin: 0;
    line-height: 1.55;
}

.fds-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.fds-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fds-form-full { grid-column: 1 / -1; }

.fds-form-group label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--fds-ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fds-form-group label small {
    font-size: .76rem;
    font-weight: 400;
    color: var(--fds-muted);
    letter-spacing: .01em;
}

.fds-form-group input[type="text"],
.fds-form-group input[type="url"],
.fds-form-group input[type="email"],
.fds-form-group textarea {
    width: 100%;
    padding: 11px 2px;
    background: #fff;
    border: 0;
    border-bottom: 1.5px solid var(--fds-line);
    border-radius: 0;
    font-size: .98rem;
    color: var(--fds-ink);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .2s ease;
}
.fds-form-group textarea {
    padding: 12px 14px;
    background: #fafafa;
    border: 1.5px solid var(--fds-line);
    border-radius: 2px;
    resize: vertical;
    min-height: 90px;
    line-height: 1.55;
}
.fds-form-group input:focus,
.fds-form-group textarea:focus {
    outline: none;
    border-color: var(--fds-red);
    background: #fff;
}
.fds-form-group input:disabled {
    background: #fafafa;
    color: var(--fds-muted);
    border-bottom-color: var(--fds-line);
    cursor: not-allowed;
}

.fds-form-actions {
    border-top: 1px solid var(--fds-line);
    padding-top: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.fds-btn-primary-large {
    padding: 14px 28px;
    background: var(--fds-ink);
    color: #fff;
    border: 1px solid var(--fds-ink);
    border-radius: 2px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.fds-btn-primary-large:hover:not(:disabled) {
    background: var(--fds-red);
    border-color: var(--fds-red);
}
.fds-btn-primary-large:disabled { opacity: .55; cursor: wait; }

.fds-form-status {
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .01em;
}
.fds-form-status.is-success { color: #166534; }
.fds-form-status.is-error   { color: var(--fds-red-dark); }

/* ============ GALERİ ============ */
.fds-gallery-upload { margin-bottom: 36px; }
.fds-gallery-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 50px 20px;
    border: 2px dashed var(--fds-line);
    border-radius: 4px;
    background: #fafafa;
    color: var(--fds-muted);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.fds-gallery-dropzone:hover,
.fds-gallery-dropzone.is-dragging {
    border-color: var(--fds-red);
    background: var(--fds-red-soft);
    color: var(--fds-red-dark);
}
.fds-gallery-dropzone-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.01em;
}
.fds-gallery-dropzone-desc {
    font-size: .88rem;
    line-height: 1.5;
}
.fds-gallery-dropzone-desc small {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    opacity: .7;
}

.fds-gallery-uploading {
    padding: 22px;
    border: 1.5px solid var(--fds-red);
    background: var(--fds-red-soft);
    border-radius: 4px;
    text-align: center;
}
.fds-gallery-progress {
    height: 4px;
    background: #fecaca;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}
.fds-gallery-progress span {
    display: block;
    height: 100%;
    background: var(--fds-red);
    transition: width .2s ease;
    width: 0;
}
.fds-gallery-upload-msg {
    font-size: .88rem;
    font-weight: 600;
    color: var(--fds-red-dark);
}

.fds-gallery-count {
    color: var(--fds-muted);
    font-weight: 400;
    font-size: .88rem;
    letter-spacing: 0;
    margin-left: 6px;
}

.fds-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.fds-gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--fds-line);
    border-radius: 2px;
    overflow: hidden;
    background: #fafafa;
    transition: border-color .2s ease;
}
.fds-gallery-item.is-cover {
    border-color: var(--fds-red);
    box-shadow: 0 0 0 1px var(--fds-red);
}
.fds-gallery-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.fds-gallery-cover-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--fds-red);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .16em;
    padding: 3px 8px;
    border-radius: 2px;
}
.fds-gallery-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 100%);
}
.fds-gallery-item:hover .fds-gallery-actions {
    opacity: 1;
    transform: translateY(0);
}
.fds-gallery-action {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(255,255,255,.2);
    color: var(--fds-ink);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.fds-gallery-action:hover { background: var(--fds-ink); color: #fff; }
.fds-gallery-remove-btn:hover { background: var(--fds-red); color: #fff; }

/* ============ TEKLİF TALEPLERİ ============ */
.fds-q-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--fds-line);
    border: 1px solid var(--fds-line);
    margin-bottom: 28px;
}
.fds-q-stat {
    background: #fff;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fds-q-stat-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--fds-muted);
}
.fds-q-stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.02em;
}

.fds-q-filters {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--fds-line);
    margin-bottom: 24px;
    overflow-x: auto;
}
.fds-q-filter {
    padding: 10px 18px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--fds-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.fds-q-filter:hover { color: var(--fds-ink); }
.fds-q-filter.is-active {
    color: var(--fds-red);
    border-bottom-color: var(--fds-red);
}

.fds-q-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fds-q-item {
    background: #fff;
    border: 1px solid var(--fds-line);
    padding: 22px 24px;
    border-radius: 2px;
    position: relative;
    transition: border-color .2s ease, background .2s ease;
}
.fds-q-item.is-new {
    border-left: 3px solid var(--fds-red);
    background: #fff;
}
.fds-q-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.fds-q-item-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fds-q-status {
    display: inline-block;
    padding: 3px 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 2px;
}
.fds-q-status-new       { background: var(--fds-red-soft); color: var(--fds-red-dark); border: 1px solid #fecaca; }
.fds-q-status-seen      { background: #f3f4f6; color: var(--fds-ink-soft); border: 1px solid var(--fds-line); }
.fds-q-status-contacted { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.fds-q-status-won       { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.fds-q-status-lost,
.fds-q-status-declined  { background: #fff; color: var(--fds-muted); border: 1px solid var(--fds-line); }

.fds-q-urgent {
    background: var(--fds-red);
    color: #fff;
    padding: 3px 10px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: 2px;
}
.fds-q-date {
    font-size: .8rem;
    color: var(--fds-muted);
}
.fds-q-item-list {
    font-size: .75rem;
    color: var(--fds-muted);
    letter-spacing: .04em;
}

.fds-q-customer {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fds-ink);
    letter-spacing: -.01em;
    margin: 0 0 10px;
}

.fds-q-contact {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.fds-q-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--fds-ink);
    text-decoration: none;
    transition: color .15s ease;
}
.fds-q-contact-item:hover { color: var(--fds-red); }
.fds-q-contact-item svg { color: var(--fds-red); flex-shrink: 0; }

.fds-q-detail {
    white-space: pre-wrap;
    color: var(--fds-ink-soft);
    line-height: 1.7;
    font-size: .95rem;
    padding: 14px 0;
    border-top: 1px solid var(--fds-line);
    border-bottom: 1px solid var(--fds-line);
    margin-bottom: 14px;
}

.fds-q-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.fds-q-action-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--fds-line);
    color: var(--fds-ink);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.fds-q-action-btn:hover:not(:disabled) {
    border-color: var(--fds-ink);
    background: #fafafa;
}
.fds-q-action-btn:disabled { opacity: .5; cursor: wait; }
.fds-q-action-win {
    background: var(--fds-ink);
    color: #fff;
    border-color: var(--fds-ink);
}
.fds-q-action-win:hover {
    background: #166534;
    border-color: #166534;
}
.fds-q-action-done {
    padding: 8px 16px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fds-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .fds-dash { grid-template-columns: 1fr; margin: 0; border-left: 0; border-right: 0; }
    .fds-dash-side { border-right: 0; border-bottom: 1px solid var(--fds-line); }
    .fds-dash-main { padding: 28px 22px; }
    .fds-dash-head-action { position: static; margin-top: 16px; }
    .fds-form-grid { grid-template-columns: 1fr; }
    .fds-q-stats { grid-template-columns: repeat(2, 1fr); }
}
