.revision-class-panel {
    box-sizing: border-box;
    padding-bottom: 120px;
    text-align: left;
}

.revision-class-stage {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 18px;
}

.revision-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.revision-preview {
    align-items: center;
    border: none;
    border-radius: 24px;
    color: #3f3a32;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    min-height: 148px;
    padding: 22px 18px;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s, filter 0.18s;
}

.revision-preview[data-revision-mode="solo"] {
    background: linear-gradient(135deg, #fffbf8, #ffede4);
    box-shadow: 0 1px 3px rgba(124, 45, 18, 0.05);
}

.revision-preview[data-revision-mode="tree"] {
    background: linear-gradient(135deg, #f7fcf7, #e6f3e6);
    box-shadow: 0 1px 3px rgba(20, 83, 45, 0.05);
}

.revision-preview:hover,
.revision-preview.active {
    filter: saturate(1.02);
    transform: translateY(-1px);
}

.revision-preview[data-revision-mode="solo"]:hover,
.revision-preview[data-revision-mode="solo"].active {
    box-shadow: 0 12px 24px rgba(124, 45, 18, 0.08);
}

.revision-preview[data-revision-mode="tree"]:hover,
.revision-preview[data-revision-mode="tree"].active {
    box-shadow: 0 12px 24px rgba(20, 83, 45, 0.08);
}

.revision-preview:active {
    transform: scale(0.95);
}

.revision-mode-illustration {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.revision-mode-illustration svg {
    display: block;
    height: 56px;
    width: 56px;
}

.revision-mode-copy {
    display: grid;
    gap: 4px;
    max-width: 128px;
    min-width: 96px;
    text-align: left;
}

.revision-mode-copy strong {
    font-size: 16px;
    line-height: 1.1;
}

.revision-mode-copy span {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}

.revision-solo-options {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height 0.34s ease, opacity 0.24s ease, transform 0.34s ease, margin-bottom 0.34s ease;
}

.revision-solo-options.is-open {
    margin-bottom: 18px;
    max-height: 380px;
    opacity: 1;
    transform: translateY(0);
}

.revision-duration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.revision-duration-card {
    border: 2px solid #d9c7b4;
    border-radius: 8px;
    min-height: 128px;
    padding: 12px 8px;
    background: #fffaf2;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.revision-duration-card:hover,
.revision-duration-card.active {
    border-color: #caa979;
    box-shadow: 0 0 0 3px rgba(210, 181, 114, 0.18);
}

.revision-duration-card:hover {
    transform: translateY(-1px);
}

.revision-countup-card {
    align-items: center;
    background: #fffaf2;
    border: 2px solid #d9c7b4;
    border-radius: 8px;
    color: #33352f;
    cursor: pointer;
    display: flex;
    font-family: inherit;
    gap: 12px;
    justify-content: center;
    margin: 0;
    min-height: 78px;
    padding: 12px 16px;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
    width: 100%;
}

.revision-countup-card:hover,
.revision-countup-card.active {
    border-color: #caa979;
    box-shadow: 0 0 0 3px rgba(210, 181, 114, 0.18);
}

.revision-countup-card:hover {
    transform: translateY(-1px);
}

.revision-countup-icon {
    font-size: 22px;
    line-height: 1;
}

.revision-countup-card strong {
    font-size: 23px;
    line-height: 1.1;
}

.revision-countup-card span {
    color: #777d74;
    font-size: 13px;
    font-weight: 800;
}

.revision-duration-card strong {
    display: block;
    color: #33352f;
    font-size: 23px;
    line-height: 1.2;
}

.revision-duration-card > span {
    color: #777d74;
    font-size: 12px;
    font-weight: 700;
}

.revision-pinecone {
    align-items: center;
    display: flex;
    height: 34px;
    justify-content: center;
    margin-top: 2px;
    position: relative;
    width: 34px;
}

.revision-pinecone .acorn {
    position: relative;
    left: auto;
    top: auto;
    transform: rotate(-8deg);
}

.revision-pinecone-xl {
    height: 44px;
    width: 44px;
}

.revision-pinecone-xl .acorn {
    height: 38px;
    width: 30px;
}

@media (max-width: 420px) {
    .revision-duration-grid {
        gap: 8px;
    }

    .revision-duration-card {
        min-height: 118px;
        padding: 10px 6px;
    }

    .revision-duration-card strong {
        font-size: 20px;
    }
}

.revision-calendar {
    background: rgba(255, 250, 242, 0.76);
    border: 2px solid #d9c7b4;
    border-radius: 8px;
    padding: 16px 14px 18px;
}

.calendar-header {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 34px 1fr 34px;
    margin-bottom: 12px;
}

.revision-calendar h3 {
    color: #33352f;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.calendar-nav-btn {
    background: rgba(255, 253, 247, 0.86);
    border: 2px solid #d5cec4;
    border-radius: 50%;
    color: #555a53;
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    font-weight: 800;
    height: 34px;
    line-height: 1;
    width: 34px;
}

.calendar-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.revision-timer-panel {
    overflow: hidden;
    min-height: max(calc(100vh - 146px), 720px);
    position: relative;
    text-align: center;
}

.revision-timer-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 56px;
    position: relative;
    z-index: 3;
}

.revision-icon-btn {
    background: transparent;
    border: none;
    color: #5b5d59;
    cursor: pointer;
    display: grid;
    height: 44px;
    place-items: center;
    width: 44px;
}

.revision-back-icon {
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    display: block;
    height: 18px;
    transform: rotate(45deg);
    width: 18px;
}

.revision-gear-icon {
    border: 2px solid currentColor;
    border-radius: 50%;
    display: block;
    height: 24px;
    position: relative;
    width: 24px;
}

.revision-gear-icon::before {
    background: currentColor;
    border-radius: 50%;
    content: "";
    height: 6px;
    left: 7px;
    position: absolute;
    top: 7px;
    width: 6px;
}

.revision-gear-icon::after {
    content: "";
    inset: -7px 8px;
    position: absolute;
    border-top: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
}

.revision-timer-content {
    padding-top: clamp(42px, 9vh, 86px);
    position: relative;
    z-index: 3;
}

.revision-timer-display {
    color: #3f3f3d;
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 22px;
}

.revision-session-label {
    background: transparent;
    border: none;
    color: #8c8d89;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    padding: 0;
}

.revision-session-controls {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 0 auto;
    max-width: 360px;
    position: relative;
}

.revision-file-control {
    min-width: 0;
    position: relative;
}

.revision-file-btn,
.revision-topic-input {
    background: rgba(255, 255, 255, 0.76);
    border: 2px solid #d5cec4;
    border-radius: 8px;
    box-sizing: border-box;
    color: #555a53;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    height: 44px;
    width: 100%;
}

.revision-file-btn {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 7px;
    justify-content: center;
    padding: 0 10px;
}

.revision-file-btn:hover,
.revision-topic-input:focus {
    border-color: #d2b572;
    box-shadow: 0 0 0 3px rgba(210, 181, 114, 0.18);
    outline: none;
}

.revision-file-folder {
    border: 1px solid rgba(74, 70, 63, 0.16);
    border-radius: 3px;
    box-shadow: inset 0 -3px 0 rgba(74, 70, 63, 0.08);
    display: inline-block;
    flex: 0 0 auto;
    height: 15px;
    position: relative;
    width: 20px;
}

.revision-file-folder::before {
    background: inherit;
    border: 1px solid rgba(74, 70, 63, 0.12);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    content: "";
    height: 5px;
    left: 2px;
    position: absolute;
    top: -5px;
    width: 9px;
}

.revision-topic-input {
    padding: 0 12px;
    text-align: center;
}

.revision-topic-input::placeholder {
    color: #9a9c96;
}

.revision-file-panel {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid #d5cec4;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(74, 70, 63, 0.16);
    left: 0;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 52px;
    z-index: 8;
}

.revision-file-list {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.revision-file-option {
    align-items: center;
    background: #fbfaf7;
    border: 2px solid #e1dbd2;
    border-radius: 8px;
    color: #555a53;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 34px;
    padding: 6px 8px;
    text-align: left;
}

.revision-file-option.active,
.revision-file-option:hover {
    border-color: #d2b572;
}

.revision-file-form {
    border-top: 1px solid #eeeae3;
    display: grid;
    gap: 8px;
    padding-top: 10px;
}

.revision-file-form input {
    border: 2px solid #d5cec4;
    border-radius: 8px;
    box-sizing: border-box;
    color: #555a53;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    height: 36px;
    padding: 0 10px;
    width: 100%;
}

.revision-color-swatches {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(6, 1fr);
}

.revision-color-swatch {
    aspect-ratio: 1;
    border: 2px solid rgba(74, 70, 63, 0.16);
    border-radius: 50%;
    cursor: pointer;
    min-width: 0;
}

.revision-color-swatch.active,
.revision-color-swatch:hover {
    border-color: #33352f;
}

.revision-add-file-btn {
    background: #7f9a82;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    height: 36px;
}

.revision-tool-row {
    display: flex;
    gap: 44px;
    justify-content: center;
    margin-top: clamp(58px, 10vh, 96px);
}

.revision-tool-btn {
    align-items: center;
    background: #dcebd9;
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 12px rgba(75, 78, 70, 0.12);
    color: #789878;
    cursor: pointer;
    display: flex;
    height: 52px;
    justify-content: center;
    position: relative;
    width: 52px;
}

.revision-tool-mic,
.revision-tool-keyboard,
.revision-tool-camera {
    display: block;
    position: relative;
}

.revision-tool-mic {
    border: 2px solid currentColor;
    border-radius: 999px;
    height: 21px;
    width: 11px;
}

.revision-tool-mic::before {
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-radius: 0 0 12px 12px;
    content: "";
    height: 11px;
    left: -7px;
    position: absolute;
    top: 9px;
    width: 22px;
}

.revision-tool-mic::after {
    background: currentColor;
    bottom: -11px;
    content: "";
    height: 9px;
    left: 4px;
    position: absolute;
    width: 2px;
}

.revision-tool-keyboard {
    border: 2px solid currentColor;
    border-radius: 4px;
    height: 18px;
    width: 25px;
}

.revision-tool-keyboard::before {
    color: currentColor;
    content: "••••••";
    font-size: 12px;
    left: 3px;
    letter-spacing: 1px;
    line-height: 1;
    position: absolute;
    top: 0;
}

.revision-tool-camera {
    border: 2px solid currentColor;
    border-radius: 5px;
    height: 17px;
    width: 24px;
}

.revision-tool-camera::before {
    background: currentColor;
    content: "";
    height: 4px;
    left: 5px;
    position: absolute;
    top: -5px;
    width: 8px;
}

.revision-tool-camera::after {
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
    height: 7px;
    left: 6px;
    position: absolute;
    top: 4px;
    width: 7px;
}

.revision-focus-area {
    align-items: center;
    bottom: 150px;
    display: flex;
    flex-direction: column;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 3;
}

.revision-focus-btn {
    background: #454544;
    border: none;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(61, 60, 58, 0.18);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    min-width: 190px;
    padding: 22px 34px;
    position: relative;
    transform: translateY(16px);
    z-index: 4;
}

.revision-pinecone-pile {
    bottom: 0;
    height: 100vh;
    left: 0;
    margin: 0;
    max-width: none;
    overflow: hidden;
    pointer-events: auto;
    position: fixed;
    right: 0;
    top: auto;
    width: 100vw;
    z-index: 1;
}

.pile-acorn {
    contain: layout paint style;
    left: 0;
    opacity: 1;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform-origin: 50% 58%;
    will-change: transform;
}

.pile-acorn-five {
    filter: saturate(0.95) brightness(1.04);
}

.pile-acorn-thirty {
    filter: saturate(1.08) drop-shadow(0 5px 8px rgba(120, 82, 39, 0.12));
}

.pile-acorn-sixty {
    filter: saturate(1.12) drop-shadow(0 8px 12px rgba(120, 82, 39, 0.16));
}

.revision-reward-text {
    align-items: center;
    background: rgba(250, 247, 239, 0.94);
    border: 1px solid #e2d9ca;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(74, 70, 63, 0.08);
    color: #8f918b;
    display: flex;
    gap: 5px;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin: 24px auto 0;
    padding: 8px 14px;
    position: relative;
    z-index: 3;
}

.reward-acorn {
    display: inline-block;
    position: relative;
    transform: rotate(-10deg);
}

.reward-acorn-small {
    height: 20px;
    width: 16px;
}

.reward-acorn-medium {
    height: 26px;
    width: 20px;
}

.reward-acorn-xl {
    height: 36px;
    width: 28px;
}

.calendar-weekdays,
.calendar-month {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.calendar-weekdays {
    color: #8b8d88;
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.calendar-day {
    align-items: center;
    aspect-ratio: 1;
    background: rgba(255, 253, 247, 0.74);
    border: 2px solid transparent;
    border-radius: 50%;
    color: #33352f;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    position: relative;
}

.calendar-day.is-empty {
    background: transparent;
}

.calendar-day.has-study::after {
    background: #b97832;
    border-radius: 50%;
    bottom: 3px;
    content: "";
    height: 5px;
    position: absolute;
    width: 5px;
}

.calendar-day.is-today {
    border: 2px solid var(--primary);
    color: var(--primary);
}
