﻿/* Google Drive — öğretmen paneli */

#drive-view .gd-shell {
    max-width: 52rem;
    margin: 0 auto;
}

.gd-head {
    margin-bottom: 1rem;
}

.gd-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.gd-head-text {
    min-width: 0;
    flex: 1;
}

.gd-head-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gd-header-connect {
    white-space: nowrap;
}

.gd-brand-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.gd-drive-logo {
    display: inline-flex;
    width: 1.65rem;
    height: 1.65rem;
    flex-shrink: 0;
}

.gd-drive-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.gd-drive-logo-lg {
    width: 2.35rem;
    height: 2.35rem;
}

.gd-connected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 0.85rem;
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    white-space: nowrap;
}

.gd-connected-badge.hidden {
    display: none !important;
}

/* Bağlıyken eski "Google ile bağlan" butonu bu sınıfa çevrilir */
button.gd-is-connected-state,
a.gd-is-connected-state {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    cursor: default !important;
    box-shadow: none !important;
    pointer-events: none;
}

.gd-kicker {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f766e;
    margin-bottom: 0.25rem;
}

.gd-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.04em;
    /* ASLA text-transform:uppercase kullanma — tr locale Drive→DRİVE yapar */
    text-transform: none;
    margin: 0;
}

.gd-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.35;
}

.gd-alert {
    border-radius: 1rem;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.gd-alert.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.gd-alert.is-ok {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.gd-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gd-connect {
    border: 1.5px dashed #cbd5e1;
    text-align: center;
    padding: 2rem 1.25rem;
}

.gd-connect-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.85rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ecfdf5, #e0f2fe);
    color: #0f766e;
    font-size: 1.5rem;
}

.gd-connect h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.gd-connect ul {
    text-align: left;
    max-width: 22rem;
    margin: 0 auto 1.25rem;
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.55;
    list-style: disc;
    padding-left: 1.1rem;
}

.gd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.85rem;
    padding: 0.7rem 1.15rem;
    font-size: 0.8rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.gd-btn:active {
    transform: scale(0.98);
}

.gd-btn.is-primary {
    background: #0f766e;
    color: #fff;
}

.gd-btn.is-primary:hover {
    background: #0d9488;
}

.gd-btn.is-ghost {
    background: #f1f5f9;
    color: #334155;
}

.gd-btn.is-ghost:hover {
    background: #e2e8f0;
}

.gd-btn.is-danger {
    background: #fff1f2;
    color: #be123c;
}

.gd-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gd-card-compact {
    padding: 0.65rem 0.75rem !important;
}

.gd-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.gd-toolbar-compact {
    margin-bottom: 0.35rem;
    gap: 0.35rem 0.5rem;
}

.gd-toolbar-compact .gd-sync-stamp {
    margin: 0;
    font-size: 0.65rem;
    white-space: nowrap;
}

.gd-toolbar-compact .gd-meta {
    font-size: 0.62rem;
    margin-left: 0;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-btn-sm {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.72rem !important;
    min-width: 2rem;
}

.gd-more-menu {
    position: relative;
}

.gd-more-menu summary {
    list-style: none;
    cursor: pointer;
}

.gd-more-menu summary::-webkit-details-marker { display: none; }

.gd-more-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 40;
    min-width: 11rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.gd-more-panel .gd-btn {
    width: 100%;
    justify-content: flex-start;
}

.gd-meta {
    font-size: 0.7rem;
    color: #64748b;
    margin-left: auto;
}

.gd-folder-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #115e59;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.gd-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.gd-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.gd-row-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #0f766e;
    flex-shrink: 0;
}

.gd-row-main {
    min-width: 0;
    flex: 1;
}

.gd-row-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-row-sub {
    font-size: 0.65rem;
    color: #94a3b8;
}

.gd-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #94a3b8;
    font-size: 0.8rem;
    font-style: italic;
}

.gd-upload-input {
    display: none;
}

.gd-sync-stamp {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f766e;
    margin: 0 0 0.35rem;
}

.gd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.gd-browser-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0;
}

.gd-search-wrap {
    flex: 1 1 12rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.35rem 0.65rem;
    min-width: 0;
}

.gd-search-wrap i {
    color: #94a3b8;
    font-size: 0.75rem;
}

.gd-search-input {
    border: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
}

.gd-item-count {
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    white-space: nowrap;
}

.gd-load-more {
    width: 100%;
    margin-top: 0.65rem;
}

.gd-load-more.hidden {
    display: none !important;
}

.gd-row-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.45rem;
    display: block;
}

.gd-row.is-folder:hover {
    border-color: #fcd34d;
    background: #fffbeb;
}

