﻿html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef1f4;
    color: #1f2933;
    overflow: auto;
}
body > .container.my-5,
body > .container.mt-4,
body > .privacy-settings-footer {
    display: none !important;
}
.navbar.fixed-top {
    box-shadow: 0 4px 16px rgba(10, 11, 16, 0.22);
}
.app {
    display: flex;
    width: 100%;
    height: calc(100vh - 108px);
    margin-top: 56px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,106,26,0.22);
}
.toolbar {
    flex: 0 0 248px;
    width: 248px;
    height: calc(100vh - 108px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #16202a;
    color: #fff;
    padding: 10px 10px;
    box-sizing: border-box;
}
.toolbar h1 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
}
.toolbar p {
    margin: 0 0 7px;
    color: #cbd5df;
    font-size: 10px;
    line-height: 1.25;
}
.planner-guide {
    margin: 0 0 7px;
    padding: 8px;
    border: 1px solid rgba(242,140,40,0.45);
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: #dfe8f0;
    font-size: 11px;
    line-height: 1.3;
}
.planner-guide strong {
    display: block;
    margin-bottom: 4px;
    color: #f7d794;
}
.planner-guide ol {
    margin: 0 0 6px 16px;
    padding: 0;
}
.planner-guide li {
    margin: 0 0 2px;
}
.planner-guide-actions {
    display: flex;
    gap: 5px;
}
.planner-guide-actions button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 26px;
    margin: 0;
    padding: 4px 5px;
    font-size: 11px;
}
.toolbar button, .toolbar select, .toolbar input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 5px;
    border: 0;
    border-radius: 4px;
    font-size: 12px;
}
.toolbar button {
    min-height: 28px;
    padding: 5px 6px;
    background: #f7f9fb;
    color: #16202a;
    cursor: pointer;
    text-align: center;
}
.toolbar button:hover {
    background: #dfe8f0;
}
.toolbar button.active-tool {
    background: #f28c28;
    color: #111;
    font-weight: bold;
}
.toolbar button.danger {
    background: #b82424;
    color: #fff;
}
.toolbar button.primary {
    background: #f28c28;
    color: #111;
    font-weight: bold;
}
.tool-grid {
    overflow: hidden;
    margin: 0 0 4px;
}
.tool-grid button {
    float: left;
    width: 31.33%;
    height: 34px;
    min-height: 34px;
    margin: 0 2% 5px 0;
    padding: 4px;
}
.tool-grid svg {
    display: block;
    width: 100%;
    height: 24px;
    pointer-events: none;
}
.action-grid {
    overflow: hidden;
    margin: 0 0 4px;
}
.action-grid button {
    float: left;
    width: 49%;
    min-height: 28px;
    margin: 0 2% 5px 0;
    padding: 5px 4px;
}
.action-grid button:nth-child(2n) {
    margin-right: 0;
}
.selection-panel {
    clear: both;
    display: none;
    margin: 0 0 6px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
}
.selection-panel strong {
    display: block;
    margin-bottom: 5px;
    color: #f7d794;
    font-size: 11px;
}
.selection-panel .action-grid {
    margin-bottom: 0;
}
.personal-marker-box {
    clear: both;
    margin: 0 0 6px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
}
.personal-marker-box select,
.personal-marker-box button,
.personal-marker-box a,
.personal-marker-box textarea {
    margin-bottom: 5px;
}
.personal-marker-box textarea {
    width: 100%;
    min-height: 58px;
    padding: 5px 6px;
    border: 0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 12px;
    resize: vertical;
}
.personal-marker-box a {
    display: block;
    padding: 6px;
    border-radius: 4px;
    background: #dfe8f0;
    color: #16202a;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}
.planner-ai-generator-card {
    position: relative;
    margin: 6px 0 8px;
    padding: 8px 9px;
    border: 2px solid #ffc14d;
    border-radius: 10px;
    background: linear-gradient(145deg, #fff8e8, #ffd994);
    color: #172033;
    text-align: left;
    box-shadow: 0 7px 22px rgba(242,108,19,.3);
}
.planner-ai-generator-card strong,
.planner-ai-generator-card > span {
    display: block;
}
.planner-ai-generator-card strong {
    margin: 4px 0 3px;
    font-size: 12px;
    line-height: 1.2;
}
.planner-ai-generator-card > span:not(.planner-ai-generator-badge) {
    font-size: 10px;
    line-height: 1.25;
}
.planner-ai-generator-badge {
    color: #9a3e00;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}
.planner-ai-generator-card a {
    display: block;
    margin: 6px 0 0;
    padding: 7px 6px;
    border-radius: 6px;
    background: linear-gradient(135deg,#f57c16,#dd4f08);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .03em;
    box-shadow: 0 3px 8px rgba(120,45,0,.22);
}
.planner-ai-generator-card a:hover {
    background: #c94405;
    color: #fff;
}
.planner-ai-generator-card .planner-ai-generator-info {
    margin-top: 3px;
    padding: 2px;
    background: transparent;
    color: #713400;
    font-size: 10px;
    font-weight: 700;
    box-shadow: none;
    text-decoration: underline;
}
.planner-ai-generator-card .planner-ai-generator-info:hover {
    background: transparent;
    color: #4f2300;
}
.pdf-fundamentals-preview {
    min-height: 0;
    margin: 0 0 6px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 4px;
    background: rgba(0,0,0,0.16);
    color: #dfe8f0;
    font-size: 11px;
    line-height: 1.3;
}
.pdf-fundamentals-preview:empty {
    display: none;
}
.pdf-fundamentals-preview strong {
    color: #f7d794;
}
.background-box {
    clear: both;
    margin: 0 0 6px;
}
.background-box input[type=file] {
    min-height: 28px;
    padding: 4px;
    background: #f7f9fb;
    color: #16202a;
}
.background-status {
    display: block;
    min-height: 15px;
    color: #f7d794;
    font-size: 11px;
    line-height: 1.2;
}
.area-select-rect {
    fill: rgba(30, 136, 229, 0.12);
    stroke: #1e88e5;
    stroke-width: 1.4;
    stroke-dasharray: 6 4;
    pointer-events: none;
}
.animation-area-rect {
    fill: rgba(242, 140, 40, 0.08);
    stroke: #f28c28;
    stroke-width: 1.7;
    stroke-dasharray: 8 4;
    pointer-events: none;
}
.area-ready-rect {
    fill: rgba(30, 136, 229, 0.07);
    stroke: #1e88e5;
    stroke-width: 1.6;
    stroke-dasharray: 8 4;
    pointer-events: none;
}
.saved-sheet-list {
    clear: both;
    max-height: 220px;
    overflow-y: auto;
    margin: 0 0 6px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
}
.saved-sheet-card {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
    min-height: 54px;
    margin: 0 0 4px;
    padding: 5px 6px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 4px;
    background: #f7f9fb;
    color: #16202a;
    font-size: 11px;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
}
.saved-sheet-thumb {
    flex: 0 0 34px;
    width: 34px;
    height: 48px;
    border: 1px solid rgba(0,0,0,0.16);
    background: #fff;
    object-fit: cover;
}
.saved-sheet-info {
    flex: 1 1 auto;
    min-width: 0;
}
.saved-sheet-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.saved-sheet-meta {
    display: block;
    margin-top: 2px;
    color: #5b6673;
    font-size: 10px;
    font-weight: normal;
    line-height: 1.15;
}
.saved-sheet-card.active {
    background: #f28c28;
    color: #111;
    font-weight: bold;
}
.saved-sheet-card.active .saved-sheet-meta {
    color: #2a241b;
}
.saved-sheet-empty {
    padding: 5px 2px;
    color: #cbd5df;
    font-size: 11px;
}
.tool-label {
    position: absolute;
    left: -9999px;
}
.toolbar select, .toolbar input {
    min-height: 28px;
    padding: 5px 6px;
}
.meta-grid {
    clear: both;
    margin: 0 0 5px;
}
.meta-grid textarea {
    width: 100%;
    min-height: 42px;
    margin: 0 0 5px;
    padding: 5px 6px;
    border: 0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 12px;
    resize: vertical;
}
.control-title {
    clear: both;
    margin: 6px 0 4px;
    color: #f7d794;
    font-size: 11px;
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
}
.page-row {
    clear: both;
    display: flex;
    gap: 4px;
    width: 100%;
    margin: 0 0 4px;
}
.page-row button {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    min-height: 32px;
    margin: 0;
    padding: 5px 4px;
    font-size: 12px;
    font-weight: bold;
}
.page-row .page-add {
    flex: 1.28 1 0;
}
.page-row span {
    flex: 1.05 1 0;
    display: block;
    min-height: 32px;
    padding: 8px 3px;
    box-sizing: border-box;
    background: #0f1720;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}
.status {
    position: fixed;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483000;
    max-width: min(560px, calc(100vw - 24px));
    padding: 10px 14px;
    border-radius: 8px;
    background: #16202a;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.planner-tool-mode-btn {
    min-height: 30px !important;
    margin: 0 0 6px !important;
    border: 1px solid rgba(247,215,148,.55) !important;
    background: rgba(255,255,255,.1) !important;
    color: #f7d794 !important;
    font-size: 11px !important;
    font-weight: 800;
}
.planner-tool-mode-btn:hover {
    background: rgba(242,140,40,.22) !important;
}
body.planner-simple-mode .planner-advanced-tool {
    display: none !important;
}
.status:empty {
    display: none;
}
.status.status-visible {
    display: block;
}
.status.status-hiding {
    opacity: 0;
    transform: translate(-50%, -5px);
}
.mobile-only {
    display: none !important;
}
[hidden] {
    display: none !important;
}
.workspace {
    flex: 1 1 auto;
    height: calc(100vh - 108px);
    padding: 10px 14px 12px;
    box-sizing: border-box;
    overflow: auto;
    position: relative;
}
.quickbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 728px;
    margin: 0 auto 8px;
    padding: 6px 8px;
    border: 1px solid #d7dde5;
    border-radius: 5px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 4px 14px rgba(17,24,39,0.10);
}
.quickbar button,
.quickbar span {
    min-height: 30px;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    background: #f7f9fb;
    color: #16202a;
    font-size: 12px;
    font-weight: bold;
}
.quickbar button {
    padding: 5px 9px;
    cursor: pointer;
}
.quickbar button.primary {
    border-color: #f28c28;
    background: #f28c28;
    color: #111;
}
.quickbar span {
    min-width: 54px;
    padding: 6px 8px;
    text-align: center;
}
.floating-palette {
    position: fixed;
    left: 260px;
    top: 58px;
    z-index: 35;
    width: 260px;
    max-width: calc(100% - 18px);
    border: 1px solid #cfd6df;
    border-radius: 5px;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 12px 28px rgba(17,24,39,0.18);
}
.floating-palette.closed .floating-palette-body {
    display: none;
}
.floating-palette-head {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 6px;
    border-bottom: 1px solid #e1e6ed;
    background: #16202a;
    color: #fff;
    cursor: move;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    -ms-touch-action: none;
}
.floating-palette-head strong {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1;
}
.floating-palette-head button {
    flex: 0 0 auto;
    width: auto;
    min-width: 26px;
    min-height: 24px;
    border: 0;
    border-radius: 3px;
    background: #f7f9fb;
    color: #16202a;
    font-weight: bold;
    cursor: pointer;
}
.floating-palette-body {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    max-height: 245px;
    overflow-y: auto;
    overflow-x: hidden;
}
.floating-palette-body button {
    min-width: 0;
    min-height: 30px;
    padding: 4px 2px;
    border: 1px solid #d5dbe4;
    border-radius: 4px;
    background: #f7f9fb;
    color: #16202a;
    font-size: 10px;
    line-height: 1.05;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
}
.floating-palette-body button:hover {
    background: #e9eef5;
}
.floating-palette-body button.active-tool {
    border-color: #f28c28;
    background: #f28c28;
    color: #111;
}
.floating-recent {
    grid-column: 1 / -1;
    display: none;
    border-bottom: 1px solid #d5dbe4;
    padding-bottom: 5px;
    margin-bottom: 2px;
}
.floating-recent-title {
    font-size: 10px;
    font-weight: bold;
    color: #5d6a78;
    margin: 0 0 4px;
}
.floating-recent-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}
.floating-palette-toggle {
    border-color: #f28c28 !important;
    background: #fff7ed !important;
    color: #16202a !important;
}
.ux-section {
    clear: both;
    margin: 0 0 6px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}
.ux-section-toggle {
    display: block;
    width: 100%;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border-radius: 0 !important;
    background: #24313f !important;
    color: #fff !important;
    text-align: left !important;
    font-size: 12px !important;
    font-weight: bold;
}
.ux-section-toggle:before {
    content: "-";
    display: inline-block;
    width: 14px;
    color: #f7d794;
}
.ux-section.closed .ux-section-toggle:before {
    content: "+";
}
.ux-section-body {
    padding: 6px;
    overflow: hidden;
}
.ux-section.closed .ux-section-body {
    display: none;
}
.ux-section-prominent {
    border-color: rgba(242,140,40,0.72);
    background: rgba(242,140,40,0.08);
}
.ux-section-prominent .ux-section-toggle {
    background: #f28c28 !important;
    color: #111 !important;
}
.planner-ad {
    max-width: 728px;
    min-height: 50px;
    max-height: 66px;
    margin: 0 auto 8px;
    overflow: hidden;
}
.planner-ad #annunciobanner {
    padding: 0 !important;
    max-height: 66px;
    overflow: hidden;
}
.planner-ad .adsbygoogle {
    min-height: 50px !important;
    max-height: 66px !important;
}
.sheet-wrap {
    min-width: 707px;
    margin: 0 auto;
    transition: width 0.12s ease, height 0.12s ease;
    padding: 0 24px 24px 0;
    box-sizing: content-box;
}
.sheet {
    position: relative;
    width: 707px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
.sheet:before {
    content: "";
    display: block;
    padding-top: 141.44%;
}
.sheet img.bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: #fff;
}
.animation-tour {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    display: none;
    pointer-events: none;
    background: rgba(255,255,255,0.08);
}
.animation-tour.visible {
    display: block;
}
.tour-card {
    position: absolute;
    width: 178px;
    padding: 8px 9px;
    border: 2px solid #f28c28;
    border-radius: 5px;
    background: rgba(255,255,255,0.96);
    color: #16202a;
    box-shadow: 0 8px 20px rgba(17,24,39,0.18);
    font-size: 12px;
    line-height: 1.25;
}
.tour-card strong {
    display: block;
    margin-bottom: 3px;
    color: #111;
    font-size: 13px;
}
.tour-card span {
    display: inline-block;
    min-width: 18px;
    min-height: 18px;
    margin-right: 5px;
    border-radius: 50%;
    background: #f28c28;
    color: #111;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
}
.tour-card:after {
    content: "";
    position: absolute;
    width: 42px;
    height: 2px;
    background: #f28c28;
}
.tour-card-1 {
    left: 8%;
    top: 10%;
}
.tour-card-1:after {
    right: -42px;
    top: 50%;
}
.tour-card-2 {
    right: 8%;
    top: 24%;
}
.tour-card-2:after {
    left: -42px;
    top: 50%;
}
.tour-card-3 {
    left: 9%;
    top: 48%;
}
.tour-card-3:after {
    right: -42px;
    top: 50%;
}
.tour-card-4 {
    right: 9%;
    bottom: 12%;
}
.tour-card-4:after {
    left: -42px;
    top: 50%;
}
.animation-tour-actions {
    position: absolute;
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    pointer-events: auto;
}
.animation-tour-actions button {
    min-height: 30px;
    padding: 6px 10px;
    border: 0;
    border-radius: 4px;
    background: #16202a;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}
#plannerSvg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    z-index: 2;
    touch-action: none;
    -ms-touch-action: none;
}
.planner-sheet-footer {
    position: absolute;
    right: 7px;
    bottom: 5px;
    z-index: 3;
    max-width: calc(100% - 14px);
    padding: 1px 3px;
    overflow: hidden;
    color: #555;
    background: rgba(255,255,255,0.78);
    font: 7px/1.15 Arial, Helvetica, sans-serif;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}
#plannerSvg.panning {
    cursor: grabbing;
}
#plannerSvg.drawing {
    cursor: crosshair;
}
.piece, .piece circle, .piece text, .piece path, .piece line, .handle {
    cursor: move;
    touch-action: none;
    -ms-touch-action: none;
}
.link-marker-action, .link-marker-action * {
    cursor: pointer;
}
.link-pdf-hit {
    pointer-events: none;
}
.link-print {
    display: none;
}
.hit-area {
    fill: transparent;
    stroke: transparent;
    stroke-width: 14;
    pointer-events: stroke;
    cursor: move;
}
.split-hit {
    stroke-width: 22;
}
.hit-fill {
    fill: transparent;
    stroke: transparent;
    pointer-events: all;
    cursor: move;
}
.selected .select-ring {
    display: block;
}
.anim-recording .select-ring {
    display: block;
    stroke: #f28c28;
    stroke-width: 2.4;
    stroke-dasharray: 2 3;
}
.selected.anim-recording .select-ring {
    stroke: #1e88e5;
    stroke-width: 2.6;
    stroke-dasharray: 5 4;
}
.locked .select-ring {
    stroke: #b82424;
    stroke-dasharray: 2 3;
}
.select-ring {
    display: none;
    fill: none;
    stroke: #1e88e5;
    stroke-width: 2;
    stroke-dasharray: 5 4;
    pointer-events: none;
}
.handle {
    fill: #fff;
    stroke: #1e88e5;
    stroke-width: 2;
    cursor: pointer;
}
.handle-scale {
    fill: #ecfdf5;
    stroke: #059669;
}
.handle-rotate {
    fill: #fff7ed;
    stroke: #f28c28;
}
.hide {
    display: none;
}
.zoom-row {
    clear: both;
    display: flex;
    gap: 4px;
    width: 100%;
    margin: 0 0 5px;
}
.zoom-row button {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    min-height: 28px;
    margin: 0;
    padding: 5px 4px;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
}
.zoom-row span {
    flex: 1.25 1 0;
    display: block;
    min-height: 28px;
    padding: 7px 3px;
    box-sizing: border-box;
    background: #0f1720;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}
.zoom-fit-btn {
    margin-bottom: 5px;
    background: #dfe8f0 !important;
    font-weight: bold;
}
.planner-feedback-box,
.planner-share-box {
    clear: both;
    margin: 0 0 6px;
    padding: 7px;
    border: 1px solid rgba(242,140,40,0.45);
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: #dfe8f0;
    font-size: 11px;
    line-height: 1.3;
}
.planner-share-box {
    border-color: rgba(75, 181, 103, 0.45);
}
.planner-feedback-box strong,
.planner-share-box strong {
    display: block;
    margin-bottom: 3px;
    color: #f7d794;
}
.planner-share-box strong {
    color: #b7f3c8;
}
.planner-feedback-box a,
.planner-feedback-box button,
.planner-feedback-box select,
.planner-feedback-box textarea,
.planner-share-box a,
.planner-share-box button {
    box-sizing: border-box;
}
.planner-feedback-box select {
    display: block;
    width: 100%;
    min-height: 28px;
    margin: 6px 0 4px;
    padding: 5px 6px;
    border: 0;
    border-radius: 4px;
    background: #f7f9fb;
    color: #16202a;
    font-size: 12px;
}
.planner-feedback-box textarea {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 6px 0 4px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 4px;
    background: rgba(255,255,255,0.94);
    color: #16202a;
    font-size: 12px;
    line-height: 1.25;
    resize: vertical;
}
.planner-feedback-box a,
.planner-feedback-box button,
.planner-share-box a,
.planner-share-box button {
    display: inline-block;
    margin-top: 5px;
    color: #111;
    background: #f28c28;
    padding: 5px 7px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}
.planner-feedback-box button {
    border: 0;
    cursor: pointer;
}
.planner-feedback-status {
    display: block;
    margin-top: 4px;
    color: #f7d794;
}
.planner-share-box a {
    background: #27ae60;
    color: #fff;
}
.planner-share-box button {
    border: 0;
    cursor: pointer;
    background: #dfe8f0;
}
.toolbar-ad {
    clear: both;
    width: 100%;
    min-height: 80px;
    margin: 4px 0 5px;
    padding: 4px 0;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}
.toolbar-ad .adsbygoogle {
    display: block;
    width: 100%;
    min-height: 80px;
}
.presentation-exit {
    position: fixed;
    right: 14px;
    top: 14px;
    z-index: 80;
    display: none;
    min-height: 34px;
    padding: 8px 12px;
    border: 0;
    background: #f28c28;
    color: #111;
    font-weight: bold;
    cursor: pointer;
}
body.presentation-mode .toolbar,
body.presentation-mode .planner-ad,
body.presentation-mode .quickbar,
body.presentation-mode .floating-palette,
body.presentation-mode .animation-tour {
    display: none !important;
}
body.presentation-mode .workspace {
    width: 100vw;
    height: 100vh;
    padding: 18px;
}
body.presentation-mode .presentation-exit {
    display: block;
}
.adblock-message {
    display: none;
    margin: 6px 0;
    padding: 8px;
    border: 1px solid #f28c28;
    background: #fff7e6;
    color: #16202a;
    font-size: 11px;
    line-height: 1.3;
    border-radius: 4px;
}
.adblock-bait {
    position: absolute;
    left: -10000px;
    top: -10000px;
    width: 1px;
    height: 1px;
    display: block;
}
.adblock-overlay {
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.88);
    padding: 20px;
    box-sizing: border-box;
}
.adblock-box {
    width: 460px;
    max-width: 94%;
    background: #ffffff;
    color: #16202a;
    border: 3px solid #f28c28;
    padding: 22px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.35);
    text-align: center;
}
.adblock-box h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #16202a;
}
.adblock-box p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
}
.adblock-box button {
    min-height: 36px;
    padding: 8px 14px;
    border: 0;
    background: #f28c28;
    color: #111;
    font-weight: bold;
    cursor: pointer;
}
.planner-public-intro {
    margin-top: 56px;
    padding: 16px 18px;
    background: #fff7e6;
    border-bottom: 1px solid #f2c078;
}
.planner-public-intro + .app {
    margin-top: 0;
}
.planner-public-intro .inner {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
}
.planner-public-intro h1 {
    margin: 0 0 6px;
    color: #16202a;
    font-size: 22px;
}
.planner-public-intro p {
    margin: 0 0 10px;
}
.planner-public-intro a {
    display: inline-block;
    margin-right: 8px;
    padding: 7px 10px;
    background: #f28c28;
    color: #111;
    font-weight: bold;
    text-decoration: none;
}
.planner-public-intro button {
    display: inline-block;
    margin-right: 8px;
    padding: 7px 10px;
    border: 0;
    background: #16202a;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}
.planner-public-intro .public-intro-close {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 30px;
    padding: 5px 8px;
    border-radius: 3px;
    background: rgba(22,32,42,0.12);
    color: #16202a;
}
.shared-compact-edit {
    display: none;
    position: fixed;
    right: 18px;
    top: 86px;
    z-index: 80;
    border: 1px solid #0b5fbd;
    background: #0b5fbd;
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(20,30,40,0.18);
}
.shared-compact-edit.visible {
    display: inline-block;
}
.mobile-toolbar-backdrop {
    display: none !important;
}
body.shared-locked .toolbar button,
body.shared-locked .toolbar input,
body.shared-locked .toolbar select,
body.shared-locked .toolbar textarea,
body.shared-locked .floating-palette button,
body.shared-locked .quickbar button {
    pointer-events: none;
    opacity: 0.55;
}
body.shared-locked .quickbar button[onclick*="print"],
body.shared-locked .quickbar button[onclick*="Presentation"],
body.shared-locked .toolbar button[onclick*="print"],
body.shared-locked #sharedEditBtn,
body.shared-locked #sharedCloseIntroBtn,
body.shared-locked #sharedCompactEditBtn {
    pointer-events: auto;
    opacity: 1;
}
body.shared-locked #plannerSvg {
    cursor: default;
}
body.shared-locked .toolbar,
body.shared-locked .floating-palette {
    display: none !important;
}
body.shared-locked .planner-ad,
body.shared-locked .toolbar-ad,
body.shared-locked .adsbygoogle,
body.shared-locked .adblock-message,
body.shared-locked .adblock-overlay {
    display: none !important;
}
body.shared-locked .workspace {
    width: 100%;
}
.context-menu {
    position: fixed;
    z-index: 50;
    display: none;
    width: 168px;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #9aa7b2;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}
.context-menu button {
    display: block;
    width: 100%;
    min-height: 30px;
    margin: 0 0 4px;
    border: 0;
    background: #eef1f4;
    color: #16202a;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
}
.context-menu button:hover {
    background: #dce5ee;
}
.marker-inline-options {
    display: none;
}
.text-modal {
    position: fixed;
    z-index: 60;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
    background: rgba(0,0,0,0.35);
}
.text-modal-box {
    width: 360px;
    max-width: 92%;
    margin: 12vh auto 0;
    padding: 14px;
    background: #fff;
    border: 1px solid #9aa7b2;
    box-shadow: 0 8px 26px rgba(0,0,0,0.25);
}
.text-modal-box textarea {
    width: 100%;
    height: 140px;
    box-sizing: border-box;
    resize: vertical;
    font-family: "Courier New", monospace;
    font-size: 15px;
}
.text-modal-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: bold;
    color: #16202a;
}
.text-modal-actions {
    margin-top: 10px;
    text-align: right;
}
.text-modal-actions button {
    min-height: 32px;
    margin-left: 6px;
    padding: 6px 12px;
}
.inline-text-editor {
    position: absolute;
    z-index: 20;
    min-width: 24px;
    min-height: 18px;
    padding: 0;
    border: 1px dashed rgba(30,136,229,0.75);
    background: #ffffff;
    color: #202833;
    caret-color: #000000;
    font-family: "Courier New", monospace;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.08;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    resize: both;
    overflow: auto;
    box-sizing: border-box;
    user-select: text;
    -webkit-user-select: text;
}
.piece.text-editing foreignObject {
    visibility: hidden;
    display: none;
}
@media (max-width: 850px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }
    .app {
        display: block;
        width: 100%;
        height: calc(100dvh - 108px);
        overflow: hidden;
    }
    .toolbar {
        position: fixed;
        z-index: 120;
        left: 8px;
        right: 8px;
        bottom: calc(66px + env(safe-area-inset-bottom, 0px) + var(--planner-visual-bottom, 0px));
        width: auto;
        height: auto;
        max-height: min(calc(var(--planner-visual-height, 100dvh) - 82px), 680px);
        padding: 12px;
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 10px;
        box-shadow: 0 18px 50px rgba(0,0,0,0.45);
        overflow-y: auto;
        transform: translateY(calc(100% + 20px));
        transition: transform 0.2s ease;
    }
    .mobile-toolbar-backdrop {
        position: fixed;
        z-index: 119;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.48);
        cursor: pointer;
    }
    body.mobile-toolbar-open .mobile-toolbar-backdrop {
        display: block !important;
    }
    .mobile-toolbar-heading {
        position: sticky;
        z-index: 2;
        top: -12px;
        align-items: center;
        justify-content: space-between;
        margin: -12px -12px 10px;
        padding: 10px 12px;
        background: #16202a;
        border-bottom: 1px solid rgba(255,255,255,0.18);
        font-size: 16px;
    }
    .mobile-toolbar-heading.mobile-only {
        display: flex !important;
    }
    .toolbar .mobile-toolbar-close {
        width: 42px;
        min-height: 42px;
        margin: 0;
        padding: 0;
        border-radius: 50%;
        background: #ffffff;
        color: #16202a;
        font-size: 28px;
        font-weight: bold;
        line-height: 1;
    }
    body.mobile-toolbar-open .toolbar {
        transform: translateY(0);
    }
    body.mobile-toolbar-open .floating-palette {
        display: none !important;
    }
    .workspace {
        display: block;
        width: 100%;
        height: calc(100dvh - 108px);
        padding: 6px 6px 18px;
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-only {
        display: inline-block !important;
    }
    .quickbar {
        position: sticky;
        top: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 3px;
        width: auto;
        max-width: calc(100% - 8px);
        margin: 0 auto 5px;
        padding: 3px 4px;
        border-radius: 7px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }
    .quickbar button,
    .quickbar span {
        flex: 0 0 auto;
        min-height: 32px;
        font-size: 11px;
    }
    .quickbar button {
        padding: 4px 7px;
    }
    .quickbar span {
        min-width: 42px;
        padding: 5px 6px;
    }
    .quickbar .mobile-menu-button {
        border-color: #16202a;
        background: #16202a;
        color: #fff;
    }
    .quickbar .install-app-button {
        border-color: #1f8f4d;
        background: #1f8f4d;
        color: #fff;
    }
    .marker-inline-options:not([hidden]) {
        position: fixed;
        z-index: 58;
        display: block;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 1px solid #fff;
        border-radius: 50%;
        background: #f28c28;
        color: #16202a;
        box-shadow: 0 4px 12px rgba(0,0,0,.3);
        font-size: 19px;
        font-weight: bold;
        line-height: 23px;
        text-align: center;
        touch-action: manipulation;
    }
    .floating-palette {
        position: fixed;
        z-index: 90;
        left: 50% !important;
        right: auto;
        top: auto !important;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px) + var(--planner-visual-bottom, 0px));
        width: min(290px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        transform: translate(
            calc(-50% + var(--planner-palette-shift-x, 0px)),
            var(--planner-palette-shift-y, 0px)
        );
    }
    .floating-palette-head {
        min-height: 38px;
        padding: 3px 5px;
        cursor: pointer;
        touch-action: manipulation;
        -ms-touch-action: manipulation;
    }
    .floating-palette-head button {
        min-width: 34px;
        min-height: 30px;
    }
    .floating-palette-body {
        grid-template-columns: repeat(4, minmax(48px, 1fr));
        gap: 3px;
        max-height: min(210px, calc(var(--planner-visual-height, 100dvh) - 150px));
        padding: 5px;
    }
    .floating-palette-body button {
        min-height: 38px;
        font-size: 9px;
        touch-action: manipulation;
    }
    .sheet-wrap {
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
        padding: 0 12px 110px 0;
    }
    .toolbar button {
        display: inline-block;
        width: 49%;
        margin-right: 1%;
        vertical-align: top;
    }
    .tool-grid button {
        width: 23.5%;
        margin-right: 1%;
    }
    .toolbar select, .toolbar input {
        display: inline-block;
        width: 49%;
        margin-right: 1%;
    }
    .zoom-row {
        display: flex;
        width: 100%;
        clear: both;
    }
}
.mobile-gate {
    position: fixed;
    z-index: 4200;
    left: 0;
    right: 0;
    top: 56px;
    bottom: 52px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.92);
    box-sizing: border-box;
}
.mobile-gate-box {
    width: 440px;
    max-width: 100%;
    background: #ffffff;
    color: #16202a;
    border: 3px solid #f28c28;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.38);
}
.mobile-gate-box h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.2;
}
.mobile-gate-box p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
}
.mobile-gate-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
}
.mobile-gate-actions button,
.mobile-gate-actions a {
    display: block;
    min-height: 38px;
    padding: 9px 12px;
    border: 0;
    background: #eef1f4;
    color: #16202a;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.mobile-gate-actions .primary {
    background: #f28c28;
    color: #111;
}
body.mobile-gate-active .mobile-gate {
    display: flex;
}
body.mobile-gate-active .app {
    pointer-events: none;
    filter: blur(2px);
}
body.guest-gate-active .app {
    pointer-events: none;
    filter: blur(2px);
}
body.guest-gate-active .guest-gate {
    display: flex;
}
.guest-gate {
    position: fixed;
    z-index: 4100;
    left: 0;
    right: 0;
    top: 56px;
    bottom: 52px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.88);
    box-sizing: border-box;
}
.guest-gate-box {
    width: 500px;
    max-width: 100%;
    background: #fff;
    color: #16202a;
    border: 3px solid #f28c28;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.38);
}
.guest-gate-box h2 {
    margin: 0 0 10px;
    font-size: 22px;
}
.guest-gate-box p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
}
.guest-gate-actions a {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 9px 12px;
    background: #eef1f4;
    color: #16202a;
    font-weight: bold;
    text-decoration: none;
}
.guest-gate-actions .primary {
    background: #f28c28;
    color: #111;
}
body.mobile-readonly .toolbar,
body.mobile-readonly .planner-ad,
body.mobile-readonly .quickbar,
body.mobile-readonly .floating-palette,
body.mobile-readonly .animation-tour,
body.mobile-readonly .toolbar-ad,
body.mobile-readonly .adblock-message {
    display: none !important;
}
body.mobile-readonly .app {
    display: block;
    height: calc(100vh - 108px);
    overflow: hidden;
}
body.mobile-readonly .workspace {
    display: block;
    width: 100%;
    height: calc(100vh - 108px);
    padding: 10px;
    overflow: auto;
}
body.mobile-readonly #plannerSvg {
    pointer-events: none;
    cursor: default;
}
body.mobile-readonly .select-ring,
body.mobile-readonly .handle {
    display: none !important;
}
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }
    html, body {
        background: #fff;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .app {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .toolbar {
        display: none !important;
    }
    .quickbar,
    .floating-palette,
    .animation-tour {
        display: none !important;
    }
    body > *:not(.app):not(script):not(style) {
        display: none !important;
    }
    .toolbar-ad {
        display: none !important;
    }
    .adblock-overlay,
    .adblock-message {
        display: none !important;
    }
    .planner-ad {
        display: none !important;
    }
    .workspace {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #fff !important;
    }
    .sheet-wrap {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .sheet {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        max-width: none !important;
        transform: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        page-break-before: avoid !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
        break-before: avoid !important;
        break-after: avoid !important;
        break-inside: avoid !important;
    }
    .sheet:before {
        display: none;
    }
    .select-ring, .handle {
        display: none !important;
    }
    .link-pdf-hit {
        pointer-events: all;
    }
    .link-screen,
    .link-pdf-hit {
        display: none !important;
    }
    .link-print {
        display: inline !important;
        pointer-events: all;
    }
}
