.photo-toolbar {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.photo-toolbar form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.photo-toolbar input,
.photo-toolbar select,
.photo-toolbar textarea {
    padding: 9px 10px;
    border: 1px solid #bbb;
}

.photo-toolbar .nrr-select {
    min-width: 320px;
    max-width: 520px;
}

.photo-banner {
    background: #f4f4f4;
    border: 1px solid #cfcfcf;
    padding: 18px;
    margin-bottom: 16px;
}

.photo-breadcrumb {
    font-size: 14px;
    margin-bottom: 8px;
}

.photo-breadcrumb a {
    color: #600;
    text-decoration: none;
    font-weight: 700;
}

.photo-banner h1 {
    margin: 0 0 8px;
    font-size: 34px;
    color: #111;
    text-transform: none;
}

.photo-banner p {
    margin: 0 0 14px;
    color: #333;
    max-width: 760px;
}

.photo-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.photo-tab {
    text-decoration: none;
    border: 1px solid #999;
    color: #111;
    padding: 8px 12px;
    font-weight: 700;
    background: #fff;
}

.photo-tab.active {
    background: #111;
    color: #fff;
}

.photo-year-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.photo-year-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1 1 auto;
    padding-bottom: 4px;
}

.photo-year-strip::-webkit-scrollbar {
    height: 8px;
}

.photo-year-link,
.photo-month-link {
    min-width: 88px;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #999;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.photo-year-link.active,
.photo-month-link.active {
    background: #600;
    color: #fff;
}

.photo-year-arrow {
    width: 46px;
    min-width: 46px;
    height: 42px;
    border: 1px solid #999;
    background: #fff;
    color: #111;
    text-decoration: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.photo-year-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
}

.photo-year-arrow path {
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photo-month-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-top: 10px;
}

.photo-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.photo-upload-shell {
    border: 1px solid #ccc;
    background: #fffdf4;
    padding: 16px;
    margin: 16px 0;
}

.photo-drafts {
    display: grid;
    gap: 16px;
}

.photo-draft {
    border: 1px solid #ccc;
    background: #fff;
    padding: 14px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 14px;
}

.photo-draft-preview {
    position: relative;
    border: 1px solid #aaa;
    background: #111;
}

.photo-draft-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-crop-box {
    position: absolute;
    border: 2px solid #f0d000;
    box-sizing: border-box;
    pointer-events: none;
}

.photo-draft-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.photo-draft-fields .field.span-2 {
    grid-column: span 2;
}

.photo-select-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.photo-select-card {
    position: relative;
}

.photo-select-check {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 22px;
    height: 22px;
}

.photo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
}

.photo-list li {
    padding: 12px 14px;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.photo-list li:first-child {
    border-top: 0;
}

@media (max-width: 1100px) {
    .photo-draft {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .photo-detail-grid,
    .photo-draft-fields {
        grid-template-columns: 1fr;
    }

    .photo-draft-fields .field.span-2 {
        grid-column: span 1;
    }
}
