* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    min-height: 100vh;
}

header {
    background: #fff;
    border-bottom: 1px solid #e0e4e8;
    padding: 24px 32px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
}

.subtitle {
    color: #666;
    margin-top: 4px;
    font-size: 14px;
}

.header-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background: #f0f2f5;
    color: #333;
}

.nav-link.active {
    background: #4a6cf7;
    color: #fff;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.upload-section {
    margin-bottom: 24px;
}

.upload-area {
    border: 2px dashed #c0c8d4;
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.upload-area.drag-over {
    border-color: #4a6cf7;
    background: #f0f4ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 18px;
    font-weight: 500;
    color: #444;
}

.upload-subtext {
    color: #888;
    margin: 8px 0;
    font-size: 14px;
}

.upload-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #4a6cf7;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.upload-btn:hover {
    background: #3a5ce5;
}

.year-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.year-entry-filename {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    word-break: break-all;
    max-width: 480px;
}

.year-entry-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.year-entry-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.year-entry-input {
    width: 96px;
    padding: 8px 10px;
    border: 1.5px solid #c0c8d4;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.year-entry-input::-webkit-inner-spin-button,
.year-entry-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.year-entry-input:focus {
    border-color: #4a6cf7;
}

.options-bar {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.sensitivity-label {
    font-size: 13px;
    color: #666;
}

.sensitivity-label select {
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px solid #d0d4d8;
    border-radius: 6px;
    font-size: 13px;
}

.status-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #e0e4e8;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e4e8;
    border-top-color: #4a6cf7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-area {
    padding: 16px 24px;
    background: #fff5f5;
    border: 1px solid #fcc;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #c00;
    font-size: 14px;
}

.success-area {
    padding: 16px 24px;
    background: #f0faf0;
    border: 1px solid #b3e6b3;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #1a7a1a;
    font-size: 14px;
}

.success-area a {
    color: #4a6cf7;
    font-weight: 500;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.results-section {
    margin-top: 8px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.results-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.results-controls label {
    font-size: 13px;
    color: #666;
}

.results-controls select {
    margin-left: 6px;
    padding: 4px 8px;
    border: 1px solid #d0d4d8;
    border-radius: 6px;
    font-size: 13px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-primary {
    background: #4a6cf7;
    color: #fff;
}

.btn-primary:hover {
    background: #3a5ce5;
}

.btn-accent {
    background: #16a34a;
    color: #fff;
}

.btn-accent:hover {
    background: #15803d;
}

.btn-accent:disabled {
    background: #86efac;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e8ecf0;
    color: #333;
}

.btn-secondary:hover {
    background: #d8dce0;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.doc-group {
    margin-bottom: 32px;
}

.doc-group-header {
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 8px 8px 0 0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-group-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.doc-group-header .doc-meta {
    font-size: 12px;
    color: #888;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 16px;
    background: #fafbfc;
    border: 1px solid #e0e4e8;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.library-grid {
    border-top: 1px solid #e0e4e8;
    border-radius: 8px;
}

.item-card {
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    position: relative;
}

.item-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.item-info {
    padding: 12px;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #222;
    min-height: 20px;
}

.item-title-display {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #222;
    min-height: 20px;
    word-break: break-word;
}

.item-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.crop-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.crop-label {
    font-size: 11px;
    color: #888;
    margin-right: 2px;
}

.crop-padding-val {
    font-size: 11px;
    color: #555;
    min-width: 30px;
    text-align: center;
}

.crop-error {
    font-size: 11px;
    color: #c00;
    margin-left: 4px;
}

.btn-xs {
    padding: 2px 7px;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
}

.item-actions {
    padding: 8px 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 48px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e4e8;
}

.empty-state p {
    color: #666;
    font-size: 16px;
}

.empty-state a {
    color: #4a6cf7;
    text-decoration: underline;
}

.empty-hint {
    margin-top: 8px;
    font-size: 14px !important;
    color: #999 !important;
}

.item-select {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a6cf7;
}

.item-card.selected {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

#resultsContainer.classifying {
    position: relative;
    pointer-events: none;
    user-select: none;
}

#resultsContainer.classifying::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    z-index: 10;
}

.selection-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    margin-bottom: 16px;
    gap: 8px;
}

.selection-bar span {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.export-hint {
    width: 100%;
    margin: 8px 0 0;
    padding: 7px 12px;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #92400e;
}

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

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

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    background: #f8f9fa;
    padding: 16px;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-caption {
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.lightbox-caption p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

.lightbox-meta {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #888 !important;
    margin-top: 4px !important;
}

.export-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.export-modal p {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.library-filters {
    margin-bottom: 20px;
}

.library-filters h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
}

.filter-bar label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.filter-bar select {
    margin-left: 4px;
    padding: 4px 8px;
    border: 1px solid #d0d4d8;
    border-radius: 6px;
    font-size: 13px;
    max-width: 180px;
}

.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.tag-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.tag-region {
    background: #e6f7e6;
    color: #1a6b1a;
}

.tag-country {
    background: #e6f0ff;
    color: #1a4a8a;
}

.tag-year {
    background: #fff3e0;
    color: #8a5a1a;
}

.tag-topic {
    background: #f0e6ff;
    color: #5a1a8a;
}

.btn-danger {
    background: #e53e3e;
    color: #fff;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-danger:disabled {
    background: #e53e3e;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-input {
    padding: 5px 10px;
    border: 1px solid #d0d4d8;
    border-radius: 6px;
    font-size: 13px;
    width: 260px;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.15);
}

.search-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

@media (max-width: 640px) {
    main { padding: 16px; }
    .upload-area { padding: 32px 16px; }
    .results-header { flex-direction: column; align-items: flex-start; }
    .items-grid { grid-template-columns: 1fr; }
    .selection-bar { flex-direction: column; text-align: center; }
    .header-content { flex-direction: column; gap: 12px; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
    .search-input { width: 100%; }
}

.dup-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dup-modal {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    width: 440px;
    max-width: 90vw;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.dup-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.dup-modal-close:hover { color: #333; }

.dup-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
}

.dup-modal-body {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px;
}

.dup-modal-list {
    margin: 0 0 20px 18px;
    padding: 0;
    font-size: 13px;
    color: #333;
}

.dup-modal-list li {
    margin-bottom: 3px;
    word-break: break-all;
}

.dup-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border: 1px solid #e0e4e8;
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.login-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.login-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.login-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    font-size: 15px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.header-user-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4a6cf7;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.header-user-name {
    color: #1a1a2e;
    font-weight: 500;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-logout {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #d0d4d8;
    transition: all 0.2s;
}

.header-user-logout:hover {
    color: #c00;
    border-color: #c00;
}

.item-actions-right {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-view-page {
    white-space: nowrap;
}

.context-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.15s ease;
}

.context-modal-body {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.context-modal-title {
    padding: 14px 48px 14px 20px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
}

.context-modal-body img {
    max-width: 90vw;
    max-height: calc(90vh - 50px);
    object-fit: contain;
    background: #f8f9fa;
    padding: 8px;
}

.context-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s;
    line-height: 1;
}

.context-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.collections-section {
    margin-bottom: 2rem;
}

.collections-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.collections-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.collection-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
}

.collection-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.collection-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.collection-thumb-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-color-accent {
    width: 100%;
    height: 4px;
    display: block;
    flex-shrink: 0;
    background: #4a6cf7;
}

.collection-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.collection-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-count {
    font-size: 0.8rem;
    color: #888;
}

.collection-meta {
    font-size: 0.78rem;
    color: #777;
    line-height: 1.4;
}

.collections-empty {
    padding: 1.5rem;
    text-align: center;
    color: #888;
}

.create-collection-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.collection-name-input {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    font-size: 0.9rem;
    flex: 1;
    max-width: 300px;
}

.collection-view-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border, #e0e0e0);
}

.collection-view-header h2 {
    margin: 0;
    flex: 1;
}

.collection-picker-body {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    max-height: 60vh;
    overflow-y: auto;
}

.collection-picker-body h3 {
    margin: 0 0 1rem;
}

.picker-new-collection {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.picker-new-collection input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
}

.picker-new-collection input:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

.collection-picker-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.collection-picker-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.collection-picker-item:hover {
    background: #eef;
}

.share-modal-body {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.share-modal-body h3 {
    margin: 0 0 1rem;
}

.share-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.share-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.share-form select {
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid var(--border, #e0e0e0);
}

.share-checkbox-label {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem !important;
}

.share-link-result {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f7ff;
    border-radius: 6px;
}

.share-link-result input {
    flex: 1;
}

.share-access-list {
    border-top: 1px solid var(--border, #e0e0e0);
    padding-top: 1rem;
}

.share-access-list h4 {
    margin: 0 0 0.75rem;
}

.share-access-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.share-user-name {
    flex: 1;
    font-size: 0.9rem;
}

.share-access-item select {
    padding: 0.25rem;
    border-radius: 4px;
    border: 1px solid var(--border, #e0e0e0);
    font-size: 0.85rem;
}

.shared-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.collection-owner {
    font-size: 0.75rem;
    color: #999;
}
