.progress-fill.step-1 {
    width: 33%;
}

.progress-fill.step-2 {
    width: 67%;
}

.progress-fill.step-3 {
    width: 100%;
}

.register-export a.option,
.register-export a.option:hover {
    color: var(--ink);
    text-decoration: none;
}

.custom-period summary {
    list-style: none;
}

.custom-period summary::-webkit-details-marker {
    display: none;
}

.custom-period[open] summary {
    border-color: var(--ink);
    background: var(--surface-selected);
}

.custom-period-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-4);
}

.card.export-contents {
    padding: var(--space-2) var(--space-5);
}

.export-row {
    display: flex;
    align-items: center;
    gap: var(--space-row);
    padding: var(--space-4) 0;
}

.export-row + .export-row {
    border-top: 1px solid var(--divider);
}

label.export-row {
    cursor: pointer;
}

.register-export .hint.small,
.register-export .note {
    margin: 0;
}

.sheets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-row);
    margin: 0;
    padding: 0;
    list-style: none;
}

.sheet-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 118px;
    padding: 0;
    border: none;
    background: none;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.a4 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
    width: 118px;
    height: 167px;
    padding: 12px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface);
}

.sheet-preview:hover .a4 {
    border-color: var(--ink);
}

.a4-title {
    font-size: 9px;
    font-weight: var(--font-weight-heavy);
    line-height: 1.2;
}

.a4-line {
    flex: none;
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--border);
}

.line-60 { width: 60%; }
.line-70 { width: 70%; }
.line-80 { width: 80%; }
.line-85 { width: 85%; }
.line-90 { width: 90%; }
.line-100 { width: 100%; }

.a4.small {
    flex: none;
    gap: 4px;
    width: 44px;
    height: 62px;
    padding: 6px;
}

.sheet-caption {
    font-size: var(--font-size-label);
    line-height: 1.3;
    color: var(--text-muted);
}

.freeze-warning {
    margin: 0;
    font-size: var(--font-size-meta);
    font-weight: var(--font-weight-medium);
}

.preview-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
}

.preview-dialog[open] {
    display: flex;
    flex-direction: column;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--divider);
}

.preview-title {
    margin: 0;
    font-size: var(--font-size-control);
    font-weight: var(--font-weight-bold);
}

.preview-header .quit {
    flex: none;
    background: var(--surface);
    cursor: pointer;
}

.preview-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.preview-frame {
    display: block;
    width: 100%;
    min-width: 720px;
    height: 100%;
    border: none;
    background: var(--surface);
}

.card.exported-file {
    flex-direction: row;
    align-items: center;
    gap: var(--space-row);
}

.exported-file-name {
    font-size: var(--font-size-control);
    font-weight: var(--font-weight-bold);
    overflow-wrap: anywhere;
}

.register-export .back-home {
    align-self: flex-start;
}