.gd-crumb {
    border: 0;
    background: transparent;
    color: #0f766e;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.gd-crumb.is-now {
    color: #0f172a;
    cursor: default;
}

.gd-crumb-sep {
    color: #cbd5e1;
}

.gd-drop-card {
    min-height: 12rem;
}

.gd-drop-card.is-drag {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.gd-drop-hint {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.gd-row {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s ease, transform 0.08s ease;
}
.gd-row:active {
    transform: scale(0.992);
    background: #f1f5f9;
}
html.is-capacitor .gd-row-thumb,
html.is-native-app .gd-row-thumb {
    display: none;
}

.gd-row.is-folder .gd-row-icon {
    color: #d97706;
}

.gd-row-open {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.65rem !important;
}

.gd-row-del {
    padding: 0.35rem 0.5rem !important;
    color: #be123c !important;
}

.gd-fav-bar {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 1rem;
    padding: 0.7rem 0.85rem;
}
.gd-fav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}
.gd-fav-head strong { font-size: 0.75rem; color: #0f172a; }
.gd-fav-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.gd-fav-chip {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.28rem 0.65rem;
    cursor: pointer;
}
.gd-fav-x {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}
.gd-fav-empty { font-size: 0.7rem; color: #64748b; }

/* —— Izgara görünüm —— */
.gd-list.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 0.65rem;
}
.gd-list.is-grid .gd-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 0.75rem 0.55rem 0.65rem;
    min-height: 8.5rem;
}
.gd-list.is-grid .gd-row-main { width: 100%; }
.gd-list.is-grid .gd-row-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gd-list.is-grid .gd-row-icon {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 auto 0.35rem;
    font-size: 1.35rem;
}
.gd-list.is-grid .gd-row-open,
.gd-list.is-grid .gd-row-del,
.gd-list.is-grid .gd-row-import {
    width: 100%;
    margin-top: 0.15rem;
}
.gd-list.is-grid .gd-row.is-folder {
    background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.gd-sync-stamp.is-pulse {
    animation: gd-sync-flash 0.85s ease;
}
@keyframes gd-sync-flash {
    0% { color: #0f766e; }
    40% { color: #059669; transform: scale(1.02); }
    100% { color: #0f766e; transform: none; }
}

.gd-row-import {
    padding: 0.35rem 0.5rem !important;
    color: #0f766e !important;
}

/* —— Uygulama içi önizleme —— */
body.gd-preview-open { overflow: hidden !important; }
.gd-preview {
    position: fixed;
    inset: 0;
    z-index: 52000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: calc(var(--mp-safe-top, env(safe-area-inset-top, 0px)) + 0.45rem) 0.45rem calc(env(safe-area-inset-bottom, 0px) + 0.45rem);
    box-sizing: border-box;
}
.gd-preview.hidden { display: none !important; }
.gd-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
}
.gd-preview-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 96vw);
    max-width: none;
    height: calc(100dvh - var(--mp-safe-top, env(safe-area-inset-top, 0px)) - env(safe-area-inset-bottom, 0px) - 0.9rem);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}
.gd-preview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.gd-preview-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
}
.gd-preview-title-wrap h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gd-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.gd-preview-close { padding: 0.45rem 0.55rem !important; position: relative; z-index: 2; pointer-events: auto; }
.gd-preview-actions .gd-btn { position: relative; z-index: 2; pointer-events: auto; }
.gd-preview-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #334155;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}
.gd-preview-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    border: 0;
    border-radius: 0;
    background: #fff;
}
.gd-preview-frame--pdf {
    min-height: calc(100dvh - var(--mp-safe-top, 0px) - 5.5rem);
}
.gd-preview-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    display: block;
}
.gd-preview-video {
    max-width: 100%;
    max-height: min(72vh, 42rem);
}
.gd-preview-text {
    width: 100%;
    max-height: min(72vh, 42rem);
    overflow: auto;
    margin: 0;
    padding: 0.85rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.75rem;
    line-height: 1.45;
    border-radius: 0.35rem;
    white-space: pre-wrap;
    word-break: break-word;
}
.gd-preview-note {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.55rem;
    margin: 0;
    padding: 0.45rem 0.55rem;
    font-size: 0.68rem;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 0.55rem;
    text-align: center;
}
.gd-preview-body:has(.gd-pdf-reader) {
    flex-direction: column;
    background: #475569;
}

