html, body {
    margin: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-y: hidden;
}

.compact-view {
    display: none;
    width: 100%;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
}
.compact-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    transition: background-color 0.2s, border-color 0.2s;
}
.compact-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}
.compact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}
.compact-content svg {
    width: 24px;
    height: 24px;
    stroke: #6c757d;
    stroke-width: 2;
}

body.is-compact .guide-container {
    display: none;
}
body.is-compact .compact-view {
    display: block;
}

.guide-container { 
    display: flex; 
    flex-wrap: wrap; 
    height: 100%;
    width: 100%;
    background-color: #E3D0FF;
    overflow-y: hidden;
    container-type: inline-size;
}

.left-pane {
    flex: 2 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    min-width: 0;
}

.left-pane, .right-pane {
    flex: 1 1 300px;
    min-width: 300px;
}

.swiper { 
    width: 100%; 
    height: 100%;
    border-radius: 8px;
    overflow: hidden
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-slide img {   
    width: 100%; 
    height: 100%; 
    object-fit:scale-down;
    display: block;
    cursor: zoom-in;
}

.step-note {
  font-weight: bold;
  font-size: 0.9em; 
}

.right-pane {
    display: flex;
    flex-direction: column;
    background-color: #FFFBEF;
    padding: clamp(0.75rem, 0.5rem + 3cqw, 1.5rem);
    box-sizing: border-box;
    flex: 1 1 300px;
    min-width: 300px;
    max-width: 100%;
    justify-content: center;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

#guide-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.fullscreen-btn {
    flex-shrink: 0;
    margin-left: 16px;
    background: none;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.fullscreen-btn:hover {
    background-color: #f8f9fa;
}

.fullscreen-btn svg {
    width: 20px;
    height: 20px;
    stroke: #6c757d;
    stroke-width: 2;
}

.step-description { 
    font-size: 16px; 
    line-height: 1.6; 
    color: #333; 
    max-height: 200px;
    min-height: 200px;
    overflow-y: auto;
}

.step-description .ql-callout-info,
.step-description .ql-callout-warning,
.step-description .ql-callout-must-follow {
    font-size: clamp(0.65rem, 0.6rem + 0.1cqw, 0.675rem);
    padding: 10px 15px;
    margin: 1em 0;
    border-radius: 4px;
}

.step-description .ql-callout-info {
    background-color: #e6f4ea;
    border-left: 4px solid #4caf50;
}
.step-description .ql-callout-warning {
    background-color: #fff4e5;
    border-left: 4px solid #ff9800;
}
.step-description .ql-callout-must-follow {
    background-color: #fdecea;
    border-left: 4px solid #f44336;
}

.stepper-controls { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: 16px; 
    margin-top: 16px;
    flex-shrink: 0;
    border-top: 1px solid #e0e0e0;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.step-counter { 
    font-size: 14px; 
    font-weight: 500; 
    color: #6c757d; 
}

.stepper-btn { 
    padding: 10px 16px; 
    font-size: 14px; 
    font-weight: 600; 
    border: 0px;
    background-color: #5C0A8F;
    color: #fff;
    border-radius: 6px; 
    cursor: pointer; 
    transition: background-color 0.2s, border-color 0.2s; 
}

.swiper-button-disabled { 
    background-color: #e9ecef; 
    cursor: not-allowed;
    color: #adb5bd;
}

@container (min-width: 600px) {
    .right-pane {
        max-width: 34%;
    }
}