* { box-sizing: border-box; }
body {
    margin: 0;
    background: #f4f7f2;
    color: #263126;
    font-family: Arial, Helvetica, sans-serif;
}
.og-wrap {
    width: min(1120px, calc(100% - 28px));
    margin: 28px auto 50px;
}
.og-header {
    background: linear-gradient(135deg, #315f2d, #6d9f46);
    color: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 28px rgba(49, 95, 45, .18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.og-header-text { min-width: 0; }
.og-header h1 { margin: 0 0 6px; font-size: 28px; }
.og-header p { margin: 0; opacity: .92; line-height: 1.5; }
.og-header-actions { flex: 0 0 auto; }
.og-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 10px;
    background: rgba(255,255,255,.14);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}
.og-header-btn:hover {
    background: rgba(255,255,255,.24);
    transform: translateY(-1px);
}
.og-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0 20px;
}
.og-btn, button.og-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    background: #4a7c2c;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.og-btn:hover { background: #3c6723; }
.og-btn.secondary { background: #667085; }
.og-btn.secondary:hover { background: #525b6d; }
.og-btn.danger { background: #b42318; }
.og-btn.danger:hover { background: #912018; }
.og-btn.warning { background: #a15c00; }
.og-btn.warning:hover { background: #824a00; }
.og-card {
    background: #fff;
    border: 1px solid #dce7d7;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(39, 85, 43, .08);
}
.og-form-card { padding: 22px; }
.og-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.og-item { overflow: hidden; }
.og-item-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #edf2ea;
}
.og-no-photo {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf2ea;
    color: #72806f;
    font-size: 42px;
}
.og-item-body { padding: 15px; }
.og-item h2 { margin: 7px 0 8px; font-size: 18px; line-height: 1.25; }
.og-item h2 a { color: #263126; text-decoration: none; }
.og-item h2 a:hover { color: #4a7c2c; }
.og-meta { color: #687566; font-size: 12px; line-height: 1.5; }
.og-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf4e3;
    color: #315f2d;
    font-size: 11px;
    font-weight: 700;
}
.og-badge.wait { background: #fff4d6; color: #8a5a00; }
.og-badge.reject { background: #fde8e7; color: #9e2018; }
.og-field { margin-bottom: 17px; }
.og-field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.og-field input[type="text"],
.og-field input[type="tel"],
.og-field select,
.og-field textarea {
    width: 100%;
    border: 1px solid #cfd8cc;
    border-radius: 9px;
    padding: 10px 11px;
    background: #fff;
    color: #263126;
    font: inherit;
}
.og-field input:focus,
.og-field select:focus,
.og-field textarea:focus,
.og-editor:focus {
    outline: 2px solid rgba(74, 124, 44, .22);
    border-color: #4a7c2c;
}
.og-help { color: #6b756a; font-size: 11px; margin-top: 5px; line-height: 1.45; }
.og-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid #cfd8cc;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #f6f8f5;
}
.og-editor-toolbar button {
    min-width: 34px;
    border: 1px solid #cbd5c7;
    border-radius: 6px;
    background: #fff;
    padding: 6px 9px;
    cursor: pointer;
    font-weight: 700;
}
.og-editor {
    min-height: 210px;
    max-height: 430px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #cfd8cc;
    border-radius: 0 0 9px 9px;
    background: #fff;
    line-height: 1.55;
}
.og-editor:empty:before { content: attr(data-placeholder); color: #8a9588; }
.og-alert { padding: 12px 14px; border-radius: 9px; margin-bottom: 16px; font-size: 13px; line-height: 1.45; }
.og-alert.ok { background: #eaf7e6; color: #285c21; border: 1px solid #cce7c4; }
.og-alert.error { background: #fff0ef; color: #912018; border: 1px solid #f1cbc8; }
.og-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.og-filter a { padding: 7px 11px; border-radius: 999px; background: #fff; border: 1px solid #d5dfd1; color: #41503f; text-decoration: none; font-size: 12px; font-weight: 700; }
.og-filter a.active { background: #4a7c2c; color: #fff; border-color: #4a7c2c; }
.og-detail { padding: 22px; }
.og-detail h2 { font-size: 28px; margin: 10px 0 8px; }
.og-detail-text { margin-top: 20px; line-height: 1.65; }
.og-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.og-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 1px solid #dce7d7; cursor: zoom-in; }
.og-table-wrap { overflow-x: auto; }
.og-table { width: 100%; border-collapse: collapse; background: #fff; }
.og-table th, .og-table td { padding: 10px; border-bottom: 1px solid #e6ece3; text-align: left; vertical-align: top; font-size: 12px; }
.og-table th { background: #f3f7f1; color: #465344; }
.og-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.og-actions form { margin: 0; }
.og-actions .og-btn { min-height: 32px; padding: 6px 9px; font-size: 11px; }
.og-empty { padding: 28px; text-align: center; color: #6c7869; }
.og-count { font-size: 12px; color: #687566; margin: 10px 0 0; }
.og-user-box { padding: 10px 12px; border-radius: 9px; background: #f1f8eb; margin-bottom: 16px; font-size: 13px; }
.og-photo-preview { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.og-photo-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid #d7dfd3; }
@media (max-width: 850px) {
    .og-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .og-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .og-photo-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .og-wrap { width: min(100% - 18px, 1120px); margin-top: 10px; }
    .og-header { padding: 18px; border-radius: 12px; flex-direction: column; align-items: stretch; gap: 14px; }
    .og-header h1 { font-size: 22px; }
    .og-header-actions { width: 100%; }
    .og-header-btn { width: 100%; box-sizing: border-box; }
    .og-grid, .og-gallery { grid-template-columns: 1fr; }
    .og-form-card, .og-detail { padding: 15px; }
    .og-btn { width: 100%; }
    .og-actions .og-btn { width: auto; }
    .og-photo-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