/* —— PDF okuma modu —— */
.gd-pdf-reader {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
}
.gd-pdf-toolbar {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    padding: 0.45rem 0.65rem;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    color: #e2e8f0;
}
.gd-pdf-nav,
.gd-pdf-zoom,
.gd-pdf-modes {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.gd-pdf-modes { margin-left: auto; }
.gd-pdf-btn {
    border: 1px solid #475569;
    background: #334155;
    color: #f8fafc;
    border-radius: 0.45rem;
    padding: 0.32rem 0.45rem;
    font-size: 0.72rem;
    cursor: pointer;
    line-height: 1;
}
.gd-pdf-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.gd-pdf-btn-text {
    padding: 0.32rem 0.55rem;
    font-weight: 700;
}
.gd-pdf-btn.is-on {
    background: #0f766e;
    border-color: #14b8a6;
    color: #fff;
}
.gd-pdf-page-info,
.gd-pdf-zoom-label {
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 3.2rem;
    text-align: center;
    color: #cbd5e1;
}
.gd-pdf-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: hidden;
}
.gd-pdf-thumbs {
    flex: 0 0 5.5rem;
    overflow-y: auto;
    background: #1e293b;
    border-right: 1px solid #334155;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.gd-pdf-thumbs.hidden { display: none !important; }
.gd-pdf-thumb {
    border: 2px solid transparent;
    border-radius: 0.35rem;
    padding: 0;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
}
.gd-pdf-thumb.is-on {
    border-color: #14b8a6;
    box-shadow: 0 0 0 1px #14b8a6;
}
.gd-pdf-thumb canvas {
    display: block;
    width: 100%;
    height: auto;
}
.gd-pdf-scroll {
    flex: 1 1 auto;
    min-width: 0;
    overflow: auto;
    background: #64748b;
    -webkit-overflow-scrolling: touch;
}
.gd-pdf-scroll.is-reading {
    background: #94a3b8;
}
.gd-pdf-page-wrap {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.85rem 0.65rem 1.25rem;
    box-sizing: border-box;
}
.gd-pdf-scroll.is-reading .gd-pdf-page-wrap {
    padding: 1rem 0.75rem 1.5rem;
}
.gd-pdf-canvas {
    display: block;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.35);
    border-radius: 2px;
    max-width: none;
}

.gd-preview-body:has(.gd-preview-img),
.gd-preview-body:has(.gd-preview-video) {
    overflow: auto;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
}
.gd-preview-body:has(.gd-preview-note) { position: relative; padding-bottom: 2.2rem; }

@media (max-width: 767px) {
    .gd-pdf-modes { margin-left: 0; width: 100%; }
    .gd-pdf-btn-text { font-size: 0.68rem; padding: 0.3rem 0.45rem; }
    .gd-pdf-thumbs { flex-basis: 4.5rem; }
    .gd-pdf-toolbar { gap: 0.3rem; }
}

@media (max-width: 767px) {
    .gd-preview-sheet { width: 100%; border-radius: 0.65rem; height: calc(100dvh - var(--mp-safe-top, 0px) - 0.5rem); }
    .gd-preview-frame--pdf { min-height: calc(100dvh - var(--mp-safe-top, 0px) - 4.5rem); }
    .gd-preview-img,
    .gd-preview-video { max-height: calc(100dvh - var(--mp-safe-top, 0px) - 4.5rem); }
    .gd-list.is-grid { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
    .gd-toolbar-compact .gd-meta { display: none; }
}

/* —— İçe aktarma hedef seçici —— */
body.gd-import-open { overflow: hidden !important; }
.gd-import {
    position: fixed;
    inset: 0;
    z-index: 53000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--mp-safe-top, env(safe-area-inset-top, 0px)) + 0.65rem) 0.65rem calc(env(safe-area-inset-bottom, 0px) + 0.65rem);
    box-sizing: border-box;
}
.gd-import.hidden { display: none !important; }
.gd-import-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
}
.gd-import-sheet {
    position: relative;
    z-index: 1;
    width: min(28rem, 100%);
    max-height: 100%;
    overflow: auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
}
.gd-import-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem 0.55rem;
    border-bottom: 1px solid #e2e8f0;
}
.gd-import-kicker {
    margin: 0 0 0.15rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.gd-import-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}
.gd-import-file {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
    color: #475569;
    word-break: break-word;
}
.gd-import-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem 0.85rem;
}
.gd-import-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.gd-import-opt:hover:not(:disabled):not(.is-disabled) {
    border-color: #0f766e;
    background: #ecfdf5;
    transform: translateY(-1px);
}
.gd-import-opt:disabled,
.gd-import-opt.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.gd-import-opt-icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: #fff;
    color: #0f766e;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.gd-import-opt-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}
.gd-import-opt-text strong {
    font-size: 0.82rem;
    color: #0f172a;
}
.gd-import-opt-text small {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.35;
}

/* —— Mobil klasör seçici (Picker yerine) —— */
.gd-folder-pick {
    position: fixed;
    inset: 0;
    z-index: 12050;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.gd-folder-pick.hidden { display: none !important; }
.gd-folder-pick-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.gd-folder-pick-sheet {
    position: relative;
    width: min(100%, 28rem);
    max-height: min(82dvh, 36rem);
    margin: 0 auto;
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
}
.gd-folder-pick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.gd-folder-pick-head h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}
.gd-folder-pick-path {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 700;
    color: #64748b;
    word-break: break-word;
}
.gd-folder-pick-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.gd-folder-pick-list {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 50dvh;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.35rem;
}
.gd-folder-pick-row { margin-bottom: 0.25rem; }
body.gd-folder-pick-open { overflow: hidden; }

/* —— Drive v2: Google Drive benzeri tarayıcı —— */
.gd-shell-v2 {
    max-width: 64rem !important;
}
.gd-browser {
    padding: 0.85rem 1rem 1rem !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
.gd-browser-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
}
.gd-browser-title-block {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}
.gd-folder-heading {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gd-browser-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.gd-icon-btn {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
}
.gd-icon-btn:disabled { opacity: 0.4; cursor: default; }
.gd-icon-btn.is-primary {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}
.gd-icon-btn:active { transform: scale(0.96); }
.gd-search-wrap-lg {
    min-width: 11rem;
    flex: 1 1 11rem;
    max-width: 18rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}
.gd-breadcrumb-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    margin: 0.35rem 0 0.65rem;
    font-size: 0.78rem;
}
.gd-breadcrumb-v2 .gd-crumb {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0;
    cursor: pointer;
}
.gd-breadcrumb-v2 .gd-crumb.is-root,
.gd-breadcrumb-v2 .gd-crumb.is-now {
    color: #334155;
    cursor: default;
    font-weight: 800;
}
.gd-breadcrumb-v2 .gd-crumb-sep {
    color: #94a3b8;
    font-weight: 600;
}
.gd-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}
.gd-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.gd-chip {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 0.32rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}
.gd-chip.is-on {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}
.gd-filter-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.gd-sort-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 700;
}
.gd-sort-select {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
}
.gd-view-toggle {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 0.55rem;
    overflow: hidden;
    background: #fff;
}
.gd-view-btn {
    width: 2rem;
    height: 1.85rem;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}
.gd-view-btn.is-on {
    background: #e0f2fe;
    color: #0369a1;
}
.gd-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    align-items: center;
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 0.45rem;
}
.gd-sort-header {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.25rem;
}
.gd-sort-header.hidden { display: none !important; }
.gd-sort-col {
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.gd-drop-flat {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.gd-drop-flat .gd-drop-hint { display: none; }

/* Izgara — Drive kartları */
.gd-list.is-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.75rem;
    padding: 0.25rem 0;
}
.gd-list.is-grid .gd-row.is-tile {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    min-height: 9.2rem;
    padding: 0.85rem 0.7rem 0.65rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gd-list.is-grid .gd-row.is-tile.is-folder {
    background: linear-gradient(180deg, #fffef8 0%, #fff7e6 100%);
    border-color: #fde68a;
}
.gd-list.is-grid .gd-row-icon {
    width: 3.6rem;
    height: 3.2rem;
    margin: 0.15rem auto 0.55rem;
    font-size: 2.1rem;
    background: transparent;
    border: 0;
    color: #f59e0b;
}
.gd-list.is-grid .gd-row:not(.is-folder) .gd-row-icon {
    color: #64748b;
    font-size: 1.75rem;
}
.gd-list.is-grid .gd-row-main { width: 100%; }
.gd-list.is-grid .gd-row-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
    text-align: left;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gd-list.is-grid .gd-row-sub {
    font-size: 0.62rem;
    color: #94a3b8;
    text-align: left;
}
.gd-list.is-grid .gd-row-more {
    position: absolute;
    top: 0.35rem;
    right: 0.25rem;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    opacity: 0.7;
}
.gd-list.is-grid .gd-row-more:hover,
.gd-list.is-grid .gd-row-more:active {
    background: #f1f5f9;
    opacity: 1;
}
.gd-list:not(.is-grid) .gd-row-more { display: none; }

@media (max-width: 720px) {
    .gd-folder-heading { font-size: 1.1rem; }
    .gd-filter-bar { flex-direction: column; align-items: stretch; }
    .gd-filter-right { justify-content: space-between; }
    .gd-list.is-grid {
        grid-template-columns: repeat(auto-fill, minmax(7.8rem, 1fr));
        gap: 0.55rem;
    }
}
